base32, base64: no need for 'inline'
[gnulib.git] / ChangeLog
1 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2
3         base32, base64: no need for 'inline'
4         * lib/base32.c (to_uchar, get_8, decode_8):
5         * lib/base64.c (to_uchar, get_4, decode_4):
6         Change 'static inline' to 'inline'.
7         * m4/base32.m4 (gl_PREREQ_BASE32):
8         * m4/base64.m4 (gl_PREREQ_BASE64):
9         Do not require AC_C_INLINE.
10
11         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
12         * lib/gl_array_oset.c (gl_array_nx_add_at):
13         (gl_array_remove_at):
14         * lib/gl_linkedhash_list.c (hash_resize_after_add)
15         (add_to_bucket, remove_from_bucket):
16         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
17         Change 'static inline' to 'static', as it's simpler to omit
18         'inline' unless there's a significant performance advantage.
19
20         list, oset, xlist, xoset, xsublist: simplify via extern inline
21         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
22         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
23         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
24         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
25         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
26         New macro.  Replace all uses of 'static inline' with it.
27         [HAVE_INLINE]: Implement functions as *_INLINE functions,
28         instead of as macros FOO that are defined to static inline
29         functions FOO_inline.
30         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
31         * lib/gl_xsublist.c:
32         Reimplement from scratch, by defining the corresponding *_INLINE
33         macro and including the corresponding .h file.  This is simpler.
34         * modules/list, modules/oset, modules/xlist, modules/xoset:
35         (Files): Remove m4/gl_list.m4.
36         (configure.ac): Remove gl_LIST.
37         * m4/gl_list.m4: Remove.
38         * modules/list, modules/oset, modules/xlist, modules/xoset:
39         * modules/xsublist:
40         (Depends-on): Depend on extern-inline, not inline.
41
42         xalloc: better 'inline'
43         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
44         New macro.  Replace all uses of 'static inline' with it.
45         (static_inline): Remove.
46         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47         Let 'extern inline' do the work automatically, instead of doing
48         it by hand.
49         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
50         Remove.  All uses removed.
51         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
52
53         gethrxtime: better 'inline'
54         * lib/xtime.c: New file.
55         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
56         * lib/xtime.h (XTIME_INCLUDE):
57         New macros.  Replace all uses of 'static inline' with them.
58         * lib/gethrxtime.c (gethrxtime): Define only if
59         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
60         this source file is now always compiled, because of the extern inline.
61         * lib/gethrxtime.h, lib/xtime.h:
62         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
63         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
64         if gethrtime works, as they're not needed in that case.
65         (gl_XTIME): Do not require AC_C_INLINE.
66         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
67         compiled now.  Move the check into gl_GETHRXTIME.
68         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
69         (Depends-on): Add extern-inline.
70         (configure.ac): gethrxtime is always compiled now.
71         (lib_SOURCES): Add gethrxtime.c.
72
73         wctype-h: better 'inline'
74         * lib/wctype-h.c: New file.
75         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
76         New macro.  Replace all uses of 'static inline' with it.
77         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
78         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
79         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
80         (Depends-on): Add extern-inline.
81
82         unistd: better 'inline'
83         * lib/unistd.c: New file.
84         * lib/unistd.in.h (_GL_UNISTD_INLINE):
85         New macro.  Replace all uses of 'static inline' with it.
86         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
87         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
88         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
89         (Depends-on): Add extern-inline.
90
91         sys_socket: better 'inline'
92         * lib/sys_socket.c: New file.
93         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
94         New macro.  Replace all uses of 'static inline' with it.
95         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
96         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
97         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
98         (Depends-on): Add extern-inline.
99
100         stdio: better 'inline'
101         * lib/stdio.c: New file.
102         * lib/stdio.in.h (_GL_STDIO_INLINE):
103         New macro.  Replace all uses of 'static inline' with it.
104         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
105         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
106         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
107         (Depends-on): Add extern-inline.
108
109         sigaction: better 'inline'
110         * lib/sig-handler.c: New file.
111         * lib/sig-handler.h (SIG_HANDLER_INLINE):
112         New macro.  Replace all uses of 'static inline' with it.
113         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
114         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
115         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
116         (Depends-on): Add extern-inline.
117
118         selinux-h: better 'inline'
119         * lib/se-context.c, lib/se-selinux.c: New files.
120         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
121         * lib/se-context.in.h (SE_CONTEXT_INLINE):
122         New macro.  Replace all uses of 'static inline' with it.
123         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
124         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
125         New macro.  Replace all uses of 'static inline' with it.
126         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
127         * modules/selinux-h (Files, lib_SOURCES):
128         Add lib/se-context.c, lib/se-selinux.c.
129         (Depends-on): Add extern-inline.
130         (configure.ac): Do not require AC_C_INLINE.
131
132         pthread: better 'inline'
133         * lib/pthread.c: New file.
134         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
135         New macro.  Replace all uses of 'static inline' with it.
136         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
137         * m4/pthread.m4 (gl_PTHREAD_CHECK):
138         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
139         * modules/pthread (Files): Add lib/pthread.c.
140         (Depends-on): Add extern-inline.
141
142         math: better 'inline'
143         * lib/math.c: New file.
144         * lib/math.in.h (_GL_MATH_INLINE):
145         New macro.  Replace all uses of 'static inline' with it.
146         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
147         * m4/math_h.m4 (gl_MATH_H):
148         Do not require AC_C_INLINE.
149         * modules/math (Files, lib_SOURCES):
150         Add lib/math.c.
151         (Depends-on): Add extern-inline.
152
153         count-one-bits: better 'inline'
154         * lib/count-one-bits.c: New file.
155         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
156         New macro.  Replace all uses of 'static inline' with it.
157         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
158         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
159         Do not require AC_C_INLINE.
160         * modules/count-one-bits (Files, lib_SOURCES):
161         Add lib/count-one-bits.c.
162         (Depends-on): Add extern-inline.
163
164         count-leading-zeros: better 'inline'
165         * lib/count-leading-zeros.c: New file.
166         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
167         New macro.  Replace all uses of 'static inline' with it.
168         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
169         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
170         Do not require AC_C_INLINE.
171         * modules/count-leading-zeros (Files, lib_SOURCES):
172         Add lib/count-leading-zeros.c.
173         (Depends-on): Add extern-inline.
174
175         bitrotate: better 'inline'
176         * lib/bitrotate.c: New file.
177         * lib/bitrotate.h (BITROTATE_INLINE):
178         New macros.
179         Replace all uses of 'static inline' with them.
180         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
181         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
182         (Depends-on): Add extern-inline.
183         (configure.ac): Do not require AC_C_INLINE.
184
185 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
186
187         maint.mk: avoid gratuitous failure
188         Reported by Stefano Lattarini in
189         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
190         * top/maint.mk (public-submodule-commit): Quote more safely.
191
192 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
193
194         canonicalize, canonicalize-lgpl: support MS-Windows file names
195         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
196         for test cases, which it'd be nice to add at some point.
197         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
198         * lib/canonicalize.c (canonicalize_filename_mode):
199         * lib/canonicalize-lgpl.c (__realpath):
200         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
201         slash is at the beginning of the file name.  Use ISSLASH, instead
202         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
203         the first character with '/'.  Test for
204         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
205         with a drive letter.
206         * lib/canonicalize.c (SLASHES): New macro.
207         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
208
209 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
210
211         fts: introduce FTS_VERBATIM
212         * lib/fts_.h (FTS_VERBATIM): New bit flag.
213         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
214         * lib/fts.c (fts_open): Honor it.
215
216 2012-11-09  Pádraig Brady  <P@draigBrady.com>
217
218         getlogin-tests: allow errno == ENXIO
219         * tests/test-getlogin.c (main): Skip tests if getlogin fails
220         with errno == ENXIO (No controlling tty).
221         getlogin_r-tests: Likewise. Also allow errno == ENOENT
222         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
223         with errno == ENOENT.  This was reported to happen in various
224         situations on GNU/Linux.
225
226 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
227
228         getlogin-tests: allow errno == ENOENT
229         * tests/test-getlogin.c (main): Skip tests if getlogin fails
230         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
231         when running a test in an Emacs shell buffer.
232
233 2012-11-08  Jim Meyering  <jim@meyering.net>
234
235         tests/nap.h: avoid warning about unused variable
236         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
237
238         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
239         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
240         white space before each of the special-cased file names, to avoid
241         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
242         in http://bugs.gnu.org/12830.
243
244 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
245
246         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
247         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
248         fails with errno == EBADF when fd is opened with O_PATH.
249         Reported by Jim Meyering in
250         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
251         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
252         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
253
254 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
255
256         test-utimens: speed up by taking shorter naps
257         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
258         New functions.
259         (nap): Use them, to do a better job of guessing the delay.
260         On Fedora 17 with ext4 atop md atop hard disks, this made
261         test-utimens run 10x faster, because the test napped for
262         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
263         <http://bugs.gnu.org/12820#11>.
264
265 2012-11-07  Jim Meyering  <jim@meyering.net>
266
267         mountlist.c: fix a compilation failure
268         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
269         I introduced while transforming commit v0.0-7683-g613bcb6
270
271 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
272
273         errno: port to LynxOS 178 2.2.2
274         Problem reported by Joel Brobecker in
275         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
276         * doc/posix-headers/errno.texi (errno.h): Document this.
277         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
278         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
279         Supply a string for EILSEQ.
280         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
281
282 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
283
284         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
285         Linux kernel 2.6.39 introduced O_PATH (see
286         <http://lwn.net/Articles/433854/>) and this is a better fallback
287         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
288         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
289         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
290         * lib/fcntl.in.h (O_ACCMODE):
291         * tests/test-fcntl-h.c (main):
292         Do not reject O_ACCMODE merely because it has more than the
293         minimal number of bits, as POSIX allows extensions here.
294
295 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
296
297         mountlist: do not classify a bind-mounted dir entry as "dummy"
298         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
299         the "none"-testing clause.
300         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
301         exception for bind-mounted directories.
302
303 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
304
305         quote: provide a means to escape strings with nul characters
306         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
307         (quote, quote_n): Rename formal arguments for consistency with
308         quotearg.
309
310 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
311
312         test-raise: don't assume 199 is an invalid signal
313         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
314
315         sh-quote-tests: port to Solaris 9
316         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
317         Problem reported by Dagobert Michelsen in
318         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
319
320 2012-10-28  Jim Meyering  <jim@meyering.net>
321
322         maint.mk: rename a new configurable variable
323         * top/maint.mk (_gl_translatable_string_re): Rename from
324         translation-markers: _gl_ prefix to insulate from user Makefile code,
325         and the _re suffix to inform that it's a regular expression.
326
327 2012-10-26  Eric Blake  <eblake@redhat.com>
328
329         maint.mk: let packages tweak sc_po_check pattern
330         * top/maint.mk (sc_po_check): Add translation-markers, to allow
331         finding files with other translation markers.
332
333 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
334
335         euidaccess: speed up 'configure' on GNU hosts
336         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
337         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
338         it's needed only in this case.  Use AC_CHECK_DECLS, not
339         AC_CHECK_DECLS_ONCE.
340         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
341         or AC_REQUIRE for AC_FUNC_GETGROUPS.
342
343         * lib/regexec.c (re_search_internal): Fix grammar in comment.
344
345 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
346
347         fchmodat, fchownat, fstatat: port to non-inlining compilers
348         Problem reported for FreeBSD 9 by Jim Meyering in
349         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
350         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
351         New files, which define FCHMODAT_INLINE etc.
352         * lib/fchmodat.c (FCHMODAT_INLINE):
353         * lib/fchownat.c (FCHOWNAT_INLINE):
354         * lib/fstatat.c (FSTATAT_INLINE):
355         Remove, as chmodat.c etc. now do this.
356         * modules/fchmodat (Files): Add lib/chmodat.c.
357         * modules/fchownat (Files): Add lib/chownat.c.
358         * modules/fstatat (Files): Add lib/statat.c.
359
360 2012-10-15  Jim Meyering  <jim@meyering.net>
361
362         fchmodat.c, fchownat.c: compile-impeding typos
363         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
364         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
365         Introduced in commit v0.0-7636-gd202279.
366
367 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
368
369         fcntl-h: support GNU flags like O_IGNORE_CTTY
370         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
371         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
372         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
373         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
374         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
375         Define to 0 if not already defined.
376         * tests/test-fcntl-h.c: Test these new flags.
377
378 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
379
380         faccessat, etc.: support AT_FDCWD-only use
381         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
382         this function only if its first argument is AT_FDCWD.
383         Emacs wants faccessat for AT_EACCESS but not for any first-arg
384         values other than AT_FDCWD, so it doesn't want all the openat
385         machinery with fchdir etc.
386         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
387         * modules/fstatat, modules/mkdirat, modules/openat (Files):
388         * modules/unlinkat (Files):
389         Remove lib/openat-priv.h, as at-internal supplies this file.
390         Removing this file here allows us to support programs like Emacs
391         that avoid at-internal.
392
393         faccessat: speed up 'configure' on mainstream hosts
394         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
395         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
396         since it's only on unusual platforms that we need to check for
397         'access', and it's better not to slow 'configure' down on all
398         platforms.
399
400         faccessat: port to Solaris 10
401         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
402         Needed on Solaris 10, which doesn't have AT_EACCESS,
403         so we need the Gnulib fcntl.h, which defines it.
404
405 2012-10-14  Pádraig Brady  <P@draigBrady.com>
406         canonicalize: fix C89 compilation
407         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
408         declarations so C89 is supported.  Also remove the comment
409         referencing memorty allocation as the suggested feature could
410         not be implemented as suggested.
411         Reported by Michael Goffioul.
412
413 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
414
415         group-member: omit unnecessary dependencies
416         This is for Emacs, which has its own allocator and where we
417         don't want to use xalloc.
418         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
419         since we no longer use xmalloc.  Do not include stdbool.h, since
420         the changes below happen to remove the only use of bool.
421         (GROUPBUF_SIZE): New constant.
422         (struct group_info): Remove n_groups member.  Add groupbuf member.
423         This lets us get the groups without using malloc, usually.
424         (free_group_info, get_group_info): Adjust to this.
425         (get_group_info): Return the number of groups found, or -1 on error.
426         Use plain malloc not xmalloc, and treat its failure as if there
427         are no groups, as the user already loses in case of error.
428         (group_member): Simplify, based on changes to get_group_info.
429         * modules/group-member (Depends-on): Remove dependencies on
430         xalloc and stdbool.  Add dependency on xalloc-oversized.
431
432 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
433
434         gethrxtime: port to C++
435         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
436
437 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
438
439         ptsname: fix macro-name typo
440         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
441
442 2012-10-03  Simon Josefsson  <simon@josefsson.org>
443
444         inttostr: Relax license.
445         * modules/inttostr (License): Change from LGPL to LGPLv2+.
446
447 2012-10-03  Eric Blake  <eblake@redhat.com>
448
449         ptsname_r: support ptys returned by FreeBSD posix_openpt
450         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
451         lives in /dev/pts/.
452
453 2012-10-02  Eric Blake  <eblake@redhat.com>
454
455         pselect: reject invalid file descriptors
456         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
457         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
458         * modules/pselect (Depends-on): Add dup2.
459         * doc/posix-functions/pselect.texi (pselect): Document this.
460
461         select: reject invalid file descriptors
462         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
463         * lib/select.c (rpl_select) [!win32]: Work around it.
464         * modules/select (Depends-on): Add dup2.
465         * doc/posix-functions/select.texi (select): Document this.
466
467         select: enhance test
468         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
469         New functions.
470         (test_function): Enhance test.
471         (do_select_bad_fd): Avoid any stale errno values.
472
473         ptsname: reject invalid file descriptors
474         http://www.austingroupbugs.net/view.php?id=503
475         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
477         * modules/stdlib (Makefile.am): Replace witness.
478         * lib/stdlib.in.h (ptsname): Allow for replacement.
479         * modules/ptsname (configure.ac): Trigger replacement.
480         * doc/posix-functions/ptsname.texi (ptsname): Document this.
481
482 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
483
484         hash-pjw-bare: new module
485         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
486         * lib/hash-pjw-bare.h: Likewise.
487         * modules/hash-pjw-bare: New file.
488         * MODULES.html.sh (Misc): Add it.
489
490 2012-10-02  Eric Blake  <eblake@redhat.com>
491
492         manywarnings: cater to more gcc infelicities
493         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
494         -Wuninitialized without -O.
495
496 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
497
498         select, poll tests: Make setsockopt invocation effective.
499         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
500         the bind() call.
501         * tests/test-select.h (open_server_socket): Likewise.
502
503 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
504
505         sockets, sys_stat: restore AC_C_INLINE
506         This undoes the 2012-09-22 patch.
507         * m4/sockets.m4 (gl_SOCKETS):
508         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
509         Restore AC_C_INLINE, since MSVC requires __inline or _inline
510         and does not support plain 'inline'.  Reported by Bruno Haible in
511         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
512
513 2012-09-30  Bruno Haible  <bruno@clisp.org>
514
515         localeconv tests: Avoid test failure on OpenIndiana.
516         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
517         skip the 'grouping' and 'mon_grouping' tests.
518         Reported by Jim Meyering.
519
520 2012-09-30  Bruno Haible  <bruno@clisp.org>
521
522         havelib: Follow libtool developments.
523         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
524         Suggested by Simon Josefsson.
525
526 2012-09-29  Jim Meyering  <meyering@redhat.com>
527
528         fstatat.c: fix a compile-impeding typo
529         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
530         Introduced in commit v0.0-7636-gd202279.
531         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
532
533 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
534
535         extern-inline: provide a -Wundef safe config.h
536         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
537         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
538         to produce a -Wundef warning free config.h.
539
540 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
541
542         hash-pjw: relax license to LGPLv2+
543         * modules/hash-pjw (License): Relax, with consent of author.
544
545 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
546
547         maint.mk: fix strict vs. lazy variable issues with RELEASE
548         * top/maint.mk (_equal): New function.
549         (member_check): Strip the result to avoid spurious spaces.
550         (url_dir_list): Do not use ifeq, which is strict, as it will
551         require RELEASE_TYPE to be defined.
552         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
553         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
554         (announcement_Cc_alpha,announcement_mail_headers_alpha)
555         (announcement_Cc_beta,announcement_mail_headers_beta)
556         (announcement_Cc_stable,announcement_mail_headers_stable): these.
557         (release): Do not depend on $(release-type), as it forces its
558         evaluation.  Bounce to it.
559
560 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
561
562         maint.mk: formatting changes
563         * top/maint.mk: Indent bodies of if's.
564
565 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
566
567         maint.mk: factor the validation of RELEASE_TYPE
568         With help from Jim Meyering.
569         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
570         * top/maint.mk (_empty, _sp): Move their definition earlier.
571         (member-check, release-type): New.
572         Use the latter instead of $(RELEASE_TYPE).
573         Remove now useless local checks.
574
575 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
576
577         maint.mk: provide "make upload" to ease uploading
578         See
579         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
580         Do not depend simply on the current $(VERSION), as there may have been
581         new commits since the tarball generation.  Rather, rely on $(RELEASE),
582         as "make release-commit" already does.
583
584         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
585         "make TYPE".
586
587         * top/maint.mk (upload_command, upload, release): New.
588         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
589         (VERSION): first word of $(RELEASE) is always right.
590         (emit_upload_commands): Adjust.
591         * top/README-release: Update.
592
593 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
594
595         maint.mk: silent rules
596         With help from Stefano Lattarini.
597         * top/maint.mk (writable-files): Use $(AM_V_GEN).
598         (announcement): Use $(AM_V_at).
599
600 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
601
602         localename: port gl_locale_name_thread_unsafe to FreeBSD
603         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
604         and use the simpler FreeBSD implementation on Mac OS X as well.
605         Original idea suggested by Ed Maste in
606         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
607
608 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
609
610         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
611         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
612         * lib/mbuiter.c, lib/xsize.c: New files.
613         * lib/binary-io.h (BINARY_IO_INLINE):
614         * lib/eealloc.h (EEALLOC_INLINE):
615         * lib/mbfile.h (MBFILE_INLINE):
616         * lib/mbiter.h (MBITER_INLINE):
617         * lib/mbuiter.h (MBUITER_INLINE):
618         * lib/xsize.h (XSIZE_INLINE):
619         New macros.
620         Replace all uses of 'static inline' with them.
621         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
622         * m4/eealloc.m4 (gl_EEALLOC):
623         * m4/mbfile.m4 (gl_MBFILE):
624         * m4/mbiter.m4 (gl_MBITER):
625         * m4/xsize.m4 (gl_XSIZE):
626         Do not require AC_C_INLINE.
627         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
628         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
629         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
630         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
631         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
632         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
633         * modules/binary-io, modules/eealloc, modules/mbfile:
634         * modules/mbiter, modules/mbuiter:
635         (Depends-on): Add extern-inline.
636
637         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
638         * lib/pipe-filter-aux.c: New file.
639         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
640         Replace all uses of 'static inline' with it.
641         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
642         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
643         (filter_retcode): No real need for inline here.
644         * modules/pipe-filter-gi, modules/pipe-filter-ii:
645         (Files): Add lib/pipe-filter-aux.c.
646         (Depends-on): Add extern-inline.
647         (configure.ac): Do not require AC_C_INLINE.
648         (lib_SOURCES): Add pipe-filter-aux.c.
649
650         fdutimensat: omit unnecessary AC_C_INLINE
651         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
652
653         fchmodat, fchownat, fstatat: use extern-inline
654         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
655         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
656         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
657         New macros.
658         * lib/openat.h:
659         Replace all uses of 'static inline' with them.
660         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
661         * modules/fchmodat, modules/fchownat, modules/fstatat:
662         * modules/openat-h:
663         (Depends-on):
664         Add extern-inline.
665         (configure.ac): Remove AC_C_INLINE.
666
667         acl, mbchar, priv-set: use extern-inline
668         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
669         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
670         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
671         New macros.
672         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
673         Replace all uses of 'static inline' with it.
674         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
675         * m4/acl.m4 (gl_FUNC_ACL):
676         * m4/mbchar.m4 (gl_MBCHAR):
677         * m4/priv-set.m4 (gl_PRIV_SET):
678         Remove AC_C_INLINE, since 'inline' is no longer used directly.
679         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
680         Add extern-inline.
681
682         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
683         * m4/sockets.m4 (gl_SOCKETS):
684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
685         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
686         environments where it's already guaranteed to work, so we needn't
687         check for it at 'configure'-time.
688
689         tls-tests: omit unnecessary 'inline'
690         * tests/test-tls.c (perhaps_yield): No longer inline.
691         Simplicity and portability trump efficiency in test cases.
692
693         utimens-tests: avoid unnecessary 'inline'
694         * modules/fdutimensat-tests (configure.ac):
695         * modules/futimens-tests (configure.ac):
696         * modules/utimens-tests (configure.ac):
697         * modules/utimensat-tests (configure.ac):
698         Remove AC_C_INLINE.
699         * tests/test-utimens-common.h (ctime_compare):
700         No longer inline.  Simplicity and portability trump efficiency here.
701
702         misc: don't limit commentary to inline functions
703         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
704         * lib/xalloc-oversized.h, lib/xsize.h:
705         Contrast macros to functions in general, not just to inline functions,
706         when the commentary does not apply only to inline functions.
707
708 2012-09-20  Jim Meyering  <meyering@redhat.com>
709
710         non-recursive-gnulib-prefix-hack: new module
711         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
712         the file that originated in Bison.
713         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
714         largely copied from a snippet that resided in bison's configure.ac.
715         * modules/non-recursive-gnulib-prefix-hack: New file.
716         * MODULES.html.sh (Support for maintaining and releasing projects):
717         Add it.
718
719 2012-09-18  Jim Meyering  <meyering@redhat.com>
720
721         maint.mk: generalize _gl_tight_scope for non-recursive make
722         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
723         that *.h would describe additional .h files in the directory
724         specified by $(_gl_TS_dir).  I.e., add this...
725         (_gl_TS_other_headers): New variable.
726
727         maint.mk: exempt trailing blanks found in "binary" files
728         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
729         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
730         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
731
732 2012-09-17  Jim Meyering  <meyering@redhat.com>
733
734         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
735         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
736         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
737         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
738
739 2012-09-17  Jim Meyering  <meyering@redhat.com>
740
741         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
742         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
743         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
744         It is not in the same category as "exit (0)" or "exit (1)", and
745         besides, I know of no symbolic name for that 77.  Reported by
746         Richard W.M. Jones in
747         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
748
749 2012-09-17  Jim Meyering  <meyering@redhat.com>
750
751         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
752         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
753         all uses of #define, not just those that start in column 1.
754         Richard W.M. Jones reported a false positive in
755         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
756
757 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
758
759         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
760         * lib/localcharset.c (locale_charset) [DARWIN7]:
761         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
762         as these two values are incompatible.  Problem reported by Max Horn.
763         For more discussion, please see
764         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
765
766         doc: document sticky-EOF issue
767         * doc/posix-functions/fgetc.texi (fgetc):
768         * doc/posix-functions/fgets.texi (fgets):
769         * doc/posix-functions/fread.texi (fread):
770         * doc/posix-functions/fscanf.texi (fscanf):
771         * doc/posix-functions/getc.texi (getc):
772         * doc/posix-functions/getchar.texi (getchar):
773         * doc/posix-functions/scanf.texi (scanf):
774         Mention that glibc and default Solaris do not conform to
775         C99 and POSIX-2001 or later, with respect to how getchar
776         etc. behave when feof reports nonzero.
777
778 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
779
780         poll: fix poll(0, NULL, msec)
781         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
782         but nfd is 0.  In that case poll should behave like select.
783
784 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
785             Paolo Bonzini <bonzini@gnu.org>
786
787         poll: fix for systems that can't recv() on a non-socket
788         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
789         is readable.  In this case POLLHUP will not be supported.
790         * doc/posix-functions/poll.texi: Document this.
791
792 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
793
794         poll/select: document portability problems not fixed by Gnulib.
795         * doc/posix-functions/poll.texi: poll does not work well on
796         pipes under Windows.  It has the same limitations as select on
797         BeOS.
798         * doc/posix-functions/select.texi: select does not work well
799         on pipes under Windows.
800
801 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
802
803         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
804         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
805         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
806         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
807
808 2012-09-06  Eric Blake  <eblake@redhat.com>
809
810         net_if: give more details about the bug being fixed
811         * doc/posix-headers/net_if.texi: Add clarification.
812
813 2012-09-05  Eric Blake  <eblake@redhat.com>
814
815         net_if: new module
816         * modules/net_if: New module, borrowing ideas from netinet_in.
817         * m4/net_if_h.m4: New file.
818         * lib/net_if.in.h: Likewise.
819         * doc/posix-headers/net_if.texi (net/if.h): Document it.
820         * MODULES.html.sh (lacking POSIX:2008): Likewise.
821         * tests/test-net_if.c: Make function checks conditional.
822         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
823
824 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
825
826         readutmp: fix non-portable UT_PID use
827         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
828         Use `UT_PID (u) > 0' as absolute condition.
829
830 2012-09-04  Jim Meyering  <meyering@redhat.com>
831
832         fts: reduce two or more trailing spaces to just one, usually
833         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
834         or more slashes, trim all but the final one.  But if a name consists
835         solely of two slashes, don't modify it.  If it consists solely of
836         three or more slashes, strip all but one.
837
838         This is part of the solution to a minor problem with rm:
839         it would print a bogus ELOOP diagnostic when failing to remove
840         the slash-decorated name of a symlink-to-directory:
841
842             $ mkdir d && ln -s d s && env rm -r s/
843             rm: cannot remove 's': Too many levels of symbolic links
844
845         With the change below and a trivial don't-trim-trailing-slashes
846         adjustment to remove.c, it does this:
847
848             $ env rm -r s/
849             rm: cannot remove 's/': Not a directory
850
851         Improved by: Eric Blake
852
853         fts: when there is no risk of overlap, use memcpy, not memmove
854         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
855
856 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
857
858         stdbool: be more compatible with mixed C/C++ compiles
859         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
860         Define to bool, true, false, respectively, as GCC's builtin
861         stdbool.h does.  Problem reported by Michael Goffioul in
862         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
863
864 2012-08-28  Jim Meyering  <meyering@redhat.com>
865
866         revert last change: it was not needed
867         * tests/test-vc-list-files-git.sh: There's already a test for
868         a working git, just below.
869
870 2012-08-28  Jim Meyering  <meyering@redhat.com>
871
872         tests: test-vc-list-files-git.sh: skip if git is not available
873         * tests/test-vc-list-files-git.sh: Skip this test when git is
874         not available.
875
876 2012-08-26  Bruno Haible  <bruno@clisp.org>
877
878         gnulib-tool: Remove no-op option --no-changelog.
879         * gnulib-tool (func_usage): Don't mention --no-changelog.
880         (do_changelog): Remove variable.
881         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
882
883 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
884
885         doc: remove fdl-1.2.texi
886         It is no longer used or maintained, and its use of @acronym
887         is problematic.  See the thread containing
888         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
889         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
890         * doc/old-licenses/fdl-1.2.texi: Remove.
891
892         execinfo: port to FreeBSD
893         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
894         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
895         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
896         * modules/execinfo (Link): Add $(LIB_EXECINFO).
897
898 2012-08-23  Jim Meyering  <meyering@redhat.com>
899
900         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
901         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
902         to placate gcc's -Wold-style-declaration.
903
904 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
905
906         doc: do not use @acronym
907         * doc/inet_ntoa.texi (inet_ntoa):
908         * doc/parse-datetime.texi (Seconds since the Epoch)
909         (Specifying time zone rules):
910         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
911         Don't use @acronym.  Problem reported by John Darlington in
912         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
913
914 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
915
916         stdnoreturn: port to newer GCCs
917         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
918         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
919         Problem reported by Jim Meyering in
920         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
921         Also, rename the 'test' function to a void a clash with the
922         already-supplied 'main' function; this fixes a bug that incorrectly
923         rejected GCC 4.7.1's <stdnoreturn.h>.
924         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
925         Document GCC problem.
926
927 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
928
929         pipe-filter: fix comment typo
930         * lib/pipe-filter.h: Mention correct function.
931
932 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
933
934         execinfo: new module
935         This is for Emacs.  Currently, it provides a no-effect stub
936         on all platforms where it does not already work.
937         It already works on glibc-based systems, and on Solaris 11.
938         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
939         New files.
940         * doc/glibc-headers/execinfo.texi (execinfo.h):
941         * MODULES.html.sh (Misc): Document it.
942
943 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
944
945         extern-inline: support old GCC 'inline'
946         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
947         if available.  This applies to GCC versions 2.7 through 4.2, or
948         when newer GCC is using -fgnu89-inline.  The goal is to address
949         some of the performance issues mentioned by Bruno Haible in
950         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
951
952 2012-08-20  Eric Blake  <eblake@redhat.com>
953
954         maint.mk: avoid redundant file name in message
955         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
956         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
957         (sc_makefile_path_separator_check): Remove bogus $(ME).
958
959 2012-08-20  Mike Frysinger <vapier@gentoo.org>
960
961         timer-time: fix link order when static linking on glibc
962         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
963         _after_ -lrt so that it's significant.
964
965 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
966
967         timespec: omit unnecessary AC_C_INLINE
968         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
969
970         stat-time: omit unnecessary AC_C_INLINE
971         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
972         Do not require AC_C_INLINE.
973
974         ignore-value: omit unnecessary AC_C_INLINE
975         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
976
977         sys_select: avoid 'static inline'
978         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
979
980         mktime: avoid 'static inline'
981         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
982         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
983
984 2012-08-19  Bruno Haible  <bruno@clisp.org>
985
986         gnulib-tool: Improve coding style.
987         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
988         func_emit_lib_Makefile_am.
989         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
990
991 2012-08-19  Bruno Haible  <bruno@clisp.org>
992
993         gnulib-tool: Fix indentation.
994         * gnulib-tool (func_import): Fix indentation.
995
996 2012-08-19  Bruno Haible  <bruno@clisp.org>
997
998         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
999         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1000         on the list of removed files.
1001
1002 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1003
1004         test-parse-datetime: avoid glibc leap-second glitch
1005         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1006         with the 2012 rules.  Problem reported by Bruce Dubbs in
1007         <http://bugs.gnu.org/12206>.
1008
1009 2012-08-14  Bruno Haible  <bruno@clisp.org>
1010
1011         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1012         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1013         from argument.
1014         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1015
1016 2012-08-14  Eric Blake  <eblake@redhat.com>
1017
1018         ldexp: relax license
1019         * modules/ldexp (License): Trivial relax, since the module only
1020         provides a permissively licensed m4 file.
1021
1022 2012-08-13  Bruno Haible  <bruno@clisp.org>
1023
1024         gnulib-tool: Fix persistence of --witness-c-macro option.
1025         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1026         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1027
1028 2012-08-11  Eric Blake  <eblake@redhat.com>
1029
1030         count-leading-zeros: use a lookup table on non-gcc compilers
1031         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1032         alternate implementation, suggested by Jim Meyering.
1033
1034 2012-08-10  Eric Blake  <eblake@redhat.com>
1035
1036         count-leading-zeros: new module
1037         * modules/count-leading-zeros: New module.
1038         * m4/count-leading-zeros.m4: New file.
1039         * lib/count-leading-zeros.h: Likewise.
1040         * modules/count-leading-zeros-tests: New test.
1041         * tests/test-count-leading-zeros.c: New file.
1042         * MODULES.html.sh (Integer arithmetic functions): Document it.
1043
1044 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1045             Jim Meyering  <meyering@redhat.com>
1046
1047         maintainer-makefile: Fix syntax error with dash.
1048         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1049         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1050
1051 2012-08-05  Jim Meyering  <meyering@redhat.com>
1052
1053         extern-inline: also ignore -Wmissing-declarations
1054         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1055         required with gcc-4.8.0-to-be.
1056
1057         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1058         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1059         for /error ?([^,]*)/.  This avoids false-positives for strings like
1060         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1061
1062 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1063
1064         gnumakefile: better interaction with Automake-NG
1065         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1066         Automake-NG always contain a definition of VPATH, even in non-VPATH
1067         builds (its value being simply '.' in that case).  So, in the
1068         'clean-GNUmakefile' rule, to determine whether running under a
1069         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1070         '$(VPATH)' expands to the empty string.
1071
1072 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1073
1074         base64: Use extern C scope in header file, for C++.
1075         * lib/base64.h: Add C++ namespace protection.
1076
1077 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         stat-time, timespec, u64: support naive out-of-dir builds
1080         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1081         Use '#include "foo.h"', not '#include <foo.h>', when including
1082         one's own interface.  This works better when configuring with
1083         out-of-directory builds, since packages need not add an
1084         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1085
1086 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1087
1088         utimens: use extern-inline
1089         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1090         * lib/utimens.h: Add copyright notice, since this is now large enough
1091         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1092         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1093         * modules/utimens (Depends-on): Add extern-inline.
1094
1095         u64: use extern-inline
1096         * lib/u64.c: New file.
1097         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1098         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1099         * modules/u64 (Files): Add lib/u64.c.
1100         (Depends-on): Add extern-inline.
1101         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1102         does that now.
1103         (lib_SOURCES): Add u64.c.
1104
1105         timespec: use extern-inline
1106         * lib/timespec.c: New file.
1107         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1108         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1109         * modules/timespec (Files): Add lib/timespec.c.
1110         (Depends-on): Add extern-inline.
1111         (lib_SOURCES): Add timespec.c.
1112
1113         stat-time: use extern-inline
1114         * lib/stat-time.c: New file.
1115         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1116         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1117         * modules/stat-time (Files): Add lib/stat-time.c.
1118         (Depends-on): Add extern-inline.
1119         (lib_SOURCES): Add stat-time.c.
1120
1121         extern-inline: new module
1122         * modules/extern-inline, m4/extern-inline.m4: New files.
1123         This is for better support of 'extern inline' a la ISO C99,
1124         with a portable alternative on compilers that do not support
1125         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1126         of the Emacs executable, when compiled with debugging disabled,
1127         which is a typical way that Emacs is built while developing.
1128
1129 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1130
1131         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1132         * build-aux/do-release-commit-and-tag: Move variable definitions
1133         together.
1134         ($branch): Instead of defaulting to "master", default to the current
1135         branch (as gnu-web-doc-update does).
1136         (help): Display the current values of the option arguments.
1137         * top/maint.mk (release-commit): New.
1138         * top/README-release: Simplify the corresponding step.
1139
1140 2012-07-30  Eric Blake  <eblake@redhat.com>
1141
1142         passfd: fix comment on recvfd
1143         * lib/passfd.c (recvfd): Fix comment.
1144         Reported by Jann Horn <jannhorn@googlemail.com>.
1145
1146 2012-07-30  Jim Meyering  <meyering@redhat.com>
1147
1148         maint.mk: avoid a sub-shell
1149         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1150
1151 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1152
1153         maint.mk: use silent-rules support from Automake
1154         * top/maint.mk (news-check, vc-diff-check, announcement)
1155         (no-submodule-changes, alpha beta stable, release-prep)
1156         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1157
1158 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1159
1160         maint.mk: provide a web-manual-update target
1161         * top/maint.mk: here.
1162         * top/README-release: Use it to simplify the web manual update step.
1163
1164 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1165
1166         README-release: shorten the circuit to post a news
1167         * top/README-release: Point directly to the news submission form.
1168
1169 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1170
1171         gnu-web-doc-update: fix --help
1172         * build-aux/gnu-web-doc-update: The information "top level" was written
1173         twice.
1174
1175 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1176
1177         maint.mk: absolute VPATH issue
1178         * top/maint.mk (release-prep): Help Git find .git/.
1179         From Jim Meyering.
1180
1181 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1182
1183         gitlog-to-changelog: fix previous change
1184         * build-aux/gitlog-to-changelog: Fix condition.
1185         Add missing ";".
1186
1187 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1188
1189         gitlog-to-changelog: don't expect .git to be in $srcdir
1190         Reported by Bruno Haible.
1191         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1192         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1193         Use it.
1194
1195 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1196
1197         maint.mk: absolute VPATH build fix
1198         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1199         $(srcdir) is not a parent of $(builddir).
1200
1201 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1202
1203         clean-temp: Fix memory leak.
1204         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1205         'files' members of tmpdir.
1206
1207 2012-07-27  Jim Meyering  <meyering@redhat.com>
1208
1209         maint.mk: new rule: refresh-gnulib-patches
1210         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1211         Use this rule to refresh them.
1212         * top/maint.mk (refresh-gnulib-patches): New rule.
1213
1214 2012-07-24  Bruno Haible  <bruno@clisp.org>
1215
1216         gnulib-tool: Fix handling of inctests variable.
1217         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1218         Reported by Nick Bowler <nbowler@elliptictech.com>.
1219
1220 2012-07-22  Bruno Haible  <bruno@clisp.org>
1221
1222         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1223         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1224         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1225         Remove exemption for getpass.h.
1226         Suggested by Eric Blake.
1227
1228 2012-07-20  Eric Blake  <eblake@redhat.com>
1229
1230         verify: document conflict with -Wnested-externs
1231         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1232
1233         maint.mk: forbid exit(-1)
1234         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1235
1236 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1237
1238         fsusage: port back to Solaris
1239         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1240         error (fsd not declared) on Solaris 10.  Reported privately by
1241         Andrew Borodin.
1242
1243 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1244
1245         gnu-web-doc-update: fix error messages
1246         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1247
1248         gnu-web-doc-update: check the requirements.
1249         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1250         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1251         * build-aux/bootstrap (find_tool): Comment change.
1252
1253 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1254
1255         maint.mk: minor simplication.
1256         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1257         for default values.
1258
1259 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1260
1261         gitlog-to-changelog: VPATH build issues
1262         If builddir is not a subdirectory of srcdir, running git from it will
1263         fail.
1264         * build-aux/gitlog-to-changelog (--srcdir): New option.
1265
1266 2012-07-15  Bruno Haible  <bruno@clisp.org>
1267
1268         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1269         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1270         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1271         Remove exemption for fpending.h.
1272         Suggested by Eric Blake.
1273
1274 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1275
1276         pthread_sigmask: fix bug on FreeBSD 9
1277         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1278         Include string.h.
1279         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1280         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1281         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1282         but pthread_sigmask (1729, NULL, NULL) returns zero.
1283         See <http://bugs.gnu.org/11884>.
1284         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1285         by inspecting whether the main call changed the old mask.
1286
1287 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1288
1289         README-release: make it more legible
1290         * top/README-release: Improve typography slightly.
1291
1292 2012-07-15  Jim Meyering  <meyering@redhat.com>
1293
1294         maint: require that each sc_... command start with "@"
1295         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1296         "make sc_maint" helps us avoid this nit.
1297
1298 2012-07-15  Jim Meyering  <meyering@redhat.com>
1299
1300         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1301         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1302
1303 2012-07-13  Eric Blake  <eblake@redhat.com>
1304
1305         maint.mk: new syntax check for HAVE_DECL checks
1306         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1307         * cfg.mk
1308         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1309         Exempt some false positives.
1310         Based on a report by Karel Zak.
1311
1312         argp: make HAVE_DECL usage consistent
1313         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1314         macros, not whether they are defined.
1315         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1316         convention with other declaration checks.
1317         Reported by Karel Zak, with suggestions from Paul Eggert.
1318
1319         stat-time: relax license to LGPLv2+
1320         * modules/stat-time (License): Relax, with consent of all authors.
1321
1322         strndup: fix m4 usage error
1323         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1324         defined, to either 0 or 1.
1325         Reported by Karel Zak.
1326
1327 2012-07-11  Jim Meyering  <meyering@redhat.com>
1328
1329         maint: enable the sc_avoid_if_before_free syntax-check rule
1330         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1331         (if_before_free_offenders_): Define.
1332         (if_before_free_basename_re_): Define.
1333         Exempt current files with useless if-before-free.
1334
1335 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1336
1337         gettext: do not assume '#define ... defined ...' behavior
1338         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1339         Do not use '#define FOO ... defined BAR ...', as the C standard says
1340         it's not portable to expect that this works after macro expansion.
1341         Problem reported for gzip by Steven M. Schweda in
1342         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1343
1344 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1345
1346         getloadavg: clean out old Emacs and Autoconf cruft
1347         See Glenn Morris in <http://bugs.gnu.org/11905>.
1348         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1349         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1350         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1351         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1352
1353 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1354
1355         bootstrap: let warn be like tests/init.sh's warn_
1356         Reported by Jim Meyering.
1357         * build-aux/bootstrap (warn): Remove, replaced by...
1358         (warnf_, warn_): these.
1359         Adjust callers.
1360         Shorten messages that no longer fit in 80 columns.
1361
1362 2012-07-09  Bruno Haible  <bruno@clisp.org>
1363
1364         getopt: Simplify after Emacs changed.
1365         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1366         (gl_GETOPT_IFELSE): Remove macro.
1367
1368 2012-07-09  Jim Meyering  <meyering@redhat.com>
1369
1370         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1371         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1372
1373         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1374         Bugs in both of those conspired to make the
1375         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1376         _sc_search_regexp's handling of non-empty $in_files would filter
1377         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1378         choice of in_files value meant there would be no match in most
1379         projects, due to the presence of two or more Makefile.in files.
1380         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1381         Fix a bug in how a non-empty $$in_files was processed:
1382         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1383         in spite of the name, it's a regexp, not a list of file names.
1384
1385 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1386
1387         getloadavg, getopt: fix commentary re configure.in
1388         Autoconf is deprecating the name 'configure.in', so change it to
1389         to the new name 'configure.ac' in a couple of places.
1390         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1391         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1392         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1393         Emacs has renamed it to configure.ac, and it no longer refers
1394         to these macros anyway.
1395
1396         timespec: mark functions with const attributes
1397         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1398         Mark with _GL_ATTRIBUTE_CONST.
1399
1400 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1401
1402         canonicalize[-lgpl]: handle "guessing" values when cross-building
1403         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1404         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1405         matches "*yes" instead of just "yes".  Regression introduced in commit
1406         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1407
1408 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1409             Bruno Haible  <bruno@clisp.org>
1410
1411         canonicalize: make the right guess when cross-compiling to GNU
1412         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1413         determine whether cross-compiling to glibc systems, so as to
1414         include GNU/Hurd.
1415
1416 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1417
1418         timespec-sub: avoid duplicate include
1419         * lib/timespec-sub.c: Do not include <config.h> twice.
1420         Reported by Juanma Barranquero.
1421
1422 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1423
1424         bootstrap: use a more consistent error reporting scheme
1425         * build-aux/bootstrap (warn, die): New.
1426         Use them.
1427
1428 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1429
1430         sys_time: allow too-wide tv_sec
1431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1432         timeval even if tv_sec is wider than time_t.  This allows
1433         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1434         as without this patch gnulib replaces struct timeval
1435         and OpenBSD futimes therefore has a type mismatch.
1436         * doc/posix-headers/sys_time.texi: Mention this.
1437
1438         pthread: check for both pthread_create and pthread_join
1439         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1440         alter the check so that it tests for both pthread_create and
1441         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1442         Suggested by Bruno Haible and Richard Yao in
1443         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1444
1445         parse-datetime: doc tuneup
1446         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1447         spacing issues.
1448
1449 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1450
1451         do-release-commit-and-tag: fix the previous commit
1452         * build-aux/do-release-commit-and-tag: Actually the test was right,
1453         but the comment and the error message were misleading.
1454         Fix comment, and improve error message.
1455         Perform check first, so that NEWS is not modified uselessly.
1456
1457         do-release-commit-and-tag: fix typo
1458         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1459         _not_ start with a stub.
1460
1461 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1462
1463         pthread: check for pthread_create, not pthread_join
1464         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1465         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1466         pthread_join in libc.  I hope this removes the need for all the
1467         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1468         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1469
1470 2012-07-04  Jim Meyering  <meyering@redhat.com>
1471
1472         parse-datetime: fix failure to diagnose invalid input
1473         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1474         rather than diagnosing the invalid input.  Now it reports this:
1475         date: invalid date '\260'
1476         * lib/parse-datetime.y (to_uchar): Define.
1477         (yylex): Don't sign-extend "other" bytes.
1478         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1479         Thanks to Bruno Haible for the patch to this file.
1480         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1481         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1482
1483 2012-07-03  Jim Meyering  <meyering@redhat.com>
1484
1485         bootstrap: do not require now-removed build-aux/missing
1486         Now that build-aux/missing is, er, missing, bootstrap would
1487         silently fail.
1488         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1489         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1490         no longer part of gnulib.
1491         Diagnose the failure.
1492
1493 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1494
1495         alloca: add support for HP NonStop TNS/E native
1496         * lib/alloca.in.h (alloca): Support the new host.
1497         From a suggestion by Joachim Schmitz in
1498         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1499
1500 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1501
1502         fsusage: remove code not needed on non GNU/Linux systems.
1503
1504         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1505         Don't include headers no longer needed in this case.
1506         * lib/fsusage.c [STAT_STATVFS &&
1507         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1508         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1509
1510 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1511
1512         fsusage: include files needed for glibc 2.6 fallback
1513         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1514         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1515         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1516         Problem reported by Ludovic Courtès in
1517         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1518
1519         fsusage: avoid needless check on GNU/Linux
1520         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1521         on GNU/Linux systems, since it can't possibly work.
1522
1523 2012-07-01  Bruno Haible  <bruno@clisp.org>
1524
1525         log: Fix an autoconf >= 2.64 warning.
1526         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1527         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1528
1529 2012-06-28  Bruno Haible  <bruno@clisp.org>
1530
1531         log10f: Fix possible configuration problem.
1532         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1533         $LOGF_LIBM.
1534         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1535
1536 2012-06-28  Bruno Haible  <bruno@clisp.org>
1537
1538         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1539         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1540         not gl_cv_func_unlink_works.
1541         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1542
1543 2012-06-27  Eric Blake  <eblake@redhat.com>
1544
1545         config: drop scripts that automake says are not independent
1546         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1547         * build-aux/elisp-comp: Delete.
1548         * build-aux/missing: Likewise.
1549         * build-aux/ylwrap: Likewise.
1550         * modules/elisp-comp: Likewise.
1551         * MODULES.html.sh: Drop mention of elisp-comp.
1552         * NEWS: Mention this.
1553
1554 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1555
1556         root-uid: new module
1557         This is for portability to Tandem's NonStop Kernel.
1558         * lib/root-uid.h, modules/root-uid: New files.
1559         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1560         * lib/write-any-file.c, tests/test-sethostname2.c:
1561         Include "root-uid.h".
1562         * lib/euidaccess.c (euidaccess):
1563         * lib/pt_chown.c (main):
1564         * lib/unlinkdir.c (cannot_unlink_dir):
1565         * lib/write-any-file.c (can_write_any_file):
1566         * m4/mknod.m4 (gl_FUNC_MKNOD):
1567         * tests/test-sethostname2.c (geteuid, main):
1568         Don't assume ROOT_UID == 0.
1569         * modules/euidaccess (Depends-on):
1570         * modules/pt_chown (Depends-on):
1571         * modules/sethostname-tests (Depends-on):
1572         * modules/unlinkdir (Depends-on):
1573         * modules/write-any-file (Depends-on):
1574         Add root-uid.
1575
1576         regex: use locale-independent comparison for codeset name
1577         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1578         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1579         for codeset name.
1580         * lib/regex_internal.h: Do not include <strings.h>, since we
1581         no longer use strcasecmp.
1582         * modules/regex (Depends-on): Remove strcase.
1583
1584 2012-06-23  Bruno Haible  <bruno@clisp.org>
1585
1586         getopt-posix: No longer guarantee that option processing is resettable.
1587         * doc/posix-functions/getopt.texi: Drop description of problem with
1588         internal state. Fix info about mingw and msvc9.
1589         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1590         option processing by getopt(). Run three test programs instead of one.
1591         Simplify cross-compilation guess.
1592         * NEWS: Mention the change.
1593         Reported by Rich Felker <dalias@aerifal.cx>.
1594
1595 2012-06-26  Bruno Haible  <bruno@clisp.org>
1596
1597         argp, regex: Ensure strcasecmp gets declared.
1598         * lib/argp-help.c: Include <strings.h>.
1599         * lib/regex_internal.h: Likewise.
1600         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1601
1602 2012-06-24  Bruno Haible  <bruno@clisp.org>
1603
1604         ptsname_r: Make it consistent with ptsname on AIX.
1605         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1606         implementation as for OSF/1.
1607         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1608         a pty master.
1609
1610         ptsname_r: Make it consistent with ptsname on OSF/1.
1611         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1612         OSF/1.
1613
1614 2012-06-24  Bruno Haible  <bruno@clisp.org>
1615
1616         ttyname_r: Fix result on OSF/1, Solaris.
1617         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1618
1619 2012-06-24  Bruno Haible  <bruno@clisp.org>
1620
1621         ptsname_r: Add support for Solaris.
1622         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1623         Solaris.
1624
1625         ptsname_r: Fix test failure on native Windows.
1626         * modules/ptsname_r (Depends-on): Add isatty.
1627
1628         ptsname_r: Fix test failures on IRIX, Solaris.
1629         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1630         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1631         accordingly.
1632         * lib/ptsname_r.c: Include <fcntl.h>.
1633         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1634         set errno if fd is invalid.
1635         * tests/test-isatty.c (main): Update comments.
1636
1637 2012-06-24  Bruno Haible  <bruno@clisp.org>
1638
1639         ptsname test: Extend test.
1640         * tests/test-ptsname.c: Include <errno.h>.
1641         (main): Test behaviour with invalid file descriptor.
1642
1643 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1644
1645         time: fix obsolete comment
1646         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1647         reference to HAVE_STRUCT_TIMESPEC in comment.
1648
1649 2012-06-23  Bruno Haible  <bruno@clisp.org>
1650
1651         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1653         does not handle abbreviated long options with equivalent
1654         disambiguations, set gl_replace_getopt to yes.
1655         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1656
1657 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1658
1659         time_r: fix typo that always overrode localtime_r decl
1660         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1661         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1662         not in a standard include.
1663
1664 2012-06-22  Bruno Haible  <bruno@clisp.org>
1665
1666         Write "Mac OS X" instead of "MacOS X".
1667         * README: Write "Mac OS X" instead of "MacOS X".
1668         * build-aux/bootstrap: Likewise.
1669         * build-aux/install-reloc: Likewise.
1670         * lib/acl-internal.h: Likewise.
1671         * lib/acl_entries.c: Likewise.
1672         * lib/argp-ba.c: Likewise.
1673         * lib/argp-pv.c: Likewise.
1674         * lib/config.charset: Likewise.
1675         * lib/copy-acl.c: Likewise.
1676         * lib/csharpexec.c: Likewise.
1677         * lib/euidaccess.c: Likewise.
1678         * lib/fbufmode.c: Likewise.
1679         * lib/fflush.c: Likewise.
1680         * lib/file-has-acl.c: Likewise.
1681         * lib/filemode.h: Likewise.
1682         * lib/fpurge.c: Likewise.
1683         * lib/freadable.c: Likewise.
1684         * lib/freadahead.c: Likewise.
1685         * lib/freading.c: Likewise.
1686         * lib/freadptr.c: Likewise.
1687         * lib/freadseek.c: Likewise.
1688         * lib/fseeko.c: Likewise.
1689         * lib/fseterr.c: Likewise.
1690         * lib/fsusage.c: Likewise.
1691         * lib/fwritable.c: Likewise.
1692         * lib/fwriting.c: Likewise.
1693         * lib/get-rusage-as.c: Likewise.
1694         * lib/get-rusage-data.c: Likewise.
1695         * lib/getdomainname.c: Likewise.
1696         * lib/idpriv-drop.c: Likewise.
1697         * lib/idpriv-droptemp.c: Likewise.
1698         * lib/localcharset.c: Likewise.
1699         * lib/locale.in.h: Likewise.
1700         * lib/localename.c: Likewise.
1701         * lib/mbsrtowcs-state.c: Likewise.
1702         * lib/nproc.c: Likewise.
1703         * lib/passfd.c: Likewise.
1704         * lib/posix_openpt.c: Likewise.
1705         * lib/printf-parse.c: Likewise.
1706         * lib/progreloc.c: Likewise.
1707         * lib/safe-read.h: Likewise.
1708         * lib/safe-write.h: Likewise.
1709         * lib/sched.in.h: Likewise.
1710         * lib/set-mode-acl.c: Likewise.
1711         * lib/signal.in.h: Likewise.
1712         * lib/stdint.in.h: Likewise.
1713         * lib/stdio-impl.h: Likewise.
1714         * lib/stdlib.in.h: Likewise.
1715         * lib/strtod.c: Likewise.
1716         * lib/sys_select.in.h: Likewise.
1717         * lib/tcgetsid.c: Likewise.
1718         * lib/unistd.in.h: Likewise.
1719         * lib/unlockpt.c: Likewise.
1720         * lib/vasnprintf.c: Likewise.
1721         * lib/vma-iter.c: Likewise.
1722         * lib/wcsrtombs-state.c: Likewise.
1723         * m4/acl.m4: Likewise.
1724         * m4/acosl.m4: Likewise.
1725         * m4/asinl.m4: Likewise.
1726         * m4/atanl.m4: Likewise.
1727         * m4/c-stack.m4: Likewise.
1728         * m4/cosl.m4: Likewise.
1729         * m4/expl.m4: Likewise.
1730         * m4/extensions.m4: Likewise.
1731         * m4/fdatasync.m4: Likewise.
1732         * m4/fmal.m4: Likewise.
1733         * m4/frexp.m4: Likewise.
1734         * m4/frexpf.m4: Likewise.
1735         * m4/frexpl.m4: Likewise.
1736         * m4/fsusage.m4: Likewise.
1737         * m4/getdomainname.m4: Likewise.
1738         * m4/getloadavg.m4: Likewise.
1739         * m4/getopt.m4: Likewise.
1740         * m4/gettext.m4: Likewise.
1741         * m4/gnulib-common.m4: Likewise.
1742         * m4/intdiv0.m4: Likewise.
1743         * m4/intlmacosx.m4: Likewise.
1744         * m4/largefile.m4: Likewise.
1745         * m4/ldexpl.m4: Likewise.
1746         * m4/link-follow.m4: Likewise.
1747         * m4/locale-ar.m4: Likewise.
1748         * m4/locale-fr.m4: Likewise.
1749         * m4/locale-ja.m4: Likewise.
1750         * m4/locale-tr.m4: Likewise.
1751         * m4/locale-zh.m4: Likewise.
1752         * m4/locale_h.m4: Likewise.
1753         * m4/lock.m4: Likewise.
1754         * m4/logl.m4: Likewise.
1755         * m4/mathfunc.m4: Likewise.
1756         * m4/minus-zero.m4: Likewise.
1757         * m4/mktime.m4: Likewise.
1758         * m4/mmap-anon.m4: Likewise.
1759         * m4/multiarch.m4: Likewise.
1760         * m4/nanosleep.m4: Likewise.
1761         * m4/nocrash.m4: Likewise.
1762         * m4/poll.m4: Likewise.
1763         * m4/printf-frexpl.m4: Likewise.
1764         * m4/printf.m4: Likewise.
1765         * m4/signbit.m4: Likewise.
1766         * m4/sinl.m4: Likewise.
1767         * m4/sqrtl.m4: Likewise.
1768         * m4/strerror_r.m4: Likewise.
1769         * m4/tanl.m4: Likewise.
1770         * m4/threadlib.m4: Likewise.
1771         * m4/ttyname_r.m4: Likewise.
1772         * m4/unlink.m4: Likewise.
1773         * m4/visibility.m4: Likewise.
1774         * m4/wcwidth.m4: Likewise.
1775         * tests/minus-zero.h: Likewise.
1776         * tests/test-alloca-opt.c: Likewise.
1777         * tests/test-copy-acl.sh: Likewise.
1778         * tests/test-copy-file.sh: Likewise.
1779         * tests/test-fdatasync.c: Likewise.
1780         * tests/test-file-has-acl.sh: Likewise.
1781         * tests/test-flock.c: Likewise.
1782         * tests/test-fsync.c: Likewise.
1783         * tests/test-localename.c: Likewise.
1784         * tests/test-malloca.c: Likewise.
1785         * tests/test-nonblocking-pipe.h: Likewise.
1786         * tests/test-nonblocking-socket.h: Likewise.
1787         * tests/test-openpty.c: Likewise.
1788         * tests/test-posix_openpt.c: Likewise.
1789         * tests/test-ptsname.c: Likewise.
1790         * tests/test-ptsname_r.c: Likewise.
1791         * tests/test-sameacls.c: Likewise.
1792         * tests/test-select.h: Likewise.
1793         * tests/test-set-mode-acl.sh: Likewise.
1794         * tests/test-snprintf-posix.h: Likewise.
1795         * tests/test-sprintf-posix.h: Likewise.
1796         * tests/test-strtod.c: Likewise.
1797         * tests/test-time.c: Likewise.
1798         * tests/test-vasnprintf-posix.c: Likewise.
1799         * tests/test-vasprintf-posix.c: Likewise.
1800         * doc/acl-resources.txt: Likewise.
1801         * doc/**/*.texi: Likewise.
1802         Reported by Max Horn <max@quendi.de>.
1803
1804 2012-06-22  Bruno Haible  <bruno@clisp.org>
1805
1806         grantpt: Relax requirement regarding invalid file descriptors.
1807         * lib/grantpt.c: Don't include <fcntl.h>.
1808         (grantpt): Don't verify the validity of the file descriptor.
1809         * modules/grantpt (Depends-on): Remove fcntl-h.
1810         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1811         file descriptors.
1812         * doc/posix-functions/grantpt.texi: Document more platforms on which
1813         grantpt succeeds for invalid file descriptors.
1814         Reported by Rich Felker <dalias@aerifal.cx>.
1815
1816 2012-06-22  Bruno Haible  <bruno@clisp.org>
1817
1818         fbufmode test: Don't test unportable behaviour.
1819         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1820         (main): Invoke it three times.
1821         Reported by Szabolcs Nagy <nsz@port70.net>
1822         and Rich Felker <dalias@aerifal.cx>.
1823
1824 2012-06-21  Bruno Haible  <bruno@clisp.org>
1825
1826         gnulib-tool: Refactor inctests variable.
1827         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1828         (func_modules_transitive_closure,
1829         func_modules_transitive_closure_separately,
1830         func_import, func_create_testdir): Update.
1831
1832         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
1833         * gnulib-tool: Accept option --without-tests.
1834         (func_usage): Document --without-tests option. Rearrange.
1835         (inctests): Normalize according to the mode.
1836         * NEWS: Mention the change.
1837         Suggested by Simon Josefsson.
1838
1839 2012-06-21  Bruce Korb  <bkorb@gnu.org>
1840
1841         parse-duration test: Avoid spurious output.
1842         * tests/test-parse-duration.sh: Reindent with leading tabs.
1843
1844 2012-06-21  Jim Meyering  <meyering@redhat.com>
1845
1846         maint: disable the strncpy prohibition
1847         * cfg.mk: Do not prohibit strncpy here.
1848
1849 2012-06-21  Bruno Haible  <bruno@clisp.org>
1850
1851         nonblocking: Avoid compilation error on mingw64.
1852         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
1853         fscanf.
1854         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
1855         * modules/vfscanf (configure.ac): Likewise.
1856         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
1857         definition only if stdio.h has prepared it.
1858         Reported by Daniel P. Berrange <berrange@redhat.com>.
1859
1860 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
1861
1862         gnulib-tool: Use readlink if it is available.
1863         * gnulib-tool (func_readlink): Choose function more appropriately.
1864
1865 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1866
1867         posixtm-tests: port to buggy compiler
1868         Problem reported by Simon Josefsson in
1869         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
1870         * modules/posixtm-tests (Depends-on): Add stdint.
1871         * tests/test-posixtm.c (struct posixtm_test.t_expected):
1872         Now of type int_least64_t, not int64_t, both because that's
1873         what INT64_C returns and because int_least64_t works even
1874         on 72-bit hosts.
1875         (T): Use INT64_C on constants outside the traditional int range,
1876         to work around compiler bug noted by Simon.
1877
1878         mktime: fix integer overflow in 'configure'-time test
1879         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
1880         after integer overflow.  Problem reported by Rich Felker in
1881         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
1882         Also, don't look for further instances of a bug if we've already
1883         found one instance; this helps 'configure' run faster.
1884
1885 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
1886
1887         tmpfile, clean-temp: Fix invocation of GetVersionEx.
1888         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
1889         GetVersionEx correctly.
1890         * lib/clean-temp.c (supports_delete_on_close): Likewise.
1891
1892 2012-06-20  Bruno Haible  <bruno@clisp.org>
1893
1894         fdopen: Allow implementations that don't reject invalid fd arguments.
1895         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
1896         succeeds.
1897         Reported by Rich Felker <dalias@aerifal.cx>.
1898
1899 2012-06-20  Simon Josefsson  <simon@josefsson.org>
1900
1901         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
1902         bring in LIBINTL.
1903
1904 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1905
1906         init.sh: do not rely on autoupated PWD
1907         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
1908         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
1909         Although Nelson's bug was not necessarily fixed by this patch,
1910         it seems wise to make the change for safety.
1911         * tests/init.sh (path_prepend_): Do not rely on PWD updating
1912         automagically after 'cd'; this is not reliable on older shells.
1913         (setup_): Fail if we cannot cd to temporary directory.
1914
1915 2012-06-19  Bruno Haible  <bruno@clisp.org>
1916
1917         stat, fstat: Avoid warnings on mingw64.
1918         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
1919         redefining.
1920         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
1921         Reported by Daniel P. Berrange <berrange@redhat.com>.
1922
1923 2012-06-19  Bruno Haible  <bruno@clisp.org>
1924
1925         stdioext: Add support for musl libc.
1926
1927         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
1928         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
1929
1930         * m4/fseterr.m4: New file.
1931         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
1932         function exists.
1933         * modules/fseterr (Files): Add m4/fseterr.m4.
1934         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
1935         __fseterr does not exist.
1936         (Makefile.am): Remove fseterr.c from lib_SOURCES.
1937
1938         * lib/freadable.h: Update comment.
1939
1940         * lib/fwritable.h: Update comment.
1941
1942         * lib/freading.h: Update comment.
1943
1944         * lib/fwriting.h: Update comment.
1945
1946         * m4/freadahead.m4: New file.
1947         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
1948         that function exists.
1949         * modules/freadahead (Files): Add m4/freadahead.m4.
1950         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
1951         __freadahead does not exist.
1952         (Makefile.am): Remove freadahead.c from lib_SOURCES.
1953
1954         * m4/freadptr.m4: New file.
1955         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
1956         function exists.
1957         * modules/freadptr (Files): Add m4/freadptr.m4.
1958         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
1959         __freadptr does not exist.
1960         (Makefile.am): Remove freadptr.c from lib_SOURCES.
1961
1962         * m4/freadseek.m4: New file.
1963         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
1964         exists.
1965         * modules/freadseek (Files): Add m4/freadseek.m4.
1966         (configure.ac): Invoke gl_FUNC_FREADSEEK.
1967
1968         * lib/fpurge.c (fpurge): Update comment.
1969
1970         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
1971
1972 2012-06-19  Bruno Haible  <bruno@clisp.org>
1973
1974         *printf-posix: Put more info into config.log.
1975         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
1976         exit code into config.log.
1977
1978 2012-06-19  Bruno Haible  <bruno@clisp.org>
1979
1980         getopt-gnu: Fix exit code overflow in autoconf test.
1981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1982         to keep them below < 128.
1983
1984 2012-06-17  Jim Meyering  <meyering@redhat.com>
1985
1986         maint.mk: fix typo in code to derive GPG key at release time
1987         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1988
1989 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1990
1991         regex: avoid warning when pointers are not long
1992         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1993         and uintptr_t, not long, for portability to hosts where pointers and
1994         long have different sizes.  Issue noted by Daniel P. Berrange in
1995         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1996         and fix suggested by Bruno Haible in
1997         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1998
1999 2012-06-17  Bruno Haible  <bruno@clisp.org>
2000
2001         dummy: Relicense into the public domain.
2002         * modules/dummy (License): Set to "public domain".
2003         Suggested by Reuben Thomas.
2004
2005 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2006
2007         announce-gen: VPATH issues
2008         * build-aux/announce-gen (--srcdir): New option, used to trim the
2009         $srcdir part of the path from $builddir to NEWS.
2010         * top/maint.mk (announcement): Adjust.
2011
2012 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2013
2014         gnu-web-doc-update: VPATH builds
2015         * build-aux/gnu-web-doc-update (--builddir): New option.
2016         Revamp the handling of options.
2017         Prefer $(...) to `...`.
2018         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2019         the template, and it is GNU mktemp specific.
2020         Prefer set -e to long series of &&.
2021         Restore the initial git branch, not "master".
2022         Properly initialize submodules (don't rely only on bootstrap).
2023         Do not reconfigure blindly, use config.status.
2024         * top/README-release: Update instructions for gnu-web-doc-update.
2025
2026 2012-06-11  Jim Meyering  <meyering@redhat.com>
2027
2028         maint.mk: revert most of the previous change re "all these"
2029         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2030         For rationale, see the discussion at
2031         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2032
2033 2012-06-10  Karl Berry  <karl@gnu.org>
2034
2035         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2036
2037         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2038
2039 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2040
2041         parse-duration: Relicense under LGPLv2+.
2042         * modules/parse-duration (License): Change to LGPLv2+.
2043
2044 2012-06-10  Jim Meyering  <meyering@redhat.com>
2045
2046         maint.mk: prohibit common grammar error: "all these"
2047         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2048         the list of prohibited word sequences.  It should be "all of these".
2049         * lib/tempname.c (__gen_tempname): Fix one of them.
2050
2051 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2052
2053         do-release-commit-and-tag: support VPATH builds
2054         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2055         (noteworthy): Defined earlier to factor its value.
2056         (noteworthy_stub): New.
2057         Use it to factor.
2058         (help_version): Split into...
2059         (help, version): these.
2060         Adjust the option processing part.
2061         Support "--option=value" in addition to "--option value".
2062         (builddir): New.
2063         (--builddir): New option.
2064         * top/README-release: Document this.
2065         Reword slightly so that the reader cannot understand that he
2066         has to do these steps before calling do-release-commit-and-tag.
2067
2068 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2069
2070         readme-release: also require announce-gen and maintainer-makefile
2071         * modules/readme-release (Depends-on): here.
2072         * modules/announce-gen, modules/do-release-commit-and-tag,
2073         modules/gnu-web-doc-update, modules/maintainer-makefile
2074         (Description): Point to readme-release.
2075
2076 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2077
2078         maint.mk: fix VPATH issues.
2079         * top/maint.mk (news-check): GNU Make understand $< very well.
2080         (release-prep): NEWS is in $(srcdir).
2081
2082 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2083
2084         readme-release: require the promoted modules.
2085         * modules/readme-release (Depends-on): Add
2086         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2087         in this text.
2088
2089 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2090             Bruno Haible  <bruno@clisp.org>
2091
2092         error, strerror-override: Support mingw64 from Fedora 17.
2093         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2094         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2095         EINPROGRESS.
2096         * lib/strerror-override.h (strerror_override): Test it.
2097         * lib/strerror-override.c (strerror_override): Likewise.
2098         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2099
2100 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2101             Bruno Haible  <bruno@clisp.org>
2102
2103         error, strerror-override: Support mingw64 from Fedora 17.
2104         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2105         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2106         * lib/strerror-override.h (strerror_override): Test it.
2107         * lib/strerror-override.c (strerror_override): Likewise.
2108
2109 2012-06-03  Bruno Haible  <bruno@clisp.org>
2110
2111         error, strerror-override: Support new errno values from POSIX:2008.
2112         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2113         ENOTRECOVERABLE.
2114         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2115         platforms.
2116         * lib/strerror-override.c (strerror_override): Conditionalize the
2117         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2118         * lib/strerror-override.h (strerror_override): Declare also if
2119         GNULIB_defined_EOWNERDEAD is defined.
2120         * tests/test-errno.c (e130, e131): New variables.
2121         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2122         ENOTRECOVERABLE.
2123         Reported by Paolo Bonzini.
2124
2125 2012-05-31  Jim Meyering  <meyering@redhat.com>
2126
2127         savewd: add missing dependency on sys_wait module
2128         * modules/savewd (Depends-on): Add sys_wait, needed at least
2129         for MSVC.  Report and suggested change by Michael Goffioul.
2130
2131 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2132
2133         system-quote-tests: port to CentOS 5
2134         Problem reported by Tom G. Christensen in
2135         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2136         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2137
2138 2012-05-29  Jim Meyering  <meyering@redhat.com>
2139
2140         maint: fix typos in comments and ChangeLog
2141         Culprits identified and fixed mostly automatically using these commands:
2142         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2143         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2144         using http://github.com/lyda/misspell-check
2145         * ChangeLog: Fix typos.
2146         * doc/solaris-versions: Likewise.
2147         * lib/regexec.c (re_search_stub): Likewise.
2148         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2149
2150 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2151
2152         manywarnings: remove duplicate -Wmultichar entry
2153         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2154         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2155         so keep the entry marked as documented.
2156
2157 2012-05-27  Karl Berry  <karl@gnu.org>
2158
2159         * config/srclist.txt (mktime.c): remove last libc sync,
2160         perhaps just temporarily.
2161
2162 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2163
2164         regex: don't assume uint64_t or uint32_t
2165         * lib/regcomp.c (init_word_char): Don't assume that the types
2166         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2167         them, and on some 32-bit compilers there is no uint64_t.
2168         Problem reported by Gianluigi Tiesi in
2169         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2170
2171 2012-05-25  Jim Meyering  <meyering@redhat.com>
2172
2173         maint.mk: add strncpy-prohibiting syntax-check rule
2174         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2175
2176 2012-05-24  Jim Meyering  <meyering@redhat.com>
2177
2178         maint.mk: compute $(gpg_key_ID) more portably
2179         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2180         That use of sed is not portable to some fringe systems.
2181         Reported by Paul Eggert in
2182         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2183
2184 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2185
2186         mktime: sync from glibc
2187         * config/srclist.txt: Uncomment mktime.c.
2188         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2189         First, indent with tabs, since glibc uses tabs and doesn't want to
2190         change and we'd rather be identical to glibc.  Also, two small
2191         coding changes:
2192         (isdst_differ): Use &&, not &, as && is the usual style.
2193         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2194         for clarity.
2195
2196 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2197
2198         announce-gen: du -h is more portable than du --human
2199         * build-aux/announce-gen (sizes): Invoke du with -h instead
2200         of --human.  Accept leading white space in its output.
2201
2202 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2203
2204         announce-gen: Improve diagnostics.
2205         * build-aux/announce-gen: When parsing command line options,
2206         prefer "announce-gen: option --release-type requires an argument"
2207         to "Option release-type requires an argument".
2208
2209 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2210
2211         maint.mk: gpg_key_ID: use sed more portably
2212         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2213         the closing brace.
2214         (refresh-po): Fuse two sed invocations into one.
2215
2216 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2217
2218         gitlog-to-changelog: support the log message format used in Bison.
2219         * build-aux/gitlog-to-changelog: Support --strip-tab and
2220         --strip-cherry-picked.
2221
2222 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2223
2224         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2225         the rest of the current time slice to another thread in the current
2226         process. So if the thread that feeds the file decscriptor we're
2227         polling is not in the current process, we get busy-waiting.
2228         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2229         Patch from Theodore Leblond.
2230         * lib/select.c: Split polling out of the loop that sets the output
2231         fd_sets.  Check for zero result and loop if the wait timeout is
2232         infinite.
2233
2234 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2235
2236         select: Fix build error on IRIX 6.5.
2237         * lib/select.c: Include stddef.h for NULL.
2238
2239 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2240
2241         gc: fix libgcrypt detection on older machines.
2242         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2243         copyright years because the file has been distributed every year
2244         since it was created.
2245
2246 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2247
2248         crypto: fix bug in large buffer handling
2249         Problem reported by Serge Belyshev for glibc in
2250         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2251         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2252         * lib/md4.c (md4_process_block):
2253         * lib/md5.c (md5_process_block):
2254         * lib/sha1.c (sha1_process_block):
2255         * lib/sha256.c (sha256_process_block):
2256         Don't assume the buffer length is less than 2**32.
2257         * lib/sha512.c (sha512_process_block): Likewise.
2258         Here, the bug is present only in the rare case where the host does
2259         not support uint64_t or where size_t is wider than 64 bits.
2260         Use u64size to work around the problems.
2261         * lib/u64.h (u64size): New macro.
2262
2263 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2264
2265         fsusage: fix block size returned on older Linux 2.6
2266
2267         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2268         which is available since Linux 2.6.
2269         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2270         when the member is available so it can be used as a fallback.
2271         * doc/posix-functions/statvfs.texi: Mention the hang issue
2272         on Linux < 2.6.36.
2273
2274 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2275
2276         bootstrap: suppress stderr chatter
2277         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2278         Omit unnecessary chatter to stderr.  The main program chatter
2279         was there only inadvertantly.
2280
2281         bootstrap: .gitignore files created by autopoint, libtool
2282         I ran into this problem when bootstrapping the latest diffutils.
2283         After './bootstrap', 'git status' reported lots of untracked files
2284         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2285         autopoint and do not need to be version-controlled.
2286         * build-aux/bootstrap: Put into .gitignore the files that
2287         autopoint and libtool create, by keeping track of files that exist
2288         after but not before these programs are run.
2289         (version_controlled_file): Move up.  2nd arg is now full file
2290         name, not base name; this is more convenient.  Put CVS at the end,
2291         as it's now somewhat deprecated.
2292
2293 2012-05-14  Jim Meyering  <meyering@redhat.com>
2294
2295         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2296         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2297         definition.  Reported by Bruno Haible.
2298
2299 2012-05-13  Bruno Haible  <bruno@clisp.org>
2300             Paul Eggert  <eggert@cs.ucla.edu>
2301
2302         binary-io: Define set_binary_mode function.
2303         * lib/binary-io.h (set_binary_mode): New function.
2304         (SET_BINARY): Define in terms of set_binary_mode.
2305         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2306         * tests/test-binary-io.c (main): Accept an argument, and test either
2307         set_binary_mode or SET_BINARY depending on the argument.
2308         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2309         argument. Clean up also t-bin-out0.tmp.
2310
2311 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2312
2313         bootstrap: take advantage of POSIX shell features
2314
2315         The 'bootstrap' script offered by Gnulib script already uses POSIX
2316         shell features (like $((...)) arithmetic expansions) that are not
2317         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2318         means that bootstrap must already be run using a proper POSIX shell,
2319         which will thus provide more features, like ${var#pattern} parameter
2320         expansion or inversion of a command exit status with '!'.  We can
2321         thus use these features to improve the clarity and the performances
2322         of the bootstrap script.
2323
2324         Suggested by Eric Blake.
2325
2326         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2327         of sed/expr plus command substitutions, to save some forks.  While
2328         we are at it, prefer the POSIX $(...) form of command substitution,
2329         rather than the legacy form `...` (since the former is visually
2330         clearer and interacts better with quoting), and prefer the idiom:
2331           "if ! CMD; then ACTION ..."
2332         over the idiom:
2333           "if CMD; then :; else ACTION ..."
2334         which was required by legacy Bourne shells not supporting '!'.
2335
2336 2012-05-12  Bruno Haible  <bruno@clisp.org>
2337
2338         system-quote: Add more comments.
2339         * lib/system-quote.h: Add more comments about wilcards and limitations.
2340         Suggested by Eli Zaretskii <eliz@gnu.org>.
2341
2342         sh-quote, system-quote: Add comments about wildcards.
2343         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2344         * lib/system-quote.h: Likewise.
2345         Reported by Eli Zaretskii <eliz@gnu.org>.
2346
2347 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2348
2349         fsusage: check for GNU/Linux statvfs problem dynamically
2350         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2351         Define STAT_STATFS2_BSIZE too, since in this case the code now
2352         checks dynamically whether statvfs is reliable, falling back on
2353         Linux-style statfs otherwise.
2354         (statvfs_works): New function, for dynamically testing statvfs.
2355         (get_fs_usage) [STAT_STATVFS]: Use it.
2356         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2357         statvfs on GNU/Linux hosts, since it's now done dynamically.
2358
2359 2012-05-10  Bruno Haible  <bruno@clisp.org>
2360
2361         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2362         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2363         '?' character.
2364         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2365         * tests/test-system-quote-main.c (check_all): Check also strings like
2366         "??????????".
2367         Reported by Eli Zaretskii <eliz@gnu.org>.
2368
2369 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2370
2371         _Noreturn: port config.h to gcc -Wundef
2372         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2373         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2374         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2375
2376 2012-05-10  Bruno Haible  <bruno@clisp.org>
2377
2378         system-quote: Refactor.
2379         * lib/system-quote.h (system_quote_copy): Fix comment.
2380         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2381         New functions, extracted from system_quote_copy.
2382         (system_quote_length, system_quote_copy): Use these functions.
2383         Reported by Paul Eggert.
2384
2385 2012-05-08  Bruno Haible  <bruno@clisp.org>
2386
2387         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2388         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2389
2390 2012-05-08  Bruno Haible  <bruno@clisp.org>
2391
2392         Tests for module 'system-quote'.
2393         * modules/system-quote-tests: New file.
2394         * tests/test-system-quote.sh: New file.
2395         * tests/test-system-quote-main.c: New file.
2396         * tests/test-system-quote-child.c: New file.
2397
2398         New module 'system-quote'.
2399         * lib/system-quote.h: New file.
2400         * lib/system-quote.c: New file.
2401         * modules/system-quote: New file.
2402
2403 2012-05-08  Bruno Haible  <bruno@clisp.org>
2404
2405         sh-quote: Make C++ safe and allow multiple inclusion.
2406         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2407         declarations in extern "C".
2408
2409 2012-05-08  Bruno Haible  <bruno@clisp.org>
2410
2411         sh-quote tests: Make tests stricter.
2412         * tests/test-sh-quote.c (check_one): Check the return value of
2413         shell_quote_copy.
2414         (main): Check a string with a CR character. Check a string that
2415         contains UCHAR_MAX.
2416
2417 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2418
2419         warnings.m4: provide a means to specify the program to compile.
2420         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2421         (gl_WARN_ADD): here.
2422         Use gl_AS_VAR_APPEND.
2423         Support an argument to specify the program to compile.
2424         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2425         AC_SUBST the WARN_CFLAGS when they are used.
2426         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2427         leave this to gl_WARN_ADD.
2428
2429 2012-05-08  Eric Blake  <eblake@redhat.com>
2430
2431         doc: recommendations on gettext version
2432         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2433         choice between versions.
2434         * DEPENDENCIES (gettext): Cover both approaches.
2435
2436 2012-05-08  Jim Meyering  <meyering@redhat.com>
2437
2438         init.sh: explain why EXEEXT support uses aliases rather than functions
2439         * tests/init.sh: Add a comment.
2440
2441         init.sh: don't let bash aliases interfere with tests
2442         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2443         is bash.  This avoids problems for those who alias standard commands to
2444         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2445         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2446
2447 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2448
2449         stdint: be more consistent with glibc, SunOS libc
2450         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2451         (gl_int_fast16_t, gl_uint_fast16_t)
2452         (gl_int_fast32_t, gl_uint_fast32_t)
2453         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2454         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2455         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2456         Be consistent with glibc by default, and with SunOS 5.10 and later
2457         if __sun is defined.  This lessens the likelihood of clashes if
2458         code compiled for older hosts is combined with code compiled for
2459         newer ones.  Problem reported by Niels Möller in
2460         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2461
2462 2012-05-07  Eric Blake  <eblake@redhat.com>
2463
2464         isatty: relax license to LGPLv2+
2465         * modules/isatty (License): Relax license.
2466
2467 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2468
2469         stat-size: comment fix
2470         * lib/stat-size.h: Remove obsolete comment about indenting.
2471
2472 2012-05-06  Bruno Haible  <bruno@clisp.org>
2473
2474         Tests for module 'sh-quote'.
2475         * modules/sh-quote-tests: New file.
2476         * tests/test-sh-quote.c: New file.
2477
2478 2012-05-06  Bruno Haible  <bruno@clisp.org>
2479
2480         sh-quote: Improve shell_quote_argv's signature.
2481         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2482         * lib/sh-quote.c (shell_quote_argv): Likewise.
2483
2484 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2485
2486         stdint: document issues with int_fast8_t etc.
2487         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2488         stdint.h substitutes may define these types differently.  See
2489         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2490
2491 2012-05-05  Bruno Haible  <bruno@clisp.org>
2492
2493         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2495         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2496         or 'guessing no (mishandles large arguments)'.
2497
2498 2012-05-05  Bruno Haible  <bruno@clisp.org>
2499
2500         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2501         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2502         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2503         set gl_cv_func_link_follows_symlink to "guessing no".
2504
2505 2012-05-05  Bruno Haible  <bruno@clisp.org>
2506
2507         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2508         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2509         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2510         "guessing no".
2511         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2512
2513 2012-05-05  Bruno Haible  <bruno@clisp.org>
2514
2515         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2516         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2517         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2518         set gl_cv_struct_dirent_d_ino to "guessing yes".
2519
2520 2012-05-05  Bruno Haible  <bruno@clisp.org>
2521
2522         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2523         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2524         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2525         "guessing yes".
2526
2527 2012-05-05  Bruno Haible  <bruno@clisp.org>
2528
2529         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2530         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2531         compiling to a glibc system, set gl_cv_func_signbit and
2532         gl_cv_func_signbit_gcc to "guessing yes".
2533
2534 2012-05-05  Bruno Haible  <bruno@clisp.org>
2535
2536         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2537         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2538         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2539         to "guessing yes".
2540         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2541         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2542
2543 2012-05-05  Bruno Haible  <bruno@clisp.org>
2544
2545         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2546         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2547         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2548         gl_cv_func_realpath_works to "guessing yes".
2549
2550 2012-05-05  Bruno Haible  <bruno@clisp.org>
2551
2552         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2553         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2554         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2555
2556 2012-05-04  Bruno Haible  <bruno@clisp.org>
2557
2558         Tweak last commit.
2559         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2560         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2561
2562 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2563
2564         unistd_h: make it easier to avoid sys_types_h
2565         This is useful for Emacs, which has its own method of porting to
2566         Windows, and which therefore does not need the sys_types_h module.
2567         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2568         code moved here from gl_SYS_TYPES_H.
2569         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2570         using the code directly.
2571         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2572         gl_SYS_TYPES_H.
2573         * modules/sys_types (Files):
2574         * modules/unistd (Files): Add m4/off_t.m4.
2575
2576 2012-05-03  Bruno Haible  <bruno@clisp.org>
2577
2578         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2579         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2580         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2581         "guessing yes" or "guessing no".
2582         (gl_FUNC_LSTAT): Update.
2583         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2584         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2585         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2586
2587 2012-05-03  Bruno Haible  <bruno@clisp.org>
2588
2589         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2590         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2591         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2592         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2593         cross-compiling, choose the first alternative on glibc systems.
2594         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2595
2596 2012-05-03  Bruno Haible  <bruno@clisp.org>
2597
2598         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2599         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2600         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2601
2602 2012-05-03  Bruno Haible  <bruno@clisp.org>
2603
2604         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2605         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2606
2607 2012-05-03  Bruno Haible  <bruno@clisp.org>
2608
2609         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2610         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2611         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2612         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2613         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2614         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2615         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2616         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2617         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2618         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2619         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2620         gl_cv_func_chown_ctime_works to "guessing yes".
2621         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2622         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2623         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2624         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2625         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2627         compiling to glibc systems, set gl_cv_func_open_directory_works to
2628         "guessing yes".
2629         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2630         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2631         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2632         "guessing yes".
2633         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2634         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2635         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2636         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2637         "guessing yes".
2638         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2639         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2640         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2641         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2642         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2643         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2644         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2645         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2646         "guessing yes".
2647         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2648         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2649         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2650         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2651         "guessing yes".
2652         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2653         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2654         "guessing yes".
2655         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2656         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2657         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2658         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2659         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2660         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2661         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2662         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2663         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2664         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2665         "guessing yes".
2666         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2667         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2668         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2669         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2670         "guessing yes".
2671         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2672         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2673         "guessing yes".
2674         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2675         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2676         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2677         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2678         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2679         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2680         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2681         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2682         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2683         "guessing yes".
2684         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2685         compiling to glibc systems, set gl_cv_func_mknod_works to
2686         "guessing yes".
2687         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2688         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2689         "guessing yes".
2690         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2691         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2692         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2693         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2694         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2695         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2696         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2697         compiling to glibc systems, set gl_cv_func_svid_putenv to
2698         "guessing yes".
2699         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2700         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2701         "guessing yes".
2702         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2703         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2704         "guessing yes".
2705         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2706         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2707         to "guessing yes".
2708         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2709         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2710         to "guessing yes".
2711         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2712         compiling to glibc systems, set gl_cv_func_rmdir_works to
2713         "guessing yes".
2714         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2715         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2716         gl_cv_func_unlink_parent_fails to "guessing yes".
2717         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2718         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2719         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2720         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2721         gl_cv_func_rename_dest_works to "guessing yes".
2722         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2723         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2724         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2725         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2726         "guessing yes".
2727         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2728         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2729         "guessing yes".
2730         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2731         compiling to glibc systems, set gl_cv_func_setenv_works to
2732         "guessing yes".
2733         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2734         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2735         "guessing yes".
2736         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2737         compiling to glibc systems, set gl_cv_func_sleep_works to
2738         "guessing yes".
2739         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2740         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2741         "guessing yes".
2742         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2743         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2744         "guessing yes".
2745         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2746         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2747         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2748         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2749         "guessing yes".
2750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2751         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2752         "guessing yes".
2753         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2754         compiling to glibc systems, set gl_cv_func_usleep_works to
2755         "guessing yes".
2756         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2757         compiling to glibc systems, set gl_cv_func_futimesat_works to
2758         "guessing yes".
2759
2760 2012-05-03  Bruno Haible  <bruno@clisp.org>
2761
2762         Say "guessing yes" or "guessing no" when cross-compiling.
2763         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2764         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2765         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2766         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2767         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2768         am_cv_func_working_getline to "guessing yes" or "guessing no".
2769         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2770         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2771         (gl_FUNC_MEMMEM): When cross-compiling, set
2772         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2773         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2774         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2776         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2777         "guessing no".
2778         (gl_FUNC_STRCASESTR): When cross-compiling, set
2779         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2780         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2781         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2782         (gl_FUNC_STRSTR): When cross-compiling, set
2783         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2784         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2785         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2786         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2787         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2788
2789 2012-05-01  Bruno Haible  <bruno@clisp.org>
2790
2791         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2792         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2793         * build-aux/reloc-ldflags: Likewise.
2794         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2795
2796 2012-05-01  Bruno Haible  <bruno@clisp.org>
2797
2798         gnulib-tool: Remove transitional code.
2799         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2800         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2801
2802 2012-05-01  Bruno Haible  <bruno@clisp.org>
2803
2804         getcwd: Fix misindentation.
2805         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2806
2807 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2808
2809         exclude: process exclude and include directives in order
2810         This restores the pre-2009 behavior, and is part of a fix of a
2811         grep bug reported by Quentin Arce in
2812         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2813         * lib/exclude.c (struct exclude): Remove 'tail' member.
2814         (new_exclude_segment): Prepend the new segment instead of appending.
2815         Return void, since that's now more convenient.
2816         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2817         (file_name_matches): Renamed from excluded_file_name_p.
2818         (file_pattern_matches, file_name_matches):
2819         Return true if the pattern matches, not if it excludes.
2820         All callers changed.
2821         (excluded_file_name): Process the list in reverse order;
2822         since the list is now reversed this restores the pre-2009 behavior.
2823         (add_exclude): Adjust to new reversed-order list.  Use local var
2824         rather than macro, for clarity.
2825         * tests/test-exclude7.sh: Adjust to corrected behavior.
2826
2827         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2828         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2829         it's not possible here.  Handle the case of \ at end of pattern
2830         without dumping core.
2831         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
2832
2833         _Noreturn: future-proof non-GNU and non-MSVC compilers
2834         * build-aux/snippet/_Noreturn.h (_Noreturn):
2835         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2836         Do not define _Noreturn if __STDC_VERSION__ indicates this is
2837         C11 or later.  This is more likely to work with random future C
2838         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
2839         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
2840
2841         exclude: handle wildcards with FNM_EXTMATCH
2842         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
2843         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
2844         comment that "has wildcards" really means "has or may have
2845         wildcards".  Simplify by avoiding the need to call strcspn.
2846
2847 2012-04-29  Bruno Haible  <bruno@clisp.org>
2848
2849         gnulib-tool: Fix list of authors.
2850         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
2851
2852 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2853
2854         bootstrap: support Automake-NG in $buildreq
2855         * bootstrap (check_versions): Handle automake and aclocal from
2856         Automake-NG specially.  They can be specified as respectively
2857         the "automake-ng" and "aclocal-ng" requirements.
2858
2859 2012-04-25  Eric Blake  <eblake@redhat.com>
2860
2861         bootstrap: only force latest Makefile.in.in for gettext module
2862         * build-aux/bootstrap (with_gettext): Only install latest
2863         Makefile.in.in for projects requesting bleeding edge gettext.
2864
2865 2012-04-22  Bruno Haible  <bruno@clisp.org>
2866
2867         doc: Mention reason for replacement on glibc/Linux systems.
2868         * doc/posix-functions/dprintf.texi: Mention the problem with special
2869         'long double' values.
2870         * doc/posix-functions/fprintf.texi: Likewise.
2871         * doc/posix-functions/printf.texi: Likewise.
2872         * doc/posix-functions/snprintf.texi: Likewise.
2873         * doc/posix-functions/sprintf.texi: Likewise.
2874         * doc/posix-functions/vdprintf.texi: Likewise.
2875         * doc/posix-functions/vfprintf.texi: Likewise.
2876         * doc/posix-functions/vprintf.texi: Likewise.
2877         * doc/posix-functions/vsnprintf.texi: Likewise.
2878         * doc/posix-functions/vsprintf.texi: Likewise.
2879         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
2880         platforms with F_DUPFD_CLOEXEC problems.
2881         * doc/posix-functions/glob.texi: Mention which platforms are affected
2882         by the problem with symbolic links.
2883         * doc/posix-functions/linkat.texi: Mention the problem with
2884         AT_SYMLINK_FOLLOW on Linux.
2885
2886 2012-04-22  Bruno Haible  <bruno@clisp.org>
2887
2888         pwrite: Don't replace on all platforms.
2889         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
2890
2891 2012-04-22  Bruno Haible  <bruno@clisp.org>
2892
2893         rint* tests: Avoid gcc warnings.
2894         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
2895         * tests/test-rintf.c (INFINITY, NAN): Likewise.
2896         * tests/test-rintl.c (INFINITY, NAN): Likewise.
2897
2898 2012-04-21  Bruno Haible  <bruno@clisp.org>
2899
2900         users.txt: Update.
2901         * users.txt: Add freedink, wdiff. Update URLs for projects that have
2902         switched from CVS to git, bzr, or svn.
2903
2904 2012-04-21  Bruno Haible  <bruno@clisp.org>
2905
2906         Large File Support for native Windows platforms.
2907
2908         * m4/largefile.m4 (gl_LARGEFILE): New macro.
2909         * modules/largefile (configure.ac): Require gl_LARGEFILE.
2910
2911         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
2912         type.
2913         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
2914         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
2915         * doc/posix-headers/sys_types.texi: Mention the effect of the
2916         'largefile' module.
2917
2918         * lib/fcntl.in.h: Add comments about off_t.
2919         * modules/fcntl-h (Depends-on): Add sys_types.
2920
2921         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
2922         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
2923         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
2924         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
2925         * modules/unistd (Depends-on): Add sys_types.
2926         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
2927
2928         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
2929         instead of lseek.
2930         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
2931         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
2932         * modules/lseek (Depends-on): Add sys_types.
2933
2934         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
2935         msvc-nothrow.h.
2936         (SetFileSize): New function.
2937         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
2938         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
2939         if Large File Support is requested.
2940         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
2941         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
2942
2943         * lib/stdio.in.h: Add comments about off_t.
2944         * modules/stdio (Depends-on): Add sys_types.
2945
2946         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
2947         instead of ftello.
2948         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
2949         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
2950         (gl_PREREQ_FTELLO): New macro.
2951         * modules/ftello (Depends-on): Add sys_types.
2952         (configure.ac): Incoke gl_PREREQ_FTELLO.
2953
2954         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
2955         instead of fseeko.
2956         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
2957         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
2958         (gl_PREREQ_FSEEKO): New macro.
2959         * modules/fseeko (Depends-on): Add sys_types.
2960         (configure.ac): Invoke gl_PREREQ_FSEEKO.
2961
2962         * lib/sys_stat.in.h: Add comments about off_t.
2963         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
2964         64-bit integer for st_size in 'struct stat'.
2965         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
2966         Define _GL_WINDOWS_64_BIT_ST_SIZE.
2967         * modules/sys_stat (Depends-on): Add sys_types.
2968         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
2969
2970         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
2971         instead of stat or _stat.
2972
2973         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
2974         'struct _stati64' instead of fstat and 'struct stat'.
2975         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
2976         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2977
2978         Reported by Ray Satiro <raysatiro@yahoo.com>.
2979
2980 2012-04-19  Eric Blake  <eblake@redhat.com>
2981
2982         bootstrap: accommodate older libtool
2983         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2984         Reported by Daniel P. Berrange.
2985
2986 2012-04-19  Jim Meyering  <meyering@redhat.com>
2987
2988         announce-gen: avoid failure due to lack of Digest::SHA1
2989         Even with the preferred Digest::SHA available, this script
2990         would fail when the backup module, Digest::SHA1, was not installed.
2991         * build-aux/announce-gen: Quote the conditional use of "use".
2992         Reported by Reuben Thomas in:
2993         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2994
2995         bootstrap: don't let a user's CDPATH setting affect this script
2996         When CDPATH is set, cd will sometimes generate output.
2997         When "cd" is run in a subshell whose output matters, that
2998         surprising-to-some output can cause malfunction.
2999         Unsetting CDPATH turns off this shell "feature."
3000         * build-aux/bootstrap (CDPATH): Unset.
3001         Reported by Reuben Thomas in:
3002         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3003         and inspired by his patch here:
3004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3005
3006 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3007         and Jim Meyering  <meyering@redhat.com>
3008
3009         maint.mk: catch "see @xref{}" and similar
3010         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3011         prohibit "See also @xref{", "Also see @pxref{", and similar.
3012
3013 2012-04-16  Jim Meyering  <meyering@redhat.com>
3014
3015         bootstrap: really use gnulib's po/Makefile.in.in
3016         * build-aux/bootstrap: Correct the source file name in previous change.
3017         Reported by Akim Demaille.
3018
3019         configmake: correct minor inconsistency in Makefile rule
3020         * modules/configmake (Makefile.am): All other rules like this one
3021         run the final "mv -f ..." in the same backslash-continued command
3022         as the one that does everything else.  This one put the mv -f ...
3023         command on a separate, non-backslash-continued line.
3024         Make it like the others.
3025
3026         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3027         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3028         the one from gettext.  Reported by Akim Demaille.
3029
3030 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3031
3032         Fix recursion of install-* into po directories.
3033         Bison's install-pdf bug reported by Hans Aberg at
3034         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3035         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3036         (install-info, install-pdf, install-ps): New targets.
3037
3038 2012-04-16  Jim Meyering  <meyering@redhat.com>
3039
3040         maint: avoid spurious "make sc_maint" failure
3041         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3042         exempt all *.class file names, for lib/javaversion.class.
3043
3044 2012-04-15  Bruno Haible  <bruno@clisp.org>
3045
3046         lseek: Make configure test independent of environment.
3047         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3048         Windows, we know that lseek() on pipes is broken; skip the runtime
3049         test.
3050
3051 2012-04-14  Bruno Haible  <bruno@clisp.org>
3052
3053         stat: Bypass buggy override in mingw64.
3054         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3055         * lib/stat.c (stat) [mingw64]: Define to _stat.
3056         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3057
3058 2012-04-14  Bruno Haible  <bruno@clisp.org>
3059
3060         pathmax: Fix compilation error on MSVC 9.
3061         * modules/pathmax (Depends-on): Add unistd.
3062
3063 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3064
3065         README: document pointer comparison assumption
3066         * README (Portability guidelines): Document assumption about
3067         pointer comparisons, in response to a recent bug-gnulib comment by
3068         Jeffrey Kegler.
3069
3070 2012-04-12  Bruno Haible  <bruno@clisp.org>
3071
3072         Tests for module 'getrusage'.
3073         * modules/getrusage-tests: New file.
3074         * tests/test-getrusage.c: New file.
3075
3076         New module 'getrusage'.
3077         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3078         warn-on-use.h.
3079         (getrusage): New declaration.
3080         * lib/getrusage.c: New file.
3081         * m4/getrusage.m4: New file.
3082         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3083         is declared.
3084         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3085         HAVE_GETRUSAGE.
3086         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3087         snippet/c++defs, snippet/warn-on-use.
3088         (Makefile.am): Update generation of sys/resource.h. Substitute
3089         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3090         * modules/getrusage: New file.
3091         * doc/posix-functions/getrusage.texi: Mention the new module.
3092
3093 2012-04-12  Bruno Haible  <bruno@clisp.org>
3094
3095         Tests for module 'sys_resource'.
3096         * modules/sys_resource-tests: New file.
3097         * tests/test-sys_resource.c: New file.
3098
3099         New module 'sys_resource'.
3100         * lib/sys_resource.in.h: New file.
3101         * m4/sys_resource_h.m4: New file.
3102         * modules/sys_resource: New file.
3103         * doc/posix-headers/sys_resource.texi: Mention the new module.
3104
3105 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3106
3107         ioctl: Fix compilation error on mingw.
3108         * lib/ioctl.c: Include <windows.h>.
3109         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3110
3111 2012-04-04  Jim Meyering  <meyering@redhat.com>
3112
3113         regex: correct #pragma guard expression
3114         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3115         not 4.3.  Correct its cpp guard expression.
3116
3117 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3118
3119         regex: remove unnecessary type punning
3120         Problem reported by Vladimir Serbinenko in
3121         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3122         * lib/regex.h (struct re_pattern_buffer): Change the type of
3123         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3124         Fix comment to match code.
3125         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3126         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3127         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3128         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3129         (set_regs):
3130         Omit no-longer-necessary casts.
3131
3132 2012-04-03  Bruno Haible  <bruno@clisp.org>
3133
3134         Tests for module 'ilogbl'.
3135         * modules/ilogbl-tests: New file.
3136         * tests/test-ilogbl.c: New file.
3137
3138         New module 'ilogbl'.
3139         * lib/math.in.h (ilogbl): New declaration.
3140         * lib/ilogbl.c: New file.
3141         * m4/ilogbl.m4: New file.
3142         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3144         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3145         Split sed invocation, to avoid the limit of 100 substitutions of
3146         HP-UX 'sed'.
3147         * modules/ilogbl: New file.
3148         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3149         * doc/posix-functions/ilogbl.texi: Mention the new module.
3150
3151 2012-04-03  Bruno Haible  <bruno@clisp.org>
3152
3153         Tests for module 'ilogbf'.
3154         * modules/ilogbf-tests: New file.
3155         * tests/test-ilogbf.c: New file.
3156
3157         New module 'ilogbf'.
3158         * lib/math.in.h (ilogbf): New declaration.
3159         * lib/ilogbf.c: New file.
3160         * m4/ilogbf.m4: New file.
3161         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3163         REPLACE_ILOGBF.
3164         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3165         REPLACE_ILOGBF.
3166         * modules/ilogbf: New file.
3167         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3168         * doc/posix-functions/ilogbf.texi: Mention the new module.
3169
3170 2012-04-03  Bruno Haible  <bruno@clisp.org>
3171
3172         Tests for module 'ilogb'.
3173         * modules/ilogb-tests: New file.
3174         * tests/test-ilogb.c: New file.
3175         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3176         tests/test-logb-ieee.h.
3177
3178         New module 'ilogb'.
3179         * lib/math.in.h (ilogb): New declaration.
3180         * lib/ilogb.c: New file.
3181         * m4/ilogb.m4: New file.
3182         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3184         REPLACE_ILOGB.
3185         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3186         REPLACE_ILOGB.
3187         * modules/ilogb: New file.
3188         * tests/test-math-c++.cc: Check the declaration of ilogb.
3189         * doc/posix-functions/ilogb.texi: Mention the new module.
3190
3191 2012-04-03  Bruno Haible  <bruno@clisp.org>
3192
3193         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3194         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3195         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3196         (main): Check their values.
3197         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3198         problem.
3199
3200 2012-04-03  Bruno Haible  <bruno@clisp.org>
3201
3202         Tests for module 'logbl-ieee'.
3203         * modules/logbl-ieee-tests: New file.
3204         * tests/test-logbl-ieee.c: New file.
3205
3206         New module 'logbl-ieee'.
3207         * modules/logbl-ieee: New file.
3208
3209         Tests for module 'logb-ieee'.
3210         * modules/logb-ieee-tests: New file.
3211         * tests/test-logb-ieee.c: New file.
3212
3213         New module 'logb-ieee'.
3214         * modules/logb-ieee: New file.
3215
3216         Tests for module 'logbf-ieee'.
3217         * modules/logbf-ieee-tests: New file.
3218         * tests/test-logbf-ieee.c: New file.
3219         * tests/test-logb-ieee.h: New file.
3220
3221         New module 'logbf-ieee'.
3222         * modules/logbf-ieee: New file.
3223
3224 2012-04-03  Bruno Haible  <bruno@clisp.org>
3225
3226         Tests for module 'logbl'.
3227         * modules/logbl-tests: New file.
3228         * tests/test-logbl.c: New file.
3229
3230         New module 'logbl'.
3231         * lib/math.in.h (logbl): New declaration.
3232         * lib/logbl.c: New file.
3233         * m4/logbl.m4: New file.
3234         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3236         REPLACE_LOGBL.
3237         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3238         REPLACE_LOGBL.
3239         * modules/logbl: New file.
3240         * tests/test-math-c++.cc: Check the declaration of logbl.
3241         * doc/posix-functions/logbl.texi: Mention the new module.
3242
3243 2012-04-02  Bruno Haible  <bruno@clisp.org>
3244
3245         Tests for module 'logbf'.
3246         * modules/logbf-tests: New file.
3247         * tests/test-logbf.c: New file.
3248
3249         New module 'logbf'.
3250         * lib/math.in.h (logbf): New declaration.
3251         * lib/logbf.c: New file.
3252         * m4/logbf.m4: New file.
3253         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3255         REPLACE_LOGBF.
3256         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3257         REPLACE_LOGBF.
3258         * modules/logbf: New file.
3259         * tests/test-math-c++.cc: Check the declaration of logbf.
3260         * doc/posix-functions/logbf.texi: Mention the new module.
3261
3262 2012-04-02  Bruno Haible  <bruno@clisp.org>
3263
3264         logb tests: More tests.
3265         * tests/test-logb.h: New file, based on tests/test-logb.c and
3266         tests/test-frexp.h.
3267         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3268         (main): Just invoke test_function.
3269         * modules/logb-tests (Files): Add tests/test-logb.h,
3270         tests/minus-zero.h, tests/randomd.c.
3271         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3272
3273         logb: Provide replacement and workarounds.
3274         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3275         is 1.
3276         * lib/logb.c: New file.
3277         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3278         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3280         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3281         * modules/logb (Files): Add lib/logb.c.
3282         (Depends-on): Add isfinite, frexp, isnand.
3283         (configure.ac): Compile the replacement code logb.c if needed.
3284         * tests/test-math-c++.cc: Check the declaration of logb.
3285         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3286         with subnormal numbers.
3287
3288 2012-04-02  Bruno Haible  <bruno@clisp.org>
3289
3290         log10* tests: Speed up.
3291         * tests/test-log10.h (test_function): Reduce amount of random numbers
3292         to test.
3293
3294 2012-04-01  Bruno Haible  <bruno@clisp.org>
3295
3296         logf-ieee: Fix test whether logf works.
3297         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3298
3299 2012-04-01  Bruno Haible  <bruno@clisp.org>
3300
3301         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3302         * lib/log10l.c: Include <float.h>
3303         (log10l): On IRIX, normalize the +Infinity value.
3304         * modules/log10l (Depends-on): Add 'float'.
3305         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3306         +Infinity.
3307
3308         log10f-ieee: Work around test failure on NetBSD 5.1.
3309         * m4/log10f-ieee.m4: New file.
3310         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3311         test whether log10f works with a negative argument. Replace it if not.
3312         * lib/log10f.c (log10f): For negative arguments, return NaN.
3313         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3314         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3315         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3316
3317         log10f-ieee: Work around test failure on Solaris 9.
3318         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3319         (configure.ac): Require gl_FUNC_LOG10F.
3320
3321         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3322         * m4/log10-ieee.m4: New file.
3323         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3324         whether log10 works with a negative argument. Replace it if not.
3325         * lib/log10.c (log10): For negative arguments, return NaN.
3326         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3327         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3328         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3329
3330         Tests for module 'log10l-ieee'.
3331         * modules/log10l-ieee-tests: New file.
3332         * tests/test-log10l-ieee.c: New file.
3333
3334         New module 'log10l-ieee'.
3335         * modules/log10l-ieee: New file.
3336
3337         Tests for module 'log10-ieee'.
3338         * modules/log10-ieee-tests: New file.
3339         * tests/test-log10-ieee.c: New file.
3340
3341         New module 'log10-ieee'.
3342         * modules/log10-ieee: New file.
3343
3344         Tests for module 'log10f-ieee'.
3345         * modules/log10f-ieee-tests: New file.
3346         * tests/test-log10f-ieee.c: New file.
3347         * tests/test-log10-ieee.h: New file.
3348
3349         New module 'log10f-ieee'.
3350         * modules/log10f-ieee: New file.
3351
3352 2012-04-01  Bruno Haible  <bruno@clisp.org>
3353
3354         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3355         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3356         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3357         workaround.
3358         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3359         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3361         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3362         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3363         (Depends-on): Update conditions.
3364         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3365         IRIX 6.5, OSF/1 5.1 problems.
3366
3367 2012-04-01  Bruno Haible  <bruno@clisp.org>
3368
3369         log10f: Work around OSF/1 5.1 bug.
3370         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3371         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3372         workaround.
3373         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3374         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3376         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3377         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3378         (Depends-on): Update conditions.
3379         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3380
3381 2012-04-01  Bruno Haible  <bruno@clisp.org>
3382
3383         log10: Work around OSF/1 5.1 bug.
3384         * lib/math.in.h (log10): New declaration.
3385         * lib/log10.c: New file.
3386         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3387         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3388         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3390         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3391         * modules/log10 (Files): Add lib/log10.c.
3392         (Depends-on): Add math.
3393         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3394         * tests/test-math-c++.cc: Check the declaration of log10.
3395         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3396
3397 2012-03-31  Bruno Haible  <bruno@clisp.org>
3398
3399         log10l tests: More tests.
3400         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3401         tests/minus-zero.h, tests/randoml.c.
3402         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3403         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3404         (main): Invoke test_function.
3405
3406         log10f tests: More tests.
3407         * modules/log10f-tests (Files): Add tests/test-log10.h,
3408         tests/minus-zero.h, tests/randomf.c.
3409         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3410         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3411         (main): Invoke test_function.
3412
3413         log10 tests: More tests.
3414         * tests/test-log10.h: New file.
3415         * modules/log10-tests (Files): Add tests/test-log10.h,
3416         tests/minus-zero.h, tests/randomd.c.
3417         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3418         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3419         (main): Invoke test_function.
3420
3421 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3422
3423         fflush: Fix syntax error.
3424         * lib/fflush.c: Include unused-parameter.h, needed for
3425         _GL_UNUSED_PARAMETER.
3426         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3427
3428 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3429
3430         regex: pacify GCC when compiling GRUB
3431         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3432         a diagnostic.  Reported by Vladimir Serbinenko in
3433         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3434
3435 2012-03-29  Eric Blake  <eblake@redhat.com>
3436
3437         stdio: don't assume gets any more
3438         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3439         support.
3440         * modules/stdio (Makefile.am): Likewise.
3441         * lib/stdio-read.c (gets): Likewise.
3442         * tests/test-stdio-c++.cc: Likewise.
3443         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3444         * lib/stdio.in.h (gets): Make warning occur in more places.
3445         * doc/posix-functions/gets.texi (gets): Update documentation.
3446         Reported by Christer Solskogen.
3447
3448         maint.mk: fix syntax checks without exclusions
3449         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3450         Reported by Daniel P. Berrange.
3451
3452         strerror_r: avoid compiler warning
3453         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3454         level.
3455
3456         fflush: avoid compiler warning
3457         * lib/fflush.c (update_fpos_cache): Mark variables that are
3458         potentially unused.
3459
3460 2012-03-25  Bruno Haible  <bruno@clisp.org>
3461
3462         Tests for module 'localeconv'.
3463         * modules/localeconv-tests: New file.
3464         * tests/test-localeconv.c: New file.
3465
3466         New module 'localeconv'.
3467         * lib/locale.in.h (localeconv): New declaration.
3468         * lib/localeconv.c: New file.
3469         * m4/localeconv.m4: New file.
3470         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3471         REPLACE_LOCALECONV.
3472         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3473         REPLACE_LOCALECONV.
3474         * modules/localeconv: New file.
3475         * modules/nl_langinfo (Depends-on): Add localeconv.
3476         * modules/human (Depends-on): Likewise.
3477         * doc/posix-functions/localeconv.texi: Mention the new module.
3478
3479 2012-03-25  Bruno Haible  <bruno@clisp.org>
3480
3481         locale: Provide a complete 'struct lconv'.
3482         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3483         'struct lconv' does not contain int_p_cs_precedes.
3484         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3485         * doc/posix-headers/locale.texi: Update.
3486
3487         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3488         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3489         * doc/posix-headers/locale.texi: Update.
3490
3491         locale: Provide a working 'struct lconv'.
3492         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3493         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3494         'struct lconv' does not even contain decimal_point.
3495         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3496         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3497         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3498         * doc/posix-headers/locale.texi: Mention the problems with
3499         'struct lconv'.
3500         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3501
3502 2012-03-24  Bruno Haible  <bruno@clisp.org>
3503
3504         Enable common subexpression optimization in GCC.
3505         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3506         macros.
3507         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3508         GCC attribute 'const'.
3509         (uc_locale_language): Declare with GCC attribute 'pure'.
3510         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3511         with GCC attribute 'const'.
3512         * lib/unictype.in.h (uc_is_general_category_withtable,
3513         uc_combining_class, uc_combining_class_name,
3514         uc_combining_class_long_name, uc_bidi_class_name,
3515         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3516         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3517         uc_decimal_value, uc_digit_value, uc_numeric_value,
3518         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3519         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3520         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3521         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3522         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3523         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3524         Declare with GCC attribute 'const'.
3525         (uc_general_category_name, uc_general_category_long_name,
3526         uc_general_category_byname, uc_general_category,
3527         uc_is_general_category, uc_combining_class_byname,
3528         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3529         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3530         Declare with GCC attribute 'pure'.
3531         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3532         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3533         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3534         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3535         with GCC attribute 'pure'.
3536         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3537         'const'.
3538         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3539         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3540         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3541         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3542         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3543         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3544         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3545         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3546         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3547         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3548         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3549         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3550         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3551         GCC attribute 'pure'.
3552         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3553         'const'.
3554         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3555         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3556         u32_strwidth): Declare with GCC attribute 'pure'.
3557
3558         Enable common subexpression optimization in GCC.
3559         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3560         (alphasort): Declare with GCC attribute 'pure'.
3561         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3562         (atoll): Declare with GCC attribute 'pure'.
3563         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3564         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3565         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3566         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3567         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3568         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3569         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3570
3571 2012-03-24  Bruno Haible  <bruno@clisp.org>
3572
3573         gnulib-tool: Avoid unintended error output from 'cmp'.
3574         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3575         "cmp -s", not "cmp > /dev/null".
3576
3577 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3578
3579         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3580
3581         It's not just Automake versions < 1.9b that creates an empty
3582         pkgdatadir at installation time if pkgdata_DATA is specified
3583         to empty; modern automake versions do this as well, at least
3584         until automake 1.11.4 (not yet released at the moment of writing,
3585         but soon to appear).  That behaviour was generally considered a
3586         feature rather than a bug, at least until this discussion:
3587         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3588
3589         See also automake bugs #10997 and #11030.
3590
3591         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3592         reference to relevant automake bug numbers.
3593         (func_emit_tests_Makefile_am): Likewise.
3594
3595 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3596
3597         announce-gen: use Digest::SHA when possible
3598         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3599         back to Digest::SHA1 if necessary.
3600
3601 2012-03-20  Jim Meyering  <meyering@redhat.com>
3602
3603         tests: avoid gcc warnings about argv vs. const initializers
3604         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3605         warnings about discarding 'const' qualifier from pointer target type.
3606         * tests/test-posix_spawn2.c (main): Likewise.
3607
3608 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3609
3610         README-release: simplify slightly
3611         * top/README-release: Run "git checkout master" only once.
3612
3613 2012-03-15  Mark Wielaard  <mark@klomp.org>
3614
3615         git-merge-changelog: add specific example on how to use with hg.
3616         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3617
3618 2012-03-18  Mark Wielaard  <mark@klomp.org>
3619
3620         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3621
3622 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3623
3624         git-version-gen: don't let "prefix" envvar cause trouble
3625         * build-aux/git-version-gen (prefix): Initialize properly,
3626         so as not to use a value specified via the environment.
3627         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3628
3629 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3630
3631         regex: diagnose too-large repeat counts in EREs
3632         Previously, the code did not diagnose the too-large repeat count
3633         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3634         as if it were 'b\{1000000000}', which is unexpected.
3635         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3636         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3637         is a reasonable one for this problem.  Another option would be to
3638         create a new REG_OVERFLOW error for repeat counts that are too large.
3639         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3640         count is too large, so that the caller can distinguish the two cases.
3641         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3642         "Too large" return code, and that repeat counts are one example of this.
3643
3644 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3645
3646         doc: some glibc x32 integer width issues
3647         * doc/posix-headers/sys_types.texi (sys/types.h):
3648         * doc/posix-headers/time.texi (time.h):
3649         Mention that glibc x32 does not conform to POSIX in a couple of
3650         areas related to integer widths.
3651
3652 2012-03-15  Bruno Haible  <bruno@clisp.org>
3653
3654         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3655         * lib/fma.c (VOLATILE): New macro.
3656         (FUNC): Use it to work around a GCC compiler bug.
3657
3658 2012-03-13  Bruno Haible  <bruno@clisp.org>
3659
3660         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3661         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3662         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3663         REPLACE_HYPOTL to 1.
3664         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3665
3666 2012-03-13  Bruno Haible  <bruno@clisp.org>
3667
3668         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3669         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3670         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3671         REPLACE_REMAINDERL to 1.
3672         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3673         bug.
3674
3675 2012-03-13  Bruno Haible  <bruno@clisp.org>
3676
3677         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3678         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3679         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3680         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3681         too big rounding errors.
3682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3683         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3684         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3685         (Depends-on): Update conditions.
3686         * tests/test-sqrtl.c (my_ldexpl): New function.
3687         (main): Add test of a particular value.
3688         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3689
3690 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3691
3692         doc: Update timer_* platform portability notes.
3693         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3694         that always return ENOSYS.
3695         * doc/posix-functions/timer_delete.texi: Likewise.
3696         * doc/posix-functions/timer_gettime.texi: Likewise.
3697         * doc/posix-functions/timer_settime.texi: Likewise.
3698
3699 2012-03-13  Bruno Haible  <bruno@clisp.org>
3700
3701         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3702         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3703         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3704         REPLACE_CBRTL to 1.
3705         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3706
3707 2012-03-13  Bruno Haible  <bruno@clisp.org>
3708
3709         remainderl: Avoid compilation error on AIX >= 5.2.
3710         * lib/math.in.h (remainderl): Undefine macro from the system header.
3711
3712 2012-03-13  Bruno Haible  <bruno@clisp.org>
3713
3714         Avoid compilation errors with MSVC option -fp:strict.
3715         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3716         * lib/cbrtf.c: Likewise.
3717         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3718
3719 2012-03-12  Bruno Haible  <bruno@clisp.org>
3720
3721         uninorm: Don't crash in out-of-memory conditions.
3722         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3723         gracefully.
3724         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3725         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3726
3727 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3728
3729         quote: fix syntax-check
3730         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3731         also exports quote_quoting_options.
3732
3733 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3734
3735         Collapse list of copyright years to ranges.  See
3736         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3737         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3738         build-aux/csharpexec.sh.in, build-aux/gnupload,
3739         build-aux/install-reloc, build-aux/javacomp.sh.in,
3740         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3741         build-aux/move-if-change, build-aux/reloc-ldflags,
3742         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3743
3744 2012-03-11  Bruno Haible  <bruno@clisp.org>
3745
3746         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3747         * m4/log2f-ieee.m4: New file.
3748         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3749         whether log2f works with a minus zero argument. Replace it if not.
3750         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3751         (Depends-on): Add log2-ieee.
3752         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3753         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3754
3755         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3756         * m4/log2-ieee.m4: New file.
3757         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3758         whether log2 works with a minus zero argument. Replace it if not.
3759         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3760         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3761         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3762
3763         Tests for module 'log2l-ieee'.
3764         * modules/log2l-ieee-tests: New file.
3765         * tests/test-log2l-ieee.c: New file.
3766
3767         New module 'log2l-ieee'.
3768         * modules/log2l-ieee: New file.
3769
3770         Tests for module 'log2-ieee'.
3771         * modules/log2-ieee-tests: New file.
3772         * tests/test-log2-ieee.c: New file.
3773
3774         New module 'log2-ieee'.
3775         * modules/log2-ieee: New file.
3776
3777         Tests for module 'log2f-ieee'.
3778         * modules/log2f-ieee-tests: New file.
3779         * tests/test-log2f-ieee.c: New file.
3780         * tests/test-log2-ieee.h: New file.
3781
3782         New module 'log2f-ieee'.
3783         * modules/log2f-ieee: New file.
3784
3785 2012-03-11  Bruno Haible  <bruno@clisp.org>
3786
3787         Tests for module 'log2l'.
3788         * modules/log2l-tests: New file.
3789         * tests/test-log2l.c: New file.
3790
3791         New module 'log2l'.
3792         * lib/math.in.h (log2l): New declaration.
3793         * lib/log2l.c: New file.
3794         * m4/log2l.m4: New file.
3795         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3797         REPLACE_LOG2L.
3798         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3799         REPLACE_LOG2L.
3800         * modules/log2l: New file.
3801         * tests/test-math-c++.cc: Check the declaration of log2l.
3802         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3803         and OSF/1 problems.
3804
3805 2012-03-11  Bruno Haible  <bruno@clisp.org>
3806
3807         Tests for module 'log2f'.
3808         * modules/log2f-tests: New file.
3809         * tests/test-log2f.c: New file.
3810
3811         New module 'log2f'.
3812         * lib/math.in.h (log2f): New declaration.
3813         * lib/log2f.c: New file.
3814         * m4/log2f.m4: New file.
3815         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3817         REPLACE_LOG2F.
3818         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3819         REPLACE_LOG2F.
3820         * modules/log2f: New file.
3821         * tests/test-math-c++.cc: Check the declaration of log2f.
3822         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3823         and OSF/1 and Cygwin problems.
3824
3825 2012-03-11  Bruno Haible  <bruno@clisp.org>
3826
3827         Tests for module 'log2'.
3828         * modules/log2-tests: New file.
3829         * tests/test-log2.c: New file.
3830         * tests/test-log2.h: New file.
3831
3832         New module 'log2'.
3833         * lib/math.in.h (log2): New declaration.
3834         * lib/log2.c: New file.
3835         * m4/log2.m4: New file.
3836         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
3837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
3838         REPLACE_LOG2.
3839         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
3840         REPLACE_LOG2.
3841         * modules/log2: New file.
3842         * tests/test-math-c++.cc: Check the declaration of log2.
3843         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
3844         and OSF/1 and Cygwin problems.
3845
3846 2012-03-11  Bruno Haible  <bruno@clisp.org>
3847
3848         exp2* tests: More tests.
3849         * tests/test-exp2.h (test_function): Test all integral arguments that
3850         don't need to overflow or denormalized numbers.
3851         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
3852         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
3853         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
3854
3855 2012-03-10  Bruno Haible  <bruno@clisp.org>
3856
3857         log1pl-ieee: Work around test failure on AIX 7.1.
3858         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
3859
3860         log1pl-ieee: Work around test failure on IRIX 6.5.
3861         * m4/log1pl-ieee.m4: New file.
3862         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
3863         test whether log1pl works with a minus zero argument. Replace it if
3864         not.
3865         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
3866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
3867         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
3868         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
3869         (Depends-on): Update conditions.
3870         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3871         m4/signbit.m4.
3872         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
3873         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
3874
3875         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
3876         * m4/log1pf-ieee.m4: New file.
3877         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
3878         test whether log1pf works with a minus zero argument. Replace it if
3879         not.
3880         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
3881         m4/signbit.m4.
3882         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
3883         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
3884
3885         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
3886         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
3887         (configure.ac): Require gl_FUNC_LOG1PF.
3888
3889         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
3890         * m4/log1p-ieee.m4: New file.
3891         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
3892         whether log1p works with a minus zero argument. Replace it if not.
3893         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
3894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
3895         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
3896         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
3897         (Depends-on): Update conditions.
3898         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3899         m4/signbit.m4.
3900         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
3901         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
3902
3903         Tests for module 'log1pl-ieee'.
3904         * modules/log1pl-ieee-tests: New file.
3905         * tests/test-log1pl-ieee.c: New file.
3906
3907         New module 'log1pl-ieee'.
3908         * modules/log1pl-ieee: New file.
3909
3910         Tests for module 'log1p-ieee'.
3911         * modules/log1p-ieee-tests: New file.
3912         * tests/test-log1p-ieee.c: New file.
3913
3914         New module 'log1p-ieee'.
3915         * modules/log1p-ieee: New file.
3916
3917         Tests for module 'log1pf-ieee'.
3918         * modules/log1pf-ieee-tests: New file.
3919         * tests/test-log1pf-ieee.c: New file.
3920         * tests/test-log1p-ieee.h: New file.
3921
3922         New module 'log1pf-ieee'.
3923         * modules/log1pf-ieee: New file.
3924
3925 2012-03-10  Bruno Haible  <bruno@clisp.org>
3926
3927         Tests for module 'log1pl'.
3928         * modules/log1pl-tests: New file.
3929         * tests/test-log1pl.c: New file.
3930
3931         New module 'log1pl'.
3932         * lib/math.in.h (log1pl): New declaration.
3933         * lib/log1pl.c: New file.
3934         * m4/log1pl.m4: New file.
3935         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
3936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
3937         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
3938         * modules/log1pl: New file.
3939         * tests/test-math-c++.cc: Check the declaration of log1pl.
3940         * doc/posix-functions/log1pl.texi: Mention the new module.
3941
3942 2012-03-10  Bruno Haible  <bruno@clisp.org>
3943
3944         Tests for module 'log1pf'.
3945         * modules/log1pf-tests: New file.
3946         * tests/test-log1pf.c: New file.
3947
3948         New module 'log1pf'.
3949         * lib/math.in.h (log1pf): New declaration.
3950         * lib/log1pf.c: New file.
3951         * m4/log1pf.m4: New file.
3952         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
3953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
3954         REPLACE_LOG1PF.
3955         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
3956         REPLACE_LOG1PF.
3957         * modules/log1pf: New file.
3958         * tests/test-math-c++.cc: Check the declaration of log1pf.
3959         * doc/posix-functions/log1pf.texi: Mention the new module.
3960
3961 2012-03-10  Bruno Haible  <bruno@clisp.org>
3962
3963         log1p tests: More tests.
3964         * tests/test-log1p.h: New file.
3965         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
3966         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
3967         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
3968         (main): Invoke test_function.
3969
3970         log1p: Provide replacement for Minix and MSVC.
3971         * lib/math.in.h (log1p): New declaration.
3972         * lib/log1p.c: New file.
3973         * m4/log1p.m4: New file.
3974         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
3975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
3976         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3977         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3978         (Depends-on): Add math, isnand, log, round.
3979         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3980         HAVE_LOG1P is 0.
3981         * tests/test-math-c++.cc: Check the declaration of log1p.
3982         * doc/posix-functions/log1p.texi: Mention the replacement.
3983
3984 2012-03-10  Bruno Haible  <bruno@clisp.org>
3985
3986         math tests: Small simplification.
3987         * tests/test-exp.h (test_function): Use the same err_bound for
3988         'double' on platforms with sizeof (long double) == sizeof (double)
3989         than on platforms with sizeof (long double) > sizeof (double).
3990         * tests/test-exp2.h (test_function): Likewise.
3991         * tests/test-expm1.h (test_function): Likewise.
3992         * tests/test-log.h (test_function): Likewise.
3993
3994 2012-03-10  Bruno Haible  <bruno@clisp.org>
3995
3996         Fix some comments.
3997         * lib/expl.c: Fix an ambiguous comment.
3998         * lib/expm1.c: Likewise.
3999         * lib/expm1l.c: Likewise.
4000         * lib/exp2.c: Likewise.
4001         * lib/exp2l.c: Likewise.
4002
4003 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4004
4005         regex: allow inclusion of <regex.h> before <limits.h>
4006         Without this patch, portable programs had to include <limits.h> before
4007         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4008         I ran into this problem with a test version of GNU grep on Solaris 8.
4009         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4010         This is done conditionally so that this change can be merged
4011         back to glibc.
4012         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4013         using the included regex.
4014
4015         fts: depend on fdopendir
4016         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4017         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4018         problem was introduced when fdopendir was split out.
4019
4020 2012-03-10  Bruno Haible  <bruno@clisp.org>
4021
4022         Remove unused variables.
4023         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4024         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4025
4026 2012-03-10  Bruno Haible  <bruno@clisp.org>
4027
4028         isnanf-nolibm: Fix last commit.
4029         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4030
4031         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4032         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4033
4034 2012-03-10  Bruno Haible  <bruno@clisp.org>
4035
4036         logf-ieee: Work around test failure on NetBSD 5.1.
4037         * m4/logf-ieee.m4: New file.
4038         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4039         whether logf works with a negative argument. Replace it if not.
4040         * lib/logf.c (logf): For negative arguments, return NaN.
4041         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4042         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4043         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4044
4045         logf-ieee: Work around test failure on Solaris 9.
4046         * modules/logf-ieee (Depends-on): Add log-ieee.
4047         (configure.ac): Require gl_FUNC_LOGF.
4048
4049         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4050         * m4/log-ieee.m4: New file.
4051         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4052         log works with a negative argument. Replace it if not.
4053         * lib/log.c (log): For negative arguments, return NaN.
4054         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4055         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4056         * doc/posix-functions/log.texi: Mention the log-ieee module.
4057
4058         Tests for module 'logl-ieee'.
4059         * modules/logl-ieee-tests: New file.
4060         * tests/test-logl-ieee.c: New file.
4061
4062         New module 'logl-ieee'.
4063         * modules/logl-ieee: New file.
4064
4065         Tests for module 'log-ieee'.
4066         * modules/log-ieee-tests: New file.
4067         * tests/test-log-ieee.c: New file.
4068
4069         New module 'log-ieee'.
4070         * modules/log-ieee: New file.
4071
4072         Tests for module 'logf-ieee'.
4073         * modules/logf-ieee-tests: New file.
4074         * tests/test-logf-ieee.c: New file.
4075         * tests/test-log-ieee.h: New file.
4076
4077         New module 'logf-ieee'.
4078         * modules/logf-ieee: New file.
4079
4080 2012-03-10  Bruno Haible  <bruno@clisp.org>
4081
4082         log: Fix bug introduced on 2012-03-09.
4083         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4084
4085 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4086
4087         timer-time: link explicitly with pthreads on glibc
4088         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4089         to support static linking, when newer glibc is
4090         detected, as that contains pthread emulation of
4091         POSIX timer functions where required.
4092         * modules/timer-time: Depend on threadlib to
4093         pull in the appropriate library to link.
4094
4095 2012-03-10  Bruno Haible  <bruno@clisp.org>
4096
4097         log* tests: More tests.
4098         * tests/test-log.h: New file.
4099         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4100         (main): Invoke test_function.
4101         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4102         (main): Invoke test_function.
4103         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4104         (main): Invoke test_function.
4105         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4106         tests/randomd.c.
4107         (Makefile.am): Add randomd.c to test_log_SOURCES.
4108         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4109         tests/randomf.c.
4110         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4111         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4112         tests/randoml.c.
4113         (Depends-on): Add 'float'.
4114         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4115
4116 2012-03-09  Bruno Haible  <bruno@clisp.org>
4117
4118         logl: Work around OSF/1 5.1 bug.
4119         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4120         * lib/logl.c (logl): If logl exists, use it and provide just the
4121         workaround.
4122         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4123         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4125         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4126         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4127         (Depends-on): Update conditions.
4128         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4129
4130 2012-03-09  Bruno Haible  <bruno@clisp.org>
4131
4132         logf: Work around OSF/1 5.1 bug.
4133         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4134         * lib/logf.c (logf): If logf exists, use it and provide just the
4135         workaround.
4136         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4137         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4139         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4140         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4141         (Depends-on): Update conditions.
4142         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4143
4144 2012-03-09  Bruno Haible  <bruno@clisp.org>
4145
4146         log: Work around OSF/1 5.1 bug.
4147         * lib/math.in.h (log): New declaration.
4148         * lib/log.c: New file.
4149         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4150         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4151         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4153         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4154         * modules/log (Files): Add lib/log.c.
4155         (Depends-on): Add math.
4156         (configure.ac): If REPLACE_LOG is 1, compile an override.
4157         * tests/test-math-c++.cc: Check the declaration of log.
4158         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4159
4160 2012-03-09  Jim Meyering  <meyering@redhat.com>
4161
4162         readtokens.c: adjust wording in a comment
4163         * lib/readtokens.c: Insert omitted "that" in a comment.
4164
4165 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4166
4167         modechange: add notations +40, 00440, etc.
4168         * lib/modechange.c (mode_compile): Support new notations
4169         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4170
4171 2012-03-08  Bruno Haible  <bruno@clisp.org>
4172
4173         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4174         * m4/exp2l-ieee.m4: New file.
4175         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4176         test whether exp2l works with a NaN argument and with a negative
4177         infinity argument. Replace it if not.
4178         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4180         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4181         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4182         (Depends-on): Update conditions.
4183         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4184         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4185         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4186
4187         Tests for module 'exp2l-ieee'.
4188         * modules/exp2l-ieee-tests: New file.
4189         * tests/test-exp2l-ieee.c: New file.
4190
4191         New module 'exp2l-ieee'.
4192         * modules/exp2l-ieee: New file.
4193
4194         Tests for module 'exp2-ieee'.
4195         * modules/exp2-ieee-tests: New file.
4196         * tests/test-exp2-ieee.c: New file.
4197
4198         New module 'exp2-ieee'.
4199         * modules/exp2-ieee: New file.
4200
4201         Tests for module 'exp2f-ieee'.
4202         * modules/exp2f-ieee-tests: New file.
4203         * tests/test-exp2f-ieee.c: New file.
4204         * tests/test-exp2-ieee.h: New file.
4205
4206         New module 'exp2f-ieee'.
4207         * modules/exp2f-ieee: New file.
4208
4209 2012-03-08  Bruno Haible  <bruno@clisp.org>
4210
4211         Tests for module 'exp2l'.
4212         * modules/exp2l-tests: New file.
4213         * tests/test-exp2l.c: New file.
4214
4215         New module 'exp2l'.
4216         * lib/math.in.h (exp2l): New declaration.
4217         * lib/exp2l.c: New file.
4218         * lib/expl-table.c: New file, extracted from lib/expl.c.
4219         * lib/expl.c (gl_expl_table): New declaration.
4220         (expl): Remove expl_table. Update reference.
4221         * m4/exp2l.m4: New file.
4222         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4224         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4225         * modules/exp2l: New file.
4226         * modules/expl (Files): Add lib/expl-table.c.
4227         (configure.ac): Compile also expl-table.c.
4228         * tests/test-math-c++.cc: Check the declaration of exp2l.
4229         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4230         problem.
4231
4232 2012-03-08  Bruno Haible  <bruno@clisp.org>
4233
4234         Tests for module 'exp2f'.
4235         * modules/exp2f-tests: New file.
4236         * tests/test-exp2f.c: New file.
4237
4238         New module 'exp2f'.
4239         * lib/math.in.h (exp2f): New declaration.
4240         * lib/exp2f.c: New file.
4241         * m4/exp2f.m4: New file.
4242         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4244         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4245         * modules/exp2f: New file.
4246         * tests/test-math-c++.cc: Check the declaration of exp2f.
4247         * doc/posix-functions/exp2f.texi: Mention the new module and the
4248         IRIX problem.
4249
4250 2012-03-08  Bruno Haible  <bruno@clisp.org>
4251
4252         Tests for module 'exp2'.
4253         * modules/exp2-tests: New file.
4254         * tests/test-exp2.c: New file.
4255         * tests/test-exp2.h: New file.
4256
4257         New module 'exp2'.
4258         * lib/math.in.h (exp2): New declaration.
4259         * lib/exp2.c: New file.
4260         * m4/exp2.m4: New file.
4261         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4263         REPLACE_EXP2.
4264         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4265         REPLACE_EXP2.
4266         * modules/exp2: New file.
4267         * tests/test-math-c++.cc: Check the declaration of exp2.
4268         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4269         and OpenBSD problems.
4270
4271 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4272
4273         savedir: fix comment typo
4274         * lib/savedir.c (savedirstream): Fix typo in comment.
4275
4276 2012-03-08  Bruno Haible  <bruno@clisp.org>
4277
4278         test-readtokens.c: use const; remove unwarranted cast
4279         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4280
4281 2012-03-08  Bruno Haible  <bruno@clisp.org>
4282
4283         fmal: Avoid compilation error on AIX.
4284         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4285         AIX 5.2..7.1.
4286
4287 2012-03-08  Bruno Haible  <bruno@clisp.org>
4288
4289         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4290         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4291         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4292         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4293         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4294         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4295         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4296
4297 2012-03-08  Bruno Haible  <bruno@clisp.org>
4298
4299         remainderf: Override buggy system function on IRIX 6.5.
4300         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4301         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4302         when it exists.
4303         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4304
4305 2012-03-08  Jim Meyering  <meyering@redhat.com>
4306
4307         test-readtokens.c: avoid const-related compilation warnings
4308         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4309
4310 2012-03-07  Jim Meyering  <meyering@redhat.com>
4311             Bruno Haible  <bruno@clisp.org>
4312
4313         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4314         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4315         tests/randomd.c.
4316         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4317         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4318         tests/randoml.c.
4319         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4320
4321 2012-03-07  Bruno Haible  <bruno@clisp.org>
4322
4323         expm1l: Avoid compilation error on AIX.
4324         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4325         AIX 5.2..7.1.
4326
4327 2012-03-07  Bruno Haible  <bruno@clisp.org>
4328
4329         expm1l: Don't override undeclared system function on IRIX 6.5.
4330         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4331         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4332         it exists. Set HAVE_DECL_EXPM1L.
4333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4334         HAVE_EXPM1L.
4335         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4336         HAVE_EXPM1L.
4337         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4338
4339 2012-03-07  Bruno Haible  <bruno@clisp.org>
4340
4341         remainderl: Don't override undeclared system function on IRIX 6.5.
4342         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4343         HAVE_REMAINDERL.
4344         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4345         declared when it exists. Set HAVE_DECL_REMAINDERL.
4346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4347         not HAVE_REMAINDERL.
4348         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4349         HAVE_REMAINDERL.
4350         * doc/posix-functions/remainderl.texi: Mention missing declaration
4351         problem.
4352
4353 2012-03-07  Bruno Haible  <bruno@clisp.org>
4354
4355         rintf: Don't override undeclared system function on IRIX 6.5.
4356         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4357         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4358         exists. Set HAVE_DECL_RINTF.
4359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4360         HAVE_RINTF.
4361         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4362         HAVE_RINTF.
4363         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4364
4365 2012-03-07  Bruno Haible  <bruno@clisp.org>
4366
4367         roundl: Avoid compilation error on AIX.
4368         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4369         AIX 5.2..7.1.
4370
4371 2012-03-07  Bruno Haible  <bruno@clisp.org>
4372
4373         roundl: Don't override undeclared system function on IRIX 6.5.
4374         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4375         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4376         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4377         * modules/roundl (configure.ac): For replacement code, test
4378         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4379         (Depends-on): Update conditions.
4380         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4381
4382 2012-03-07  Bruno Haible  <bruno@clisp.org>
4383
4384         roundf: Don't override undeclared system function on IRIX 6.5.
4385         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4386         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4387         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4388         * modules/roundf (configure.ac): For replacement code, test
4389         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4390         (Depends-on): Update conditions.
4391         * modules/roundf-ieee (Depends-on): Update conditions.
4392         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4393
4394 2012-03-07  Bruno Haible  <bruno@clisp.org>
4395
4396         round: Don't override undeclared system function on IRIX 6.5.
4397         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4398         argument.
4399         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4400         also when it is not declared. Set HAVE_ROUND. For replacement code,
4401         test HAVE_ROUND, not HAVE_DECL_ROUND.
4402         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4403         not HAVE_DECL_ROUND.
4404         (Depends-on): Update conditions.
4405         * modules/round-ieee (Depends-on): Update conditions.
4406         * doc/posix-functions/round.texi: Mention the IRIX problem.
4407
4408 2012-03-07  Bruno Haible  <bruno@clisp.org>
4409
4410         copysignf: Don't override undeclared system function on IRIX 6.5.
4411         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4412         HAVE_COPYSIGNF.
4413         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4414         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4416         not HAVE_COPYSIGNF.
4417         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4418         HAVE_COPYSIGNF.
4419         * doc/posix-functions/copysignf.texi: Mention missing declaration
4420         problem.
4421
4422 2012-03-07  Jim Meyering  <meyering@redhat.com>
4423
4424         readtokens: add tests
4425         * modules/readtokens-tests: New file.
4426         * tests/test-readtokens.c: New file.
4427
4428 2012-03-07  Jim Meyering  <meyering@redhat.com>
4429
4430         quotearg: the module must now include quote.h
4431         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4432         So must the module.
4433         * modules/quotearg (Files): Add quote.h.
4434
4435 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4436
4437         readtokens: avoid core dumps with unusual calling patterns
4438         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4439         * lib/readtokens.c: Include limits.h.
4440         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4441         (readtoken): Don't cache the delimiters; the cache code was buggy
4442         if !delim && saved_delim, or if the new n_delim differs from the old.
4443         Also, it wasn't thread-safe.
4444
4445 2012-03-07  Bruno Haible  <bruno@clisp.org>
4446
4447         quote: Adhere to common module description layout.
4448         * modules/quote (Makefile.am): Add back empty section.
4449
4450 2012-03-06  Akim Demaille  <demaille@gostai.com>
4451
4452         quote: fuse into quotearg
4453         This patch is made for the benefit of Bison.
4454         quote does not leave the choice of the quoting style to the user.
4455         quoting_style provides poor customizability, yet quoting_options,
4456         which is very rich, is hidden inside quotearg.c.  So in order to
4457         allow quote customization, move its implementation to quotearg.c.
4458         * lib/quote.c: Remove.
4459         * modules/quote: Adjust.
4460         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4461         warning: provide all the members of literal structs.
4462         (quote_quoting_options): New.
4463         (quote, quote_n): Import implementation from quote.c.
4464         * lib/quote.h: Import the comments from quote.c.
4465         (quote_quoting_options): New.
4466
4467 2012-03-06  Bruno Haible  <bruno@clisp.org>
4468
4469         Tests for module 'expm1l-ieee'.
4470         * modules/expm1l-ieee-tests: New file.
4471         * tests/test-expm1l-ieee.c: New file.
4472
4473         New module 'expm1l-ieee'.
4474         * modules/expm1l-ieee: New file.
4475
4476         Tests for module 'expm1f-ieee'.
4477         * modules/expm1f-ieee-tests: New file.
4478         * tests/test-expm1f-ieee.c: New file.
4479
4480         New module 'expm1f-ieee'.
4481         * modules/expm1f-ieee: New file.
4482
4483         Tests for module 'expm1-ieee'.
4484         * modules/expm1-ieee-tests: New file.
4485         * tests/test-expm1-ieee.c: New file.
4486         * tests/test-expm1-ieee.h: New file.
4487
4488         New module 'expm1-ieee'.
4489         * modules/expm1-ieee: New file.
4490         * m4/expm1-ieee.m4: New file.
4491         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4492         whether expm1 works with a minus zero argument. Replace it if not.
4493         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4495         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4496         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4497         (Depends-on): Update conditions.
4498         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4499         AIX problem.
4500
4501 2012-03-06  Bruno Haible  <bruno@clisp.org>
4502
4503         Work around expm1f bug on IRIX 6.5.
4504         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4505         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4506         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4507         not work.
4508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4509         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4510         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4511         (Depends-on): Update conditions.
4512         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4513
4514 2012-03-06  Bruno Haible  <bruno@clisp.org>
4515
4516         Tests for module 'expm1l'.
4517         * modules/expm1l-tests: New file.
4518         * tests/test-expm1l.c: New file.
4519
4520         New module 'expm1l'.
4521         * lib/math.in.h (expm1l): New declaration.
4522         * lib/expm1l.c: New file.
4523         * m4/expm1l.m4: New file.
4524         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4526         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4527         * modules/expm1l: New file.
4528         * tests/test-math-c++.cc: Check the declaration of expm1l.
4529         * doc/posix-functions/expm1l.texi: Mention the new module.
4530
4531 2012-03-06  Bruno Haible  <bruno@clisp.org>
4532
4533         Tests for module 'expm1f'.
4534         * modules/expm1f-tests: New file.
4535         * tests/test-expm1f.c: New file.
4536
4537         New module 'expm1f'.
4538         * lib/math.in.h (expm1f): New declaration.
4539         * lib/expm1f.c: New file.
4540         * m4/expm1f.m4: New file.
4541         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4543         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4544         * modules/expm1f: New file.
4545         * tests/test-math-c++.cc: Check the declaration of expm1f.
4546         * doc/posix-functions/expm1f.texi: Mention the new module.
4547
4548 2012-03-06  Bruno Haible  <bruno@clisp.org>
4549
4550         Tests for module 'expm1'.
4551         * modules/expm1-tests: New file.
4552         * tests/test-expm1.c: New file.
4553         * tests/test-expm1.h: New file.
4554
4555         New module 'expm1'.
4556         * lib/math.in.h (expm1): New declaration.
4557         * lib/expm1.c: New file.
4558         * m4/expm1.m4: New file.
4559         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4561         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4562         * modules/expm1: New file.
4563         * tests/test-math-c++.cc: Check the declaration of expm1.
4564         * doc/posix-functions/expm1.texi: Mention the new module.
4565
4566 2012-03-06  Bruno Haible  <bruno@clisp.org>
4567
4568         math: Ensure declarations of math functions.
4569         * modules/acosf (Depends-on): Add 'extensions'.
4570         * modules/asinf (Depends-on): Likewise.
4571         * modules/atan2f (Depends-on): Likewise.
4572         * modules/atanf (Depends-on): Likewise.
4573         * modules/cbrt (Depends-on): Likewise.
4574         * modules/cbrtf (Depends-on): Likewise.
4575         * modules/cbrtl (Depends-on): Likewise.
4576         * modules/copysignf (Depends-on): Likewise.
4577         * modules/copysignl (Depends-on): Likewise.
4578         * modules/cosf (Depends-on): Likewise.
4579         * modules/coshf (Depends-on): Likewise.
4580         * modules/expf (Depends-on): Likewise.
4581         * modules/fabsf (Depends-on): Likewise.
4582         * modules/fabsl (Depends-on): Likewise.
4583         * modules/fmaf (Depends-on): Likewise.
4584         * modules/fmal (Depends-on): Likewise.
4585         * modules/fmodf (Depends-on): Likewise.
4586         * modules/fmodl (Depends-on): Likewise.
4587         * modules/frexpf (Depends-on): Likewise.
4588         * modules/frexpl (Depends-on): Likewise.
4589         * modules/hypot (Depends-on): Likewise.
4590         * modules/hypotf (Depends-on): Likewise.
4591         * modules/hypotl (Depends-on): Likewise.
4592         * modules/ldexpf (Depends-on): Likewise.
4593         * modules/ldexpl (Depends-on): Likewise.
4594         * modules/log10f (Depends-on): Likewise.
4595         * modules/log10l (Depends-on): Likewise.
4596         * modules/log1p (Depends-on): Likewise.
4597         * modules/logb (Depends-on): Likewise.
4598         * modules/logf (Depends-on): Likewise.
4599         * modules/modff (Depends-on): Likewise.
4600         * modules/modfl (Depends-on): Likewise.
4601         * modules/powf (Depends-on): Likewise.
4602         * modules/remainderf (Depends-on): Likewise.
4603         * modules/remainderl (Depends-on): Likewise.
4604         * modules/rintf (Depends-on): Likewise.
4605         * modules/rintl (Depends-on): Likewise.
4606         * modules/sinf (Depends-on): Likewise.
4607         * modules/sinhf (Depends-on): Likewise.
4608         * modules/sqrtf (Depends-on): Likewise.
4609         * modules/tanf (Depends-on): Likewise.
4610         * modules/tanhf (Depends-on): Likewise.
4611         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4612         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4613         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4614         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4615         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4616         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4617         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4618         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4619         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4620         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4621         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4622         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4623         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4624         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4625         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4626         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4627         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4628         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4629         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4630         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4631         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4632         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4633         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4634         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4635         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4636         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4637         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4638         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4639         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4640         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4641         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4642         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4643         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4644         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4645         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4646         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4647         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4648         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4649         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4650         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4651         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4652
4653 2012-03-06  Bruno Haible  <bruno@clisp.org>
4654
4655         math: Update module names in warnings.
4656         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4657         tanl): Use specific module name in warn-on-use warning.
4658
4659 2012-03-06  Bruno Haible  <bruno@clisp.org>
4660
4661         expl: Simplify computation.
4662         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4663
4664 2012-03-05  Bruno Haible  <bruno@clisp.org>
4665
4666         exp* tests: More tests.
4667         * tests/test-exp.h: New file.
4668         * tests/test-exp.c: Include <float.h> and test-exp.h.
4669         (main): Invoke test_function.
4670         * tests/test-expf.c: Include <float.h> and test-exp.h.
4671         (main): Invoke test_function.
4672         * tests/test-expl.c: Include <float.h> and test-exp.h.
4673         (main): Invoke test_function.
4674         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4675         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4676         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4677         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4678         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4679         (Depends-on): Add 'float'.
4680         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4681
4682         expl: Fix precision of computed result.
4683         * lib/expl.c: Completely rewritten.
4684         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4685         (Maintainer): Add me.
4686         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4687
4688 2012-03-05  Bruno Haible  <bruno@clisp.org>
4689
4690         cbrt* tests: More tests.
4691         * tests/test-cbrt.h: New file.
4692         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4693         (main): Invoke test_function.
4694         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4695         (main): Invoke test_function.
4696         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4697         (main): Invoke test_function.
4698         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4699         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4700         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4701         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4702         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4703         (Depends-on): Add 'float'.
4704         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4705
4706 2012-03-05  Bruno Haible  <bruno@clisp.org>
4707
4708         hypot* tests: More tests.
4709         * tests/test-hypot.h: New file, partially extracted from
4710         tests/test-hypotl.c.
4711         * tests/test-hypot.c: Include test-hypot.h.
4712         (main): Invoke test_function.
4713         * tests/test-hypotf.c: Include test-hypot.h.
4714         (main): Invoke test_function.
4715         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4716         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4717         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4718         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4719         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4720         tests/randomf.c.
4721         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4722         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4723         tests/randoml.c.
4724         (Depends-on): Add 'fpucw', 'float'.
4725         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4726
4727 2012-03-05  Bruno Haible  <bruno@clisp.org>
4728
4729         fpucw: Doc about FreeBSD.
4730         * lib/fpucw.h: Mention FreeBSD in comments.
4731
4732 2012-03-04  Bruno Haible  <bruno@clisp.org>
4733
4734         sqrt* tests: More tests.
4735         * tests/test-sqrt.h: New file.
4736         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4737         (main): Invoke test_function.
4738         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4739         (main): Invoke test_function.
4740         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4741         (main): Invoke test_function.
4742         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4743         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4744         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4745         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4746         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4747         (Depends-on): Add 'float'.
4748         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4749
4750 2012-03-04  Bruno Haible  <bruno@clisp.org>
4751
4752         remainder* tests: More tests.
4753         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4754         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4755         (main): Invoke test_function.
4756         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4757         (main): Invoke test_function.
4758         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4759         (main): Invoke test_function.
4760         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4761         tests/randomd.c.
4762         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4763         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4764         tests/randomf.c.
4765         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4766         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4767         tests/randoml.c.
4768         (Depends-on): Add 'float'.
4769         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4770
4771 2012-03-04  Bruno Haible  <bruno@clisp.org>
4772
4773         remainder, remainderf, remainderl: Fix computation for large quotients.
4774         * lib/remainder.c: Completely rewritten.
4775         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4776         USE_FLOAT.
4777         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4778         USE_LONG_DOUBLE.
4779         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4780         isnand, isinf. Remove round, fma.
4781         * modules/remainderf (Files): Add lib/remainder.c.
4782         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4783         Remove roundf, fmaf.
4784         * modules/remainderl (Files): Add lib/remainder.c.
4785         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4786         isinf. Remove roundl, fmal.
4787         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4788         REMAINDER_LIBM.
4789         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4790         REMAINDERF_LIBM.
4791         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4792         REMAINDERL_LIBM.
4793
4794 2012-03-04  Bruno Haible  <bruno@clisp.org>
4795
4796         fmod* tests: More tests.
4797         * tests/test-fmod.h (my_ldexp): New function.
4798         (test_function): Reduce amount of random numbers to test. Add tests
4799         of very large quotients x / y.
4800         * tests/test-fmod.c (MAX_EXP): New macro.
4801         * tests/test-fmodf.c (MAX_EXP): Likewise.
4802         * tests/test-fmodl.c (MAX_EXP): Likewise.
4803
4804 2012-03-04  Bruno Haible  <bruno@clisp.org>
4805
4806         fmod, fmodl: Fix computation for large quotients x / y.
4807         * lib/fmod.c: Completely rewritten.
4808         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4809         USE_LONG_DOUBLE.
4810         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4811         isnand. Remove fma.
4812         * modules/fmodl (Files): Add lib/fmod.c.
4813         (Depends-on): Add float, isfinite, signbit, fabsl,
4814         frexpl, ldexpl, isnanl. Remove fma.
4815         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4816         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4817
4818 2012-03-03  Bruno Haible  <bruno@clisp.org>
4819
4820         fmod* tests: More tests.
4821         * tests/test-fmod.h: New file.
4822         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4823         (main): Invoke test_function.
4824         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4825         (main): Invoke test_function.
4826         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4827         (main): Invoke test_function.
4828         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4829         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4830         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4831         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
4832         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
4833         (Depends-on): Add 'float'.
4834         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
4835
4836 2012-03-03  Bruno Haible  <bruno@clisp.org>
4837
4838         rint* tests: More tests.
4839         * tests/test-rint.h: New file, partially extracted from
4840         tests/test-rintl.c.
4841         * tests/test-rint.c: Include test-rint.h.
4842         (main): Invoke test_function.
4843         * tests/test-rintf.c: Include test-rint.h.
4844         (main): Invoke test_function.
4845         * tests/test-rintl.c: Include test-rint.h.
4846         (main): Invoke test_function.
4847         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
4848         (Makefile.am): Add randomd.c to test_rint_SOURCES.
4849         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
4850         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
4851         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
4852         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
4853
4854 2012-03-03  Bruno Haible  <bruno@clisp.org>
4855
4856         modf* tests: More tests.
4857         * tests/test-modf.h: New file.
4858         * tests/test-modf.c: Include <float.h> and test-modf.h.
4859         (main): Invoke test_function.
4860         * tests/test-modff.c: Include <float.h> and test-modf.h.
4861         (main): Invoke test_function.
4862         * tests/test-modfl.c: Include <float.h> and test-modf.h.
4863         (main): Invoke test_function.
4864         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
4865         (Makefile.am): Add randomd.c to test_modf_SOURCES.
4866         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
4867         (Makefile.am): Add randomf.c to test_modff_SOURCES.
4868         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
4869         (Depends-on): Add 'float'.
4870         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
4871
4872 2012-03-03  Bruno Haible  <bruno@clisp.org>
4873
4874         fabs* tests: More tests.
4875         * tests/test-fabs.h: New file, partially extracted from
4876         tests/test-fabsl.c.
4877         * tests/test-fabs.c (RANDOM): New macro.
4878         * tests/test-fabsf.c (RANDOM): New macro.
4879         * tests/test-fabsl.c (RANDOM): New macro.
4880         * modules/fabs-tests (Files): Add tests/randomd.c.
4881         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
4882         * modules/fabsf-tests (Files): Add tests/randomf.c.
4883         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
4884         * modules/fabsl-tests (Files): Add tests/randoml.c.
4885         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
4886
4887 2012-03-03  Bruno Haible  <bruno@clisp.org>
4888
4889         ldexp* tests: More tests.
4890         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
4891         * tests/test-ldexp.c (RANDOM): New macro.
4892         * tests/test-ldexpf.c (RANDOM): New macro.
4893         * tests/test-ldexpl.c (RANDOM): New macro.
4894         * modules/ldexp-tests (Files): Add tests/randomd.c.
4895         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
4896         * modules/ldexpf-tests (Files): Add tests/randomf.c.
4897         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
4898         * modules/ldexpl-tests (Files): Add tests/randoml.c.
4899         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
4900
4901 2012-03-03  Bruno Haible  <bruno@clisp.org>
4902
4903         frexp* tests: More tests.
4904         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
4905         * tests/test-frexp.c (RANDOM): New macro.
4906         * tests/test-frexpf.c (RANDOM): New macro.
4907         * tests/test-frexpl.c (RANDOM): New macro.
4908         * modules/frexp-tests (Files): Add tests/randomd.c.
4909         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
4910         * modules/frexpf-tests (Files): Add tests/randomf.c.
4911         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
4912         * modules/frexpl-tests (Files): Add tests/randoml.c.
4913         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
4914
4915 2012-03-03  Bruno Haible  <bruno@clisp.org>
4916
4917         Support for pseudo-random numbers in tests.
4918         * tests/randomf.c: New file.
4919         * tests/randomd.c: New file.
4920         * tests/randoml.c: New file.
4921         * tests/macros.h (randomf, randomd, randoml): New declarations.
4922
4923 2012-03-03  Bruno Haible  <bruno@clisp.org>
4924
4925         frexp* tests: Refactor.
4926         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
4927         * tests/test-frexp.c: Include and use it.
4928         * tests/test-frexpf.c: Likewise.
4929         * tests/test-frexpl.c: Likewise.
4930         * modules/frexp-tests (Files): Add tests/test-frexp.h.
4931         * modules/frexpf-tests (Files): Likewise.
4932         * modules/frexpl-tests (Files): Likewise.
4933
4934 2012-03-02  Jim Meyering  <meyering@redhat.com>
4935
4936         maint: don't specify XZ_OPT=-9ev in dist-related rule
4937         Using xz's -9 option is warranted only if you have a very large
4938         tarball (see xz's documentation for the sizes vs. presets), and
4939         requires 64MiB of memory at decompression time.
4940         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
4941         Automake's default of just "-e" is fine.  Override on a
4942         per-package basis by setting XZ_OPT e.g., in cfg.mk.
4943
4944 2012-03-01  Eric Blake  <eblake@redhat.com>
4945
4946         maint.mk: allow announcement for non-gnulib project
4947         * maint.mk (announcement): Skip gnulib version if not used.
4948
4949 2012-03-01  Jim Meyering  <meyering@redhat.com>
4950
4951         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
4952         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
4953         envvar settings cannot interfere.  Otherwise, setting envvars like
4954         prohibit=foo require=bar, etc. would cause spurious test failures.
4955
4956 2012-03-01  Eric Blake  <eblake@redhat.com>
4957
4958         maint.mk: add per-line exclusions to prohibitions
4959         * maint.mk (_sc_search_regexp): Add $exclude parameter.
4960         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
4961         (sc_const_long_option): Use it.
4962
4963 2012-03-01  Bruno Haible  <bruno@clisp.org>
4964
4965         Tests for module 'expl-ieee'.
4966         * modules/expl-ieee-tests: New file.
4967         * tests/test-expl-ieee.c: New file.
4968
4969         New module 'expl-ieee'.
4970         * modules/expl-ieee: New file.
4971
4972         Tests for module 'exp-ieee'.
4973         * modules/exp-ieee-tests: New file.
4974         * tests/test-exp-ieee.c: New file.
4975
4976         New module 'exp-ieee'.
4977         * modules/exp-ieee: New file.
4978
4979         Tests for module 'expf-ieee'.
4980         * modules/expf-ieee-tests: New file.
4981         * tests/test-expf-ieee.c: New file.
4982         * tests/test-exp-ieee.h: New file.
4983
4984         New module 'expf-ieee'.
4985         * modules/expf-ieee: New file.
4986
4987 2012-02-29  Bruno Haible  <bruno@clisp.org>
4988
4989         cbrtl-ieee: Work around test failure on IRIX 6.5.
4990         * m4/cbrtl-ieee.m4: New file.
4991         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4992         test whether cbrtl works with a minus zero argument. Replace it if not.
4993         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4995         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4996         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4997         (Depends-on): Update conditions.
4998         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4999         m4/signbit.m4.
5000         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5001         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5002         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5003
5004         Tests for module 'cbrtl-ieee'.
5005         * modules/cbrtl-ieee-tests: New file.
5006         * tests/test-cbrtl-ieee.c: New file.
5007
5008         New module 'cbrtl-ieee'.
5009         * modules/cbrtl-ieee: New file.
5010
5011         Tests for module 'cbrt-ieee'.
5012         * modules/cbrt-ieee-tests: New file.
5013         * tests/test-cbrt-ieee.c: New file.
5014
5015         New module 'cbrt-ieee'.
5016         * modules/cbrt-ieee: New file.
5017
5018         Tests for module 'cbrtf-ieee'.
5019         * modules/cbrtf-ieee-tests: New file.
5020         * tests/test-cbrtf-ieee.c: New file.
5021         * tests/test-cbrt-ieee.h: New file.
5022
5023         New module 'cbrtf-ieee'.
5024         * modules/cbrtf-ieee: New file.
5025
5026 2012-02-29  Bruno Haible  <bruno@clisp.org>
5027
5028         cbrtf: Work around bug in IRIX 6.5 system function.
5029         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5030         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5031         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5032         work.
5033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5034         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5035         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5036         (Depends-on): Update conditions.
5037         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5038
5039 2012-02-29  Bruno Haible  <bruno@clisp.org>
5040
5041         Tests for module 'cbrtl'.
5042         * modules/cbrtl-tests: New file.
5043         * tests/test-cbrtl.c: New file.
5044
5045         New module 'cbrtl'.
5046         * lib/math.in.h (cbrtl): New declaration.
5047         * lib/cbrtl.c: New file.
5048         * m4/cbrtl.m4: New file.
5049         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5051         HAVE_DECL_CBRTL.
5052         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5053         HAVE_DECL_CBRTL.
5054         * modules/cbrtl: New file.
5055         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5056         * doc/posix-functions/cbrtl.texi: Mention the new module.
5057
5058 2012-02-29  Bruno Haible  <bruno@clisp.org>
5059
5060         Tests for module 'cbrtf'.
5061         * modules/cbrtf-tests: New file.
5062         * tests/test-cbrtf.c: New file.
5063
5064         New module 'cbrtf'.
5065         * lib/math.in.h (cbrtf): New declaration.
5066         * lib/cbrtf.c: New file.
5067         * m4/cbrtf.m4: New file.
5068         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5070         HAVE_DECL_CBRTF.
5071         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5072         HAVE_DECL_CBRTF.
5073         * modules/cbrtf: New file.
5074         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5075         * doc/posix-functions/cbrtf.texi: Mention the new module.
5076
5077 2012-02-29  Bruno Haible  <bruno@clisp.org>
5078
5079         cbrt: Provide replacement on MSVC and Minix.
5080         * lib/math.in.h (cbrt): New declaration.
5081         * lib/cbrt.c: New file.
5082         * m4/cbrt.m4: New file.
5083         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5084         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5085         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5086         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5087         (Depends-on): Add dependencies.
5088         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5089         * tests/test-math-c++.cc: Check the declaration of cbrt.
5090         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5091         replacement.
5092
5093 2012-02-29  Bruno Haible  <bruno@clisp.org>
5094
5095         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5096         * m4/hypotl-ieee.m4: New file.
5097         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5098         test whether hypotl works with mixed NaN and Infinity arguments.
5099         Replace it if not.
5100         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5102         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5103         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5104         (Depends-on): Update conditions.
5105         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5106         (Depends-on): Add hypot-ieee.
5107         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5108         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5109
5110         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5111         * m4/hypotf-ieee.m4: New file.
5112         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5113         test whether hypotf works with mixed NaN and Infinity arguments.
5114         Replace it if not.
5115         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5116         (Depends-on): Add hypot-ieee.
5117         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5118         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5119
5120         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5121         * lib/math.in.h (hypot): New declaration.
5122         * lib/hypot.c: New file.
5123         * m4/hypot-ieee.m4: New file.
5124         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5125         whether hypot works with mixed NaN and Infinity arguments. Replace it
5126         if not.
5127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5128         REPLACE_HYPOT.
5129         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5130         * modules/hypot (Files): Add lib/hypot.c.
5131         (Depends-on): Add dependencies.
5132         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5133         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5134         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5135         * tests/test-math-c++.cc: Check the declaration of hypot.
5136         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5137
5138         Tests for module 'hypotl-ieee'.
5139         * modules/hypotl-ieee-tests: New file.
5140         * tests/test-hypotl-ieee.c: New file.
5141
5142         New module 'hypotl-ieee'.
5143         * modules/hypotl-ieee: New file.
5144
5145         Tests for module 'hypot-ieee'.
5146         * modules/hypot-ieee-tests: New file.
5147         * tests/test-hypot-ieee.c: New file.
5148
5149         New module 'hypot-ieee'.
5150         * modules/hypot-ieee: New file.
5151
5152         Tests for module 'hypotf-ieee'.
5153         * modules/hypotf-ieee-tests: New file.
5154         * tests/test-hypotf-ieee.c: New file.
5155         * tests/test-hypot-ieee.h: New file.
5156
5157         New module 'hypotf-ieee'.
5158         * modules/hypotf-ieee: New file.
5159
5160 2012-02-29  Bruno Haible  <bruno@clisp.org>
5161
5162         Remove unused variables.
5163         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5164         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5165         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5166         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5167
5168 2012-02-29  Eric Blake  <eblake@redhat.com>
5169
5170         termios: fix pid_t always, not just for tcgetsid
5171         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5172         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5173         just when building tcgetsid.
5174
5175 2012-02-29  Bruno Haible  <bruno@clisp.org>
5176
5177         Tests for module 'hypotl'.
5178         * modules/hypotl-tests: New file.
5179         * tests/test-hypotl.c: New file.
5180
5181         New module 'hypotl'.
5182         * lib/math.in.h (hypotl): New declaration.
5183         * lib/hypotl.c: New file.
5184         * m4/hypotl.m4: New file.
5185         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5187         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5188         * modules/hypotl: New file.
5189         * tests/test-math-c++.cc: Check the hypotl declaration.
5190         * doc/posix-functions/hypotl.texi: Mention the new module.
5191
5192 2012-02-29  Eric Blake  <eblake@redhat.com>
5193
5194         tcgetsid: fix cygwin header bug
5195         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5196
5197         docs: update cygwin progress
5198         * doc/posix-functions/llround.texi (llround): Added in cygwin
5199         1.7.8.
5200         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5201         * doc/glibc-functions/program_invocation_name.texi
5202         (program_invocation_name): Likewise.
5203         * doc/glibc-functions/program_invocation_short_name.texi
5204         (program_invocation_short_name): Likewise.
5205         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5206         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5207         Likewise.
5208         * doc/posix-functions/pthread_spin_destroy.texi
5209         (pthread_spin_destroy): Added in cygwin 1.7.10.
5210         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5211         Likewise.
5212         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5213         Likewise.
5214         * doc/posix-functions/pthread_spin_trylock.texi
5215         (pthread_spin_trylock): Likewise.
5216         * doc/posix-functions/pthread_spin_unlock.texi
5217         (pthread_spin_unlock): Likewise.
5218         * doc/posix-functions/pthread_setschedprio.texi
5219         (pthread_setschedprio): Likewise.
5220         * doc/posix-functions/pthread_attr_getstack.texi
5221         (pthread_attr_getstack): Likewise.
5222         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5223         (pthread_attr_getstackaddr): Likewise.
5224         * doc/glibc-functions/pthread_getattr_np.texi
5225         (pthread_getattr_np): Likewise.
5226         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5227         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5228         * doc/posix-functions/clock_settime.texi (clock_settime):
5229         Likewise.
5230         * doc/posix-functions/pthread_attr_getguardsize.texi
5231         (pthread_attr_getguardsize): Likewise.
5232         * doc/posix-functions/pthread_attr_setguardsize.texi
5233         (pthread_attr_setguardsize): Likewise.
5234         * doc/posix-functions/pthread_attr_setstack.texi
5235         (pthread_attr_setstack): Likewise.
5236         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5237         (pthread_attr_setstackaddr): Likewise.
5238         * doc/posix-functions/clock_getcpuclockid.texi
5239         (clock_getcpuclockid): Likewise.
5240         * doc/posix-functions/pthread_getcpuclockid.texi
5241         (pthread_getcpuclockid): Likewise.
5242         * doc/glibc-functions/error.texi (error): Likewise.
5243         * doc/glibc-functions/error_at_line.texi (error_at_line):
5244         Likewise.
5245         * doc/glibc-functions/error_message_count.texi
5246         (error_message_count): Likewise.
5247         * doc/glibc-functions/error_one_per_line.texi
5248         (error_one_per_line): Likewise.
5249         * doc/glibc-functions/error_print_progname.texi
5250         (error_print_progname): Likewise.
5251         * doc/posix-functions/pthread_condattr_getclock.texi
5252         (pthread_condattr_getclock): Likewise.
5253         * doc/posix-functions/pthread_condattr_setclock.texi
5254         (pthread_condattr_setclock): Likewise.
5255         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5256         Likewise.
5257         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5258         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5259         * doc/glibc-functions/get_current_dir_name.texi
5260         (get_current_dir_name): Likewise.
5261         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5262         Likewise.
5263         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5264         wrong return type.
5265         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5266         1.7.11.
5267
5268 2012-02-29  Bruno Haible  <bruno@clisp.org>
5269
5270         Tests for module 'hypotf'.
5271         * modules/hypotf-tests: New file.
5272         * tests/test-hypotf.c: New file.
5273
5274         New module 'hypotf'.
5275         * lib/math.in.h (hypotf): New declaration.
5276         * lib/hypotf.c: New file.
5277         * m4/hypotf.m4: New file.
5278         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5280         REPLACE_HYPOTF.
5281         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5282         REPLACE_HYPOTF.
5283         * modules/hypotf: New file.
5284         * tests/test-math-c++.cc: Check the hypotf declaration.
5285         * doc/posix-functions/hypotf.texi: Mention the new module.
5286
5287         hypot: Prepare for hypotf module.
5288         * m4/hypot.m4: New file.
5289         * modules/hypot (Files): Add m4/hypot.m4.
5290         (configure.ac): Invoke gl_FUNC_HYPOT.
5291
5292 2012-02-29  Bruno Haible  <bruno@clisp.org>
5293
5294         hypot tests: More tests.
5295         * tests/test-hypot.c: Include <float.h>.
5296         (main): Add tests about overflow and underflow.
5297
5298 2012-02-29  Bruno Haible  <bruno@clisp.org>
5299
5300         math code: Add comments.
5301         * lib/acosl.c: Add comment about related glibc source files.
5302         * lib/asinl.c: Likewise.
5303         * lib/atanl.c: Likewise.
5304         * lib/expl.c: Likewise.
5305         * lib/logl.c: Likewise.
5306         * lib/sincosl.c: Likewise.
5307         * lib/sinl.c: Likewise.
5308         * lib/tanl.c: Likewise.
5309         * lib/trigl.c: Likewise.
5310         * lib/cosl.c: Likewise. Fix comments.
5311
5312 2012-02-28  Bruno Haible  <bruno@clisp.org>
5313
5314         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5315         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5316         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5317         HUGE_VALL are defined.
5318         (numeric_equald): Renamed from numeric_equal.
5319         (numeric_equalf, numeric_equall): New functions.
5320         (main): Check also HUGE_VALF, HUGE_VALL.
5321         * modules/math-tests (Files): Add tests/macros.h.
5322         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5323         HUGE_VALL.
5324
5325 2012-02-28  Bruno Haible  <bruno@clisp.org>
5326
5327         doc: Move ISO C11 feature notes into POSIX chapters.
5328         * doc/posix-functions/aligned_alloc.texi: Renamed from
5329         doc/glibc-functions/aligned_alloc.texi.
5330         * doc/posix-functions/quick_exit.texi: Renamed from
5331         doc/glibc-functions/quick_exit.texi.
5332         * doc/posix-headers/uchar.texi: Renamed from
5333         doc/glibc-headers/uchar.texi.
5334         * doc/posix-functions/c16rtomb.texi: Renamed from
5335         doc/glibc-functions/c16rtomb.texi.
5336         * doc/posix-functions/c32rtomb.texi: Renamed from
5337         doc/glibc-functions/c32rtomb.texi.
5338         * doc/posix-functions/mbrtoc16.texi: Renamed from
5339         doc/glibc-functions/mbrtoc16.texi.
5340         * doc/posix-functions/mbrtoc32.texi: Renamed from
5341         doc/glibc-functions/mbrtoc32.texi.
5342         * doc/gnulib.texi: Update.
5343         (Glibc uchar.h): Remove section.
5344         Suggested by Eric Blake.
5345
5346 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5347
5348         stdnoreturn: port to MSVC better
5349         MSVC standard headers use __declspec(noreturn), so #define noreturn
5350         to empty on that platform.  Reported by Bruno Haible in
5351         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5352         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5353         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5354
5355 2012-02-28  Bruno Haible  <bruno@clisp.org>
5356
5357         doc: Mention new glibc headers and functions.
5358         * doc/glibc-headers/uchar.texi: New file.
5359         * doc/glibc-functions/aligned_alloc.texi: New file.
5360         * doc/glibc-functions/c16rtomb.texi: New file.
5361         * doc/glibc-functions/c32rtomb.texi: New file.
5362         * doc/glibc-functions/clock_adjtime.texi: New file.
5363         * doc/glibc-functions/fanotify_init.texi: New file.
5364         * doc/glibc-functions/fanotify_mark.texi: New file.
5365         * doc/glibc-functions/inet6_opt_append.texi: New file.
5366         * doc/glibc-functions/inet6_opt_find.texi: New file.
5367         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5368         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5369         * doc/glibc-functions/inet6_opt_init.texi: New file.
5370         * doc/glibc-functions/inet6_opt_next.texi: New file.
5371         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5372         * doc/glibc-functions/inet6_rth_add.texi: New file.
5373         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5374         * doc/glibc-functions/inet6_rth_init.texi: New file.
5375         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5376         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5377         * doc/glibc-functions/inet6_rth_space.texi: New file.
5378         * doc/glibc-functions/login.texi: New file.
5379         * doc/glibc-functions/mbrtoc16.texi: New file.
5380         * doc/glibc-functions/mbrtoc32.texi: New file.
5381         * doc/glibc-functions/name_to_handle_at.texi: New file.
5382         * doc/glibc-functions/ntp_gettimex.texi: New file.
5383         * doc/glibc-functions/open_by_handle_at.texi: New file.
5384         * doc/glibc-functions/prlimit.texi: New file.
5385         * doc/glibc-functions/process_vm_readv.texi: New file.
5386         * doc/glibc-functions/process_vm_writev.texi: New file.
5387         * doc/glibc-functions/recvmmsg.texi: New file.
5388         * doc/glibc-functions/scandirat.texi: New file.
5389         * doc/glibc-functions/sendmmsg.texi: New file.
5390         * doc/glibc-functions/setns.texi: New file.
5391         * doc/glibc-functions/timespec_get.texi: New file.
5392         * doc/gnulib.texi: Include them.
5393         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5394         sections.
5395         Reported by Eric Blake.
5396
5397 2012-02-28  Bruno Haible  <bruno@clisp.org>
5398
5399         Avoid compilation errors with MSVC option -fp:strict.
5400         * lib/floor.c: Use MSVC specific pragma fenv_access.
5401         * lib/ceil.c: Likewise.
5402         * lib/trunc.c: Likewise.
5403         * lib/round.c: Likewise.
5404         * lib/rint.c: Likewise.
5405         * lib/fma.c: Likewise.
5406         * lib/integer_length.c: Likewise.
5407         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5409         * tests/test-floor2.c: Likewise.
5410         * tests/test-floorf2.c: Likewise.
5411         * tests/test-ceil2.c: Likewise.
5412         * tests/test-ceilf2.c: Likewise.
5413         * tests/test-trunc2.c: Likewise.
5414         * tests/test-truncf2.c: Likewise.
5415         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5416
5417 2012-02-27  Bruno Haible  <bruno@clisp.org>
5418
5419         Tests for module 'sqrtl-ieee'.
5420         * modules/sqrtl-ieee-tests: New file.
5421         * tests/test-sqrtl-ieee.c: New file.
5422
5423         New module 'sqrtl-ieee'.
5424         * modules/sqrtl-ieee: New file.
5425
5426         Tests for module 'sqrt-ieee'.
5427         * modules/sqrt-ieee-tests: New file.
5428         * tests/test-sqrt-ieee.c: New file.
5429
5430         New module 'sqrt-ieee'.
5431         * modules/sqrt-ieee: New file.
5432
5433         Tests for module 'sqrtf-ieee'.
5434         * modules/sqrtf-ieee-tests: New file.
5435         * tests/test-sqrtf-ieee.c: New file.
5436         * tests/test-sqrt-ieee.h: New file.
5437
5438         New module 'sqrtf-ieee'.
5439         * modules/sqrtf-ieee: New file.
5440
5441 2012-02-27  Bruno Haible  <bruno@clisp.org>
5442
5443         remainderl-ieee: Work around test failure on OSF/1.
5444         * m4/remainderl-ieee.m4: New file.
5445         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5446         present, test whether remainderl works with a zero second argument.
5447         Replace it if not.
5448         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5450         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5451         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5452         (Depends-on): Update conditions.
5453         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5454         (Depends-on): Add remainder-ieee.
5455         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5456         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5457         module.
5458
5459         remainderf-ieee: Work around test failure on OSF/1.
5460         * m4/remainderf-ieee.m4: New file.
5461         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5462         present, test whether remainderf works with a zero second argument.
5463         Replace it if not.
5464         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5466         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5467         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5468         (Depends-on): Update conditions.
5469         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5470         (Depends-on): Add remainder-ieee.
5471         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5472         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5473         module.
5474
5475         remainder-ieee: Work around test failure on OSF/1.
5476         * m4/remainder-ieee.m4: New file.
5477         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5478         present, test whether remainder works with a zero second argument.
5479         Replace it if not.
5480         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5482         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5483         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5484         (Depends-on): Update dependencies.
5485         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5486         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5487         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5488
5489         Tests for module 'remainderl-ieee'.
5490         * modules/remainderl-ieee-tests: New file.
5491         * tests/test-remainderl-ieee.c: New file.
5492
5493         New module 'remainderl-ieee'.
5494         * modules/remainderl-ieee: New file.
5495
5496         Tests for module 'remainder-ieee'.
5497         * modules/remainder-ieee-tests: New file.
5498         * tests/test-remainder-ieee.c: New file.
5499
5500         New module 'remainder-ieee'.
5501         * modules/remainder-ieee: New file.
5502
5503         Tests for module 'remainderf-ieee'.
5504         * modules/remainderf-ieee-tests: New file.
5505         * tests/test-remainderf-ieee.c: New file.
5506         * tests/test-remainder-ieee.h: New file.
5507
5508         New module 'remainderf-ieee'.
5509         * modules/remainderf-ieee: New file.
5510
5511 2012-02-27  Bruno Haible  <bruno@clisp.org>
5512
5513         modff, modfl: Fix configure syntax error.
5514         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5515         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5516
5517 2012-02-27  Bruno Haible  <bruno@clisp.org>
5518
5519         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5520         * m4/fmodl-ieee.m4: New file.
5521         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5522         whether fmodl works with zero arguments. Replace it if not.
5523         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5524         (Depends-on): Add fmod-ieee.
5525         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5526         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5527
5528         fmodf-ieee: Work around test failure on OSF/1.
5529         * m4/fmodf-ieee.m4: New file.
5530         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5531         whether fmodf works with zero arguments. Replace it if not.
5532         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5534         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5535         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5536         (Depends-on): Update dependencies.
5537         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5538         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5539         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5540
5541         fmodf-ieee: Work around test failure on MSVC 9.
5542         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5543         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5544
5545         fmod-ieee: Work around test failures on OSF/1, mingw.
5546         * m4/fmod-ieee.m4: New file.
5547         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5548         whether fmod works with zero arguments. Replace it if not.
5549         * lib/math.in.h (fmod): New declaration.
5550         * lib/fmod.c: New file.
5551         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5553         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5554         * modules/fmod (Files): Add lib/fmod.c.
5555         (Depends-on): Add math, isinf, trunc, fma.
5556         (configure.ac): Arrange to compile lib/fmod.c if needed.
5557         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5558         m4/signbit.m4.
5559         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5560         * tests/test-math-c++.cc: Check the declaration of fmod.
5561         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5562
5563         fmodl-ieee: Fix test failures.
5564         * lib/fmodl.c (fmodl): Treat Inf specially.
5565         * modules/fmodl (Depends-on): Add isinf.
5566
5567         Tests for module 'fmodl-ieee'.
5568         * modules/fmodl-ieee-tests: New file.
5569         * tests/test-fmodl-ieee.c: New file.
5570
5571         New module 'fmodl-ieee'.
5572         * modules/fmodl-ieee: New file.
5573
5574         Tests for module 'fmod-ieee'.
5575         * modules/fmod-ieee-tests: New file.
5576         * tests/test-fmod-ieee.c: New file.
5577
5578         New module 'fmod-ieee'.
5579         * modules/fmod-ieee: New file.
5580
5581         Tests for module 'fmodf-ieee'.
5582         * modules/fmodf-ieee-tests: New file.
5583         * tests/test-fmodf-ieee.c: New file.
5584         * tests/test-fmod-ieee.h: New file.
5585
5586         New module 'fmodf-ieee'.
5587         * modules/fmodf-ieee: New file.
5588
5589 2012-02-27  Bruno Haible  <bruno@clisp.org>
5590
5591         Tests for module 'rintl-ieee'.
5592         * modules/rintl-ieee-tests: New file.
5593         * tests/test-rintl-ieee.c: New file.
5594
5595         New module 'rintl-ieee'.
5596         * modules/rintl-ieee: New file.
5597
5598         Tests for module 'rint-ieee'.
5599         * modules/rint-ieee-tests: New file.
5600         * tests/test-rint-ieee.c: New file.
5601
5602         New module 'rint-ieee'.
5603         * modules/rint-ieee: New file.
5604
5605         Tests for module 'rintf-ieee'.
5606         * modules/rintf-ieee-tests: New file.
5607         * tests/test-rintf-ieee.c: New file.
5608         * tests/test-rint-ieee.h: New file.
5609
5610         New module 'rintf-ieee'.
5611         * modules/rintf-ieee: New file.
5612
5613 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5614
5615         regex: re_search etc. should return -2 when memory exhausted
5616         This bug was uncovered when testing 'grep'.  Without the fix,
5617         re_search and friends return -1 when memory is exhausted, but -1
5618         means no match, and this causes grep to falsely report no-match
5619         instead of memory-exhaustion.  See
5620         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5621         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5622         trouble; this can occur if re_search_internal ran out of memory.
5623
5624 2012-02-26  Bruno Haible  <bruno@clisp.org>
5625
5626         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5627         * m4/modfl-ieee.m4: New file.
5628         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5629         whether modfl works with Inf. Replace it if not.
5630         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5632         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5633         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5634         (Depends-on): Update dependencies.
5635         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5636         m4/signbit.m4.
5637         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5638         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5639
5640         modfl-ieee: Fix dependencies.
5641         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5642
5643         modfl-ieee: Fix test failures.
5644         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5645         * modules/modfl (Depends-on): Add isfinite, isinf.
5646
5647         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5648         * m4/modff-ieee.m4: New file.
5649         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5650         whether modff works with NaN and Inf. Replace it if not.
5651         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5653         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5654         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5655         (Depends-on): Update dependencies.
5656         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5657         m4/signbit.m4.
5658         (Depends-on): Add modf-ieee.
5659         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5660         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5661
5662         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5663         * m4/modf-ieee.m4: New file.
5664         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5665         whether modf works with NaN and Inf. Replace it if not.
5666         * lib/math.in.h (modf): New declaration.
5667         * lib/modf.c: New file.
5668         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5670         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5671         * modules/modf (Files): Add lib/modf.c.
5672         (Depends-on): Add math, isfinite, trunc, isinf.
5673         (configure.ac): Addrange to compile lib/modf.c if needed.
5674         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5675         m4/signbit.m4.
5676         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5677         * tests/test-math-c++.cc: Check the declaration of modf.
5678         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5679
5680         Tests for module 'modfl-ieee'.
5681         * modules/modfl-ieee-tests: New file.
5682         * tests/test-modfl-ieee.c: New file.
5683
5684         New module 'modfl-ieee'.
5685         * modules/modfl-ieee: New file.
5686
5687         Tests for module 'modf-ieee'.
5688         * modules/modf-ieee-tests: New file.
5689         * tests/test-modf-ieee.c: New file.
5690
5691         New module 'modf-ieee'.
5692         * modules/modf-ieee: New file.
5693
5694         Tests for module 'modff-ieee'.
5695         * modules/modff-ieee-tests: New file.
5696         * tests/test-modff-ieee.c: New file.
5697         * tests/test-modf-ieee.h: New file.
5698
5699         New module 'modff-ieee'.
5700         * modules/modff-ieee: New file.
5701
5702 2012-02-26  Bruno Haible  <bruno@clisp.org>
5703
5704         Tests for module 'fabsl-ieee'.
5705         * modules/fabsl-ieee-tests: New file.
5706         * tests/test-fabsl-ieee.c: New file.
5707
5708         New module 'fabsl-ieee'.
5709         * modules/fabsl-ieee: New file.
5710
5711         Tests for module 'fabs-ieee'.
5712         * modules/fabs-ieee-tests: New file.
5713         * tests/test-fabs-ieee.c: New file.
5714
5715         New module 'fabs-ieee'.
5716         * modules/fabs-ieee: New file.
5717
5718         Tests for module 'fabsf-ieee'.
5719         * modules/fabsf-ieee-tests: New file.
5720         * tests/test-fabsf-ieee.c: New file.
5721         * tests/test-fabs-ieee.h: New file.
5722
5723         New module 'fabsf-ieee'.
5724         * modules/fabsf-ieee: New file.
5725
5726 2012-02-26  Bruno Haible  <bruno@clisp.org>
5727
5728         Tests for module 'fmal-ieee'.
5729         * modules/fmal-ieee-tests: New file.
5730         * tests/test-fmal-ieee.c: New file.
5731
5732         New module 'fmal-ieee'.
5733         * modules/fmal-ieee: New file.
5734
5735         Tests for module 'fma-ieee'.
5736         * modules/fma-ieee-tests: New file.
5737         * tests/test-fma-ieee.c: New file.
5738
5739         New module 'fma-ieee'.
5740         * modules/fma-ieee: New file.
5741
5742         Tests for module 'fmaf-ieee'.
5743         * modules/fmaf-ieee-tests: New file.
5744         * tests/test-fmaf-ieee.c: New file.
5745         * tests/test-fma-ieee.h: New file.
5746
5747         New module 'fmaf-ieee'.
5748         * modules/fmaf-ieee: New file.
5749
5750 2012-02-26  Bruno Haible  <bruno@clisp.org>
5751
5752         Tests for module 'ldexpl-ieee'.
5753         * modules/ldexpl-ieee-tests: New file.
5754         * tests/test-ldexpl-ieee.c: New file.
5755
5756         New module 'ldexpl-ieee'.
5757         * modules/ldexpl-ieee: New file.
5758
5759         Tests for module 'ldexp-ieee'.
5760         * modules/ldexp-ieee-tests: New file.
5761         * tests/test-ldexp-ieee.c: New file.
5762
5763         New module 'ldexp-ieee'.
5764         * modules/ldexp-ieee: New file.
5765
5766         Tests for module 'ldexpf-ieee'.
5767         * modules/ldexpf-ieee-tests: New file.
5768         * tests/test-ldexpf-ieee.c: New file.
5769         * tests/test-ldexp-ieee.h: New file.
5770
5771         New module 'ldexpf-ieee'.
5772         * modules/ldexpf-ieee: New file.
5773
5774 2012-02-26  Bruno Haible  <bruno@clisp.org>
5775
5776         Refactor frexp*-ieee tests.
5777         * tests/test-frexp-ieee.h: New file.
5778         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5779         (main): Just call test_function.
5780         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5781         (main): Just call test_function.
5782         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5783         (main): Just call test_function.
5784         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5785         * modules/frexp-ieee-tests (Files): Likewise.
5786         * modules/frexpl-ieee-tests (Files): Likewise.
5787
5788         Tests for module 'frexpl-ieee'.
5789         * modules/frexpl-ieee-tests: New file.
5790         * tests/test-frexpl-ieee.c: New file.
5791
5792         New module 'frexpl-ieee'.
5793         * modules/frexpl-ieee: New file.
5794
5795         Tests for module 'frexp-ieee'.
5796         * modules/frexp-ieee-tests: New file.
5797         * tests/test-frexp-ieee.c: New file.
5798
5799         New module 'frexp-ieee'.
5800         * modules/frexp-ieee: New file.
5801
5802         Tests for module 'frexpf-ieee'.
5803         * modules/frexpf-ieee-tests: New file.
5804         * tests/test-frexpf-ieee.c: New file.
5805
5806         New module 'frexpf-ieee'.
5807         * modules/frexpf-ieee: New file.
5808
5809 2012-02-26  Bruno Haible  <bruno@clisp.org>
5810
5811         roundl-ieee tests: More tests.
5812         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5813         (main): Add tests for [MX] shaded specification in POSIX.
5814         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5815         (Depends-on): Add isnanl-nolibm.
5816
5817         round-ieee tests: More tests.
5818         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5819         (main): Add tests for [MX] shaded specification in POSIX.
5820         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5821         (Depends-on): Add isnand-nolibm.
5822
5823         roundf-ieee tests: More tests.
5824         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5825         (main): Add tests for [MX] shaded specification in POSIX.
5826         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5827         (Depends-on): Add isnanf-nolibm.
5828
5829         truncl-ieee tests: More tests.
5830         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5831         (main): Add tests for [MX] shaded specification in POSIX.
5832         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5833         (Depends-on): Add isnanl-nolibm.
5834
5835         trunc-ieee tests: More tests.
5836         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5837         (main): Add tests for [MX] shaded specification in POSIX.
5838         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5839         (Depends-on): Add isnand-nolibm.
5840
5841         truncf-ieee tests: More tests.
5842         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5843         (main): Add tests for [MX] shaded specification in POSIX.
5844         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5845         (Depends-on): Add isnanf-nolibm.
5846
5847         ceill-ieee tests: More tests.
5848         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5849         (main): Add tests for [MX] shaded specification in POSIX.
5850         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5851         (Depends-on): Add isnanl-nolibm.
5852
5853         ceil-ieee tests: More tests.
5854         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5855         (main): Add tests for [MX] shaded specification in POSIX.
5856         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5857         (Depends-on): Add isnand-nolibm.
5858
5859         ceilf-ieee tests: More tests.
5860         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5861         (main): Add tests for [MX] shaded specification in POSIX.
5862         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5863         (Depends-on): Add isnanf-nolibm.
5864
5865         floorl-ieee tests: More tests.
5866         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5867         (main): Add tests for [MX] shaded specification in POSIX.
5868         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5869         (Depends-on): Add isnanl-nolibm.
5870
5871         floor-ieee tests: More tests.
5872         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5873         (main): Add tests for [MX] shaded specification in POSIX.
5874         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5875         (Depends-on): Add isnand-nolibm.
5876
5877         floorf-ieee tests: More tests.
5878         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5879         (main): Add tests for [MX] shaded specification in POSIX.
5880         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5881         (Depends-on): Add isnanf-nolibm.
5882
5883 2012-02-26  Bruno Haible  <bruno@clisp.org>
5884
5885         fpieee: More comments.
5886         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
5887
5888 2012-02-25  Bruno Haible  <bruno@clisp.org>
5889
5890         Tests for module 'log10l'.
5891         * modules/log10l-tests: New file.
5892         * tests/test-log10l.c: New file.
5893         * tests/test-math-c++.cc: Check the declaration of log10l.
5894
5895         New module 'log10l'.
5896         * lib/math.in.h (log10l): New declaration.
5897         * lib/log10l.c: New file.
5898         * m4/log10l.m4: New file.
5899         * modules/log10l: New file.
5900         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
5901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
5902         HAVE_DECL_LOG10L.
5903         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
5904         HAVE_DECL_LOG10L.
5905         * doc/posix-functions/log10l.texi: Mention the new module.
5906
5907 2012-02-25  Bruno Haible  <bruno@clisp.org>
5908
5909         fmodl, remainder*: Avoid wrong results due to rounding errors.
5910         * lib/fmodl.c (fmodl): Correct the result if it is not within the
5911         expected bounds.
5912         * lib/remainderf.c (remainderf): Likewise.
5913         * lib/remainder.c (remainder): Likewise.
5914         * lib/remainderl.c (remainderl): Likewise.
5915
5916 2012-02-25  Bruno Haible  <bruno@clisp.org>
5917
5918         Tests for module 'remainderl'.
5919         * modules/remainderl-tests: New file.
5920         * tests/test-remainderl.c: New file.
5921         * tests/test-math-c++.cc: Check the declaration of remainderl.
5922
5923         New module 'remainderl'.
5924         * lib/math.in.h (remainderl): New declaration.
5925         * lib/remainderl.c: New file.
5926         * m4/remainderl.m4: New file.
5927         * modules/remainderl: New file.
5928         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
5929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
5930         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
5931         HAVE_REMAINDERL.
5932         * doc/posix-functions/remainderl.texi: Mention the new module.
5933
5934 2012-02-25  Bruno Haible  <bruno@clisp.org>
5935
5936         Tests for module 'remainderf'.
5937         * modules/remainderf-tests: New file.
5938         * tests/test-remainderf.c: New file.
5939         * tests/test-math-c++.cc: Check the declaration of remainderf.
5940
5941         New module 'remainderf'.
5942         * lib/math.in.h (remainderf): New declaration.
5943         * lib/remainderf.c: New file.
5944         * m4/remainderf.m4: New file.
5945         * modules/remainderf: New file.
5946         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
5947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
5948         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
5949         HAVE_REMAINDERF.
5950         * doc/posix-functions/remainderf.texi: Mention the new module.
5951
5952 2012-02-25  Bruno Haible  <bruno@clisp.org>
5953
5954         remainder: Support for MSVC.
5955         * lib/math.in.h (remainder): New declaration.
5956         * lib/remainder.c: New file.
5957         * m4/remainder.m4: New file.
5958         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
5959         (Depends-on): Add math, round, fma.
5960         (configure.ac): Use results of gl_FUNC_REMAINDER.
5961         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
5962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
5963         HAVE_DECL_REMAINDER.
5964         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
5965         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
5966         * tests/test-math-c++.cc: Check the declaration of remainder.
5967         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
5968         problems are fixed.
5969
5970 2012-02-25  Bruno Haible  <bruno@clisp.org>
5971
5972         Tests for module 'fmodl'.
5973         * modules/fmodl-tests: New file.
5974         * tests/test-fmodl.c: New file.
5975         * tests/test-math-c++.cc: Check the declaration of fmodl.
5976
5977         New module 'fmodl'.
5978         * lib/math.in.h (fmodl): New declaration.
5979         * lib/fmodl.c: New file.
5980         * m4/fmodl.m4: New file.
5981         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5982         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5983         REPLACE_FMODL.
5984         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5985         REPLACE_FMODL.
5986         * modules/fmodl: New file.
5987         * doc/posix-functions/fmodl.texi: Mention the new module.
5988
5989 2012-02-25  Bruno Haible  <bruno@clisp.org>
5990
5991         Tests for module 'modfl'.
5992         * modules/modfl-tests: New file.
5993         * tests/test-modfl.c: New file.
5994         * tests/test-math-c++.cc: Check the declaration of modfl.
5995
5996         New module 'modfl'.
5997         * lib/math.in.h (modfl): New declaration.
5998         * lib/modfl.c: New file.
5999         * m4/modfl.m4: New file.
6000         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6002         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6003         * modules/modfl: New file.
6004         * doc/posix-functions/modfl.texi: Mention the new module.
6005
6006 2012-02-25  Bruno Haible  <bruno@clisp.org>
6007
6008         Tests for module 'fabsl'.
6009         * modules/fabsl-tests: New file.
6010         * tests/test-fabsl.c: New file.
6011         * tests/test-math-c++.cc: Check the declaration of fabsl.
6012
6013         New module 'fabsl'.
6014         * lib/math.in.h (fabsl): New declaration.
6015         * lib/fabsl.c: New file.
6016         * m4/fabsl.m4: New file.
6017         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6019         REPLACE_FABSL.
6020         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6021         REPLACE_FABSL.
6022         * modules/fabsl: New file.
6023         * doc/posix-functions/fabsl.texi: Mention the new module.
6024
6025 2012-02-25  Bruno Haible  <bruno@clisp.org>
6026
6027         fabs tests: More tests.
6028         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6029         (zero): New variable.
6030         (main): Add tests for signed zero.
6031         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6032
6033         fabsf tests: More tests.
6034         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6035         (zero): New variable.
6036         (main): Add tests for signed zero.
6037         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6038
6039 2012-02-24  Bruno Haible  <bruno@clisp.org>
6040
6041         atanl: Provide function definition on MSVC.
6042         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6043         function pointer.
6044         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6045
6046 2012-02-24  Bruno Haible  <bruno@clisp.org>
6047
6048         acosl: Provide function definition on MSVC.
6049         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6050         function pointer.
6051         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6052
6053 2012-02-24  Bruno Haible  <bruno@clisp.org>
6054
6055         asinl: Provide function definition on MSVC.
6056         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6057         function pointer.
6058         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6059
6060 2012-02-24  Bruno Haible  <bruno@clisp.org>
6061
6062         tanl: Provide function definition on MSVC.
6063         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6064         function pointer.
6065         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6066
6067 2012-02-24  Bruno Haible  <bruno@clisp.org>
6068
6069         cosl: Provide function definition on MSVC.
6070         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6071         function pointer.
6072         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6073
6074 2012-02-24  Bruno Haible  <bruno@clisp.org>
6075
6076         sinl: Provide function definition on MSVC.
6077         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6078         function pointer.
6079         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6080
6081 2012-02-24  Bruno Haible  <bruno@clisp.org>
6082
6083         logl: Provide function definition on MSVC.
6084         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6085         function pointer.
6086         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6087
6088 2012-02-24  Bruno Haible  <bruno@clisp.org>
6089
6090         expl: Provide function definition on MSVC.
6091         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6092         function pointer.
6093         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6094
6095 2012-02-24  Bruno Haible  <bruno@clisp.org>
6096
6097         sqrtl: Provide function definition on MSVC.
6098         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6099         a function pointer.
6100         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6101
6102 2012-02-24  Bruno Haible  <bruno@clisp.org>
6103
6104         ceill: Provide function definition on MSVC.
6105         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6106         used as a function pointer.
6107         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6108
6109 2012-02-24  Bruno Haible  <bruno@clisp.org>
6110
6111         floorl: Provide function definition on MSVC.
6112         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6113         used as a function pointer.
6114         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6115
6116 2012-02-24  Bruno Haible  <bruno@clisp.org>
6117
6118         ceilf: Provide function definition on MSVC.
6119         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6120         used as a function pointer.
6121         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6122
6123 2012-02-24  Bruno Haible  <bruno@clisp.org>
6124
6125         floorf: Provide function definition on MSVC.
6126         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6127         used as a function pointer.
6128         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6129
6130 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6131
6132         stdnoreturn: new module
6133         This implements a replacement for C11's <stdnoreturn.h>.
6134         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6135         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6136         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6137         * tests/test-stdnoreturn.c: New files.
6138
6139 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6140
6141         regex: fix false multibyte matches in some regular expressions
6142         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6143         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6144         * lib/regex_internal.c (re_string_skip_chars):
6145         Fix miscomputation of remain_len that may cause incomplete
6146         multi-byte character and false match.
6147
6148 2012-02-24  Jim Meyering  <meyering@redhat.com>
6149
6150         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6151         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6152         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6153         Remove now-unnecessary str''cmp obfuscation.
6154         Suggested by Akim Demaille.
6155
6156 2012-02-24  Bruno Haible  <bruno@clisp.org>
6157
6158         streq: Rename macro.
6159         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6160         * NEWS: Mention the change.
6161         * lib/mbrtowc.c (mbrtowc): Update.
6162         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6163         * lib/wcwidth.c (wcwidth): Update.
6164         Suggested by Akim Demaille and Jim Meyering.
6165
6166 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6167
6168         regex: fix typo in definition of MIN
6169         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6170         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6171
6172 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6173             Bruno Haible  <bruno@clisp.org>
6174
6175         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6176         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6177         entries into a stack-allocated buffer directly.
6178         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6179
6180 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6181             Bruno Haible  <bruno@clisp.org>
6182
6183         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6184
6185          - There were several instances of this pattern:
6186
6187              for (;;) {
6188                n = acl (f, GETACLCNT, 0, NULL);
6189                [ allocate an array A of size N ]
6190                if (acl (f, GETACL, n, a) == n)
6191                  break;
6192              }
6193
6194            This loop might never terminate if some other process is constantly
6195            manipulating the file's ACL.  The loop should be rewritten to
6196            terminate.
6197
6198          - The acl (... GETACLNT ...) call is merely an optimization; its value
6199            is merely a hint as to how big to make the array.  A better
6200            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6201            and just guess a reasonably-big size, growing the size and trying
6202            again if it's not large enough.  This guarantees termination, and
6203            saves a system call.
6204
6205         * lib/acl-internal.h: Include <limits.h>.
6206         (MIN, SIZE_MAX): New macros.
6207         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6208         a stack-allocated buffer, and use malloc if it does not fit. Don't
6209         use GETACLCNT.
6210         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6211
6212 2012-02-19  Bruno Haible  <bruno@clisp.org>
6213
6214         acl: Fix endless loop on Solaris with vxfs.
6215         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6216         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6217         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6218         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6219         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6220         Reported by Bill Jones in
6221         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6222
6223 2012-02-19  Bruno Haible  <bruno@clisp.org>
6224
6225         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6226         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6227         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6228         that this function returns 0 in some more cases.
6229
6230 2012-02-19  Bruno Haible  <bruno@clisp.org>
6231
6232         acl: Update doc references.
6233         * doc/acl-resources.txt: Update links to Solaris documentation.
6234
6235 2012-02-19  Bruno Haible  <bruno@clisp.org>
6236
6237         Fix test failure in many locales on Solaris 11.
6238         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6239         'tr' arguments.
6240         * tests/test-pipe-filter-ii1.c (main): Likewise.
6241         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6242         expressions in the C locale.
6243         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6244         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6245
6246 2012-02-19  Bruno Haible  <bruno@clisp.org>
6247
6248         gnulib-tool: Improve usage message.
6249         * gnulib-tool (func_usage): Move doc of --help and --version to the
6250         section "Operation modes".
6251
6252 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6253
6254         README-release: make it easier to execute commands
6255         * top/README-release: break commands out on to separate lines.
6256
6257 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6258
6259         GNUmakefile: simplify detection of unconfigured trees
6260         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6261         whether the tree make is being run from is already configured or
6262         not.  Related simplifications.
6263
6264 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6265
6266         * gnulib-tool (func_usage): Document --help and --version.
6267
6268 2012-02-11  Jim Meyering  <meyering@redhat.com>
6269
6270         bootstrap: don't exit 0 upon gnulib-tool failure
6271         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6272         its exit status, not 0.
6273
6274 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6275
6276         README-release: various improvements
6277         * top/README-release: Give a command to push changes for the
6278         release.  Add "distcheck" to list of other pre-release checks.
6279         Fix instance of "make stable" which should be "make TYPE".
6280
6281 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6282
6283         maint: replace FSF snail-mail addresses with URLs
6284         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6285         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6286         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6287         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6288         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6289         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6290         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6291         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6292         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6293         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6294         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6295         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6296         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6297         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6298         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6299         * lib/glthread/thread.c, lib/glthread/thread.h:
6300         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6301         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6302         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6303         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6304         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6305         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6306         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6307         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6308         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6309         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6310         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6311         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6312         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6313         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6314         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6315         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6316         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6317         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6318         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6319         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6320         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6321         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6322         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6323         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6324         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6325         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6326         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6327         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6328         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6329         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6330         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6331         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6332         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6333         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6334         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6335         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6336         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6337         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6338         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6339         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6340         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6341         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6342         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6343         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6344         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6345         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6346         * tests/test-poll.c, tests/test-quotearg-simple.c:
6347         * tests/test-quotearg.c, tests/test-quotearg.h:
6348         * tests/test-round-ieee.c, tests/test-round1.c:
6349         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6350         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6351         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6352         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6353         * tests/test-strerror.c, tests/test-strerror_r.c:
6354         * tests/test-strsignal.c, tests/test-strverscmp.c:
6355         * tests/test-xmemdup0.c:
6356         Replace FSF snail mail addresses with URLs, as per GNU coding
6357         standards.  See glibc bug
6358         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6359
6360 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6361
6362         README-release: capitalize a word and split a line
6363         * top/README-release: Fix punctuation and spacing.
6364
6365 2012-02-08  Akim Demaille  <demaille@gostai.com>
6366
6367         fatal-signal: use C prototypes (with explicit void).
6368         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6369         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6370
6371 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6372
6373         regex: spelling fix
6374         * lib/regexec.c: spelling fix
6375
6376         regex: rely on stdint.h for SIZE_MAX
6377         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6378
6379 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6380
6381         regex: merge glibc changes
6382
6383         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6384         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6385         (init_word_char): Work even if bitset words are not exactly 32 or
6386         64 bits wide.  Don't assume there are no padding bits.
6387         * lib/regex.c [_LIBC]: Do not include <config.h>.
6388         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6389         and -Wtype-limits.
6390         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6391         needless disagreement with glibc.  All uses changed.  Define it to
6392         1 only if _GNU_SOURCE, to match glibc.
6393         (_REG_RM_NAME): Remove; no longer needed, since the names in
6394         question are now all protected by __USE_GNU.
6395         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6396         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6397         * lib/regex_internal.h (MIN): New macro.
6398
6399         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6400         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6401
6402         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6403         * lib/regex_internal.c (re_string_fetch_byte_case):
6404         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6405         is miscompiled, and it turns out it is because of an incorrect
6406         attribute on re_string_fetch_byte_case.  Unlike
6407         re_string_peek_byte_case, this one is really not pure, it modifies
6408         memory (increments pstr->cur_idx), and with the pure attribute GCC
6409         assumed it doesn't and it cached the presumed value of
6410         regexp->cur_idx in a variable across the
6411          for (;; ++i)
6412            {
6413              if (i >= BRACKET_NAME_BUF_SIZE)
6414                return REG_EBRACK;
6415              if (token->type == OP_OPEN_CHAR_CLASS)
6416                ch = re_string_fetch_byte_case (regexp);
6417              else
6418                ch = re_string_fetch_byte (regexp);
6419              if (re_string_eoi(regexp))
6420                return REG_EBRACK;
6421              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6422                break;
6423              elem->opr.name[i] = ch;
6424            }
6425
6426         2011-11-29 Andreas Schwab <schwab@redhat.com>
6427         * lib/regcomp.c (build_equiv_class):
6428         Fix access after end of search string in regex matcher.
6429
6430         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6431         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6432
6433         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6434         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6435
6436         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6437         * lib/regcomp.c (parse_branch, parse_sub_exp):
6438         More regex memory leak fixes and tests.
6439         (parse_sub_exp, parse_bracket_exp):
6440         Fix memory leak for some invalid regular expressions.
6441
6442         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6443         * lib/regex_internal.c, lib/regexec.c:
6444         Fix unnecessary overallocation due to incomplete character.  When
6445         incomplete characters are found at the end of a string the code
6446         ran amok and allocated lots of memory.  Stricter limits are now in
6447         place.
6448
6449         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6450         * lib/regex.h: Update documentation.
6451
6452         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6453         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6454
6455         2010-05-05 Andreas Schwab <schwab@redhat.com>
6456         * lib/regexec.c (find_collation_sequence_value):
6457         Fix lookup of collation sequence value during regexp matching.
6458
6459         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6460         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6461
6462         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6463         * lib/regex.h: Cleanup namespace.
6464
6465         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6466         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6467
6468         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6469         * lib/regex_internal.h: Prevent some declarations and definitions
6470         to be seen when used in tests.
6471
6472         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6473         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6474         __libc_lock_* macros if not _LIBC.
6475         (struct re_dfa_t): Add lock.
6476
6477 2012-02-07  Eric Blake  <eblake@redhat.com>
6478
6479         maint.mk: also prohibit lower-case @var@
6480         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6481         lower case, like @top_srcdir@.
6482
6483 2012-02-04  Eric Blake  <eblake@redhat.com>
6484
6485         canonicalize: avoid uninitialized memory use
6486         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6487         random '/' left in dest.
6488         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6489
6490 2012-02-04  Bruno Haible  <bruno@clisp.org>
6491
6492         isatty: Fix test failure of ptsname_r on native Windows.
6493         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6494         and don't set errno.
6495         (isatty): Test first whether fd is valid. Set errno when returning 0.
6496
6497 2012-02-04  Bruno Haible  <bruno@clisp.org>
6498
6499         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6500         * tests/test-spawn-pipe-main.c: Include progname.h.
6501         (main): Invoke set_program_name.
6502         * modules/spawn-pipe-tests (Depends-on): Add progname.
6503
6504         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6505         * tests/test-nonblocking-socket-main.c: Include progname.h.
6506         (main): Invoke set_program_name.
6507         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6508
6509         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6510         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6511         (main): Invoke set_program_name.
6512         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6513
6514 2012-02-04  Eric Blake  <eblake@redhat.com>
6515
6516         canonicalize-lgpl: fix // handling
6517         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6518
6519         canonicalize: fix // handling
6520         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6521         /// to //, since only // is special.
6522
6523 2012-02-04  Bruno Haible  <bruno@clisp.org>
6524
6525         ioctl: Fix test failure on native Windows.
6526         * lib/ioctl.c: Include msvc-nothrow.h.
6527         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6528
6529 2012-02-04  Bruno Haible  <bruno@clisp.org>
6530
6531         fsync: Avoid test failure on native Windows.
6532         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6533         read-only.
6534
6535 2012-02-04  Bruno Haible  <bruno@clisp.org>
6536
6537         sys_select: Avoid syntax error on OpenBSD 5.0.
6538         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6539         currently being included, just include the system's <sys/select.h>.
6540
6541 2012-02-04  Bruno Haible  <bruno@clisp.org>
6542
6543         sys_select: Avoid syntax error on OpenBSD 5.0.
6544         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6545         <sys/select.h>, not before.
6546         Reported by Jiri B <jirib@devio.us>.
6547
6548 2012-02-04  Bruno Haible  <bruno@clisp.org>
6549
6550         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6551         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6552         global variables.
6553         * tests/test-get-rusage-data.c (main): Likewise.
6554         Reported by Jim Meyering.
6555
6556 2012-02-04  Bruno Haible  <bruno@clisp.org>
6557
6558         stdioext: Fix last commit.
6559         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6560
6561 2012-02-03  Bruno Haible  <bruno@clisp.org>
6562
6563         stdioext: Add tentative support for Plan9.
6564         * lib/stdio-impl.h: Include <errno.h>.
6565         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6566         * lib/freadable.c (freadable): Likewise.
6567         * lib/fwritable.c (fwritable): Likewise.
6568         * lib/fbufmode.c (fbufmode): Likewise.
6569         * lib/freading.c (freading): Likewise.
6570         * lib/fwriting.c (fwriting): Likewise.
6571         * lib/freadptr.c (freadptr): Likewise.
6572         * lib/freadseek.c (freadptrinc): Likewise.
6573         * lib/freadahead.c (freadahead): Likewise.
6574         * lib/fpurge.c (fpurge): Likewise.
6575         * lib/fseeko.c (rpl_fseeko): Likewise.
6576         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6577         Reported by Jens Staal <staal1978@gmail.com>.
6578
6579 2012-02-02  Jim Meyering  <meyering@redhat.com>
6580
6581         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6582         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6583         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6584         not even to try to add the attribute.  Instead, add a pragma to suppress
6585         the suggestion/warning.
6586
6587 2012-01-31  Karl Berry  <karl@gnu.org>
6588
6589         setstate doc: typo.
6590         * doc/posix-functions/setstate.texi (setstate): { not (.
6591
6592 2012-01-31  Bruno Haible  <bruno@clisp.org>
6593
6594         popen: Make more robust on Windows.
6595         * lib/popen.c: On native Windows, use the _popen based code even if
6596         HAVE_POPEN is set.
6597         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6598         environment variable on native Windows.
6599
6600 2012-01-30  Bruno Haible  <bruno@clisp.org>
6601
6602         pclose: Fix typo.
6603         * lib/stdio.in.h (pclose): Fix typo in warning message.
6604
6605 2012-01-30  Bruno Haible  <bruno@clisp.org>
6606
6607         doc about getlogin_r, setstate.
6608         * doc/posix-functions/getlogin_r.texi: List the incompatible
6609         declaration problem under "not fixed by gnulib".
6610         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6611         problem on Solaris 11 and other platforms.
6612
6613 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6614             Bruno Haible  <bruno@clisp.org>
6615
6616         poll tests: Make test more robust.
6617         * tests/test-poll.c: Include macros.h.
6618         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6619         return value of various I/O operations.
6620         * modules/poll-tests (Files): Add tests/macros.h.
6621
6622 2012-01-30  Bruno Haible  <bruno@clisp.org>
6623
6624         sys_stat: Fix support for mingw64 and MSVC.
6625         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6626         header files already do it.
6627         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6628         stat itself.
6629         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6630
6631 2012-01-30  Bruno Haible  <bruno@clisp.org>
6632
6633         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6635         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6636
6637 2012-01-29  Bruno Haible  <bruno@clisp.org>
6638
6639         quotearg: Fix test failure on MacOS X 10.5.
6640         * tests/test-quotearg-simple.c: Include localcharset.h.
6641         (main): If the locale encoding is not ASCII, bypass the tests of
6642         locale_quoting_style and clocale_quoting_style.
6643         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6644
6645 2012-01-29  Jim Meyering  <meyering@redhat.com>
6646
6647         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6648         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6649         detect uses of canonicalize_file_name.
6650
6651 2012-01-28  Bruno Haible  <bruno@clisp.org>
6652
6653         test-framework-sh: Fix test failure with AIX 7.1 diff.
6654         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6655         in column 1, like 'diff -c' does.
6656         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6657         whether 'diff -u' is used. Instead, test whether the output contains
6658         some '@' character.
6659
6660 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6661
6662         strtoimax: eliminate need for stdint.h, inttypes.h checks
6663         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6664         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6665         the prerequisites for a recently-introduced strtoimax test.
6666         I guess this might cause strtoimax to be replaced when not
6667         strictly necessary on older hosts, but this shouldn't introduce
6668         any bugs and it should make Emacs 'configure' faster on typical
6669         modern hosts.  Problem discovered when importing the latest gnulib
6670         to an Emacs test version.
6671         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6672
6673 2012-01-28  Bruno Haible  <bruno@clisp.org>
6674
6675         sys_time: Override 'struct timeval' on some native Windows platforms.
6676         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6677         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6678         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6679         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6680         needs to be overridden.
6681         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6682         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6683         * tests/test-sys_select.c: Check that the tv_sec member has the same
6684         size as a 'time_t'.
6685         * tests/test-sys_time.c: Likewise.
6686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6687         is set, set also REPLACE_GETTIMEOFDAY.
6688         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6689         convert the resulting 'struct timeval' before returning.
6690         * lib/select.c: Include <sys/time.h>.
6691         (select, timeval): Undefine at the right place.
6692         * modules/select (Depends-on): Add sys_time.
6693         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6694         some Windows platforms.
6695         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6696
6697 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6698
6699         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6700         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6701         an integer.
6702         * lib/fcntl.c (dupfd): Likewise.
6703         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6704
6705 2012-01-28  Bruno Haible  <bruno@clisp.org>
6706
6707         fcntl: Avoid compilation error on native Windows.
6708         * modules/fcntl (Depends-on): Add 'close'.
6709
6710 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6711
6712         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6713         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6714         pointer to an integer.
6715         * lib/poll.c (IsConsoleHandle): Likewise.
6716         * lib/isatty.c (IsConsoleHandle): Likewise.
6717
6718 2012-01-28  Jim Meyering  <meyering@redhat.com>
6719
6720         doc: clarify README-release
6721         * top/README-release: Clarify: you should make a point to have
6722         the latest stable versions of build tools in your PATH, and the
6723         reference to buildreq is solely for its list of tool names, not
6724         for its minimal-functional version numbers.
6725         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6726
6727         maint.mk: use more readable (yet functionally equivalent) quoting
6728         It is common to quote a single quote in a single quoted string like
6729         this:  '...'\''...'.  Unless you know the idiom, that looks like
6730         gibberish, so prefer to double-quote the string when possible.
6731         Then you can use a more readable, lone single quote: "...'..."
6732         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6733         "don't" is more readable than the equivalent 'don'\''t'.
6734         (sc_cast_of_x_alloc_return_value): Likewise.
6735         (sc_cast_of_alloca_return_value): Likewise.
6736         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6737         rather than '\'':'\''.
6738
6739 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6740
6741         stdalign: relax _Alignof and tighten _Alignas test
6742         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6743         as it was too strict: alignof must divide offsetof, but it need
6744         not equal offsetof.  Inspired by Joseph S. Myers's comment
6745         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6746         Conversely, tighten the _Alignas test a bit, as the resulting
6747         alignment must be exactly 8.
6748
6749 2012-01-27  Bruno Haible  <bruno@clisp.org>
6750
6751         stdalign: Document the last change.
6752         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6753
6754 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6755
6756         stdalign: check that alignof and offsetof are consistent
6757         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6758         Problem reported for gnulib by Richard W.M. Jones in
6759         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6760
6761 2012-01-27  Jim Meyering  <meyering@redhat.com>
6762
6763         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6764         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6765         convert a sequence with gaps to the minimal containing range.
6766         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6767         * tests/test-update-copyright.sh: Test for this.
6768         The FSF confirmed it is ok to do this, assuming there is at
6769         least one significant change per year in the affected range:
6770         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6771
6772 2012-01-26  Bruno Haible  <bruno@clisp.org>
6773
6774         pipe2: refine doc about thread-safety
6775         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6776         multithread-safety problem.
6777         * doc/glibc-functions/accept4.texi: Likewise.
6778
6779 2012-01-26  Bruno Haible  <bruno@clisp.org>
6780
6781         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6782         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6783         In the test program, include <fcntl.h>, for O_RDONLY.
6784
6785 2012-01-26  Eric Blake  <eblake@redhat.com>
6786
6787         pipe2: document lack of thread-safety in replacement
6788         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6789         issue in replacement.
6790         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6791         Based on a report by Eric Wong.
6792
6793 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6794             Bruno Haible  <bruno@clisp.org>
6795
6796         malloca: Avoid warnings on x86_64 mingw64.
6797         * lib/malloca.c: Include <stdint.h>.
6798         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6799         * modules/malloca (Depends-on): Add stdint.
6800         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6801
6802 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6803
6804         obstack: remove __STDC__ conditionals
6805         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6806         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6807         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6808         m4/include_next.m4 as the only gnulib-maintained places that still
6809         refer to __STDC__.
6810
6811 2012-01-24  Bruno Haible  <bruno@clisp.org>
6812
6813         havelib: Modern quoting.
6814         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6815         the recent change to the GNU coding standards.
6816
6817 2012-01-24  Bruno Haible  <bruno@clisp.org>
6818
6819         stdint: Improve support for Android.
6820         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6821         Reported by Simon Josefsson <simon@josefsson.org>.
6822
6823 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6824
6825         doc: omit trailing empty lines from INSTALL etc.
6826         * doc/Makefile (INSTALL): Omit trailing empty lines.
6827         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6828         omit trailing empty lines.  This simplifies the build procedure.
6829
6830 2012-01-23  Jim Meyering  <meyering@redhat.com>
6831
6832         tests: avoid spurious warnings about gl_sockets_startup
6833         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
6834         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
6835         reporting a "statement with no effect".
6836         * tests/test-accept.c (main): Mark as "(void)".
6837         * tests/test-accept4.c (main): Likewise.
6838         * tests/test-bind.c (main): Likewise.
6839         * tests/test-connect.c (main): Likewise.
6840         * tests/test-getpeername.c (main): Likewise.
6841         * tests/test-getsockname.c (main): Likewise.
6842         * tests/test-getsockopt.c (main): Likewise.
6843         * tests/test-listen.c (main): Likewise.
6844         * tests/test-recv.c (main): Likewise.
6845         * tests/test-recvfrom.c (main): Likewise.
6846         * tests/test-send.c (main): Likewise.
6847         * tests/test-sendto.c (main): Likewise.
6848         * tests/test-setsockopt.c (main): Likewise.
6849         * tests/test-shutdown.c (main): Likewise.
6850
6851 2012-01-21  Bruno Haible  <bruno@clisp.org>
6852
6853         locale-fr.m4: Fix for Android.
6854         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
6855         failure of the test program on Bionic libc.
6856
6857 2012-01-21  Jim Meyering  <meyering@redhat.com>
6858
6859         bootstrap: fail when bootstrap_post_import_hook fails
6860         Otherwise, it's far too easy to miss diagnostics emitted
6861         between gnulib-tool's output and that of running configure.
6862         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
6863
6864 2012-01-17  Jim Meyering  <meyering@redhat.com>
6865
6866         maint: enable sc_trailing_blank
6867         * build-aux/pmccabe.css: Remove trailing blanks.
6868         * doc/acl-cygwin.txt: Likewise.
6869         * doc/gnu-oids.texi: Likewise
6870         * cfg.mk: Enable sc_trailing_blank.
6871         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
6872
6873 2012-01-17  Jim Meyering  <meyering@redhat.com>
6874
6875         maint: enable sc_prohibit_openat_without_use
6876         * cfg.mk: Enable sc_prohibit_openat_without_use.
6877         Exempt lib/selinux-at.c.
6878
6879 2012-01-17  Jim Meyering  <meyering@redhat.com>
6880
6881         maint: enable sc_prohibit_cloexec_without_use
6882         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
6883         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
6884
6885 2012-01-17  Jim Meyering  <meyering@redhat.com>
6886
6887         maint: enable sc_prohibit_intprops_without_use
6888         * cfg.mk: Enable sc_prohibit_intprops_without_use
6889         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
6890
6891 2012-01-17  Jim Meyering  <meyering@redhat.com>
6892
6893         maint: enable sc_prohibit_hash_pjw_without_use
6894         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
6895         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
6896         to match any use of \<hash_pjw\>, i.e., not necessarily with a
6897         following " (".
6898
6899 2012-01-17  Jim Meyering  <meyering@redhat.com>
6900
6901         maint: enable double-word-prohibiting rule
6902         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
6903         Exempt three files.
6904
6905 2012-01-17  Jim Meyering  <meyering@redhat.com>
6906
6907         maint: remove empty lines at EOF, but excluding modules/*
6908         Apply syntax rules at home as well as abroad.  Most changes
6909         were induced by running this:
6910           make srcdir=. _build-aux=build-aux -f top/maint.mk \
6911             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
6912             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
6913         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
6914         Exempt modules/* and two binary files.
6915         Also exempt doc/INSTALL*, per request from Bruno Haible.
6916         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
6917         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
6918         * doc/Copyright/request-assign.future: Likewise.
6919         * doc/Copyright/request-disclaim.changes: Likewise.
6920         * doc/INSTALL: Likewise.
6921         * doc/INSTALL.ISO: Likewise.
6922         * doc/INSTALL.UTF-8: Likewise.
6923         * doc/acl-cygwin.txt: Likewise.
6924         * doc/acl-resources.txt: Likewise.
6925         * doc/fdl-1.2.texi: Likewise.
6926         * doc/fdl-1.3.texi: Likewise.
6927         * doc/fdl.texi: Likewise.
6928         * lib/argp-pin.c: Likewise.
6929         * lib/round.c: Likewise.
6930         * lib/unicase/u16-totitle.c: Likewise.
6931         * lib/unictype/block_test.c: Likewise.
6932         * lib/uninorm/canonical-decomposition.c: Likewise.
6933         * m4/README: Likewise.
6934         * m4/relocatable-lib.m4: Likewise.
6935         * tests/test-isnand-nolibm.c: Likewise.
6936         * tests/test-isnand.c: Likewise.
6937         * tests/uninorm/NormalizationTest.txt: Likewise.
6938
6939 2012-01-17  Jim Meyering  <meyering@redhat.com>
6940
6941         maint: add framework to run syntax-check rules against gnulib sources
6942         * cfg.mk: New file, to disable all currently-failing tests.
6943         We'll enable them one by one, as they are made to pass.
6944         * Makefile (sc_maint): New rule.
6945
6946 2012-01-21  Bruno Haible  <bruno@clisp.org>
6947
6948         stdint: Add support for Android.
6949         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
6950         include the system's <stdint.h>.
6951         Reported by Simon Josefsson <simon@josefsson.org>.
6952
6953 2012-01-19  Jim Meyering  <meyering@redhat.com>
6954
6955         bootstrap: add bootstrap_post_import_hook
6956         Bison does still need something like the gnulib_mk_hook whose
6957         invocation I had to remove along with slurp in commit 767ccd40.
6958         Technically, we could get along without it, but doing so would
6959         have required living with a warning and a mandatory post-bootstrap
6960         automake rerun.
6961         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
6962         (bootstrap_post_import_hook): New function.
6963         Invoke it after gnulib-tool --import and before autoreconf.
6964
6965 2012-01-18  Jim Meyering  <meyering@redhat.com>
6966
6967         gitlog-to-changelog: don't use "no_"-prefixed variable name
6968         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
6969         to enable both --cluster and --no-cluster.  Change variable name,
6970         s/\$no_cluster/$cluster/, and reverse usage to match.
6971
6972         gitlog-to-changelog: use "||", not "or" in expressions
6973         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
6974         expressions.
6975
6976 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6977
6978         gitlog-to-changelog: new option --no-cluster
6979         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6980         clustering of adjacent commit messages.
6981
6982 2012-01-17  Jim Meyering  <meyering@redhat.com>
6983
6984         maint: spell file systems with two words, not one
6985         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6986         two words, not one.
6987
6988 2012-01-16  Jim Meyering  <meyering@redhat.com>
6989
6990         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6991         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6992
6993 2012-01-16  Eric Blake  <eblake@redhat.com>
6994
6995         bootstrap: cater to autoconf 2.59
6996         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6997         is not available.
6998
6999         bootstrap: properly check for libtool
7000         * build-aux/bootstrap (libtoolize): Also run libtool when older
7001         usage is detected.
7002
7003 2012-01-15  Bruno Haible  <bruno@clisp.org>
7004
7005         Improve support for MSVC 9.
7006         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7007         clashes on MSVC.
7008         * lib/fcntl.in.h: Likewise.
7009         * lib/stdlib.in.h: Likewise.
7010         * lib/sys_stat.in.h: Likewise.
7011
7012 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7013
7014         gnupload: we hold the master copy of this script now
7015         For motivation and more information, see:
7016         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7017         * build-aux/gnupload: Make it clear in the heading comments that the
7018         master copy of this file is maintained by gnulib.  Since we are at
7019         it, bump its copyright year and ...
7020         ($scriptversion): ... the date in its version.
7021         ($usage): Patches and bug reports should be sent to the gnulib list,
7022         not the automake one.
7023         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7024         anymore.
7025
7026 2012-01-15  Bruno Haible  <bruno@clisp.org>
7027
7028         Fix module 'random'.
7029         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7030         initstate, setstate are declared.
7031
7032 2012-01-14  Bruno Haible  <bruno@clisp.org>
7033
7034         Tests for module 'random'.
7035         * modules/random-tests: New file.
7036         * tests/test-random.c: New file, based on tests/test-random_r.c.
7037
7038         New module 'random'.
7039         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7040         declarations.
7041         * lib/random.c: New file, based on glibc/stdlib/random.c.
7042         * m4/random.m4: New file.
7043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7044         HAVE_RANDOM.
7045         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7046         * modules/random: New file.
7047         * config/srclist.txt: Add an entry for random.c.
7048         * doc/posix-functions/random.texi: Mention the 'random' module.
7049         * doc/posix-functions/initstate.texi: Likewise.
7050         * doc/posix-functions/setstate.texi: Likewise.
7051         * doc/posix-functions/srandom.texi: Likewise.
7052
7053 2012-01-12  Bruno Haible  <bruno@clisp.org>
7054
7055         random_r: Use common idioms.
7056         * lib/random_r.c: Include <stdlib.h> first.
7057
7058         random_r: Override incompatible API on AIX, OSF/1.
7059         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7060         Override the system function if REPLACE_RANDOM_R is 1.
7061         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7062         and OSF/1, set REPLACE_RANDOM_R.
7063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7064         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7065         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7066         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7067         * doc/glibc-functions/random_r.texi: Likewise.
7068         * doc/glibc-functions/setstate_r.texi: Likewise.
7069
7070         random_r: Support for MSVC 9.
7071         * lib/random_r.c: Include stdint.h, not inttypes.h.
7072
7073 2012-01-12  Eric Blake  <eblake@redhat.com>
7074
7075         inet_ntop: guard extra work by IF_LINT
7076         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7077         better code generation when not checking for warnings.
7078         Suggested by Paul Eggert and Jim Meyering.
7079
7080         strptime: fix regression on mingw
7081         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7082         Fix regression.  Reported by Bruno Haible.
7083
7084 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7085             Bruno Haible  <bruno@clisp.org>
7086
7087         copy-file: add error-code-returning variant.
7088         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7089         (qcopy_file_preserving): New declaration.
7090         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7091         copy_file_preserving. Change return type to 'int'. Don't emit an error
7092         message here.
7093         (copy_file_preserving): New function.
7094         * tests/test-copy-file.c: Include <stdlib.h>.
7095         (main): Test qcopy_file_preserving if the environment variable
7096         NO_STDERR_OUTPUT is set.
7097         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7098         with NO_STDERR_OUTPUT
7099         * tests/test-copy-file-2.sh: Likewise.
7100
7101 2012-01-10  Bruno Haible  <bruno@clisp.org>
7102
7103         copy-file: Use 'quote' module consistently.
7104         * lib/copy-file.c (copy_file_preserving): Use quote().
7105
7106         copy-file: Refactor.
7107         * lib/copy-file.c: Include quote.h.
7108         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7109         message here.
7110         * modules/copy-file (Depends-on): Add quote.
7111
7112         acl: Export qcopy_acl.
7113         * lib/acl.h (qcopy_acl): New declaration.
7114         * lib/copy-acl.c (qcopy_acl): Make non-static.
7115
7116         acl: Rename a local variable.
7117         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7118
7119         acl: Align return values of copy_acl and qcopy_acl.
7120         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7121         maybe < -1.
7122
7123 2012-01-11  Eric Blake  <eblake@redhat.com>
7124
7125         strptime: silence gcc warnings
7126         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7127         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7128         Reported by Daniel P. Berrange.
7129
7130         inet_ntop: silence gcc warning
7131         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7132         Reported by Daniel P. Berrange.
7133
7134 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7135
7136         getloadavg test: skip the test on GNU/Linux without /proc mounted
7137         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7138         file.  When /proc is not mounted, it always fails with ENOENT.
7139         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7140         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7141
7142 2012-01-10  Bruno Haible  <bruno@clisp.org>
7143
7144         regex: Avoid link error on MSVC 9.
7145         * modules/regex (Depends-on): Add wctype.
7146
7147 2012-01-10  Bruno Haible  <bruno@clisp.org>
7148
7149         doc: Mention --with-tests option.
7150         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7151         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7152         --with-tests.
7153         Reported by Reuben Thomas.
7154
7155 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7156
7157         users.txt: order package names lexicographically.
7158         * users.txt: Order package names lexicographically.
7159
7160 2012-01-10  Jim Meyering  <meyering@redhat.com>
7161
7162         maint.mk: fix description in comment
7163         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7164
7165         ignore-value: remove deprecated ignore_ptr function
7166         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7167         * NEWS: Note this.
7168
7169 2012-01-09  Jim Meyering  <meyering@redhat.com>
7170
7171         test-init.sh: avoid a subshell
7172         * tests/test-init.sh: Remove protective subshell.
7173         Suggested by Bernhard Voelker.  While a subshell is normally
7174         required to protect against older shells (Solaris, FreeBSD) that
7175         warn about a missing program before performing redirection, the
7176         shell-selection tests performed by init.sh probably exclude any
7177         offending shell.
7178
7179 2012-01-08  Bruno Haible  <bruno@clisp.org>
7180
7181         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7182         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7183         variable.
7184
7185 2012-01-08  Bruno Haible  <bruno@clisp.org>
7186
7187         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7188         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7189         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7190         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7191         macro.
7192         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7193         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7194         * lib/spawn_faction_addopen.c: Add workaround implementation if
7195         HAVE_WORKING_POSIX_SPAWN.
7196         * modules/spawn (Makefile): Substitute
7197         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7198         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7199         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7200         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7201         (Depends-on): Update conditions.
7202         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7203         the Solaris 11 bug.
7204
7205 2012-01-08  Bruno Haible  <bruno@clisp.org>
7206
7207         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7208         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7209         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7210         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7211         macro.
7212         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7213         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7214         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7215         HAVE_WORKING_POSIX_SPAWN.
7216         * modules/spawn (Makefile): Substitute
7217         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7218         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7219         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7220         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7221         (Depends-on): Update conditions.
7222         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7223         the Solaris 11 bug.
7224
7225 2012-01-08  Bruno Haible  <bruno@clisp.org>
7226
7227         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7228         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7229         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7230         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7231         HAVE_WORKING_POSIX_SPAWN.
7232         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7233         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7234         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7235         * lib/spawn_faction_addclose.c: Add workaround implementation if
7236         HAVE_WORKING_POSIX_SPAWN.
7237         * modules/spawn (Makefile): Substitute
7238         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7239         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7240         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7241         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7242         (Depends-on): Update conditions.
7243         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7244         the Solaris 11 bug.
7245
7246 2012-01-08  Bruno Haible  <bruno@clisp.org>
7247
7248         doc: Update for Solaris 11 2011-11.
7249         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7250         * m4/printf.m4: Update comments.
7251
7252 2012-01-08  Bruno Haible  <bruno@clisp.org>
7253
7254         mktime: Avoid compilation error on Solaris 11.
7255         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7256
7257 2012-01-08  Bruno Haible  <bruno@clisp.org>
7258
7259         doc: Small fix.
7260         * doc/posix-headers/nl_types.texi: Correct platforms list.
7261
7262 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7263
7264         Add lgpl-3.0 module.
7265         * MODULES.html.sh (Support for building documentation): Add
7266         lgpl-3.0.
7267         * modules/lgpl-3.0: New file.
7268
7269 2012-01-08  Jim Meyering  <meyering@redhat.com>
7270
7271         select.c: indent with spaces, not TABs
7272         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7273
7274 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7275
7276         quotearg: do not use grave accent for left quote
7277         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7278         locale_quoting_style.
7279         (quotearg_buffer_restyled): Fix example.
7280         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7281
7282 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7283
7284         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7285         Most programs do not have translation catalogs for English and much
7286         less separate catalogs for British and American English.  Drop the
7287         suggestion to translators about these two, and provide it
7288         automatically for Unicode locales.  Like most programs, even those
7289         using American English, we use single quotation marks.  This conflicts
7290         with the American typographic convention, but works better when you
7291         cite the entire error message within double quotes.  It also tries not
7292         to clash with established practice and with what non-gnulib programs
7293         will usually do.
7294         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7295         using an UTF-8 or GB-18030 locale.  The list of other locales with
7296         quotes was provided by Bruno Haible.
7297         (quotearg_buffer_restyled): Adjust instructions to translators.
7298         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7299         text, since this would be wrong when using Unicode.
7300         * modules/quotearg: Depend on c-strcaseeq.
7301
7302 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7303
7304         quotearg: fix Wikipedia link
7305         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7306
7307 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7308
7309         Fix for mingw with MSVC9.
7310         * m4/ld-version-script.m4: Check that compiler rejects version
7311         scripts with syntax errors.  Reported by Bruno Haible
7312         <bruno@clisp.org>.
7313
7314 2012-01-06  Bruno Haible  <bruno@clisp.org>
7315
7316         Talk about "native Windows API", not "Woe32".
7317         * lib/accept4.c: Update comments to mention native Windows.
7318         * lib/execute.c: Likewise.
7319         * lib/fatal-signal.c: Likewise.
7320         * lib/localcharset.c: Likewise.
7321         * lib/nanosleep.c: Likewise.
7322         * lib/nl_langinfo.c: Likewise.
7323         * lib/pclose.c: Likewise.
7324         * lib/pipe-filter-gi.c: Likewise.
7325         * lib/pipe-filter-ii.c: Likewise.
7326         * lib/pipe.c: Likewise.
7327         * lib/pipe2.c: Likewise.
7328         * lib/popen.c: Likewise.
7329         * lib/progreloc.c: Likewise.
7330         * lib/relocatable.c: Likewise.
7331         * lib/sigaction.c: Likewise.
7332         * lib/sigprocmask.c: Likewise.
7333         * lib/spawn-pipe.h: Likewise.
7334         * lib/spawn-pipe.c: Likewise.
7335         * lib/spawni.c: Likewise.
7336         * lib/stat-time.h: Likewise.
7337         * lib/w32spawn.h: Likewise.
7338         * tests/test-isatty.c: Likewise.
7339         * lib/config.charset: More comments.
7340         * doc/gnulib-intro.texi: Mention native Windows.
7341         * doc/posix-functions/_Exit_C99.texi: Likewise.
7342         * doc/posix-headers/fcntl.texi: Likewise.
7343
7344 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7345
7346         argp: Avoid crash if translator uses % characters in a translation.
7347         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7348         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7349
7350 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7351
7352         doc: C11 and C++11 are now official
7353         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7354         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7355         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7356         * modules/stdalign:
7357         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7358
7359 2012-01-06  Bruno Haible  <bruno@clisp.org>
7360
7361         uc-is-grapheme-break tests: Tweak.
7362         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7363         message.
7364
7365 2012-01-06  Bruno Haible  <bruno@clisp.org>
7366
7367         test-init.sh: correct the test for diff -u
7368         * tests/test-init.sh: Also redirect stdout to /dev/null.
7369
7370 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7371
7372         Use ', not `, for quoting output.
7373         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7374         (print_changelog_deltas, get_tool_versions, main program):
7375         * build-aux/git-version-gen:
7376         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7377         * build-aux/move-if-change (help):
7378         * build-aux/useless-if-before-free (usage, main program):
7379         * check-module (parse_module_file, usage)
7380         (find_included_lib_files, check_module):
7381         * lib/argmatch.c (main) [TEST]:
7382         * lib/argp-help.c (_help):
7383         * lib/getopt1.c (main) [TEST]:
7384         * lib/git-merge-changelog.c (usage):
7385         * lib/xstrtol-error.c (xstrtol_error):
7386         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7387         * m4/argz.m4 (gl_FUNC_ARGZ):
7388         * m4/bison.m4 (gl_BISON):
7389         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7390         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7391         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7392         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7393         * m4/gc-random.m4 (gl_GC_RANDOM):
7394         * m4/intl.m4 (gt_CHECK_DECL):
7395         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7396         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7397         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7398         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7399         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7400         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7401         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7402         * tests/test-dirname.c (main):
7403         * tests/test-getpass.c (main):
7404         * tests/test-iconvme.c (main):
7405         * tests/test-parse-datetime.c (LOG):
7406         * tests/test-xstrtoimax.sh:
7407         * tests/test-xstrtol.sh:
7408         * tests/test-xstrtoll.sh:
7409         * tests/test-xstrtoumax.sh:
7410         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7411         * top/GNUmakefile (abort-due-to-no-makefile):
7412         Quote 'like this', not `like this', as per the recent change to
7413         the GNU coding standards.
7414
7415 2012-01-05  Bruno Haible  <bruno@clisp.org>
7416
7417         strtoimax: Don't force a replacement on systems where intmax_t is int.
7418         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7419         'intmax_t' is not larger than 'int'.
7420         Reported by Pádraig Brady <P@draigBrady.com>.
7421
7422 2012-01-05  Bruno Haible  <bruno@clisp.org>
7423
7424         doc: Mention NetBSD bugs.
7425         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7426         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7427
7428 2012-01-05  Bruno Haible  <bruno@clisp.org>
7429
7430         strtoumax tests: Enhance tests.
7431         * tests/test-strtoumax.c (main): Add tests for large values.
7432
7433 2012-01-05  Bruno Haible  <bruno@clisp.org>
7434
7435         strtoimax: Work around AIX 5.1 bug.
7436         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7437         definition.
7438         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7439         Set HAVE_STRTOIMAX.
7440         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7441         REPLACE_STRTOIMAX.
7442         * modules/inttypes-incomplete (Makefile.am): Substitute
7443         REPLACE_STRTOIMAX.
7444         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7445         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7446         (Depends-on): Update conditions.
7447         * tests/test-strtoimax.c (main): Add tests for large values.
7448         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7449
7450 2012-01-05  Bruno Haible  <bruno@clisp.org>
7451
7452         inttypes: Modernize.
7453         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7454         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7455         (Makefile.am): Update inttypes.h rule.
7456
7457 2012-01-05  Jim Meyering  <meyering@redhat.com>
7458
7459         init.sh: don't waste a subshell just to redirect stderr
7460         * tests/init.sh: In testing for diff -u and diff -c, use a
7461         stderr-redirecting exec inside `...` rather than a subshell.
7462
7463         test-init.sh: avoid failure on HP-UX 11.00
7464         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7465         resolves to diff -c or cmp.  Reported by Bruno Haible.
7466
7467 2012-01-05  Bruno Haible  <bruno@clisp.org>
7468
7469         Tests for module 'strtoull'.
7470         * modules/strtoull-tests: New file.
7471         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7472
7473 2012-01-05  Bruno Haible  <bruno@clisp.org>
7474
7475         Tests for module 'strtoll'.
7476         * modules/strtoll-tests: New file.
7477         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7478
7479 2012-01-05  Bruno Haible  <bruno@clisp.org>
7480
7481         Tests for module 'strtoul'.
7482         * modules/strtoul-tests: New file.
7483         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7484
7485 2012-01-05  Bruno Haible  <bruno@clisp.org>
7486
7487         Tests for module 'strtol'.
7488         * modules/strtol-tests: New file.
7489         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7490
7491 2012-01-04  Jim Meyering  <meyering@redhat.com>
7492
7493         test-init.sh: accommodate Solaris 5.10's different diff -u output
7494         * tests/test-init.sh: Also exempt @@ lines from the comparison
7495         of diff output, since Solaris 5.10 and GNU diff formats differ.
7496         Reported by Stefano Lattarini.
7497
7498 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7499
7500         test-posixtm: don't assume signed integer wraparound
7501         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7502         after signed integer overflow.  Inspired by (though it may not
7503         fix) Bruno Haible's bug report in
7504         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7505
7506         Spell out "Windows 9x" and "Windows XP".
7507         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7508         "Windows 9x" and "WinXP" with "Windows XP".
7509
7510 2012-01-04  Jim Meyering  <meyering@redhat.com>
7511
7512         test-vc-list-files-cvs.sh: remove obsolete comment
7513         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7514         double exit.  Now that's all encapsulated via skip_ and Exit.
7515
7516 2012-01-04  Bruno Haible  <bruno@clisp.org>
7517
7518         Talk about "native Windows API", not "Win32".
7519         * lib/classpath.c: Update comments to mention native Windows.
7520         * lib/csharpexec.c: Likewise.
7521         * lib/dup2.c: Likewise.
7522         * lib/error.c: Likewise.
7523         * lib/fcntl.c: Likewise.
7524         * lib/filename.h: Likewise.
7525         * lib/findprog.c: Likewise.
7526         * lib/get-rusage-as.c: Likewise.
7527         * lib/get-rusage-data.c: Likewise.
7528         * lib/getpagesize.c: Likewise.
7529         * lib/javaexec.c: Likewise.
7530         * lib/msvc-inval.c: Likewise.
7531         * lib/msvc-nothrow.c: Likewise.
7532         * lib/nanosleep.c: Likewise.
7533         * lib/nonblocking.c: Likewise.
7534         * lib/printf-parse.c: Likewise.
7535         * lib/setlocale.c: Likewise.
7536         * lib/sigaction.c: Likewise.
7537         * lib/strerror_r.c: Likewise.
7538         * lib/tmpdir.c: Likewise.
7539         * lib/vasnprintf.c: Likewise.
7540         * lib/w32spawn.h: Likewise.
7541         * lib/waitpid.c: Likewise.
7542         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7543         * m4/locale-ar.m4: Likewise.
7544         * m4/locale-fr.m4: Likewise.
7545         * m4/locale-ja.m4: Likewise.
7546         * m4/locale-tr.m4: Likewise.
7547         * m4/locale-zh.m4: Likewise.
7548         * m4/printf.m4: Likewise.
7549         * tests/test-cloexec.c: Likewise.
7550         * tests/test-copy-acl.sh: Likewise.
7551         * tests/test-copy-file.sh: Likewise.
7552         * tests/test-file-has-acl.sh: Likewise.
7553         * tests/test-set-mode-acl.sh: Likewise.
7554         * tests/test-dup-safer.c: Likewise.
7555         * tests/test-dup2.c: Likewise.
7556         * tests/test-dup3.c: Likewise.
7557         * tests/test-fcntl.c: Likewise.
7558         * tests/test-nonblocking-pipe.h: Likewise.
7559         * tests/test-nonblocking-socket.h: Likewise.
7560         * tests/test-pipe.c: Likewise.
7561         * tests/test-pipe2.c: Likewise.
7562         * tests/test-spawn-pipe-child.c: Likewise.
7563         * doc/acl-resources.txt: Likewise.
7564         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7565         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7566         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7567         * lib/localcharset.c: Update comments to mention native Windows.
7568         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7569         * lib/localename.c: Likewise.
7570         * lib/progreloc.c: Likewise.
7571         * lib/relocatable.c: Likewise.
7572         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7573         (windows_compute_revents): Renamed from win32_compute_revents.
7574         (windows_compute_revents_socket): Renamed from
7575         win32_compute_revents_socket.
7576         * lib/select.c: Update comments to mention native Windows.
7577         (windows_poll_handle): Renamed from win32_poll_handle.
7578         * m4/threadlib.m4: Update comments to mention native Windows.
7579         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7580         --enable-threads=windows instead of --enable-threads=win32. Set
7581         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7582         * lib/glthread/lock.h: Update comments to mention native Windows.
7583         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7584         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7585         USE_WIN32_THREADS.
7586         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7587         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7588         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7589         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7590         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7591         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7592         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7593         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7594         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7595         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7596         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7597         * tests/test-tls.c: Likewise.
7598         Rationale:
7599         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7600         on both 32-bit and 64-bit Windows systems.
7601         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7602         line of distinction is between "native Windows" on one side and Unix/
7603         POSIX systems on the other side. More details in
7604         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7605         Suggested by Paul Eggert.
7606
7607 2012-01-03  Bruno Haible  <bruno@clisp.org>
7608
7609         isatty: Support for MSVC 9.
7610         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7611         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7612         (_isatty_nothrow): New function.
7613         (isatty): Use it instead of _isatty.
7614         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7615         * lib/poll.c (IsConsoleHandle): Likewise.
7616         * lib/select.c (IsConsoleHandle): Likewise.
7617         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7618         (gl_PREREQ_ISATTY): New macro.
7619         * modules/isatty (Depends-on): Add msvc-inval.
7620         (configure.ac): Invoke gl_PREREQ_ISATTY.
7621
7622 2012-01-03  Jim Meyering  <meyering@redhat.com>
7623
7624         maint.mk: remove temporary transition aid from over 1.5 years ago
7625         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7626         purpose was to aid in the transition (avoiding silent malfunction)
7627         from that old name to the new _sc_search_regexp.  This shim was
7628         added by commit 219c504b.
7629
7630         init.sh: do not try to accommodate compare arguments starting with "-"
7631         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7632         compare arguments that start with "-".  Besides, we do not worry
7633         about this when invoking diff or cmp; why start now with sed?
7634         Using "--" to separate options from argument would trigger sed
7635         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7636         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7637
7638 2012-01-02  Bruno Haible  <bruno@clisp.org>
7639
7640         Enhance tests for module 'isatty'.
7641         * modules/isatty-tests (Depends-on): Add pipe-posix.
7642         * tests/test-isatty.c: Include <fcntl.h>.
7643         (DEV_NULL): New macro.
7644         (main): Test the resut of isatty() also on regular files, pipes, and
7645         /dev/null.
7646
7647         New module 'isatty'.
7648         * lib/unistd.in.h (isatty): New declaration.
7649         * lib/isatty.c: New file, based on an idea of
7650         Bastien Roucariès <roucaries.bastien@gmail.com>.
7651         * m4/isatty.m4: New file.
7652         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7653         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7654         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7655         REPLACE_ISATTY.
7656         * modules/isatty: New file.
7657         * doc/posix-functions/isatty.texi: Mention the new module.
7658         Suggested by Paolo Bonzini.
7659
7660 2012-01-02  Bruno Haible  <bruno@clisp.org>
7661
7662         canonicalize: Tweak 2011-12-29 commit.
7663         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7664         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7665
7666 2012-01-02  Jim Meyering  <meyering@redhat.com>
7667
7668         gitlog-to-changelog: describe input syntax in --help output
7669         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7670
7671         gitlog-to-changelog: fix typo in --help: show backslash before email @
7672         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7673         in sources, but not in actual output.
7674
7675 2011-12-30  Jim Meyering  <meyering@redhat.com>
7676
7677         gitlog-to-changelog: don't malfunction when name contains %-directive
7678         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7679         in a name string cause trouble.  E.g., with a user name of "%s",
7680         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7681
7682 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7683
7684         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7685         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7686         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7687         the "  (tiny change)" notation that is appended to the standard
7688         ChangeLog "date  name  email" header line.
7689
7690 2012-01-01  Jim Meyering  <meyering@redhat.com>
7691
7692         test-framework-sh: init.sh: fix "make dist" failure
7693         When using gnulib-tool's --with-tests option and any module that
7694         depends on test-framework-sh, "make dist" would fail due to the
7695         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7696         in the gltests directory, and not in the gllib/ directory.
7697         One way to work around that is to move the EXTRA_DIST += init.sh
7698         from the primary module to the -tests one:
7699         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7700         * modules/test-framework-sh (Makefile.am): ...not here.
7701         Reported by Tom G. Christensen in
7702         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7703
7704         version-etc: update copyright year reported by --version
7705         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7706
7707 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7708
7709         canonicalize: only stat() if required
7710         * lib/canonicalize.c (canonicalize_filename_mode):
7711         Avoid calling l?stat() when both CAN_MISSING,
7712         and CAN_NOLINKS are set, as we neither need
7713         to resolve symlinks or test component existence.
7714
7715 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7716
7717         doc: cover st_ino issues once; add OpenVMS etc.
7718         * doc/posix-functions/stat.texi (stat):
7719         * doc/posix-functions/lstat.texi (lstat):
7720         * doc/posix-functions/fstatat.texi (fstatat):
7721         * doc/posix-functions/fstat.texi (fstat):
7722         Move general 'struct stat' stuff to sys_stat.texi,
7723         leaving behind a pointer.
7724         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7725         Merge duplicate info about 'struct stat' problems into here.
7726         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7727         and suggest partial workarounds.
7728
7729         same-inode: port to OpenVMS
7730         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7731         three st_ino values.
7732
7733 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7734
7735         canonicalize: fix references to stat() and lstat()
7736         * lib/canonicalize.c (canonicalize_filename_mode):
7737         Ensure references always resolve to a replacement
7738         function if required (even via a macro).
7739
7740 2011-12-30  Jim Meyering  <meyering@redhat.com>
7741
7742         gitlog-to-changelog: remove a little duplication
7743         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7744         rather than twice.
7745
7746 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7747
7748         canonicalize: add support for not resolving symlinks
7749         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7750         indicate we don't want to follow symlinks.  Also
7751         provide CAN_MODE_MASK to aid setting these existing
7752         mutually exclusive values.
7753         * lib/canonicalize.c (canonicalize_filename_mode):
7754         Extract the flags from can_mode parameter, which
7755         are currently just used to select between stat()
7756         and lstat().  Also ensure that mutually exclusive
7757         values are flagged immediately as invalid.
7758         * tests/test-canonicalize.c: Verify symlinks are
7759         not followed, and that invalid flag combinations
7760         are diagnosed.
7761
7762 2011-12-25  Jim Meyering  <meyering@redhat.com>
7763
7764         gitlog-to-changelog: do not clump multi-paragraph entries
7765         Identical header lines (date,name,email+coauthors) are suppressed,
7766         thus putting all entries with those same characteristics under
7767         a single header.  However, when a log entry consists of two or
7768         more paragraphs, it may not be clear where it starts and ends.
7769         This change makes it so that such an entry is always separated
7770         from others by a header line, even when that header would
7771         otherwise be suppressed.
7772         * build-aux/gitlog-to-changelog: Implement the above.
7773         Inspired by a related request from Stefano Lattarini in
7774         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7775
7776 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7777
7778         announce-gen: fix `cmd' typo in diagnostic
7779         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7780         diagnostic: a missing '$' meant that the command was not output.
7781
7782 2011-12-23  Jim Meyering  <meyering@redhat.com>
7783
7784         test-framework-sh: distribute init.sh
7785         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7786         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7787         fail due to the lack of init.sh.
7788
7789         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7790         * modules/atexit-tests: Rather than listing tests/init.sh,
7791         now that there's a module for it, simply depend on that new module.
7792         * modules/closein-tests: Likewise.
7793         * modules/exclude-tests: Likewise.
7794         * modules/getcwd-tests: Likewise.
7795         * modules/perror-tests: Likewise.
7796         * modules/pread-tests: Likewise.
7797         * modules/pwrite-tests: Likewise.
7798         * modules/vc-list-files-tests: Likewise.
7799         * modules/verify-tests: Likewise.
7800         * modules/xalloc-die-tests: Likewise.
7801         * modules/xstrtoimax-tests: Likewise.
7802         * modules/xstrtol-tests: Likewise.
7803         * modules/xstrtoll-tests: Likewise.
7804         * modules/xstrtoumax-tests: Likewise.
7805         * modules/yesno-tests: Likewise.
7806
7807 2011-12-22  Jim Meyering  <meyering@redhat.com>
7808
7809         test-framework-sh: add minimal tests of init.sh's compare function
7810         * modules/test-framework-sh-tests: New file.
7811         * tests/test-init.sh: New file.
7812
7813         test-framework-sh: new module
7814         * modules/test-framework-sh: New file.
7815         * MODULES.html.sh (Support for maintaining and releasing projects):
7816         List it.
7817
7818         init.sh: do not emit simulated diff output to stderr
7819         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7820
7821 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7822
7823         .gitignore: ignore gnulib.dvi and regex.info
7824         * doc/.gitignore:add gnulib.dvi and regex.info
7825
7826 2011-12-22  Jim Meyering  <meyering@redhat.com>
7827
7828         init.sh: correct previous change
7829         * tests/init.sh (compare): My previous change was wrong.
7830         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7831
7832         init.sh: avoid unwarranted test failure when using "set -e"
7833         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
7834         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
7835         a use like "compare exp out" would get evoke an unconditional failure.
7836
7837 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
7838
7839         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
7840         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
7841         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
7842         autoreconf that did not.
7843         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
7844         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7845
7846 2011-12-17  Jim Meyering  <meyering@redhat.com>
7847
7848         bootstrap: remove some now-unneeded code
7849         This script arose back when gnulib-tool was young.
7850         Since then, it has seen improvements that render much of this
7851         script unnecessary.  In particular, it can now make symlinks
7852         to the files it uses.  Also, I no longer see as much value in
7853         marking files as read-only via comments.
7854         If you relied on the symlink-creation feature of the preceding
7855         version of this script, you can get most of that functionality
7856         by adding the --symlink option to the definition of
7857         gnulib_tool_option_extras in your bootstrap.conf file.
7858         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
7859         Run autopoint and libtoolize *before* gnulib-tool.
7860         After it, run an abbreviated autoreconf, rather than a loop around
7861         all tools.
7862         (slirp, bt_mark_as_generated): Remove functions.
7863
7864 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7865
7866         ftoastr: fix typo
7867         * lib/ftoastr.h: Fix misspelling in comment.
7868
7869 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
7870
7871         * top/README-release: fix punctuation.
7872
7873 2011-12-17  Jim Meyering  <meyering@redhat.com>
7874
7875         bootstrap: correct the recent buildreq change
7876         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
7877         had no effect.
7878         * build-aux/bootstrap (buildreq): Bracket each search term with
7879         "*...*", so that the shell "case" statement works as intended.
7880         Add comments.
7881
7882 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
7883
7884         build: let bootstrap resort to wget when downloading .po files
7885         * build-aux/bootstrap (download_po_files): Fallback to wget when
7886         downloading the .po files via rsync fails.  This is necessary to
7887         bootstrap from behind a strict firewall.
7888
7889 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7890
7891         stdint: don't assume C++11 when compiling with g++
7892         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
7893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
7894         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
7895         work also in C++ before C++11, as that improperly inhibits
7896         generating a substitute stdint.h for that case.
7897
7898 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7899
7900         alloca: protect comment from gnulib-tool
7901         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
7902         that gnulib-tool doesn't think it's a license, and munge it to
7903         say "GCC version 3".
7904
7905 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
7906
7907         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
7908         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
7909         $(abs_top_builddir) instead of $(top_builddir).
7910
7911 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
7912
7913         strftime-tests: also test nanoseconds
7914         * tests/test-strftime.c (T): Add a test of %N.
7915
7916 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
7917
7918         inttypes, stdint: add C++11 support
7919         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
7920         when including inttypes.h and stdint.h.  Support this change to
7921         the standard.
7922         * doc/posix-headers/inttypes.texi (inttypes.h):
7923         * doc/posix-headers/stdint.texi (stdint.h): Document this.
7924         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
7925         Define if not defined already, for the benefit of pre-C++11 hosts.
7926         Define the standard format macros (e.g., PRId8) always.
7927         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
7928         Likewise, if __cpluspus.  Define the standard constant and limit
7929         macros (e.g., INT8_C, INT8_MAX) always.
7930         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
7931         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
7932         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
7933         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
7934         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
7935         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
7936         Likewise.
7937
7938 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7939
7940         nonblocking tests: Fix test failure on Linux/PPC.
7941         Suggested by Prerna Saxena in
7942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
7943         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
7944         Set to 1100000.
7945
7946 2011-12-12  Jim Meyering  <meyering@redhat.com>
7947
7948         argmatch: don't hard-code `' when listing valid option arguments
7949         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
7950         use the quote function to add quotes.  Use fputs rather than
7951         fprintf for the format string with no format directive.
7952
7953 2011-12-07  Eric Blake  <eblake@redhat.com>
7954
7955         bootstrap: detect tools required by gnulib-tool
7956         * build-aux/bootstrap (buildreq): Provide minimum implicit
7957         dependencies.
7958         * DEPENDENCIES: Mention patch as a prereq.
7959
7960 2011-12-04  Bruno Haible  <bruno@clisp.org>
7961
7962         sethostname: Port to Windows platforms.
7963         * lib/sethostname.c: Provide an alternate implementation for Windows
7964         platforms.
7965         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
7966         (main): Skip the test if sethostname() fails with EPERM. On Windows
7967         platforms, don't check the result of gethostname().
7968
7969 2011-12-04  Bruno Haible  <bruno@clisp.org>
7970             Jim Meyering  <meyering@redhat.com>
7971
7972         tests: Avoid spurious error message on platforms without mktemp program.
7973         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
7974
7975 2011-12-04  Bruno Haible  <bruno@clisp.org>
7976
7977         sethostname: Fix documentation.
7978         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7979         "not fixed" section.
7980
7981 2011-12-03  Bruno Haible  <bruno@clisp.org>
7982
7983         gnulib-tool: Verify that the License field is present and non-empty.
7984         * gnulib-tool (func_get_license_raw): New function, extracted from
7985         func_get_license.
7986         (func_get_license): Use it. Warn if the module is not a test module and
7987         has no license.
7988         Suggested by Jim Meyering.
7989
7990 2011-12-03  Bruno Haible  <bruno@clisp.org>
7991
7992         sethostname tests: Fix link error on mingw.
7993         * tests/test-sethostname1.c: New file, extracted from
7994         tests/test-sethostname.c.
7995         * tests/test-sethostname2.c: New file, extracted from
7996         tests/test-sethostname.c.
7997         * tests/test-sethostname.c: Remove file.
7998         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7999         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8000         (Depends-on): Add gethostname.
8001         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8002         Link the latter with $(GETHOSTNAME_LIB).
8003
8004         sethostname tests: Fix compilation error on mingw.
8005         * tests/test-sethostname.c: Don't include <sys/types.h>.
8006         (geteuid): Use a dummy value without uid_t.
8007         * modules/sethostname-tests (Depends-on): Remove sys_types.
8008
8009         sethostname tests: Avoid a gcc warning.
8010         * tests/test-sethostname.c (main): Remove an unused variable.
8011
8012         Tweak last commit.
8013         * modules/sethostname-tests (Files): Sort by decreasing importance.
8014         (configure.ac): Check for geteuid.
8015         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8016         the test when there's nothing to test. Drop an unnecessary cast.
8017         Improve an error message. Verify that the final sethostname() call
8018         succeeds.
8019
8020 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8021
8022         Add a test suite for the sethostname module.
8023         * modules/sethostname-tests: New file.  A test program
8024         for the sethostname module.
8025         * tests/test-sethostname.c: Likewise.
8026
8027 2011-12-03  Bruno Haible  <bruno@clisp.org>
8028
8029         Tweak last commit.
8030         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8031         Fix preprocessor directives indentation. Fix typos.
8032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8033         * modules/unistd (Makefile): Likewise.
8034
8035 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8036
8037         Integrate the sethostname module into unistd.
8038         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8039         into the unistd.h header.
8040         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8041         preprocessor directives.
8042         * modules/unistd: Setup the Makefile substitutions of the
8043         SETHOSTNAME preprocessor directives.
8044
8045 2011-12-03  Bruno Haible  <bruno@clisp.org>
8046
8047         Tweak last commit.
8048         * lib/sethostname.c: Don't include <string.h>.
8049         (sethostname): No need to copy the argument string to the stack. Don't
8050         call clearerr. Preserve errno when fprintf failed.
8051         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8052         Don't invoke AC_REPLACE_FUNCS.
8053         * modules/sethostname (Link): Remove empty section.
8054         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8055         failure problem.
8056
8057 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8058
8059         New module 'sethostname'.
8060         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8061         for systems that lack it.
8062         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8063         sethostname declaration and function.
8064         * modules/sethostname: New file.  Define the sethostname module.
8065
8066 2011-12-03  Bruno Haible  <bruno@clisp.org>
8067
8068         Tweak last commit.
8069         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8070
8071 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8072
8073         Split the HOST_NAME_MAX detection into a separate m4 macro.
8074         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8075         macro so it can be used by the pending sethostname module.
8076
8077 2011-12-03  Bruno Haible  <bruno@clisp.org>
8078
8079         Fix module descriptions syntax.
8080         * modules/argv-iter (License): Fix syntax.
8081         * modules/di-set (License): Likewise.
8082         * modules/ino-map (License): Likewise.
8083         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8084
8085 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8086
8087         stdalign: port to Clang 3.0
8088         Problem reported by Simon Josefsson in
8089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8090         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8091         which has <stdalign.h> but which does not define alignof.
8092         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8093
8094 2011-12-01  Eric Blake  <eblake@redhat.com>
8095
8096         mktempd: silence dd usage
8097         * build-aux/mktempd (rand_bytes): Silence dd.
8098
8099 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8100
8101         manywarnings: Don't mention gcc version in docstring.
8102         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8103         Jim Meyering <meyering@redhat.com>.
8104
8105 2011-11-30  Jim Meyering  <meyering@redhat.com>
8106
8107         hash: mark a few floating point constants with "f" suffix
8108         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8109         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8110         floating point constants with "f", since they're destined to be
8111         saved/used as "float"s.
8112
8113 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8114
8115         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8116         * tests/test-float.c (test_long_double): Correct and re-enable the
8117         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8118
8119 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8120
8121         Avoid subtracting two pointers that don't point into the same block.
8122         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8123         only pointers into the same memory block are subtracted. We cannot
8124         assume that sizeof (ptrdiff_t) == sizeof (void *).
8125
8126 2011-11-29  Eric Blake  <eblake@redhat.com>
8127
8128         maint.mk: add syntax check for use of compare from init.sh
8129         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8130         moved here from coreutils.
8131
8132         manywarnings: drop -Wunsuffixed-float-constants
8133         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8134         '1.0D', which is the only way to silence this warning for 'double'.
8135
8136 2011-11-29  Jim Meyering  <meyering@redhat.com>
8137
8138         hash: mark compute_bucket_size with the pure attribute
8139         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8140
8141         quotearg, propername: correct pragma guard expression
8142         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8143         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8144
8145 2011-11-28  Jim Meyering  <meyering@redhat.com>
8146
8147         propername: do not mark proper_name with the const attribute
8148         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8149         since it examines data pointed to by its parameter.
8150         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8151         the suggestion from -Wsuggest-attribute=const.
8152
8153         propername: mark one more function as const
8154         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8155
8156 2011-11-27  Jim Meyering  <meyering@redhat.com>
8157
8158         mark functions with const and pure attributes
8159
8160         Mark functions per suggestions from gcc-4.6 when using these options:
8161         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8162         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8163         Follow these guidelines: when possible, apply the attribute to
8164         an extern declaration, not to its definition.  Apply it to the
8165         definition only when the definition is static.
8166         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8167         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8168         * lib/base64.h (isbase64): Likewise.
8169         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8170         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8171         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8172         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8173         (c_tolower, c_toupper): Likewise.
8174         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8175         * lib/chdir-long.c (find_non_slash): Likewise.
8176         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8177         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8178         * lib/file-type.h (file_type): Likewise.
8179         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8180         * lib/filevercmp.c (verrevcmp): Likewise.
8181         * lib/freadahead.h (freadahead): Likewise.
8182         * lib/fts.c (fts_maxarglen): Likewise.
8183         * lib/hash-pjw.h (hash_pjw): Likewise.
8184         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8185         * lib/hash.c (is_prime, next_prime): Likewise.
8186         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8187         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8188         (hash_table_ok, hash_get_first, hash_string): Likewise.
8189         (compute_bucket_size): Likewise.
8190         * lib/i-ring.h (i_ring_empty): Likewise.
8191         * lib/isnan.c (isnanl): Likewise.
8192         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8193         * lib/memcasecmp.h (memcasecmp): Likewise.
8194         * lib/memchr2.h (memchr2): Likewise.
8195         * lib/memcmp2.h (memcmp2): Likewise.
8196         * lib/parse-datetime.y (lookup_zone): Likewise.
8197         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8198         [!WINDOWS_SOCKETS]: Likewise.
8199         * lib/strnlen1.h (strnlen1): Likewise.
8200         * lib/uniwidth.in.h (uc_width): Likewise.
8201         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8202         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8203         (quoting_options_from_style): Add a comment.
8204         * lib/propername.h (proper_name): Add a comment.
8205
8206 2011-11-27  Bruno Haible  <bruno@clisp.org>
8207
8208         Remove unused macros from !_LIBC code in glibc-borrowed files.
8209         * lib/fnmatch.c (STRCOLL): Remove macro.
8210         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8211         * lib/glob.c (__stat, __readdir64): Remove macros.
8212         * lib/tempname.c (__open64, __xstat64): Remove macros.
8213         Suggested by Paul Eggert.
8214
8215 2011-11-27  Bruno Haible  <bruno@clisp.org>
8216
8217         getcwd: Fix link error on MSVC 9.
8218         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8219
8220 2011-11-27  Bruno Haible  <bruno@clisp.org>
8221
8222         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8223         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8224         HAVE_OPENDIR is 0.
8225         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8226         HAVE_CLOSEDIR is 0.
8227         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8228         is 0.
8229         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8230
8231 2011-11-27  Bruno Haible  <bruno@clisp.org>
8232
8233         getcwd: Fix bug from 2011-08-17.
8234         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8235         platforms that need it.
8236         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8237         code of 4 to be a failure, not a success. This ensures that
8238         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8239
8240 2011-11-27  Bruno Haible  <bruno@clisp.org>
8241
8242         binary-io tests: Avoid test failure on mingw when libtool is used.
8243         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8244         Don't verify the size of t-bin-out1.tmp here.
8245         * tests/test-binary-io.sh: Verify it here.
8246         Reported by Simon Josefsson.
8247
8248 2011-11-26  Bruno Haible  <bruno@clisp.org>
8249
8250         Fix conflict between two instantiations of module 'unistd'.
8251         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8252         ${include_guard_prefix} also in the autoconf snippet.
8253         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8255         GNULIB_UNISTD_H_GETOPT.
8256         * modules/getopt-posix (configure.ac): Set the
8257         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8258         * modules/getopt-gnu (configure.ac): Likewise.
8259         * modules/unistd (Makefile.am): Change the substitution value of
8260         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8261         Reported by Simon Josefsson.
8262
8263 2011-11-25  Bruno Haible  <bruno@clisp.org>
8264
8265         pagealign_alloc: Doc and comments.
8266         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8267         module.
8268         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8269
8270 2011-11-25  Jim Meyering  <meyering@redhat.com>
8271
8272         test-update-copyright.sh: avoid false-positive failure
8273         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8274         around false positive failure on Cygwin/Windows.  The latter was
8275         matching erroneously-created files with names like
8276         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8277
8278 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8279
8280         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8281         * m4/valgrind-tests.m4: Check that the parameters that will be
8282         used works, not just a subset of them.  Reported by Bruno Haible
8283         <bruno@clisp.org>.
8284
8285 2011-11-24  Jim Meyering  <meyering@redhat.com>
8286
8287         test-stdalign.c: comment out long double tests
8288         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8289         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8290         error: '_Alignas' specifiers cannot reduce alignment of \
8291         'static_longdouble_alignas'.
8292
8293 2011-11-22  Jim Meyering  <meyering@redhat.com>
8294
8295         init.sh: make "compare /dev/null FILE" output more readable
8296         * tests/init.sh (compare_): Document the preferred order of arguments.
8297         (emit_diff_u_header_): New function.
8298         (compare_dev_null_): Emit a simulated diff, rather than just the
8299         contents of the unexpected file.  Suggestion from Bruno Haible.
8300
8301 2011-11-21  Jim Meyering  <meyering@redhat.com>
8302             Eric Blake  <eblake@redhat.com>
8303
8304         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8305         * tests/init.sh: Make our compare function slightly more portable.
8306         Reported by Bruno Haible in
8307         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8308
8309 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8310
8311         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8312         before using it, in code that ends up in config.h.
8313
8314 2011-11-20  Bruno Haible  <bruno@clisp.org>
8315
8316         getcwd: Work around getcwd bug on AIX 5..7.
8317         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8318         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8319         Use a different value for gl_cv_func_getcwd_path_max. Move the
8320         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8321         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8322         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8323         Define HAVE_MINIMALLY_WORKING_GETCWD.
8324         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8325         where it is not even minimally working, that is, on AIX.
8326         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8327         m4/getcwd-path-max.m4.
8328         (main): Update exit code computation.
8329         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8330         getcwd does not handle long file names.
8331
8332 2011-11-20  Bruno Haible  <bruno@clisp.org>
8333
8334         getcwd: Fix bug from 2009-09-10.
8335         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8336         like "no".
8337
8338 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8339
8340         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8341
8342 2011-11-20  Bruno Haible  <bruno@clisp.org>
8343
8344         fma tests: Avoid shadowing local variables.
8345         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8346         expected.
8347
8348 2011-11-20  Bruno Haible  <bruno@clisp.org>
8349
8350         copysignf tests: Fix.
8351         * tests/test-copysignf.c: Fix signature check.
8352
8353 2011-11-20  Bruno Haible  <bruno@clisp.org>
8354
8355         fma: Remove unused code.
8356         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8357         unused macros.
8358
8359 2011-11-20  Bruno Haible  <bruno@clisp.org>
8360
8361         sethostname: Fix doc about AIX.
8362         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8363         sethostname; it has it.
8364
8365         sethostname: Mention more portability problems.
8366         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8367         problem.
8368         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8369
8370 2011-11-19  Bruno Haible  <bruno@clisp.org>
8371
8372         Depend on module fcntl-h when AT_FDCWD is used.
8373         * modules/utimens (Depends-on): Add fcntl-h.
8374         * modules/areadlinkat (Depends-on): Likewise.
8375         * modules/areadlinkat-with-size (Depends-on): Likewise.
8376         * modules/faccessat (Depends-on): Likewise.
8377         * modules/fchmodat (Depends-on): Likewise.
8378         * modules/fchownat (Depends-on): Likewise.
8379         * modules/getcwd (Depends-on): Likewise.
8380         * modules/mkdirat (Depends-on): Likewise.
8381         * modules/mkfifoat (Depends-on): Likewise.
8382         * modules/readlinkat (Depends-on): Likewise.
8383         * modules/symlinkat (Depends-on): Likewise.
8384         * modules/dup2-tests (Depends-on): Likewise.
8385         * modules/fdutimensat-tests (Depends-on): Likewise.
8386         * modules/futimens-tests (Depends-on): Likewise.
8387
8388 2011-11-19  Bruno Haible  <bruno@clisp.org>
8389
8390         euidaccess: Update a comment.
8391         * lib/euidaccess.c: Update comment about platforms with faccessat.
8392
8393 2011-11-19  Bruno Haible  <bruno@clisp.org>
8394
8395         openat: Fix file list.
8396         * modules/openat (Files): Remove lib/at-func.c.
8397
8398 2011-11-19  Bruno Haible  <bruno@clisp.org>
8399
8400         fstatat: Simplify.
8401         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8402         gnulib should define rpl_fstatat, there is a
8403         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8404
8405 2011-11-19  Bruno Haible  <bruno@clisp.org>
8406
8407         Ensure 'inline' can be used in tests/test-utimens-common.h.
8408         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8409         * modules/futimens-tests (configure.ac): Likewise.
8410         * modules/utimens-tests (configure.ac): Likewise.
8411         * modules/utimensat-tests (configure.ac): Likewise.
8412
8413 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8414
8415         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8416         not hash_insert0.
8417         (hash_insert_if_absent): Doc fix.
8418
8419 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8420
8421         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8422
8423 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8424
8425         test-getcwd: disambiguate exit status
8426         * tests/test-getcwd.c (test_long_name): Return 0..7.
8427         (main): Exit with an unambiguous exit status.  The old
8428         code yielded a mysterious mixture of two failure codes.
8429
8430         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8431         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8432         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8433         rpl_fstatat or fstatat.  This should fix the other problem
8434         reported by Kai Habel in
8435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8436         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8438         and I reproduced it on a Solaris 8 host we still have in production.
8439
8440 2011-11-18  Jim Meyering  <meyering@redhat.com>
8441
8442         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8443         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8444         Add a sentence to the comment.
8445         (hash_insert0): New function that simply calls hash_insert_if_absent.
8446         * lib/hash.h (hash_insert_if_absent): Declare it.
8447         (hash_insert0): Add deprecation attribute.
8448         (_GL_ATTRIBUTE_DEPRECATED): Define.
8449         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8450         not hash_insert0.
8451         * NEWS: Mention it, even though it's not really an incompatible change.
8452
8453 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8454
8455         openat: avoid compilation failure due to lack of <errno.h> inclusion
8456         * lib/openat.c: Include <errno.h>.
8457
8458 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8459
8460         * modules/getcwd (Depends-on): Add fdopendir.
8461         This fixes one of the two problems reported by Kai Habel in
8462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8463
8464         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8465         stdalign problem reported by Ian Beckwith in
8466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8467         * modules/crypto/gc-arcfour (Depends-on):
8468         Depend conditionally on crypto/arcfour.
8469         * modules/crypto/gc-arctwo (Depends-on):
8470         Depend conditionally on crypto/arctwo.
8471         * modules/crypto/gc-des (Depends-on):
8472         Depend conditionally on crypto/des.
8473         * modules/crypto/gc-hmac-md5 (Depends-on):
8474         Depend conditionally on crypto/hmac-md5.
8475         * modules/crypto/gc-hmac-sha1 (Depends-on):
8476         Depend conditionally on crypto/hmac-sha1.
8477         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8478         * modules/crypto/gc-md4 (Depends-on):
8479         Depend conditionally on crypto/md4.
8480         * modules/crypto/gc-md5 (Depends-on):
8481         Depend conditionally on crypto/md5.
8482         * modules/crypto/gc-rijndael (Depends-on):
8483         Depend conditionally on crypto/rijndael.
8484         * modules/crypto/gc-sha1 (Depends-on):
8485         Depend conditionally on crypto/sha1.
8486         * modules/crypto/gc-arcfour:
8487         * modules/crypto/gc-arctwo:
8488         * modules/crypto/gc-des:
8489         * modules/crypto/gc-hmac-md5:
8490         * modules/crypto/gc-hmac-sha1:
8491         * modules/crypto/gc-md2:
8492         * modules/crypto/gc-md4:
8493         * modules/crypto/gc-md5:
8494         * modules/crypto/gc-rijndael:
8495         * modules/crypto/gc-sha1:
8496         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8497         now that the conditional dependencies do the work for us.
8498
8499 2011-11-17  Jim Meyering  <meyering@redhat.com>
8500
8501         tests: factor st_ctime-comparison out of two headers
8502         * tests/test-utimens-common.h (ctime_compare): Define.
8503         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8504         * tests/test-lutimens.h (test_lutimens): Likewise.
8505         * tests/test-utimens.h (test_utimens): Likewise.
8506
8507         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8508         Invoke the test program via an init.sh-using wrapper.
8509         * tests/test-getcwd.sh: New file.
8510         * modules/getcwd-tests (Files): Add it.
8511         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8512
8513 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8514
8515         gitlog-to-changelog: support multi-author commits.
8516         The FSF cares about keeping track of all authors of patches to its
8517         projects, but Git doesn't provide obvious support for multi-author
8518         changesets. Consensus seems to be forming around the use of extra
8519         Signed-off-by inspired lines in the log message formatted as
8520         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8521         multi-author commits between version control systems.
8522         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8523         log message and output in standard ChangeLog multi-author format.
8524         Reported by Peter Rosin <peda@lysator.liu.se>
8525
8526 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8527             Bruno Haible  <bruno@clisp.org>
8528
8529         Fix some modules' file list.
8530         * modules/fstatat (Files): Add m4/lstat.m4.
8531         * modules/openat (Files): Likewise.
8532         * modules/unlinkat (Files): Likewise.
8533
8534 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8535
8536         maint.mk: fix tight-scope.mk generation in VPATH builds.
8537         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8538         reference with $(srcdir) so that the file is found correctly even
8539         when running `make syntax-check' in a VPATH build.
8540
8541 2011-11-13  Bruno Haible  <bruno@clisp.org>
8542             Jim Meyering  <meyering@redhat.com>
8543
8544         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8545         * tests/init.sh (compare): Remove "No differences encountered" or
8546         synonymous output from the 'diff' program.
8547
8548 2011-11-13  Bruno Haible  <bruno@clisp.org>
8549
8550         Makefile: Tweak indentation.
8551         * Makefile: Use tab as first character in every line that contains rule
8552         commands.
8553
8554 2011-11-13  Bruno Haible  <bruno@clisp.org>
8555
8556         Syntax check for copyright statements.
8557         * check-copyright: New file.
8558         * Makefile (sc_check_copyright): New rule.
8559
8560 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8561
8562         * build-aux/git-version-gen: Add --prefix to configure the tag
8563         match string.
8564
8565 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8566
8567         * build-aux/git-version-gen: Add --help and --version.
8568
8569 2011-11-12  Jim Meyering  <meyering@redhat.com>
8570
8571         revamp the other test-exclude?.sh scripts to use init.sh, too
8572         * tests/test-exclude1.sh: Use init.sh.
8573         * tests/test-exclude2.sh: Likewise.
8574         * tests/test-exclude3.sh: Likewise.
8575         * tests/test-exclude4.sh: Likewise.
8576         * tests/test-exclude5.sh: Likewise.
8577         * tests/test-exclude6.sh: Likewise.
8578         * tests/test-exclude7.sh: Likewise.
8579         * tests/test-exclude8.sh: Likewise.
8580         * modules/exclude-tests (Files): List init.sh.
8581
8582         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8583         These shell scripts ignored failure of the binary test-exclude,
8584         so making the latter return 77 didn't cause them to be skipped.
8585         * tests/test-exclude5.sh: Exit with test-exclude's error status
8586         when that program fails.  Revamp to use init.sh.
8587         * tests/test-exclude2.sh: Likewise.
8588
8589         test-exclude: fix a typo
8590         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8591
8592 2011-11-11  Bruno Haible  <bruno@clisp.org>
8593
8594         obstack: Fix compilation error on MSVC 9.
8595         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8596
8597 2011-11-11  Jim Meyering  <meyering@redhat.com>
8598
8599         test-exclude: skip tests rather than failing on deficient systems
8600         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8601         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8602         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8603         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8604
8605 2011-11-10  Bruno Haible  <bruno@clisp.org>
8606
8607         ptsname_r test: Avoid gcc warning on glibc systems.
8608         * tests/test-ptsname_r.c (null_ptr): New function.
8609         (test_errors): Use it.
8610
8611 2011-11-10  Bruno Haible  <bruno@clisp.org>
8612
8613         ptsname_r: Avoid compilation error on OSF/1 5.1.
8614         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8616         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8617         function is not declared or incompatibly declared.
8618         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8619         * modules/ptsname_r (Depends-on, configure.ac): Update.
8620         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8621
8622 2011-11-10  Bruno Haible  <bruno@clisp.org>
8623
8624         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8625         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8626         When cross-compiling, guess yes on all platforms except AIX.
8627         Reported by Ludovic Courtès <ludo@gnu.org>.
8628
8629 2011-11-09  Bruno Haible  <bruno@clisp.org>
8630
8631         ptsname_r tests: Fix bugs.
8632         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8633         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8634
8635 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8636
8637         fstatat: work with cross-compilation
8638         Problem reported by Ludovic Courtès in
8639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8640         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8641         "cross-compiling" and assume the bug is present.  Replace
8642         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8643         an inverted sense, to be more conservative about our assumptions.
8644         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8645
8646 2011-11-09  Bruno Haible  <bruno@clisp.org>
8647
8648         Improve MODULES.html output.
8649         * modules/mkfifoat (Description): Use the word "function".
8650         * modules/readlinkat (Description): Likewise.
8651         * modules/symlinkat (Description): Likewise.
8652
8653 2011-11-09  Eric Blake  <eblake@redhat.com>
8654
8655         ptsname_r-tests: new test module
8656         * modules/ptsname_r-tests: New module.
8657         * tests/test-ptsname_r.c: New file.
8658
8659         ptsname_r: new module
8660         * modules/ptsname_r: New module.
8661         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8662         * lib/ptsname.c (__ptsname_r): Split...
8663         * lib/ptsname_r.c: ...into new file.
8664         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8665         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8666         * modules/stdlib (Makefile.am): Substitute witnesses.
8667         * lib/stdlib.in.h (ptsname_r): Declare it.
8668         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8669         * MODULES.html.sh (Misc): Likewise.
8670         * modules/ptsname (Depends-on): Alter dependency.
8671         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8672
8673 2011-11-09  Jim Meyering  <meyering@redhat.com>
8674
8675         announce-gen: be more concise when there's only one URL+tarball
8676         * build-aux/announce-gen (get_tool_versions): When you distribute
8677         only one type of tarball, combine the first two "Here are..."
8678         sections and make the key-checking grammar independent of
8679         how many tarballs there are.
8680
8681 2011-11-09  Eric Blake  <eblake@redhat.com>
8682
8683         openpty: provide a stub on mingw
8684         * lib/pty.in.h (includes): Provide forward declarations.
8685         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8686
8687         raise: fix mingw handling of SIGPIPE
8688         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8689
8690 2011-11-08  Bruno Haible  <bruno@clisp.org>
8691
8692         More conditional dependencies.
8693         * modules/faccessat (Depends-on): Add conditions.
8694         * modules/fchmodat (Depends-on): Likewise.
8695         * modules/fchownat (Depends-on): Likewise.
8696         * modules/fstatat (Depends-on): Likewise.
8697         * modules/mkfifoat (Depends-on): Likewise.
8698         * modules/readlinkat (Depends-on): Likewise.
8699         * modules/symlinkat (Depends-on): Likewise.
8700         * modules/unlinkat (Depends-on): Likewise.
8701         * modules/utimensat (Depends-on): Likewise.
8702         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8703         * modules/linkat (Depends-on): Refine the conditions.
8704         * modules/renameat (Depends-on): Likewise.
8705
8706 2011-11-08  Bruno Haible  <bruno@clisp.org>
8707
8708         faccessat: Move AC_LIBOBJ invocation to module description.
8709         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8710         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8711         invocation from here...
8712         * modules/faccessat (configure.ac): ... to here. Invoke
8713         gl_PREREQ_FACCESSAT.
8714
8715 2011-11-08  Bruno Haible  <bruno@clisp.org>
8716
8717         faccessat: Simplify autoconf macro.
8718         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8719         gl_FUNC_EUIDACCESS.
8720
8721 2011-11-08  Bruno Haible  <bruno@clisp.org>
8722
8723         renameat: Fix dependencies.
8724         * modules/renameat (Depends-on): Add stdbool.
8725
8726 2011-11-08  Bruno Haible  <bruno@clisp.org>
8727
8728         mkfifoat: Fix module description.
8729         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8730         not gl_UNISTD_MODULE_INDICATOR.
8731
8732 2011-11-08  Bruno Haible  <bruno@clisp.org>
8733
8734         fstatat: Remove unused dependency.
8735         * modules/fstatat (Depends-on): Remove fstat.
8736
8737 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8738
8739         GNUmakefile: behave when Makefile is missing.
8740         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8741
8742 2011-11-08  Bruno Haible  <bruno@clisp.org>
8743
8744         openat: Conditionalize dependencies.
8745         * lib/openat.c: Reduce the scope of some #includes.
8746         * modules/openat (Depends-on): Add conditions.
8747
8748 2011-11-07  Jim Meyering  <meyering@redhat.com>
8749
8750         maint.mk: extract GPG key ID without using a temporary file
8751         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8752         without using a temporary file.  Based on a suggestion from Werner Koch
8753         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8754
8755 2011-11-07  Eric Blake  <eblake@redhat.com>
8756
8757         grantpt: fix typo
8758         * lib/stdlib.in.h (grantpt): Check correct function.
8759
8760         maint.mk: silence new syntax check
8761         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8762
8763 2011-11-06  Bruno Haible  <bruno@clisp.org>
8764
8765         Doc about floating-point and math API.
8766         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8767         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8768
8769 2011-11-06  Bruno Haible  <bruno@clisp.org>
8770
8771         stdalign tests: Skip the test when compiled by Sun C.
8772         * tests/test-stdalign.c (main): Skip the test on Sun C.
8773
8774 2011-11-06  Bruno Haible  <bruno@clisp.org>
8775
8776         ansi-c++-opt: Complete the 2011-06-05 change.
8777         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8778         does not support namespaces, set the variable to "no", not to ":".
8779
8780 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8781
8782         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8783
8784 2011-11-06  Bruno Haible  <bruno@clisp.org>
8785
8786         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8787         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8788         (minus_zerol) [HP-UX]: New macro.
8789         (unary_minus) [HP-UX]: New function.
8790         (copysignl) [HP-UX]: Use unary_minus function.
8791
8792 2011-11-06  Bruno Haible  <bruno@clisp.org>
8793
8794         ldexp, ldexpf, ldexpl: Enhance tests.
8795         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8796         and tests/test-ldexpl.c.
8797         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8798         LDEXP, MIN_EXP, MAX_EXP): New macros.
8799         Include test-ldexp.h.
8800         (main): Just call test_function.
8801         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8802         infinity.h, nan.h.
8803         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8804         MAX_EXP): New macros.
8805         Include test-ldexp.h.
8806         (x, y): Remove variables.
8807         (main): Just call test_function.
8808         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8809         infinity.h, nan.h.
8810         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8811         MAX_EXP): New macros.
8812         Include test-ldexp.h.
8813         (x, y): Remove variables.
8814         (main): Just call test_function.
8815         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8816         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8817         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8818         (Depends-on): Add isnand-nolibm, signbit, float.
8819         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8820         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8821         (Depends-on): Add isnanf-nolibm, signbit, float.
8822
8823 2011-11-06  Bruno Haible  <bruno@clisp.org>
8824
8825         math tests: Cosmetics.
8826         * tests/test-math-c++.cc: Reorder declarations.
8827
8828 2011-11-05  Bruno Haible  <bruno@clisp.org>
8829
8830         fma*: Simplify test.
8831         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
8832         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
8833
8834         Tests for module 'fmal'.
8835         * modules/fmal-tests: New file.
8836         * tests/test-fmal1.c: New file.
8837         * tests/test-fmal2.c: New file.
8838
8839         New module 'fmal'.
8840         * lib/math.in.h (fmal): New declaration.
8841         * lib/fmal.c: New file.
8842         * m4/fmal.m4: New file.
8843         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
8844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
8845         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
8846         REPLACE_FMAL.
8847         * modules/fmal: New file.
8848         * doc/posix-functions/fmal.texi: Mention the new module and the various
8849         bugs.
8850
8851         Tests for module 'fmaf'.
8852         * modules/fmaf-tests: New file.
8853         * tests/test-fmaf1.c: New file.
8854         * tests/test-fmaf2.c: New file.
8855
8856         New module 'fmaf'.
8857         * lib/math.in.h (fmaf): New declaration.
8858         * lib/fmaf.c: New file.
8859         * m4/fmaf.m4: New file.
8860         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
8861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
8862         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
8863         REPLACE_FMAF.
8864         * modules/fmaf: New file.
8865         * doc/posix-functions/fmaf.texi: Mention the new module and the various
8866         bugs.
8867
8868         Tests for module 'fma'.
8869         * modules/fma-tests: New file.
8870         * tests/test-fma1.c: New file.
8871         * tests/test-fma1.h: New file.
8872         * tests/test-fma2.c: New file.
8873         * tests/test-fma2.h: New file.
8874
8875         New module 'fma'.
8876         * lib/math.in.h (fma): New declaration.
8877         * lib/fma.c: New file.
8878         * m4/fma.m4: New file.
8879         * m4/fegetround.m4: New file.
8880         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
8881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
8882         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
8883         REPLACE_FMA.
8884         * modules/fma: New file.
8885         * doc/posix-functions/fma.texi: Mention the new module and the various
8886         bugs.
8887
8888         Extend gl_MATHFUNC.
8889         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
8890         Support 'void' as argument type.
8891         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
8892
8893 2011-11-05  Jim Meyering  <meyering@redhat.com>
8894
8895         maint.mk: also prohibit inclusion of dirent.h without use
8896         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
8897
8898 2011-11-05  Bruno Haible  <bruno@clisp.org>
8899
8900         ldexpl tests: Avoid test failure on MSVC 9.
8901         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
8902         value. Needed in order to enforce the conversion from a value greater
8903         than LDBL_MAX to Infinity.
8904
8905 2011-11-05  Bruno Haible  <bruno@clisp.org>
8906
8907         New modules 'at-internal', 'openat-h', split off from module 'openat'.
8908         * modules/at-internal: New file, extracted from modules/openat.
8909         * modules/openat-h: New file.
8910         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
8911         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
8912         * modules/openat (Description): Add reference to POSIX function.
8913         (Files): Remove lib/openat.h, lib/openat-proc.c.
8914         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
8915         intprops, unistd.
8916         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
8917         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
8918         gl_FCNTL_MODULE_INDICATOR.
8919         (Include): Remove unistd.h, openat.h.
8920         * modules/areadlinkat (Files): Add lib/at-func.c.
8921         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8922         openat-die, openat-h, save-cwd.
8923         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
8924         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8925         openat-die, openat-h, save-cwd, unistd.
8926         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
8927         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8928         openat-h, save-cwd. Remove fcntl-h, openat.
8929         * modules/fchmodat (Files): Remove lib/openat.h.
8930         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8931         openat, stdbool, unistd.
8932         * modules/fchownat (Files): Remove lib/openat.h.
8933         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8934         openat, stdbool, sys_stat.
8935         * modules/fdopendir (Files): Remove lib/openat-priv.h,
8936         lib/openat-proc.c.
8937         (Depends-on): Add at-internal.
8938         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
8939         * modules/fstatat (Files): Remove lib/openat.h.
8940         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8941         stdbool, unistd.
8942         * modules/fts (Depends-on): Add openat-h.
8943         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
8944         openat.
8945         * modules/mkdirat (Files): Remove lib/openat.h.
8946         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8947         openat, stdbool, sys_stat.
8948         * modules/mkfifoat (Files): Add lib/at-func.c.
8949         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8950         openat-h, save-cwd. Remove fcntl-h, openat.
8951         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
8952         * modules/readlinkat (Files): Add lib/at-func.c.
8953         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8954         openat-h, save-cwd. Remove fcntl-h, openat.
8955         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
8956         openat.
8957         * modules/selinux-at (Files): Add lib/at-func.c.
8958         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8959         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
8960         * modules/symlinkat (Files): Add lib/at-func.c.
8961         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8962         openat-h, save-cwd. Remove fcntl-h, openat.
8963         * modules/unlinkat (Files): Remove lib/openat.h.
8964         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8965         stdbool.
8966         * modules/utimensat (Files): Add lib/at-func.c.
8967         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
8968         openat-die, openat-h, save-cwd.
8969         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
8970         * modules/fdutimensat-tests (Depends-on): Add openat.
8971         * modules/fstatat-tests (Depends-on): Add openat-h.
8972         * modules/readlinkat-tests (Depends-on): Add openat.
8973         * modules/symlinkat-tests (Depends-on): Add openat.
8974
8975 2011-11-05  Bruno Haible  <bruno@clisp.org>
8976
8977         openat: Include <stdbool.h>.
8978         * lib/openat.c: Include <stdbool.h>.
8979
8980 2011-11-04  Bruno Haible  <bruno@clisp.org>
8981
8982         fchownat, renameat, unlinkat: Fix dependencies.
8983         * modules/fchownat (Depends-on): Add fstatat.
8984         * modules/renameat (Depends-on): Likewise.
8985         * modules/unlinkat (Depends-on): Likewise.
8986
8987 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8988
8989         openat: remove direct dependency on dirent
8990         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8991         and hasn't been needed ever since fdopendir was split into its own
8992         module on 2009-08-31.
8993         * modules/openat (Depends-on): Remove dirent.
8994
8995 2011-11-04  Bruno Haible  <bruno@clisp.org>
8996
8997         renameat: Optimize code size.
8998         * modules/renameat (configure.ac): Don't compile at-func2.c if
8999         REPLACE_RENAMEAT is 1.
9000
9001 2011-11-04  Bruno Haible  <bruno@clisp.org>
9002
9003         openat tests: Fix file list.
9004         * modules/openat-tests (Files): Add tests/test-open.h.
9005
9006 2011-11-04  Bruno Haible  <bruno@clisp.org>
9007
9008         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9009         * modules/fchmodat (Depends-on): Add openat-die.
9010         * modules/fchownat (Depends-on): Likewise.
9011         * modules/linkat (Depends-on): Likewise.
9012         * modules/renameat (Depends-on): Likewise.
9013         * modules/openat (Depends-on): Add dirent.
9014
9015 2011-11-04  Jim Meyering  <meyering@redhat.com>
9016
9017         at-func*.c: fix comments
9018         * lib/at-func2.c: Correct/improve first-line comment.
9019         * lib/at-func.c: Correct grammar in first-line comment.
9020
9021 2011-11-04  Bruno Haible  <bruno@clisp.org>
9022
9023         New module 'mkdirat', split off from module 'openat'.
9024         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9025         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9026         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9027         * modules/mkdirat: New file, extracted from modules/openat.
9028         * modules/openat (Files): Remove lib/mkdirat.c.
9029         (Depends-on): Remove mkdir.
9030         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9031         (Include): Remove <sys/stat.h>.
9032         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9033         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9034         tests/test-mkdir.h.
9035         (Depends-on): Remove ignore-value.
9036         (Makefile.am): Remove rules for test-mkdirat.
9037         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9038         of module 'openat'.
9039         * NEWS: Mention the change.
9040
9041 2011-11-04  Bruno Haible  <bruno@clisp.org>
9042
9043         closedir: Avoid warning on mingw.
9044         * lib/closedir.c: Include <unistd.h>.
9045
9046 2011-11-04  Bruno Haible  <bruno@clisp.org>
9047
9048         New module 'fstatat', split off from module 'openat'.
9049         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9050         defined.
9051         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9052         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9053         gl_FUNC_FSTATAT.
9054         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9055         * modules/fstatat: New file, extracted from modules/openat.
9056         * modules/openat (Files): Remove lib/fstatat.c.
9057         (Depends-on): Remove lstat.
9058         (configure.ac): Remove AC_LIBOBJ of fstatat.
9059         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9060         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9061         tests/test-lstat.h, tests/test-stat.h.
9062         (Depends-on): Remove getcwd-lgpl.
9063         (Makefile.am): Remove rules for test-fstatat.
9064         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9065         of module 'openat'.
9066         * NEWS: Mention the change.
9067         * modules/getcwd (Depends-on): Add fstatat.
9068         * modules/linkat (Depends-on): Likewise.
9069         * modules/mkfifoat-tests (Depends-on): Likewise.
9070         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9071
9072 2011-11-03  Bruno Haible  <bruno@clisp.org>
9073
9074         New module 'unlinkat', split off from module 'openat'.
9075         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9076         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9077         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9078         * modules/unlinkat: New file, extracted from modules/openat. Correct
9079         the dependency conditions.
9080         * modules/openat (Files): Remove lib/unlinkat.c.
9081         (Depends-on): Remove rmdir, unlink.
9082         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9083         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9084         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9085         tests/test-rmdir.h, tests/test-unlink.h.
9086         (Depends-on): Remove unlinkdir.
9087         (Makefile.am): Remove rules for test-unlinkat.
9088         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9089         of module 'openat'.
9090         * NEWS: Mention the change.
9091         * modules/linkat-tests (Depends-on): Add unlinkat.
9092         * modules/mkfifoat-tests (Depends-on): Likewise.
9093         * modules/readlinkat-tests (Depends-on): Likewise.
9094
9095 2011-11-02  Bruno Haible  <bruno@clisp.org>
9096
9097         New module 'fchmodat', split off from module 'openat'.
9098         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9099         defined.
9100         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9101         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9102         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9103         * modules/fchmodat: New file, extracted from modules/openat.
9104         * modules/openat (Files): Remove lib/fchmodat.c.
9105         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9106         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9107         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9108         (Makefile.am): Remove rules for test-fchmodat.
9109         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9110         of module 'openat'.
9111         * NEWS: Mention the change.
9112
9113 2011-11-02  Jim Meyering  <meyering@redhat.com>
9114
9115         putenv: indent #definition of "environ" to placate cppi
9116         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9117
9118         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9119         Git logs are often treated as immutable, because editing them
9120         changes the SHA1 checksums of all descendants.  Thus, errors in
9121         git logs tend to stay there forever.  However, when we generate
9122         a ChangeLog file -- typically for distribution -- from that git log,
9123         we can actually make corrections in the generated file.  The key
9124         lies in recording in machine-readable/applicable form the desired
9125         corrections.  See --help for description and an example.
9126         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9127         (usage): Describe it; alphabetize option descriptions.
9128         (main): Honor the new option, carefully.
9129
9130 2011-11-01  Jim Meyering  <meyering@redhat.com>
9131
9132         gitlog-to-changelog: avoid an infloop
9133         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9134         that ends up being empty.
9135
9136 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9137
9138         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9139         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9140         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9141         contains (possibly-quoted) backslashes.  This should avoid
9142         all-too-common shell bugs if COMPLICATED contains backslashes in
9143         the "wrong" places.  Reported by David Evans in
9144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9145         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9146         because we want ASCII ranges.  Is there some reason we don't use
9147         the C locale everywhere in this script?
9148         (func_module, top level): Avoid unwanted pathname expansion when
9149         $repo_url_prefix or $repo_url_suffix_repl contain shell
9150         metacharacters like '?' and '*'.
9151
9152 2011-11-01  Bruno Haible  <bruno@clisp.org>
9153
9154         fchownat: Improve description.
9155         * modules/fchownat (Description): Add link to function.
9156
9157 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9158
9159         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9160         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9162         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9163
9164 2011-11-01  Bruno Haible  <bruno@clisp.org>
9165
9166         alignof: Avoid collision with stdalign module.
9167         * lib/alignof.h (alignof): Remove macro.
9168         * NEWS: Mention the change.
9169         Reported by Paul Eggert.
9170
9171 2011-11-01  Bruno Haible  <bruno@clisp.org>
9172
9173         New module 'fchownat', split off from module 'openat'.
9174         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9175         defined.
9176         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9177         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9178         invoke gl_FUNC_FCHOWNAT.
9179         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9180         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9181         * modules/fchownat: New file, extracted from modules/openat.
9182         * modules/openat (Files): Remove lib/fchownat.c.
9183         (Depends-on): Remove lchown.
9184         (configure.ac): Remove AC_LIBOBJ of fchownat.
9185         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9186         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9187         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9188         (Depends-on): Remove mgetgroups, usleep, stat-time.
9189         (configure.ac): Remove test for getegid.
9190         (Makefile.am): Remove rules for test-fchownat.
9191         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9192         of module 'openat'.
9193         * NEWS: Mention the change.
9194
9195 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9196
9197         stdalign: port better to MSVC and to Sun C 5.11
9198         This fixes some of the problems reported by Bruno Haible in
9199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9200         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9201         shortcomings of MSVC and of Sun C 5.11.
9202         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9203         around __declspec arg.
9204         * modules/stdalign-tests (Files): Add tests/macros.h.
9205         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9206         Include macros.h, for ASSERT.
9207         (DECLARE_ALIGNED): Remove.
9208         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9209         to catch bug), and to 1 if not (simplifies the rest of the code).
9210         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9211         (CHECK_AUTO): Remove.
9212         (CHECK_ALIGNED): Check only the alignment of the static vars,
9213         since auto var alignment isn't supported by Sun C 5.11.
9214         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9215         ASSERT failures are easier to diagnose.
9216
9217 2011-10-31  Bruno Haible  <bruno@clisp.org>
9218
9219         doc about some IRIX 5.3 problems.
9220         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9221         on IRIX 5.3.
9222         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9223         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9224         5.3.
9225         * doc/posix-functions/grantpt.texi: Likewise.
9226         * doc/posix-functions/unlockpt.texi: Likewise.
9227         * doc/posix-functions/lgamma.texi: Likewise.
9228         * doc/posix-functions/nextafter.texi: Likewise.
9229         * doc/posix-functions/remainder.texi: Likewise.
9230         * doc/posix-functions/select.texi: Mention misplaced declaration on
9231         IRIX 5.3.
9232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9233
9234 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9235
9236         gitlog-to-changelog: fix git-log invocation.
9237         git-log mishandles date strings before 1970-01-01 UTC, and there is
9238         no use to specify --since=1970-01-01 by default anyway.
9239         * build-aux/gitlog-to-changelog: By default, when no --since option
9240         was given, do not specify explicit --since option to git-log.
9241
9242 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9243
9244         gitlog-to-changelog: new option --append-dot.
9245         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9246         first non-blank line of each commit message terminated with a dot.
9247
9248 2011-10-30  Bruno Haible  <bruno@clisp.org>
9249
9250         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9251         * lib/ffsl.h: Include <config.h>.
9252         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9253
9254 2011-10-30  Jim Meyering  <meyering@redhat.com>
9255
9256         GNUmakefile: reenable "make syntax-check" for most projects
9257         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9258         build-aux variable", "syntax-check" would do nothing but succeed with
9259         the "No version control files detected..." diagnostic (unless you
9260         happened to override _build-aux via cfg.mk).
9261         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9262         to precede inclusion of maint.mk.  Otherwise, these variables would
9263         be used undefined in any project that does not override the default.
9264
9265 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9266
9267         gitlog-to-changelog: treat a message with only blank lines as empty.
9268         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9269         trailing blank lines before the code that issues a warning about an
9270         empty commit message.
9271
9272 2011-10-30  Jim Meyering  <meyering@redhat.com>
9273
9274         test-parse-datetime.c: avoid new DST-related false positive test failure
9275         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9276         based on the time/date we'll convert, not the current time.
9277         Otherwise, the moment we cross a DST boundary like today's in
9278         Europe, (CEST to CET), that offset ends up being one hour off.
9279
9280 2011-10-27  Bruno Haible  <bruno@clisp.org>
9281
9282         fstat: Tweak documentation.
9283         * modules/fstat (Description): More precise description.
9284
9285 2011-10-27  Bruno Haible  <bruno@clisp.org>
9286
9287         Update documentation regarding 'largefile' module.
9288         * doc/posix-functions/fstat.texi: Tweak wording.
9289         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9290         problems with huge directories and/or small ino_t types.
9291         * doc/posix-functions/readdir.texi: Likewise.
9292         * doc/posix-functions/rewinddir.texi: Likewise.
9293
9294 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9295
9296         maint.mk: don't maintain a second build-aux variable.
9297         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9298         depends on GNUmakefile, which already maintains a cfg.mk
9299         overridable $(_build-aux) for projects with a non-standard
9300         build-aux directory location, although without the $(srcdir)
9301         prefix.  Use that variable consistently instead of introducing a
9302         second one.  Adjust all call sites.
9303
9304 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9305
9306         Add stdalign module and use it in other modules.
9307         This is based on a previous proposal by Bruno Haible
9308         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9309
9310         stdalign: new module
9311         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9312         * modules/stdalign: New files.
9313         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9314         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9315
9316         stdalign-tests: new module
9317         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9318
9319         argp: use stdalign
9320         * lib/argp-parse.c: Include <stdalign.h>.
9321         (alignof): Remove.
9322         * modules/argp (Depends-on): Add stdalign.
9323
9324         crypto libraries: use stdalign
9325         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9326         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9327         Do not include <stdlib.h> twice, in md4.c.
9328         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9329         because we are accessing a pointer's bit-pattern, not a size.
9330         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9331         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9332         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9333         * modules/crypto/sha512: Likewise.
9334
9335         sys_socket: use stdalign, not alignof
9336         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9337         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9338
9339 2011-10-27  Bruno Haible  <bruno@clisp.org>
9340
9341         raise test: Avoid a test failure on Linux/MIPS.
9342         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9343         because 99 is a valid signal on Linux/MIPS.
9344
9345 2011-10-27  Bruno Haible  <bruno@clisp.org>
9346
9347         nonblocking tests: Fix test failure on Linux/MIPS.
9348         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9349         Set to 270000.
9350
9351 2011-10-27  Bruno Haible  <bruno@clisp.org>
9352
9353         utimensat: Work around problem on Linux/hppa.
9354         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9355         values.
9356         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9357
9358 2011-10-25  Jim Meyering  <meyering@redhat.com>
9359
9360         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9361         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9362         after symbols like NULL, size_t, etc.
9363         Reported by Alfred M. Szmidt.
9364
9365         maint.mk: exempt ENODATA from a syntax-check rule
9366         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9367         from the sc_prohibit_always-defined_macros syntax-check rule.
9368         Add a comment.  See this for more details:
9369         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9370
9371 2011-10-23  Jim Meyering  <meyering@redhat.com>
9372
9373         fts: close parent dir FD before returning from post-traversal fts_read
9374         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9375         unlink A, even though an FD open on A remained.  This is suboptimal
9376         (holding a file descriptor open longer than needed), but otherwise not
9377         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9378         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9379         that represents a real problem: it causes the removal of A to fail
9380         with e.g., "rm: cannot remove `A': Device or resource busy"
9381
9382         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9383         directory file descriptors.  After completing the final, FTS_DP,
9384         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9385         cache, but then proceeded to add a new FD to it via the subsequent
9386         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9387         final file descriptor would be closed only via fts_close's call to
9388         fd_ring_clear.  Now, it is usually closed earlier, via the final
9389         FTS_DP-returning fts_read call.
9390         * lib/fts.c (restore_initial_cwd): New function, converted from
9391         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9392         Update callers.
9393         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9394         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9395
9396 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9397             Bruno Haible  <bruno@clisp.org>
9398             Jim Meyering  <jim@meyering.net>
9399
9400         readme-release: improve safety of release prep instructions.
9401         * README-release: Don't git pull all branches when only master
9402         is needed for the release process.
9403         Run make maintainer-clean before changing trees and merging.
9404         Don't try to run ./configure right after git pull in case files
9405         that influence the bootstrap process have changed, move the
9406         ./configure step to after running ./bootstrap.
9407         Don't bootstrap "one last time"... it's the first time!
9408
9409 2011-10-22  Bruno Haible  <bruno@clisp.org>
9410
9411         errno, strerror-override: Support for MSVC 10.
9412         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9413         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9414         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9415         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9416         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9417         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9418         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9419         Assign values compatible with MSVC 10.
9420         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9421         New macros.
9422         (GNULIB_defined_EWINSOCK): New macro.
9423         * lib/strerror-override.c (strerror_override): Update accordingly.
9424         * lib/strerror-override.h: Likewise.
9425         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9426         longer equal to the corresponding errno value.
9427         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9428
9429 2011-10-22  Bruno Haible  <bruno@clisp.org>
9430
9431         perror: Recognize when test program crashes.
9432         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9433         strerror, set gl_cv_func_perror_works to no.
9434         Reported by Daniel Richard G. <skunk@iskunk.org>.
9435
9436         perror: Fix indentation.
9437         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9438
9439 2011-10-22  Bruno Haible  <bruno@clisp.org>
9440
9441         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9442         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9443         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9444         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9445         functions, not as a macro.
9446         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9447         macros.
9448         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9449         absence of macro.
9450         Suggested by Eric Blake.
9451         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9452
9453 2011-10-21  Bruno Haible  <bruno@clisp.org>
9454
9455         relocatable-prog-wrapper: Don't leave object files behind.
9456         * build-aux/install-reloc: Re-synchronize list of .o files to be
9457         removed with list of compilation units.
9458
9459 2011-10-20  Bruno Haible  <bruno@clisp.org>
9460
9461         openpty, posix_openpt: Remove code duplication.
9462         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9463         * lib/openpty.c: Include <stdlib.h>.
9464         (openpty): Use posix_openpt on all platforms except IRIX.
9465         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9466
9467 2011-10-20  Bruno Haible  <bruno@clisp.org>
9468
9469         unlockpt: Detect invalid argument.
9470         * lib/unlockpt.c: Include <fcntl.h>.
9471         (unlockpt): Check whether fd is valid, using fcntl().
9472         * modules/unlockpt (Depends-on): Add fcntl-h.
9473
9474 2011-10-20  Bruno Haible  <bruno@clisp.org>
9475
9476         openpty: Avoid compilation error on AIX 6.1.
9477         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9478
9479 2011-10-20  Bruno Haible  <bruno@clisp.org>
9480
9481         posix_openpt: Support for OpenBSD.
9482         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9483         (posix_openpt) [OpenBSD]: New code.
9484         * lib/grantpt.c: Include <fcntl.h>.
9485         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9486         * modules/grantpt (Depends-on): Add fcntl-h.
9487
9488 2011-10-20  Bruno Haible  <bruno@clisp.org>
9489
9490         posix_openpt test: Coding style.
9491         * tests/test-posix_openpt.c: Use GNU coding style.
9492
9493 2011-10-20  Bruno Haible  <bruno@clisp.org>
9494
9495         grantpt: Support --avoid=pt_chown.
9496         * modules/grantpt (Files): Add lib/pty-private.h.
9497
9498 2011-10-20  Bruno Haible  <bruno@clisp.org>
9499
9500         posix_openpt: Fix autoconf macro.
9501         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9502         unneeded check for _getpty.
9503
9504 2011-10-20  Bruno Haible  <bruno@clisp.org>
9505
9506         openpty: Update comments.
9507         * lib/openpty.c: Add comments about Minix.
9508
9509 2011-10-19  Eric Blake  <eblake@redhat.com>
9510
9511         openpty: relax license
9512         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9513
9514         pt_chown: use configmake to simplify build
9515         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9516
9517         ptsname and others: relax license
9518         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9519         * modules/unlockpt (License): Likewise.
9520         * modules/pt_chown (License): Likewise.
9521         * modules/ptsname (License): Likewise.
9522         * modules/ttyname_r (License): Likewise.
9523
9524 2011-10-19  Jim Meyering  <meyering@redhat.com>
9525
9526         posix_openpt: remove spurious #endif
9527         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9528
9529 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9530
9531         maint.mk: Respect $(build_aux) in web-manual rule.
9532         * top/maint.mk (web-manual): Find gen-announce script in user's
9533         $(build_aux) directory instead of hard-coding 'build-aux'.
9534
9535 2011-10-19  Bruno Haible  <bruno@clisp.org>
9536
9537         posix_openpt: Fix compilation error.
9538         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9539         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9540         Mention the openpty module as an alternative.
9541
9542 2011-10-19  Bruno Haible  <bruno@clisp.org>
9543
9544         Support for old NeXTstep 3.3 frexp().
9545         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9546         execution time of the test to 5 seconds.
9547         Reported by Daniel Richard G. <skunk@iskunk.org>.
9548
9549 2011-10-19  Bruno Haible  <bruno@clisp.org>
9550
9551         Support for old NeXTstep 3.3 sed.
9552         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9553         part, use /.../, not \|...|. Escape periods in the header file name.
9554         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9555         Reported by Daniel Richard G. <skunk@iskunk.org>.
9556
9557 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9558
9559         Support for old NeXTstep 3.3 gcc.
9560         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9561         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9562         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9563         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9564         * lib/regex.h (_Restrict_arr_): Likewise.
9565         * lib/regex_internal.h (re_token_t): Likewise.
9566         * lib/regexec.c (check_node_accept_bytes): Likewise.
9567         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9568
9569 2011-10-18  Eric Blake  <eblake@redhat.com>
9570
9571         posix_openpt: new module
9572         * modules/posix_openpt: New module.
9573         * m4/posix_openpt.m4: New file.
9574         * lib/posix_openpt.c: Likewise.
9575         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9576         (gl_STDLIB_H_DEFAULTS): Set defaults.
9577         * modules/stdlib (Makefile.am): Substitute macros.
9578         * lib/stdlib.in.h (posix_openpt): Declare.
9579         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9580         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9581         * modules/posix_openpt-tests: New test module.
9582         * tests/test-posix_openpt.c: New test.
9583
9584 2011-10-15  Bruno Haible  <bruno@clisp.org>
9585
9586         xstrtoll: Fix compilation failure.
9587         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9588         from lib/strtol.c.
9589         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9590         some platforms.
9591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9592
9593 2011-10-15  Bruno Haible  <bruno@clisp.org>
9594
9595         vasnprintf: Optimize bit search operation.
9596         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9597         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9598         gl_DOUBLE_EXPONENT_LOCATION.
9599         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9600         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9601         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9602         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9603         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9604         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9605         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9606         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9607         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9608
9609 2011-10-15  Bruno Haible  <bruno@clisp.org>
9610
9611         vasnprintf: Fix comments.
9612         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9613
9614 2011-10-14  Bruno Haible  <bruno@clisp.org>
9615
9616         Tests for module 'integer_length_ll'.
9617         * modules/integer_length_ll-tests: New file.
9618         * tests/test-integer_length_ll.c: New file.
9619
9620         New module 'integer_length_ll'.
9621         * lib/integer_length_ll.c: New file.
9622         * modules/integer_length_ll: New file.
9623
9624 2011-10-14  Bruno Haible  <bruno@clisp.org>
9625
9626         Tests for module 'integer_length_l'.
9627         * modules/integer_length_l-tests: New file.
9628         * tests/test-integer_length_l.c: New file.
9629
9630         New module 'integer_length_l'.
9631         * lib/integer_length_l.c: New file.
9632         * modules/integer_length_l: New file.
9633
9634 2011-10-14  Bruno Haible  <bruno@clisp.org>
9635
9636         Tests for module 'integer_length'.
9637         * modules/integer_length-tests: New file.
9638         * tests/test-integer_length.c: New file.
9639
9640         New module 'integer_length'.
9641         * lib/integer_length.h: New file.
9642         * lib/integer_length.c: New file.
9643         * modules/integer_length: New file.
9644
9645 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9646
9647         popen: Fix dependency conditions.
9648         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9649
9650 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9651
9652         perror: Fix autoconf test.
9653         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9654         <stdlib.h> and <string.h>.
9655
9656 2011-10-14  Bruno Haible  <bruno@clisp.org>
9657
9658         ffsl: Optimize on 64-bit platforms.
9659         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9660         unrolling.
9661
9662 2011-10-13  Bruno Haible  <bruno@clisp.org>
9663
9664         ffsl: Optimize on 32-bit platforms.
9665         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9666         use ffs() without a loop.
9667
9668         ffsl, ffsll: Optimize for GCC.
9669         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9670         * lib/ffsl.c (GCC_BUILTIN): New macro.
9671         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9672
9673 2011-10-13  Bruno Haible  <bruno@clisp.org>
9674
9675         ffs, bcopy, memset: Support symbol renaming via config.h.
9676         * lib/ffs.c: Include <config.h>.
9677         * lib/bcopy.c: Likewise.
9678         * lib/memset.c: Likewise.
9679
9680 2011-10-10  Bruno Haible  <bruno@clisp.org>
9681
9682         atanl: Simplify for platforms where 'long double' == 'double'.
9683         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9684         alternative implementation.
9685         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9686         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9687         * modules/atanl (Depends-on): Add atan. Update conditions.
9688
9689 2011-10-10  Bruno Haible  <bruno@clisp.org>
9690
9691         acosl: Simplify for platforms where 'long double' == 'double'.
9692         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9693         alternative implementation.
9694         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9695         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9696         * modules/acosl (Depends-on): Add acos. Update conditions.
9697
9698 2011-10-10  Bruno Haible  <bruno@clisp.org>
9699
9700         asinl: Simplify for platforms where 'long double' == 'double'.
9701         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9702         alternative implementation.
9703         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9704         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9705         * modules/asinl (Depends-on): Add asin. Update conditions.
9706
9707 2011-10-10  Bruno Haible  <bruno@clisp.org>
9708
9709         tanl: Simplify for platforms where 'long double' == 'double'.
9710         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9711         implementation.
9712         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9713         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9714         * modules/tanl (Depends-on): Add tan. Update conditions.
9715         (configure.ac): Don't compile trigl.c if
9716         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9717
9718 2011-10-10  Bruno Haible  <bruno@clisp.org>
9719
9720         cosl: Simplify for platforms where 'long double' == 'double'.
9721         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9722         implementation.
9723         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9724         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9725         * modules/cosl (Depends-on): Add cos. Update conditions.
9726         (configure.ac): Don't compile sincosl.c and trigl.c if
9727         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9728
9729 2011-10-10  Bruno Haible  <bruno@clisp.org>
9730
9731         sinl: Simplify for platforms where 'long double' == 'double'.
9732         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9733         implementation.
9734         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9735         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9736         * modules/sinl (Depends-on): Add sin. Update conditions.
9737         (configure.ac): Don't compile sincosl.c and trigl.c if
9738         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9739
9740 2011-10-10  Bruno Haible  <bruno@clisp.org>
9741
9742         logl: Simplify for platforms where 'long double' == 'double'.
9743         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9744         implementation.
9745         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9746         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9747         * modules/logl (Depends-on): Add log. Update conditions.
9748
9749 2011-10-10  Bruno Haible  <bruno@clisp.org>
9750
9751         expl: Simplify for platforms where 'long double' == 'double'.
9752         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9753         implementation.
9754         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9755         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9756         * modules/expl (Depends-on): Add exp. Update conditions.
9757
9758 2011-10-10  Bruno Haible  <bruno@clisp.org>
9759
9760         sqrtl: Simplify for platforms where 'long double' == 'double'.
9761         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9762         alternative implementation.
9763         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9764         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9765         * modules/sqrtl (Depends-on): Update conditions.
9766
9767 2011-10-10  Bruno Haible  <bruno@clisp.org>
9768
9769         ldexpl: Simplify for platforms where 'long double' == 'double'.
9770         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9771         alternative implementation.
9772         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9773         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9774         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9775
9776 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9777
9778         ffsll: set correct witness
9779         * modules/ffsll (configure.ac): Fix typo.
9780
9781 2011-10-10  Bruno Haible  <bruno@clisp.org>
9782
9783         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9784         * lib/printf-frexpl.c: Include <config.h>.
9785         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9786         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9787         second time.
9788         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9789         gl_LONG_DOUBLE_VS_DOUBLE.
9790         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9791         conditions.
9792
9793 2011-10-10  Bruno Haible  <bruno@clisp.org>
9794
9795         frexpl: Simplify for platforms where 'long double' == 'double'.
9796         * lib/frexpl.c: Include <config.h>.
9797         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9798         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9799         time.
9800         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9801         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9802         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9803         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9804         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9805         conditions.
9806
9807 2011-10-10  Jim Meyering  <meyering@redhat.com>
9808
9809         test-renameat: don't leave behind a temporary file
9810         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9811           ERROR: files left in build directory after distclean:
9812           ./gltests/test-renameat.too
9813           make[1]: *** [distcleancheck] Error 1
9814         Reported by Tom G. Christensen.
9815
9816 2011-10-09  Bruno Haible  <bruno@clisp.org>
9817
9818         rint: Determine RINT_LIBM correctly on AIX 7.
9819         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9820         directly, not only through a function pointer. Also accept an optional
9821         4th argument with extra code.
9822         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9823         rintf() call by gcc when optimizing.
9824
9825         mathfunc.m4: Refactor.
9826         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9827         m4 variable.
9828
9829 2011-10-09  Bruno Haible  <bruno@clisp.org>
9830
9831         rintl: Simplify for platforms where 'long double' == 'double'.
9832         * lib/rintl.c: Include <config.h>.
9833         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9834         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9835         time.
9836         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9837         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9838         * modules/rintl (Depends-on): Add rint. Update conditions.
9839
9840 2011-10-09  Bruno Haible  <bruno@clisp.org>
9841
9842         roundl: Simplify for platforms where 'long double' == 'double'.
9843         * lib/roundl.c: Include <config.h>.
9844         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9845         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9846         time.
9847         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9848         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9849         * modules/roundl (Depends-on): Add round. Update conditions.
9850
9851 2011-10-09  Bruno Haible  <bruno@clisp.org>
9852
9853         truncl: Simplify for platforms where 'long double' == 'double'.
9854         * lib/truncl.c: Include <config.h>.
9855         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9856         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9857         time.
9858         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9859         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9860         * modules/truncl (Depends-on): Add trunc. Update conditions.
9861
9862 2011-10-09  Bruno Haible  <bruno@clisp.org>
9863
9864         ceill: Simplify for platforms where 'long double' == 'double'.
9865         * lib/ceill.c: Include <config.h>.
9866         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9867         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9868         time.
9869         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9870         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9871         * modules/ceill (Depends-on): Add ceil. Update conditions.
9872
9873 2011-10-09  Bruno Haible  <bruno@clisp.org>
9874
9875         floorl: Simplify for platforms where 'long double' == 'double'.
9876         * lib/floorl.c: Include <config.h>.
9877         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9878         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9879         time.
9880         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9881         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9882         * modules/floorl (Depends-on): Add floor. Update conditions.
9883
9884 2011-10-09  Bruno Haible  <bruno@clisp.org>
9885
9886         rint: Fix ordering constraints.
9887         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
9888         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
9889         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
9890
9891 2011-10-09  Bruno Haible  <bruno@clisp.org>
9892
9893         copysignl: Simplify for platforms where 'long double' == 'double'.
9894         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9895         alternative.
9896         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9897         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9898         * modules/copysignl (Depends-on): Add copysign. Update conditions.
9899
9900 2011-10-09  Bruno Haible  <bruno@clisp.org>
9901
9902         Tests for module 'rintl'.
9903         * modules/rintl-tests: New file.
9904         * tests/test-rintl.c: New file.
9905
9906         New module 'rintl'.
9907         * lib/math.in.h (rintl): New declaration.
9908         * lib/rintl.c: New file.
9909         * m4/rintl.m4: New file.
9910         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
9911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
9912         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
9913         * modules/rintl: New file.
9914         * tests/test-math-c++.cc: Check the declaration of rintl.
9915         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9916         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
9917         * doc/posix-functions/rintl.texi: Mention the new module.
9918
9919 2011-10-09  Bruno Haible  <bruno@clisp.org>
9920
9921         Tests for module 'rintf'.
9922         * modules/rintf-tests: New file.
9923         * tests/test-rintf.c: New file.
9924
9925         New module 'rintf'.
9926         * lib/math.in.h (rintf): New declaration.
9927         * lib/rintf.c: New file.
9928         * m4/rintf.m4: New file.
9929         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
9930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
9931         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
9932         * modules/rintf: New file.
9933         * tests/test-math-c++.cc: Check the declaration of rintf.
9934         * doc/posix-functions/rintf.texi: Mention the new module.
9935
9936 2011-10-09  Bruno Haible  <bruno@clisp.org>
9937
9938         rint: Support for MSVC.
9939         * lib/math.in.h (rint): New declaration.
9940         * lib/rint.c: New file.
9941         * m4/rint.m4: New file.
9942         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
9943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
9944         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
9945         * modules/rint (Description): Fix.
9946         (Files): Add lib/rint.c, m4/rint.m4.
9947         (Depends-on): Add math.
9948         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
9949         gl_MATH_MODULE_INDICATOR.
9950         * tests/test-math-c++.cc: Check the declaration of rint.
9951         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9952         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
9953         * doc/posix-functions/rint.texi: Mention the replacement provided by
9954         the module.
9955
9956         rint tests: More tests.
9957         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
9958         minus-zero.h, infinity.h, nan.h.
9959         (main): Skip the test if the current rounding mode is not standard. Add
9960         tests for negative numbers, minus zero, infinity, NaN.
9961         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
9962         tests/nan.h.
9963         (Depends-on): Add isnand-nolibm.
9964
9965 2011-10-09  Bruno Haible  <bruno@clisp.org>
9966
9967         Tests for module 'copysignl'.
9968         * modules/copysignl-tests: New file.
9969         * tests/test-copysignl.c: New file.
9970
9971         New module 'copysignl'.
9972         * lib/math.in.h (copysignl): New declaration.
9973         * lib/copysignl.c: New file.
9974         * m4/copysignl.m4: New file.
9975         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
9976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9977         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9978         HAVE_COPYSIGNL.
9979         * modules/copysignl: New file.
9980         * tests/test-math-c++.cc: Check the declaration of copysignl.
9981         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9982         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9983         * doc/posix-functions/copysignl.texi: Mention the new module.
9984
9985 2011-10-09  Bruno Haible  <bruno@clisp.org>
9986
9987         Tests for module 'copysignf'.
9988         * modules/copysignf-tests: New file.
9989         * tests/test-copysignf.c: New file.
9990
9991         New module 'copysignf'.
9992         * lib/math.in.h (copysignf): New declaration.
9993         * lib/copysignf.c: New file.
9994         * m4/copysignf.m4: New file.
9995         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9997         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9998         HAVE_COPYSIGNF.
9999         * modules/copysignf: New file.
10000         * tests/test-math-c++.cc: Check the declaration of copysignf.
10001         * doc/posix-functions/copysignf.texi: Mention the new module.
10002
10003 2011-10-09  Bruno Haible  <bruno@clisp.org>
10004
10005         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10006         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10007         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10008         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10009         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10010         gl_SIGNAL_H_DEFAULTS.
10011
10012 2011-10-09  Bruno Haible  <bruno@clisp.org>
10013
10014         poll: Make macro safer.
10015         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10016         ac_cv_header_poll_h is not set.
10017
10018 2011-10-09  Bruno Haible  <bruno@clisp.org>
10019
10020         copysign: Provide replacement.
10021         * lib/math.in.h (copysign): New declaration.
10022         * lib/copysign.c: New file.
10023         * m4/copysign.m4: New file.
10024         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10026         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10027         HAVE_COPYSIGN.
10028         * modules/copysign (Description): Clarify.
10029         (Files): Add lib/copysign.c, m4/copysign.m4.
10030         (Depends-on): Add math, signbit.
10031         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10032         gl_MATH_MODULE_INDICATOR.
10033         * tests/test-math-c++.cc: Check the declaration of copysign.
10034         * doc/posix-functions/copysign.texi: Mention the effects of the module
10035         on Minix and MSVC.
10036
10037 2011-10-09  Bruno Haible  <bruno@clisp.org>
10038
10039         isinf: Ensure macro on AIX 5.1.
10040         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10041         macro.
10042         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10043
10044 2011-10-09  Bruno Haible  <bruno@clisp.org>
10045
10046         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10047         * modules/snprintf-posix-tests (configure.ac): Require
10048         gl_LONG_DOUBLE_VS_DOUBLE.
10049         * modules/sprintf-posix-tests (configure.ac): Likewise.
10050         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10051         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10052         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10053         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10054         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10055         tests on platforms where 'long double' is the same as 'double'.
10056         * tests/test-sprintf-posix.h (test_function): Likewise.
10057         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10058         * tests/test-vasprintf-posix.c (test_function): Likewise.
10059
10060         *printf: Fix for platforms where 'long double' == 'double'.
10061         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10062         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10063         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10064         * modules/fprintf-posix (Files): Likewise.
10065         * modules/obstack-printf-posix (Files): Likewise.
10066         * modules/snprintf-posix (Files): Likewise.
10067         * modules/sprintf-posix (Files): Likewise.
10068         * modules/vasnprintf (Files): Likewise.
10069         * modules/vasnprintf-posix (Files): Likewise.
10070         * modules/vasprintf-posix (Files): Likewise.
10071         * modules/vdprintf-posix (Files): Likewise.
10072         * modules/vfprintf-posix (Files): Likewise.
10073         * modules/vsnprintf-posix (Files): Likewise.
10074         * modules/vsprintf-posix (Files): Likewise.
10075         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10076         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10077         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10078         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10079         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10080         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10081         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10082
10083         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10084         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10085         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10086         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10087         'long double'.
10088         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10089
10090         isinf: Fix for platforms where 'long double' == 'double'.
10091         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10092         Don't blindly assume 80-bit 'long double'.
10093
10094         isfinite: Fix for platforms where 'long double' == 'double'.
10095         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10096         Don't blindly assume 80-bit 'long double'.
10097
10098         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10099         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10100         * modules/isfinite-tests (configure.ac): Require
10101         gl_LONG_DOUBLE_VS_DOUBLE.
10102         * modules/isinf-tests (configure.ac): Likewise.
10103         * modules/isnan-tests (configure.ac): Likewise.
10104         * modules/isnanl-tests (configure.ac): Likewise.
10105         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10106         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10107         tests on platforms where 'long double' is the same as 'double'.
10108         * tests/test-isinf.c (test_isinfl): Likewise.
10109         * tests/test-isnan.c (test_long_double): Likewise.
10110         * tests/test-isnanl.h (main): Likewise.
10111
10112 2011-10-08  Bruno Haible  <bruno@clisp.org>
10113
10114         Tests for module 'tanhf'.
10115         * modules/tanhf-tests: New file.
10116         * tests/test-tanhf.c: New file.
10117
10118         New module 'tanhf'.
10119         * lib/math.in.h (tanhf): New declaration.
10120         * lib/tanhf.c: New file.
10121         * m4/tanhf.m4: New file.
10122         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10123         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10124         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10125         * modules/tanhf: New file.
10126         * tests/test-math-c++.cc: Check the declaration of tanhf.
10127         * doc/posix-functions/tanhf.texi: Mention the new module.
10128
10129         tanh: Use a .m4 file.
10130         * m4/tanh.m4: New file.
10131         * modules/tanh (Files): Add it.
10132         (configure.ac): Just invoke gl_FUNC_TANH.
10133
10134 2011-10-08  Bruno Haible  <bruno@clisp.org>
10135
10136         Tests for module 'coshf'.
10137         * modules/coshf-tests: New file.
10138         * tests/test-coshf.c: New file.
10139
10140         New module 'coshf'.
10141         * lib/math.in.h (coshf): New declaration.
10142         * lib/coshf.c: New file.
10143         * m4/coshf.m4: New file.
10144         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10146         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10147         * modules/coshf: New file.
10148         * tests/test-math-c++.cc: Check the declaration of coshf.
10149         * doc/posix-functions/coshf.texi: Mention the new module.
10150
10151         cosh: Use a .m4 file.
10152         * m4/cosh.m4: New file.
10153         * modules/cosh (Files): Add it.
10154         (configure.ac): Just invoke gl_FUNC_COSH.
10155
10156 2011-10-08  Bruno Haible  <bruno@clisp.org>
10157
10158         Tests for module 'sinhf'.
10159         * modules/sinhf-tests: New file.
10160         * tests/test-sinhf.c: New file.
10161
10162         New module 'sinhf'.
10163         * lib/math.in.h (sinhf): New declaration.
10164         * lib/sinhf.c: New file.
10165         * m4/sinhf.m4: New file.
10166         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10168         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10169         * modules/sinhf: New file.
10170         * tests/test-math-c++.cc: Check the declaration of sinhf.
10171         * doc/posix-functions/sinhf.texi: Mention the new module.
10172
10173         sinh: Use a .m4 file.
10174         * m4/sinh.m4: New file.
10175         * modules/sinh (Files): Add it.
10176         (configure.ac): Just invoke gl_FUNC_SINH.
10177
10178 2011-10-08  Bruno Haible  <bruno@clisp.org>
10179
10180         Tests for module 'atan2f'.
10181         * modules/atan2f-tests: New file.
10182         * tests/test-atan2f.c: New file.
10183
10184         New module 'atan2f'.
10185         * lib/math.in.h (atan2f): New declaration.
10186         * lib/atan2f.c: New file.
10187         * m4/atan2f.m4: New file.
10188         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10190         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10191         * modules/atan2f: New file.
10192         * tests/test-math-c++.cc: Check the declaration of atan2f.
10193         * doc/posix-functions/atan2f.texi: Mention the new module.
10194
10195         atan2: Use a .m4 file.
10196         * m4/atan2.m4: New file.
10197         * modules/atan2 (Files): Add it.
10198         (configure.ac): Just invoke gl_FUNC_ATAN2.
10199
10200 2011-10-08  Bruno Haible  <bruno@clisp.org>
10201
10202         Tests for module 'atanf'.
10203         * modules/atanf-tests: New file.
10204         * tests/test-atanf.c: New file.
10205
10206         New module 'atanf'.
10207         * lib/math.in.h (atanf): New declaration.
10208         * lib/atanf.c: New file.
10209         * m4/atanf.m4: New file.
10210         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10212         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10213         * modules/atanf: New file.
10214         * tests/test-math-c++.cc: Check the declaration of atanf.
10215         * doc/posix-functions/atanf.texi: Mention the new module.
10216
10217         atan: Use a .m4 file.
10218         * m4/atan.m4: New file.
10219         * modules/atan (Files): Add it.
10220         (configure.ac): Just invoke gl_FUNC_ATAN.
10221
10222 2011-10-08  Bruno Haible  <bruno@clisp.org>
10223
10224         Tests for module 'acosf'.
10225         * modules/acosf-tests: New file.
10226         * tests/test-acosf.c: New file.
10227
10228         New module 'acosf'.
10229         * lib/math.in.h (acosf): New declaration.
10230         * lib/acosf.c: New file.
10231         * m4/acosf.m4: New file.
10232         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10234         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10235         * modules/acosf: New file.
10236         * tests/test-math-c++.cc: Check the declaration of acosf.
10237         * doc/posix-functions/acosf.texi: Mention the new module.
10238
10239         acos: Use a .m4 file.
10240         * m4/acos.m4: New file.
10241         * modules/acos (Files): Add it.
10242         (configure.ac): Just invoke gl_FUNC_ACOS.
10243
10244 2011-10-08  Bruno Haible  <bruno@clisp.org>
10245
10246         Tests for module 'asinf'.
10247         * modules/asinf-tests: New file.
10248         * tests/test-asinf.c: New file.
10249
10250         New module 'asinf'.
10251         * lib/math.in.h (asinf): New declaration.
10252         * lib/asinf.c: New file.
10253         * m4/asinf.m4: New file.
10254         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10256         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10257         * modules/asinf: New file.
10258         * tests/test-math-c++.cc: Check the declaration of asinf.
10259         * doc/posix-functions/asinf.texi: Mention the new module.
10260
10261         asin: Use a .m4 file.
10262         * m4/asin.m4: New file.
10263         * modules/asin (Files): Add it.
10264         (configure.ac): Just invoke gl_FUNC_ASIN.
10265
10266 2011-10-08  Bruno Haible  <bruno@clisp.org>
10267
10268         Tests for module 'tanf'.
10269         * modules/tanf-tests: New file.
10270         * tests/test-tanf.c: New file.
10271
10272         New module 'tanf'.
10273         * lib/math.in.h (tanf): New declaration.
10274         * lib/tanf.c: New file.
10275         * m4/tanf.m4: New file.
10276         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10278         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10279         * modules/tanf: New file.
10280         * tests/test-math-c++.cc: Check the declaration of tanf.
10281         * doc/posix-functions/tanf.texi: Mention the new module.
10282
10283         tan: Use a .m4 file.
10284         * m4/tan.m4: New file.
10285         * modules/tan (Files): Add it.
10286         (configure.ac): Just invoke gl_FUNC_TAN.
10287
10288 2011-10-08  Bruno Haible  <bruno@clisp.org>
10289
10290         Tests for module 'cosf'.
10291         * modules/cosf-tests: New file.
10292         * tests/test-cosf.c: New file.
10293
10294         New module 'cosf'.
10295         * lib/math.in.h (cosf): New declaration.
10296         * lib/cosf.c: New file.
10297         * m4/cosf.m4: New file.
10298         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10299         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10300         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10301         * modules/cosf: New file.
10302         * tests/test-math-c++.cc: Check the declaration of cosf.
10303         * doc/posix-functions/cosf.texi: Mention the new module.
10304
10305         cos: Use a .m4 file.
10306         * m4/cos.m4: New file.
10307         * modules/cos (Files): Add it.
10308         (configure.ac): Just invoke gl_FUNC_COS.
10309
10310 2011-10-08  Bruno Haible  <bruno@clisp.org>
10311
10312         Tests for module 'sinf'.
10313         * modules/sinf-tests: New file.
10314         * tests/test-sinf.c: New file.
10315
10316         New module 'sinf'.
10317         * lib/math.in.h (sinf): New declaration.
10318         * lib/sinf.c: New file.
10319         * m4/sinf.m4: New file.
10320         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10322         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10323         * modules/sinf: New file.
10324         * tests/test-math-c++.cc: Check the declaration of sinf.
10325         * doc/posix-functions/sinf.texi: Mention the new module.
10326
10327         sin: Use a .m4 file.
10328         * m4/sin.m4: New file.
10329         * modules/sin (Files): Add it.
10330         (configure.ac): Just invoke gl_FUNC_SIN.
10331
10332 2011-10-08  Bruno Haible  <bruno@clisp.org>
10333
10334         Tests for module 'powf'.
10335         * modules/powf-tests: New file.
10336         * tests/test-powf.c: New file.
10337
10338         New module 'powf'.
10339         * lib/math.in.h (powf): New declaration.
10340         * lib/powf.c: New file.
10341         * m4/powf.m4: New file.
10342         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10344         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10345         * modules/powf: New file.
10346         * tests/test-math-c++.cc: Check the declaration of powf.
10347         * doc/posix-functions/powf.texi: Mention the new module.
10348
10349         pow: Use a .m4 file.
10350         * m4/pow.m4: New file.
10351         * modules/pow (Files): Add it.
10352         (configure.ac): Just invoke gl_FUNC_POW.
10353
10354 2011-10-08  Bruno Haible  <bruno@clisp.org>
10355
10356         Tests for module 'log10f'.
10357         * modules/log10f-tests: New file.
10358         * tests/test-log10f.c: New file.
10359
10360         New module 'log10f'.
10361         * lib/math.in.h (log10f): New declaration.
10362         * lib/log10f.c: New file.
10363         * m4/log10f.m4: New file.
10364         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10366         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10367         * modules/log10f: New file.
10368         * tests/test-math-c++.cc: Check the declaration of log10f.
10369         * doc/posix-functions/log10f.texi: Mention the new module.
10370
10371         log10: Use a .m4 file.
10372         * m4/log10.m4: New file.
10373         * modules/log10 (Files): Add it.
10374         (configure.ac): Just invoke gl_FUNC_LOG10.
10375
10376 2011-10-08  Bruno Haible  <bruno@clisp.org>
10377
10378         Tests for module 'logf'.
10379         * modules/logf-tests: New file.
10380         * tests/test-logf.c: New file.
10381
10382         New module 'logf'.
10383         * lib/math.in.h (logf): New declaration.
10384         * lib/logf.c: New file.
10385         * m4/logf.m4: New file.
10386         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10388         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10389         * modules/logf: New file.
10390         * tests/test-math-c++.cc: Check the declaration of logf.
10391         * doc/posix-functions/logf.texi: Mention the new module.
10392
10393         log: Use a .m4 file.
10394         * m4/log.m4: New file.
10395         * modules/log (Files): Add it.
10396         (configure.ac): Just invoke gl_FUNC_LOG.
10397
10398 2011-10-08  Bruno Haible  <bruno@clisp.org>
10399
10400         Tests for module 'expf'.
10401         * modules/expf-tests: New file.
10402         * tests/test-expf.c: New file.
10403
10404         New module 'expf'.
10405         * lib/math.in.h (expf): New declaration.
10406         * lib/expf.c: New file.
10407         * m4/expf.m4: New file.
10408         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10410         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10411         * modules/expf: New file.
10412         * tests/test-math-c++.cc: Check the declaration of expf.
10413         * doc/posix-functions/expf.texi: Mention the new module.
10414
10415         exp: Use a .m4 file.
10416         * m4/exp.m4: New file.
10417         * modules/exp (Files): Add it.
10418         (configure.ac): Just invoke gl_FUNC_EXP.
10419
10420 2011-10-08  Bruno Haible  <bruno@clisp.org>
10421
10422         Tests for module 'sqrtf'.
10423         * modules/sqrtf-tests: New file.
10424         * tests/test-sqrtf.c: New file.
10425
10426         New module 'sqrtf'.
10427         * lib/math.in.h (sqrtf): New declaration.
10428         * lib/sqrtf.c: New file.
10429         * m4/sqrtf.m4: New file.
10430         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10432         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10433         * modules/sqrtf: New file.
10434         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10435         * doc/posix-functions/sqrtf.texi: Mention the new module.
10436
10437 2011-10-08  Bruno Haible  <bruno@clisp.org>
10438
10439         Tests: Avoid link failures w.r.t. libintl.
10440         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10441         $(LIBINTL).
10442         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10443         $(LIBINTL).
10444         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10445         against $(LIBINTL).
10446         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10447         $(LIBINTL).
10448         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10449         $(LIBINTL).
10450         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10451
10452 2011-10-08  Bruno Haible  <bruno@clisp.org>
10453
10454         pow tests: Defeat compiler optimizations.
10455         * tests/test-pow.c (main): Assign arguments to x and y before use.
10456
10457 2011-10-08  Bruno Haible  <bruno@clisp.org>
10458
10459         gnulib-tool: Improve last commit.
10460         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10461         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10462         ignore dependencies that are not among the modules list.
10463
10464 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10465
10466         gnulib-tool: don't follow dependencies to avoided modules
10467         This fixes a bug that is related to the previous one.
10468         * gnulib-tool (func_modules_transitive_closure)
10469         (func_emit_autoconf_snippets):
10470         Check whether a dependency is acceptable before using it.
10471         (--extract-dependencies): Report an error if --avoid is also used,
10472         since this combination of options is not yet supported.
10473
10474         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10475         Problem reported by Peter Dyballa in
10476         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10477         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10478         when echoing "$condition".
10479
10480 2011-10-07  Bruno Haible  <bruno@clisp.org>
10481
10482         Fix documentation about math functions on MacOS X.
10483         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10484         MacOS X 10.5.
10485         * doc/posix-functions/fdim.texi: Likewise.
10486         * doc/posix-functions/feclearexcept.texi: Likewise.
10487         * doc/posix-functions/fegetenv.texi: Likewise.
10488         * doc/posix-functions/fegetround.texi: Likewise.
10489         * doc/posix-functions/feholdexcept.texi: Likewise.
10490         * doc/posix-functions/feraiseexcept.texi: Likewise.
10491         * doc/posix-functions/fesetenv.texi: Likewise.
10492         * doc/posix-functions/fesetround.texi: Likewise.
10493         * doc/posix-functions/fetestexcept.texi: Likewise.
10494         * doc/posix-functions/feupdateenv.texi: Likewise.
10495         * doc/posix-functions/fmax.texi: Likewise.
10496         * doc/posix-functions/fmin.texi: Likewise.
10497         * doc/posix-functions/log2.texi: Likewise.
10498         * doc/posix-functions/modff.texi: Likewise.
10499         * doc/posix-functions/nan.texi: Likewise.
10500         * doc/posix-functions/nanf.texi: Likewise.
10501         * doc/posix-functions/nextafterf.texi: Likewise.
10502         * doc/posix-functions/remquo.texi: Likewise.
10503
10504 2011-10-07  Bruno Haible  <bruno@clisp.org>
10505
10506         modff: Drop assumption about library that defines modff.
10507         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10508         AC_CHECK_FUNCS.
10509         * modules/modff (Files): Add m4/mathfunc.m4.
10510
10511 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10512
10513         raise tests: Avoid a GCC warning.
10514         * tests/test-raise.c (handler): Use _Noreturn.
10515
10516 2011-10-07  Bruno Haible  <bruno@clisp.org>
10517
10518         Tests for module 'ldexpf'.
10519         * modules/ldexpf-tests: New file.
10520         * tests/test-ldexpf.c: New file.
10521
10522         New module 'ldexpf'.
10523         * lib/math.in.h (ldexpf): New declaration.
10524         * lib/ldexpf.c: New file.
10525         * m4/ldexpf.m4: New file.
10526         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10528         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10529         * modules/ldexpf: New file.
10530         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10531         * doc/posix-functions/ldexpf.texi: Mention the new module.
10532
10533 2011-10-06  Bruno Haible  <bruno@clisp.org>
10534
10535         frexpf: Work around problems on IRIX and mingw.
10536         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10538         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10539         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10540         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10541         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10542         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10543
10544 2011-10-06  Bruno Haible  <bruno@clisp.org>
10545
10546         fabsf: Drop assumption about library that defines fabsf.
10547         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10548         AC_CHECK_FUNCS.
10549         * modules/fabsf (Files): Add m4/mathfunc.m4.
10550
10551 2011-10-06  Bruno Haible  <bruno@clisp.org>
10552
10553         frexpf: Drop assumption about library that defines frexpf.
10554         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10555         'int *', 'float *', 'long double *', 'float', 'long double'.
10556         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10557         AC_CHECK_FUNCS.
10558         * modules/frexpf (Files): Add m4/mathfunc.m4.
10559
10560         Tests for module 'frexpf'.
10561         * modules/frexpf-tests: New file.
10562         * tests/test-frexpf.c: New file.
10563
10564         New module 'frexpf'.
10565         * lib/math.in.h (frexpf): New declaration.
10566         * lib/frexpf.c: New file.
10567         * m4/frexpf.m4: New file.
10568         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10570         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10571         * modules/frexpf: New file.
10572         * tests/test-math-c++.cc: Check the declaration of frexpf.
10573         * doc/posix-functions/frexpf.texi: Mention the new module.
10574
10575 2011-10-06  Bruno Haible  <bruno@clisp.org>
10576
10577         math: Sort function declarations of math.in.h.
10578         * lib/math.in.h (frexp, logb): Move declarations.
10579
10580 2011-10-05  Bruno Haible  <bruno@clisp.org>
10581
10582         Tests for module 'modff'.
10583         * modules/modff-tests: New file.
10584         * tests/test-modff.c: New file.
10585
10586         New module 'modff'.
10587         * lib/math.in.h (modff): New declaration.
10588         * lib/modff.c: New file.
10589         * m4/modff.m4: New file.
10590         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10592         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10593         * modules/modff: New file.
10594         * tests/test-math-c++.cc: Check the declaration of modff.
10595         * doc/posix-functions/modff.texi: Mention the new module.
10596
10597         modf tests: Make test sharper.
10598         * tests/test-modf.c (main): Strengthen upper bound.
10599
10600         modf: Use a .m4 file.
10601         * m4/modf.m4: New file.
10602         * modules/modf (Files): Add it.
10603         (configure.ac): Just invoke gl_FUNC_MODF.
10604
10605 2011-10-05  Bruno Haible  <bruno@clisp.org>
10606
10607         Tests for module 'fmodf'.
10608         * modules/fmodf-tests: New file.
10609         * tests/test-fmodf.c: New file.
10610
10611         New module 'fmodf'.
10612         * lib/math.in.h (fmodf): New declaration.
10613         * lib/fmodf.c: New file.
10614         * m4/fmodf.m4: New file.
10615         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10617         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10618         * modules/fmodf: New file.
10619         * tests/test-math-c++.cc: Check the declaration of fmodf.
10620         * doc/posix-functions/fmodf.texi: Mention the new module.
10621
10622         fmod: Use a .m4 file.
10623         * m4/fmod.m4: New file.
10624         * modules/fmod (Files): Add it.
10625         (configure.ac): Just invoke gl_FUNC_FMOD.
10626
10627 2011-10-05  Bruno Haible  <bruno@clisp.org>
10628
10629         Tests for module 'fabsf'.
10630         * modules/fabsf-tests: New file.
10631         * tests/test-fabsf.c: New file.
10632
10633         New module 'fabsf'.
10634         * lib/math.in.h (fabsf): New declaration.
10635         * lib/fabsf.c: New file.
10636         * m4/fabsf.m4: New file.
10637         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10639         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10640         * modules/fabsf: New file.
10641         * tests/test-math-c++.cc: Check the declaration of fabsf.
10642         * doc/posix-functions/fabsf.texi: Mention the new module.
10643
10644         fabs: Use a .m4 file.
10645         * m4/fabs.m4: New file.
10646         * modules/fabs (Files): Add it.
10647         (configure.ac): Just invoke gl_FUNC_FABS.
10648
10649 2011-10-05  Jim Meyering  <meyering@redhat.com>
10650
10651         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10652         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10653         ls -lL regression introduced in coreutils-8.12, it does so at the
10654         cost of an additional stat call in the common case.  Besides, now
10655         that the kernel change that prompted commit 95f7c57f has been reverted
10656         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10657         we have no use for commit 95f7c57f, "file-has-acl: use
10658         acl_extended_file_nofollow if available".
10659
10660 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10661
10662         file-has-acl: revert unintended change in behavior of ls -L
10663         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10664         derived from...
10665         (file_has_acl): ...code here.  Call it.
10666         This problem was introduced with 2011-07-22 commit 95f7c57f,
10667         "file-has-acl: use acl_extended_file_nofollow if available".
10668         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10669
10670 2011-10-03  Bruno Haible  <bruno@clisp.org>
10671
10672         poll: Avoid link errors on MSVC.
10673         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10674         * modules/poll (Depends-on): Add sockets.
10675         (Link): New section.
10676         * NEWS: Mention the change.
10677         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10678         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10679         $(LIB_POLL) instead of $(LIBSOCKET).
10680
10681 2011-10-03  Bruno Haible  <bruno@clisp.org>
10682
10683         sys_select tests: Fix link error on MSVC 9.
10684         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10685         with $(LIB_SELECT) instead of $(LIBSOCKET).
10686
10687 2011-10-03  Bruno Haible  <bruno@clisp.org>
10688
10689         sys_select: Fix compilation error on mingw.
10690         * lib/sys_select.in.h: On native Windows, include <io.h>.
10691
10692 2011-10-03  Bruno Haible  <bruno@clisp.org>
10693
10694         wmemset: Support for MSVC.
10695         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10696         whether wmemset() exists.
10697
10698 2011-10-03  Bruno Haible  <bruno@clisp.org>
10699
10700         wmemmove: Support for MSVC.
10701         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10702         whether wmemmove() exists.
10703
10704 2011-10-03  Bruno Haible  <bruno@clisp.org>
10705
10706         wmemcpy: Support for MSVC.
10707         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10708         whether wmemcpy() exists.
10709
10710 2011-10-03  Bruno Haible  <bruno@clisp.org>
10711
10712         wmemcmp: Support for MSVC.
10713         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10714         whether wmemcmp() exists.
10715
10716 2011-10-03  Bruno Haible  <bruno@clisp.org>
10717
10718         wmemchr: Support for MSVC.
10719         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10720         whether wmemchr() exists.
10721
10722 2011-10-03  Bruno Haible  <bruno@clisp.org>
10723
10724         glthread/*, strsignal: Support for MSVC.
10725         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10726         including <winsock.h> on MSVC 9.
10727         * lib/glthread/lock.h: Likewise.
10728         * lib/glthread/thread.h: Likewise.
10729         * lib/glthread/tls.h: Likewise.
10730         * lib/glthread/yield.h: Likewise.
10731         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10732         if HAVE_UNISTD_H is false.
10733         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10734
10735 2011-10-03  Bruno Haible  <bruno@clisp.org>
10736
10737         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10738         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10739         Set to 100000.
10740
10741 2011-10-03  Bruno Haible  <bruno@clisp.org>
10742
10743         acl: Fix specification.
10744         * lib/file-has-acl.c (file_has_acl): Fix specification.
10745
10746 2011-10-03  Bruno Haible  <bruno@clisp.org>
10747
10748         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10749         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10750         (compute_curr_prefix, shared_library_fullname,
10751         find_shared_library_fullname, get_shared_library_fullname, relocate):
10752         Use it together with PIC && INSTALLDIR.
10753         Reported by <jojelino@gmail.com>
10754         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10755
10756 2011-10-01  Jim Meyering  <meyering@redhat.com>
10757
10758         maint.mk: adjust a release-related rule not to require use of gzip
10759         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10760         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10761         projects that build only .tar.xz files.  Also fix an erroneous test.
10762
10763         test-linkat: don't leave behind a temporary file
10764         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10765         Otherwise, coreutils' "make distcheck" would fail with this:
10766           Only in /c/cu/tests/torture/coreutils/test/\
10767             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10768           make[2]: *** [my-distcheck] Error 1
10769
10770         float, math: add omitted file
10771         * lib/itold.c: Add file, required for yesterday's float change.
10772
10773 2011-10-01  Bruno Haible  <bruno@clisp.org>
10774
10775         isinf: Fix for OpenBSD/x86.
10776         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10777         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10778         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10779
10780 2011-10-01  Bruno Haible  <bruno@clisp.org>
10781
10782         isfinite: Fix syntax error in configure test.
10783         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10784
10785         isfinite: Fix typo.
10786         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10787         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10788
10789 2011-10-01  Bruno Haible  <bruno@clisp.org>
10790
10791         nonblocking tests: Fix test failure on Linux/IA-64.
10792         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10793         Set to 270000.
10794
10795 2011-10-01  Bruno Haible  <bruno@clisp.org>
10796
10797         mkfifoat tests: Fix a test failure on mingw.
10798         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10799         with error ENOSYS.
10800
10801 2011-09-30  Bruno Haible  <bruno@clisp.org>
10802
10803         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10804         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10805         'long double'. Set REPLACE_ITOLD.
10806         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10807         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10808         * lib/itold.c: New file.
10809         * modules/float (Files): Add lib/itold.c.
10810         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10811         (Makefile.am): Substitute REPLACE_ITOLD.
10812         * modules/math (Depends-on): Add float.
10813         (Makefile.am): Substitute REPLACE_ITOLD.
10814         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10815         * doc/posix-headers/math.texi: Likewise.
10816         * doc/posix-functions/logl.texi: Likewise.
10817
10818 2011-09-30  Bruno Haible  <bruno@clisp.org>
10819
10820         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10821         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10822         Set to 140000.
10823
10824 2011-09-30  Bruno Haible  <bruno@clisp.org>
10825
10826         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10827         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10828         invocation, say "right after AC_PROG_CC_STDC", not "right after
10829         AC_PROG_CC".
10830         Reported by Gary V. Vaughan <gary@gnu.org>.
10831
10832 2011-09-30  Bruno Haible  <bruno@clisp.org>
10833
10834         Centralize C99 requirement.
10835         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
10836         * modules/stdarg (configure.ac-early): Invoke it instead of
10837         AC_PROG_CC_STDC.
10838         Reported by Gary V. Vaughan and Paul Eggert.
10839
10840 2011-09-29  Bruno Haible  <bruno@clisp.org>
10841
10842         float: Fix LDBL_MAX value on Linux/PowerPC.
10843         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
10844         on Linux/PowerPC.
10845         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
10846         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
10847         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
10848         platform.
10849         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
10850
10851 2011-09-29  Bruno Haible  <bruno@clisp.org>
10852
10853         doc: Improve doc about gl_EARLY.
10854         * doc/gnulib-tool.texi (Initial import): Mention where to place an
10855         AC_PROG_CC_STDC invocation.
10856         Reported by Gary V. Vaughan <gary@gnu.org>.
10857
10858 2011-09-28  Bruno Haible  <bruno@clisp.org>
10859
10860         fgetc, fputc, fread, fwrite tests: Fix link error.
10861         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
10862         on non-MSVC platforms.
10863         * tests/test-fputc.c (main): Likewise.
10864         * tests/test-fread.c (main): Likewise.
10865         * tests/test-fwrite.c (main): Likewise.
10866         Reported by Jim Meyering.
10867
10868 2011-09-27  Bruno Haible  <bruno@clisp.org>
10869
10870         fputc, fwrite tests: Avoid test failure on MSVC.
10871         * tests/test-fgetc.c: Include msvc-inval.h.
10872         (main): Invoke gl_msvc_inval_ensure_handler.
10873         * tests/test-fputc.c: Include msvc-inval.h.
10874         (main): Invoke gl_msvc_inval_ensure_handler.
10875         * tests/test-fread.c: Include msvc-inval.h.
10876         (main): Invoke gl_msvc_inval_ensure_handler.
10877         * tests/test-fwrite.c: Include msvc-inval.h.
10878         (main): Invoke gl_msvc_inval_ensure_handler.
10879         * modules/fgetc-tests (Depends-on): Add msvc-inval.
10880         * modules/fputc-tests (Depends-on): Likewise.
10881         * modules/fread-tests (Depends-on): Likewise.
10882         * modules/fwrite-tests (Depends-on): Likewise.
10883
10884 2011-09-27  Bruno Haible  <bruno@clisp.org>
10885
10886         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
10887         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
10888         (raise): Remove older, duplicated declaration.
10889         (_gl_raise_SIGPIPE): New declaration.
10890         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
10891         (rpl_raise): Remove function.
10892         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
10893         a gnulib-defined SIGPIPE here.
10894         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
10895         'sigprocmask' has detected missing signal-blocking and the module
10896         'sigpipe' is enabled.
10897         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10898
10899 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
10900
10901         base64-tests: avoid memory leak
10902         * tests/test-base64.c (main): Plug memory leak.
10903
10904         base32: new module
10905         * modules/base32: New module.
10906         * lib/base32.c: New file.
10907         * lib/base32.h: Likewise.
10908         * m4/base32.m4: Likewise.
10909         * modules/base32-tests: New test.
10910         * tests/test-base32.c: Likewise.
10911         * MODULES.html.sh (Misc): Mention it.
10912
10913 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10914
10915         gnulib: use more-standard license notice wording
10916         * gnulib-tool (func_emit_copyright_notice): When emitting a
10917         license notice into a file, use the standard wording as suggested
10918         by the current information for GNU maintainers, except say "file"
10919         rather than "program".  The new wording gives a license version
10920         number, which addresses an issue raised by Glenn Morris in
10921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
10922         * m4/onceonly.m4: Use that same wording here, too.
10923
10924         dup2: minor simplification
10925         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
10926         as lib/dup2.c no longer uses 'inline'.
10927
10928 2011-09-25  Bruno Haible  <bruno@clisp.org>
10929
10930         strings: Fix compilation error on MSVC.
10931         * lib/strings.in.h: Include <stddef.h> for size_t.
10932
10933 2011-09-25  Bruno Haible  <bruno@clisp.org>
10934
10935         fflush et al.: Document limitation on MSVC.
10936         * doc/posix-functions/fflush.texi: Document possible crash in handling
10937         mode other than DEFAULT_HANDLING.
10938         * doc/posix-functions/fgetc.texi: Likewise.
10939         * doc/posix-functions/fputc.texi: Likewise.
10940         * doc/posix-functions/fread.texi: Likewise.
10941         * doc/posix-functions/fwrite.texi: Likewise.
10942
10943 2011-09-25  Bruno Haible  <bruno@clisp.org>
10944
10945         msvc-inval: Allow three invalid parameter handling modes.
10946         * lib/msvc-inval.h: Don't include <stdlib.h> here.
10947         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
10948         macros.
10949         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
10950         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
10951         SANE_LIBRARY_HANDLING as a no-op.
10952         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
10953         <stdlib.h>.
10954         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
10955
10956 2011-09-25  Bruno Haible  <bruno@clisp.org>
10957
10958         msvc-inval: Make handler multithread-safe.
10959         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
10960         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
10961         declarations.
10962         (gl_msvc_inval_current): New declaration.
10963         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10964         Operate on the structure returned by gl_msvc_inval_current().
10965         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
10966         Remove varaiables.
10967         (tls_index, tls_initialized): New variables.
10968         (not_per_thread): New variable.
10969         (gl_msvc_inval_current): New function.
10970         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
10971         returned by gl_msvc_inval_current().
10972
10973 2011-09-25  Bruno Haible  <bruno@clisp.org>
10974
10975         msvc-inval: Install handler globally.
10976         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10977         !_MSC_VER.
10978         (gl_msvc_invalid_parameter_handler): Remove declaration.
10979         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10980         declarations.
10981         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10982         Install the handler globally, don't uninstall it.
10983         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10984         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10985         currently valid, call RaiseException instead.
10986         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10987         for !_MSC_VER.
10988
10989 2011-09-25  Bruno Haible  <bruno@clisp.org>
10990
10991         strerror_r-posix: Fix for MSVC 9.
10992         * lib/strerror_r.c (local_snprintf): New function.
10993         (snprintf): Define to local_snprintf, not to _snprintf.
10994
10995 2011-09-25  Bruno Haible  <bruno@clisp.org>
10996
10997         ftruncate: Support for MSVC 9.
10998         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10999         (chsize_nothrow): New function.
11000         (chsize): Redefine as a macro.
11001         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11002         * modules/ftruncate (Depends-on): Add msvc-inval.
11003
11004 2011-09-25  Bruno Haible  <bruno@clisp.org>
11005
11006         New module 'fstat'.
11007         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11008         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11009         * lib/fchdir.c (rpl_fstat): Remove function.
11010         * m4/fstat.m4: New file.
11011         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11012         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11013         declared.
11014         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11015         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11016         * modules/fstat: New file.
11017         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11018         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11019         is set.
11020         * doc/posix-functions/fstat.texi: Mention the new module and the
11021         problem on MSVC.
11022         * NEWS: Mention the change.
11023         * modules/acl (Depends-on): Add fstat.
11024         * modules/chdir-safer (Depends-on): Likewise.
11025         * modules/chown (Depends-on): Likewise.
11026         * modules/copy-file (Depends-on): Likewise.
11027         * modules/fchdir (Depends-on): Likewise.
11028         * modules/fdopendir (Depends-on): Likewise.
11029         * modules/fopen (Depends-on): Likewise.
11030         * modules/fts (Depends-on): Likewise.
11031         * modules/getcwd (Depends-on): Likewise.
11032         * modules/isapipe (Depends-on): Likewise.
11033         * modules/linkat (Depends-on): Likewise.
11034         * modules/lseek (Depends-on): Likewise.
11035         * modules/mkdir-p (Depends-on): Likewise.
11036         * modules/open (Depends-on): Likewise.
11037         * modules/openat (Depends-on): Likewise.
11038         * modules/read-file (Depends-on): Likewise.
11039         * modules/renameat (Depends-on): Likewise.
11040         * modules/utimens (Depends-on): Likewise.
11041
11042 2011-09-25  Bruno Haible  <bruno@clisp.org>
11043
11044         linkat: Fix compilation on MSVC 9.
11045         * lib/linkat.c: Don't include <stdint.h>.
11046
11047 2011-09-25  Bruno Haible  <bruno@clisp.org>
11048
11049         fclose: Support for MSVC 9.
11050         * lib/fclose.c: Include msvc-inval.h.
11051         (fclose_nothrow): New function.
11052         (rpl_fclose): Use it.
11053         * modules/fclose (Depends-on): Add msvc-inval.
11054         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11055
11056 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11057
11058         dup2: minor simplifications
11059         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11060         that it's a performance win.
11061         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11062         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11063
11064 2011-09-24  Jim Meyering  <meyering@redhat.com>
11065
11066         test-futimens: avoid a warning from gcc -Wshadow
11067         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11068         to avoid a shadowing warning.
11069
11070 2011-09-24  Bruno Haible  <bruno@clisp.org>
11071
11072         fdopen: Support for MSVC 9.
11073         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11074         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11075         * lib/fdopen.c: Include msvc-inval.h.
11076         (fdopen_nothrow): New function.
11077         (rpl_fdopen): Use it.
11078         * modules/fdopen (Depends-on): Add msvc-inval.
11079         * modules/fclose-tests (Depends-on): Add fdopen.
11080         * modules/fflush-tests (Depends-on): Likewise.
11081         * modules/fgetc-tests (Depends-on): Likewise.
11082         * modules/fputc-tests (Depends-on): Likewise.
11083         * modules/fread-tests (Depends-on): Likewise.
11084         * modules/freopen-tests (Depends-on): Likewise.
11085         * modules/fseeko-tests (Depends-on): Likewise.
11086         * modules/ftello-tests (Depends-on): Likewise.
11087         * modules/fwrite-tests  (Depends-on): Likewise.
11088         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11089
11090 2011-09-24  Bruno Haible  <bruno@clisp.org>
11091
11092         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11093         * modules/fgetc-tests (Depends-on): Add unistd.
11094         * modules/fputc-tests (Depends-on): Likewise.
11095         * modules/fread-tests (Depends-on): Likewise.
11096         * modules/fwrite-tests (Depends-on): Likewise.
11097
11098 2011-09-24  Bruno Haible  <bruno@clisp.org>
11099
11100         dup: Simplify autoconf test.
11101         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11102         on gl_MSVC_INVAL's result.
11103
11104 2011-09-24  Bruno Haible  <bruno@clisp.org>
11105
11106         Tests for function fwrite().
11107         * modules/fwrite-tests: New file.
11108         * tests/test-fwrite.c: New file.
11109         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11110
11111         Tests for function fread().
11112         * modules/fread-tests: New file.
11113         * tests/test-fread.c: New file.
11114         * modules/stdio-tests (Depends-on): Add fread-tests.
11115
11116         Activate fputc tests.
11117         * modules/stdio-tests (Depends-on): Add fputc-tests.
11118
11119         Enhance fgetc, fputc tests.
11120         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11121         * tests/test-fputc.c (main): Likewise.
11122
11123 2011-09-24  Bruno Haible  <bruno@clisp.org>
11124
11125         write: Support for MSVC 9.
11126         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11127         is not 1.
11128         * lib/write.c (write_nothrow): New function.
11129         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11130         not 1. Use write_nothrow.
11131         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11132         invalid parameter handler.
11133         (gl_PREREQ_WRITE): New macro.
11134         * modules/write (Depends-on): Add msvc-inval.
11135         (configure.ac): Invoke gl_PREREQ_WRITE.
11136         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11137
11138 2011-09-24  Bruno Haible  <bruno@clisp.org>
11139
11140         read: Fix last commit.
11141         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11142
11143 2011-09-24  Bruno Haible  <bruno@clisp.org>
11144
11145         dup2: Fix last commit.
11146         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11147         (rpl_dup2): Disable fcntl workaround on native Windows.
11148
11149         sigprocmask: Make code safer.
11150         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11151         section that changes macro definitions for this compilation unit.
11152
11153 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11154
11155         dup2: clarify by coalescing Windows-specific material
11156         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11157         "msvc-nothrow.h"' to the Windows-specific section, so that the
11158         Emacs source need not contain these include files.
11159         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11160         Windows-specific fixes into this function rather than just the
11161         nothrow fix, as this shortens and clarifies the code.  Always
11162         define as a function, as that's a bit cleaner than having it be
11163         sometimes a function and sometimes a macro.
11164         (rpl_dup2): Move the Windows-specific stuff out of here and into
11165         ms_windows_dup2.  Don't protect the Haiku-related fix with
11166         "#if !defined __linux__", as the same code also works around
11167         a Linux kernel bug, and it doesn't add any system calls on any
11168         platform.  Add comment about FreeBSD 6.1.
11169
11170         sigprocmask: move #include directive
11171         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11172         Windows-specific section, so that the Emacs source need not
11173         contain msvc-inval.h.
11174
11175 2011-09-23  Bruno Haible  <bruno@clisp.org>
11176
11177         read: Support for MSVC 9.
11178         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11179         is not 1.
11180         * lib/read.c (read_nothrow): New function.
11181         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11182         read_nothrow.
11183         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11184         invalid parameter handler.
11185         (gl_PREREQ_READ): New macro.
11186         * modules/read (Depends-on): Add msvc-inval.
11187         (configure.ac): Invoke gl_PREREQ_READ.
11188         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11189
11190 2011-09-23  Bruno Haible  <bruno@clisp.org>
11191
11192         close: Support for MSVC 9.
11193         * lib/close.c: Include <errno.h>, msvc-inval.h.
11194         (close_nothrow): New function.
11195         (rpl_close): Use it.
11196         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11197         invalid parameter handler.
11198         * modules/close (Depends-on): Add msvc-inval.
11199         * modules/dup2-tests (Depends-on): Add close.
11200         * modules/dup3-tests (Depends-on): Likewise.
11201         * modules/fcntl-tests (Depends-on): Likewise.
11202         * modules/spawn-pipe-tests (Depends-on): Likewise.
11203         * modules/unistd-safer-tests (Depends-on): Likewise.
11204         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11205
11206 2011-09-23  Bruno Haible  <bruno@clisp.org>
11207
11208         New module 'dup'.
11209         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11210         Allow replacement.
11211         * lib/dup.c: New file.
11212         * lib/fchdir.c (rpl_dup): Remove function.
11213         * m4/dup.m4: New file.
11214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11215         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11216         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11217         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11218         * modules/dup: New file.
11219         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11220         'dup' module is in use.
11221         * modules/fdopendir (Depends-on): Add dup.
11222         * modules/fdutimensat-tests (Depends-on): Likewise.
11223         * modules/fts (Depends-on): Likewise.
11224         * modules/futimens-tests (Depends-on): Likewise.
11225         * modules/posix_spawnp-tests (Depends-on): Likewise.
11226         * modules/unistd-safer-tests (Depends-on): Likewise.
11227         * modules/utimens-tests (Depends-on): Likewise.
11228         * doc/posix-functions/dup.texi: Mention the new module and the problem
11229         on MSVC.
11230
11231 2011-09-23  Bruno Haible  <bruno@clisp.org>
11232
11233         getdtablesize: Support for MSVC 9.
11234         * lib/getdtablesize.c: Include msvc-inval.h.
11235         (_setmaxstdio_nothrow): New function.
11236         (_setmaxstdio): Redefine it.
11237         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11238         * modules/getdtablesize (Depends-on): Add msvc-inval.
11239         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11240
11241 2011-09-23  Bruno Haible  <bruno@clisp.org>
11242
11243         signal-h: Rename from signal.
11244         * modules/signal-h: Renamed from modules/signal.
11245         * modules/pthread_sigmask (Depends-on): Update.
11246         * modules/raise (Depends-on): Likewise.
11247         * modules/sigaction (Depends-on): Likewise.
11248         * modules/sigpipe (Depends-on): Likewise.
11249         * modules/sigprocmask (Depends-on): Likewise.
11250         * modules/sys_select (Depends-on): Likewise.
11251         * modules/signal-h-tests: Renamed from modules/signal-tests.
11252         (Files, Depends-on, Makefile.am): Update.
11253         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11254         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11255         (Files, Makefile.am): Update.
11256         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11257         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11258         * modules/signal: New placeholder file.
11259         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11260         * doc/posix-headers/signal.texi: Update.
11261         * NEWS: Mention the change.
11262
11263 2011-09-23  Bruno Haible  <bruno@clisp.org>
11264
11265         sigprocmask: Avoid crashes through signal() on MSVC 9.
11266         * lib/sigprocmask.c: Include msvc-inval.h.
11267         (signal_nothrow): New function.
11268         (signal): Redefine it.
11269         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11270         * modules/sigprocmask (Depends-on): Add msvc-inval.
11271         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11272
11273 2011-09-23  Bruno Haible  <bruno@clisp.org>
11274
11275         Tests for module 'raise'.
11276         * modules/raise-tests: New file.
11277         * tests/test-raise.c: New file.
11278
11279         raise: Support for MSVC.
11280         * lib/signal.in.h (raise): New declaration.
11281         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11282         for native Windows platforms.
11283         * m4/raise.m4: New file.
11284         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11285         HAVE_RAISE, REPLACE_RAISE.
11286         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11287         REPLACE_RAISE.
11288         * modules/raise (Status, Notice): Remove fields.
11289         (Files): Add m4/raise.m4.
11290         (Depends-on): Add signal, msvc-inval.
11291         (configure.ac): Use the common idioms.
11292         (Maintainer): Add me.
11293         * tests/test-signal-c++.cc: Check the signature of raise.
11294         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11295
11296 2011-09-23  Bruno Haible  <bruno@clisp.org>
11297
11298         pipe2: Fix compilation on pre-C99 compilers.
11299         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11300
11301 2011-09-23  Bruno Haible  <bruno@clisp.org>
11302
11303         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11304         * lib/msvc-nothrow.h: New file.
11305         * lib/msvc-nothrow.c: New file.
11306         * m4/msvc-nothrow.m4: New file.
11307         * modules/msvc-nothrow: New file.
11308         * lib/dup2.c: Include msvc-nothrow.h.
11309         (rpl_dup2): No need to protect _get_osfhandle call here.
11310         * lib/accept4.c: Include msvc-nothrow.h.
11311         * lib/error.c: Likewise.
11312         * lib/fcntl.c: Likewise.
11313         * lib/lseek.c: Likewise.
11314         * lib/nonblocking.c: Likewise.
11315         * lib/poll.c: Likewise.
11316         * lib/read.c: Likewise.
11317         * lib/select.c: Likewise.
11318         * lib/sockets.h: Likewise.
11319         * lib/sockets.c: Likewise.
11320         * lib/stdio-read.c: Likewise.
11321         * lib/stdio-write.c: Likewise.
11322         * lib/write.c: Likewise.
11323         * lib/w32sock.h: Likewise.
11324         * lib/w32spawn.h: Likewise.
11325         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11326         * lib/fsync.c: Likewise.
11327         * lib/isapipe.c: Likewise.
11328         * modules/dup2 (Depends-on): Add msvc-nothrow.
11329         * modules/accept4 (Depends-on): Likewise.
11330         * modules/error (Depends-on): Likewise.
11331         * modules/fcntl (Depends-on): Likewise.
11332         * modules/lseek (Depends-on): Likewise.
11333         * modules/nonblocking (Depends-on): Likewise.
11334         * modules/poll (Depends-on): Likewise.
11335         * modules/read (Depends-on): Likewise.
11336         * modules/select (Depends-on): Likewise.
11337         * modules/sockets (Depends-on): Likewise.
11338         * modules/sigpipe (Depends-on): Likewise.
11339         * modules/write (Depends-on): Likewise.
11340         * modules/accept (Depends-on): Likewise.
11341         * modules/bind (Depends-on): Likewise.
11342         * modules/connect (Depends-on): Likewise.
11343         * modules/gethostname (Depends-on): Likewise.
11344         * modules/getpeername (Depends-on): Likewise.
11345         * modules/getsockname (Depends-on): Likewise.
11346         * modules/getsockopt (Depends-on): Likewise.
11347         * modules/ioctl (Depends-on): Likewise.
11348         * modules/listen (Depends-on): Likewise.
11349         * modules/recv (Depends-on): Likewise.
11350         * modules/recvfrom (Depends-on): Likewise.
11351         * modules/send (Depends-on): Likewise.
11352         * modules/sendto (Depends-on): Likewise.
11353         * modules/setsockopt (Depends-on): Likewise.
11354         * modules/shutdown (Depends-on): Likewise.
11355         * modules/socket (Depends-on): Likewise.
11356         * modules/execute (Depends-on): Likewise.
11357         * modules/spawn-pipe (Depends-on): Likewise.
11358         * modules/flock (Depends-on): Likewise.
11359         * modules/fsync (Depends-on): Likewise.
11360         * modules/isapipe (Depends-on): Likewise.
11361         * tests/test-cloexec.c: Include msvc-nothrow.h.
11362         * tests/test-dup-safer.c: Likewise.
11363         * tests/test-dup2.c: Likewise.
11364         * tests/test-dup3.c: Likewise.
11365         * tests/test-fcntl.c: Likewise.
11366         * tests/test-pipe.c: Likewise.
11367         * tests/test-pipe2.c: Likewise.
11368         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11369         * modules/unistd-safer-tests (Depends-on): Likewise.
11370         * modules/dup2-tests (Depends-on): Likewise.
11371         * modules/dup3-tests (Depends-on): Likewise.
11372         * modules/fcntl-tests (Depends-on): Likewise.
11373         * modules/pipe-posix-tests (Depends-on): Likewise.
11374         * modules/pipe2-tests (Depends-on): Likewise.
11375
11376 2011-09-23  Bruno Haible  <bruno@clisp.org>
11377
11378         dup2: Make code more maintainable.
11379         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11380         (rpl_dup2): Use it.
11381         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11382         * modules/dup2 (configure.ac): Invoke it.
11383         Reported by Paul Eggert.
11384
11385 2011-09-23  Bruno Haible  <bruno@clisp.org>
11386
11387         msvc-inval: Fix compilation error.
11388         * lib/msvc-inval.h: Include <excpt.h>.
11389
11390 2011-09-23  Bruno Haible  <bruno@clisp.org>
11391
11392         mkdir: Tweak for MSVC 9.
11393         * lib/sys_stat.in.h: Update comments.
11394         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11395
11396         Tests for module 'chdir'.
11397         * modules/chdir-tests: New file.
11398         * tests/test-chdir.c: New file.
11399
11400         New module 'chdir'.
11401         * modules/chdir: New file.
11402         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11403         (chdir): New declaration.
11404         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11405         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11406         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11407         * tests/test-unistd-c++.cc: Check signature of chdir.
11408         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11409         * modules/chdir-long (Depends-on): Add chdir.
11410         * modules/fchdir (Depends-on): Likewise.
11411         * modules/rename (Depends-on): Likewise.
11412         * modules/savewd (Depends-on): Likewise.
11413
11414         rmdir: Support for mingw, MSVC 9.
11415         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11416         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11417
11418         getcwd: Tweak for MSVC 9.
11419         * lib/unistd.in.h: Update comments.
11420         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11421
11422 2011-09-22  Bruno Haible  <bruno@clisp.org>
11423
11424         strerror_r-posix: Avoid a link error on MSVC.
11425         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11426         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11427
11428 2011-09-22  Bruno Haible  <bruno@clisp.org>
11429
11430         select: Avoid link errors on MSVC.
11431         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11432         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11433         * modules/pselect (Link): Likewise.
11434         * NEWS: Mention the change.
11435         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11436         test-select-stdin against $(LIB_SELECT).
11437         * modules/pselect-tests (Makefile.am): Link test-pselect against
11438         $(LIB_SELECT).
11439
11440 2011-09-22  Bruno Haible  <bruno@clisp.org>
11441
11442         select: Avoid compilation error on MSVC.
11443         * lib/select.c: Don't include <stdbool.h>.
11444
11445 2011-09-21  Bruno Haible  <bruno@clisp.org>
11446
11447         Consolidate all uses of PATH_MAX in *.m4 files.
11448         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11449         macros.
11450         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11451         and gl_PATHMAX_SNIPPET.
11452         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11453         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11454         * modules/chdir-long (Files): Add m4/pathmax.m4.
11455         * modules/getcwd (Files): Likewise.
11456
11457 2011-09-21  Bruno Haible  <bruno@clisp.org>
11458
11459         ftruncate: Un-deprecate, concentrate on Win32 support.
11460         * modules/ftruncate (Status, Notice): Remove sections.
11461         (Depends-on): Add largefile.
11462         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11463         non-mingw platforms.
11464         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11465         include <io.h>.
11466         * modules/perror-tests (Depends-on): Add ftruncate.
11467         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11468         'ftruncate' module.
11469
11470 2011-09-21  Bruno Haible  <bruno@clisp.org>
11471
11472         Add dependencies to new dirent related modules.
11473         * modules/opendir (Depends-on): Add closedir.
11474         * modules/getcwd (Depends-on): Add opendir, closedir.
11475         * modules/dirent-safer-tests (Depends-on): Likewise.
11476         * modules/fdopendir-tests (Depends-on): Likewise.
11477         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11478         * modules/renameat-tests (Depends-on): Likewise.
11479
11480 2011-09-21  Bruno Haible  <bruno@clisp.org>
11481
11482         opendir: Avoid compilation error on mingw.
11483         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11484         * modules/opendir (Depends-on): Add unistd.
11485
11486 2011-09-21  Bruno Haible  <bruno@clisp.org>
11487
11488         ftruncate tests: Avoid a test failure on mingw.
11489         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11490
11491 2011-09-21  Bruno Haible  <bruno@clisp.org>
11492
11493         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11494         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11495         native Windows.
11496
11497 2011-09-21  Bruno Haible  <bruno@clisp.org>
11498
11499         New module 'fdopen'.
11500         * lib/stdio.in.h (fdopen): New declaration.
11501         * lib/fdopen.c: New file.
11502         * m4/fdopen.m4: New file.
11503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11504         REPLACE_FDOPEN.
11505         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11506         REPLACE_FDOPEN.
11507         * modules/fdopen: New file.
11508         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11509         * tests/test-stdio-c++.cc: Check signature of fdopen.
11510         * doc/posix-functions/fdopen.texi: Mention the new module.
11511
11512 2011-09-21  Bruno Haible  <bruno@clisp.org>
11513
11514         unlockpt tests: Avoid test failure on NetBSD 5.1.
11515         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11516         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11517
11518 2011-09-21  Bruno Haible  <bruno@clisp.org>
11519
11520         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11521         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11522         * tests/test-getlogin_r.c (main): Likewise.
11523
11524 2011-09-20  Bruno Haible  <bruno@clisp.org>
11525
11526         time tests: Don't require pid_t.
11527         * doc/posix-headers/time.texi: Revert last change.
11528         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11529         * tests/test-time.c: Comment out the check for pid_t.
11530
11531 2011-09-20  Bruno Haible  <bruno@clisp.org>
11532
11533         fsync tests: Avoid a test failure on mingw.
11534         * tests/test-fsync.c (main): Allow a failure with EIO.
11535
11536 2011-09-20  Bruno Haible  <bruno@clisp.org>
11537
11538         euidaccess: Update comments.
11539         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11540
11541 2011-09-20  Bruno Haible  <bruno@clisp.org>
11542
11543         Ensure EBADF returns for socket functions on mingw.
11544         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11545         descriptor is invalid.
11546         * lib/bind.c (rpl_bind): Likewise.
11547         * lib/connect.c (rpl_connect): Likewise.
11548         * lib/getpeername.c (rpl_getpeername): Likewise.
11549         * lib/getsockname.c (rpl_getsockname): Likewise.
11550         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11551         * lib/listen.c (rpl_listen): Likewise.
11552         * lib/recv.c (rpl_recv): Likewise.
11553         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11554         * lib/send.c (rpl_send): Likewise.
11555         * lib/sendto.c (rpl_sendto): Likewise.
11556         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11557         * lib/shutdown.c (rpl_shutdown): Likewise.
11558
11559 2011-09-20  Bruno Haible  <bruno@clisp.org>
11560
11561         select tests: EBADF tests.
11562         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11563         test_bad_fd): New functions.
11564         (test_function): Invoke also test_bad_fd.
11565
11566 2011-09-20  Bruno Haible  <bruno@clisp.org>
11567
11568         Tests for module 'posix_spawn_file_actions_addopen.
11569         * modules/posix_spawn_file_actions_addopen-tests: New file.
11570         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11571
11572         Tests for module 'posix_spawn_file_actions_adddup2'.
11573         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11574         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11575
11576         Tests for module 'posix_spawn_file_actions_addclose'.
11577         * modules/posix_spawn_file_actions_addclose-tests: New file.
11578         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11579
11580 2011-09-20  Bruno Haible  <bruno@clisp.org>
11581
11582         Tests for module 'unlockpt'.
11583         * modules/unlockpt-tests: New file.
11584         * tests/test-unlockpt.c: New file.
11585         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11586
11587         Tests for module 'grantpt'.
11588         * modules/grantpt-tests: New file.
11589         * tests/test-grantpt.c: New file.
11590         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11591
11592 2011-09-20  Bruno Haible  <bruno@clisp.org>
11593
11594         freopen tests: EBADF tests.
11595         * tests/test-freopen.c: Include errno.h, unistd.h.
11596         (main): Add tests for EBADF, commented out for the moment.
11597
11598         fclose tests: EBADF tests.
11599         * tests/test-fclose.c (main): Add tests for EBADF.
11600
11601         fflush tests: EBADF tests.
11602         * tests/test-fflush.c: Include errno.h, macros.h.
11603         (main): Add tests for EBADF.
11604
11605         ftello tests: EBADF tests.
11606         * tests/test-ftello4.sh: New file.
11607         * tests/test-ftello4.c: New file.
11608         * modules/ftello-tests (Files): Add them.
11609         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11610
11611         fseeko tests: EBADF tests.
11612         * tests/test-fseeko4.sh: New file.
11613         * tests/test-fseeko4.c: New file.
11614         * modules/fseeko-tests (Files): Add them.
11615         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11616
11617         Tests for function fputc().
11618         * modules/fputc-tests: New file.
11619         * tests/test-fputc.c: New file.
11620         * modules/stdio-tests (Depends-on): Add fputc-tests.
11621
11622         Tests for function fgetc().
11623         * modules/fgetc-tests: New file.
11624         * tests/test-fgetc.c: New file.
11625         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11626
11627         Tests for function fdopen().
11628         * modules/fdopen-tests: New file.
11629         * tests/test-fdopen.c: New file.
11630         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11631
11632         Tests for module 'vdprintf'.
11633         * modules/vdprintf-tests: New file.
11634         * tests/test-vdprintf.c: New file.
11635
11636         Tests for module 'dprintf'.
11637         * modules/dprintf-tests: New file.
11638         * tests/test-dprintf.c: New file.
11639
11640 2011-09-20  Bruno Haible  <bruno@clisp.org>
11641
11642         Tests for module 'ioctl'.
11643         * modules/ioctl-tests: New file.
11644         * tests/test-ioctl.c: New file.
11645
11646 2011-09-20  Bruno Haible  <bruno@clisp.org>
11647
11648         fcntl tests: EBADF tests.
11649         * tests/test-fcntl.c (main): Add more tests for EBADF.
11650
11651 2011-09-20  Bruno Haible  <bruno@clisp.org>
11652
11653         utimensat tests: EBADF tests.
11654         * tests/test-utimensat.c (main): Add tests for EBADF.
11655
11656         renameat tests: EBADF tests.
11657         * tests/test-renameat.c (main): Add tests for EBADF.
11658
11659         mkfifoat tests: EBADF tests.
11660         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11661
11662         readlinkat tests: EBADF tests.
11663         * tests/test-readlinkat.c (main): Add tests for EBADF.
11664
11665         symlinkat tests: EBADF tests.
11666         * tests/test-symlinkat.c (main): Add tests for EBADF.
11667
11668         linkat tests: EBADF tests.
11669         * tests/test-linkat.c (main): Add tests for EBADF.
11670
11671         Tests for module 'faccessat'.
11672         * modules/faccessat-tests: New file.
11673         * tests/test-faccessat.c: New file.
11674
11675         fdopendir tests: EBADF tests.
11676         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11677
11678         openat tests: EBADF tests.
11679         * tests/test-fchownat.c (main): Add tests for EBADF.
11680         * tests/test-fstatat.c (main): Likewise.
11681         * tests/test-mkdirat.c (main): Likewise.
11682         * tests/test-openat.c (main): Likewise.
11683         * tests/test-unlinkat.c (main): Likewise.
11684         * tests/test-fchmodat.c: New file.
11685         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11686         (Makefile.am): Also run 'test-fchmodat'.
11687
11688 2011-09-20  Bruno Haible  <bruno@clisp.org>
11689
11690         utimens, futimens, fdutimensat tests: EBADF tests.
11691         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11692
11693         Tests for function fstat().
11694         * modules/fstat-tests: New file.
11695         * tests/test-fstat.c: New file.
11696         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11697
11698 2011-09-20  Bruno Haible  <bruno@clisp.org>
11699
11700         test-ttyname_r tests: EBADF tests.
11701         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11702
11703         Tests for module 'isatty'.
11704         * modules/isatty-tests: New file.
11705         * tests/test-isatty.c: New file.
11706
11707         Tests for module 'write'.
11708         * modules/write-tests: New file.
11709         * tests/test-write.c: New file.
11710
11711         Tests for module 'read'.
11712         * modules/read-tests: New file.
11713         * tests/test-read.c: New file.
11714
11715         pwrite tests: EBADF tests.
11716         * tests/test-pwrite.c (main): Add tests for EBADF.
11717
11718         pread tests: EBADF tests.
11719         * tests/test-pread.c (main): Add tests for EBADF.
11720
11721         lseek tests: EBADF tests.
11722         * tests/test-lseek.c (main): Add more tests for EBADF.
11723
11724         Tests for module 'ftruncate'.
11725         * modules/ftruncate-tests: New file.
11726         * tests/test-ftruncate.sh: New file.
11727         * tests/test-ftruncate.c: New file.
11728
11729         fsync tests: EBADF tests.
11730         * tests/test-fsync.c (main): Add more tests for EBADF.
11731
11732         fdatasync tests: EBADF tests.
11733         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11734
11735         Tests for module 'fchown'.
11736         * modules/fchown-tests: New file.
11737         * tests/test-fchown.c: New file.
11738
11739         Tests for module 'fchmod'.
11740         * modules/fchmod-tests: New file.
11741         * tests/test-fchmod.c: New file.
11742
11743         fchdir tests: EBADF tests.
11744         * tests/test-fchdir.c (main): Add more tests for EBADF.
11745
11746         dup2 tests: EBADF tests.
11747         * tests/test-dup2.c (main): Add more tests for EBADF.
11748
11749         Tests for module 'dup'.
11750         * modules/dup-tests: New file.
11751         * tests/test-dup.c: New file.
11752
11753         Tests for module 'close'.
11754         * modules/close-tests: New file.
11755         * tests/test-close.c: New file.
11756
11757 2011-09-20  Bruno Haible  <bruno@clisp.org>
11758
11759         Tests for module 'shutdown'.
11760         * modules/shutdown-tests: New file.
11761         * tests/test-shutdown.c: New file.
11762
11763         Tests for module 'setsockopt'.
11764         * modules/setsockopt-tests: New file.
11765         * tests/test-setsockopt.c: New file.
11766
11767         Tests for module 'sendto'.
11768         * modules/sendto-tests: New file.
11769         * tests/test-sendto.c: New file.
11770
11771         Tests for module 'send'.
11772         * modules/send-tests: New file.
11773         * tests/test-send.c: New file.
11774
11775         Tests for module 'recvfrom'.
11776         * modules/recvfrom-tests: New file.
11777         * tests/test-recvfrom.c: New file.
11778
11779         Tests for module 'recv'.
11780         * modules/recv-tests: New file.
11781         * tests/test-recv.c: New file.
11782
11783         Tests for module 'listen'.
11784         * modules/listen-tests: New file.
11785         * tests/test-listen.c: New file.
11786
11787         Tests for module 'getsockopt'.
11788         * modules/getsockopt-tests: New file.
11789         * tests/test-getsockopt.c: New file.
11790
11791         Tests for module 'getsockname'.
11792         * modules/getsockname-tests: New file.
11793         * tests/test-getsockname.c: New file.
11794
11795         Tests for module 'getpeername'.
11796         * modules/getpeername-tests: New file.
11797         * tests/test-getpeername.c: New file.
11798
11799         Tests for module 'connect'.
11800         * modules/connect-tests: New file.
11801         * tests/test-connect.c: New file.
11802
11803         Tests for module 'bind'.
11804         * modules/bind-tests: New file.
11805         * tests/test-bind.c: New file.
11806
11807         accept4 tests: Fix for native Windows.
11808         * tests/test-accept4.c: Include sockets.h.
11809         (main): Invoke gl_sockets_startup.
11810         * modules/accept4-tests (Depends-on): Add sockets.
11811
11812         accept tests: Fix for native Windows.
11813         * tests/test-accept.c: Include sockets.h.
11814         (main): Invoke gl_sockets_startup.
11815         * modules/accept-tests (Depends-on): Add sockets.
11816
11817 2011-09-19  Bruno Haible  <bruno@clisp.org>
11818
11819         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11820         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11821         do...while(0).
11822         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11823         Suggested by Paul Eggert.
11824
11825 2011-09-19  Bruno Haible  <bruno@clisp.org>
11826
11827         sched: Ensure pid_t is defined.
11828         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11829         not define pid_t.
11830         * lib/sched.in.h: Include <sys/types.h>.
11831         * doc/posix-headers/sched.texi: Mention the pid_t problem.
11832         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11833
11834 2011-09-19  Bruno Haible  <bruno@clisp.org>
11835
11836         msvc-inval: Ensure the entire expansion is a single statement.
11837         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
11838         of braces.
11839
11840 2011-09-19  Jim Meyering  <meyering@redhat.com>
11841
11842         tests: use printf, not echo in init.sh's warn_ function
11843         * tests/init.sh (warn_): Use printf, not echo.  The latter would
11844         misbehave when given strings containing a backslash or starting
11845         with e.g., -n.  James Youngman suggested setting IFS.
11846
11847 2011-09-19  Eric Blake  <eblake@redhat.com>
11848
11849         futimens: enhance test
11850         * tests/test-futimens.h (test_futimens): Also check for EBADF on
11851         closed non-negative fd.
11852
11853         date: accept 'hence' as opposite of 'ago'
11854         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
11855         * tests/test-parse-datetime.c (main): Enhance test.
11856         Suggested by Jesse Wilson.
11857
11858 2011-09-19  Jim Meyering  <meyering@redhat.com>
11859
11860         getcwd: don't fail in a deep directory on a system without openat
11861         Before this change, getcwd would fail when called from a directory
11862         of depth PATH_MAX / 3 or greater.  That was due to the fact that
11863         the non-openat implementation used "..", "../..", "../../..", etc.
11864         to access ancestor directories.  With too many, that string would
11865         be longer than PATH_MAX.
11866         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
11867         using gnulib's openat replacement.
11868         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
11869         we're using the replacement function.
11870
11871 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
11872
11873         maint.mk: avoid warnings from perl about missing files
11874         * top/maint.mk (def_sym_regex): Ignore files listed in
11875         $(gl_other_headers_) that do not exist, say because a project
11876         does not use a corresponding module.
11877
11878 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11879
11880         stat: use pathmax.h only if needed
11881         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
11882         This is better for Emacs, which does not have a mingw port and
11883         therefore can avoid the pathmax module.
11884
11885         utimens: remove dependency on dup2
11886         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
11887         to work around the Linux kernel bug.
11888         * modules/utimens (Depends-on): Remove dup2.
11889
11890 2011-09-18  Bruno Haible  <bruno@clisp.org>
11891
11892         inet_ntop, inet_pton: Look for it also in libresolv.
11893         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
11894         libnsl, search for it in libresolv.
11895         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11896         Needed on Solaris 7.
11897
11898 2011-09-18  Bruno Haible  <bruno@clisp.org>
11899
11900         accept, accept4 tests: Avoid link error on Solaris.
11901         * modules/accept-tests (Makefile.am): Link test-accept against
11902         $(LIBSOCKET).
11903         * modules/accept4-tests (Makefile.am): Link test-accept4 against
11904         $(LIBSOCKET).
11905
11906         accept4: Avoid link error on Solaris.
11907         * modules/accept4 (Link): New section.
11908
11909         socket functions: Avoid link errors on Solaris.
11910         * modules/accept (Depends-on): Add socketlib.
11911         (Link): New section.
11912         * modules/bind (Depends-on): Add socketlib.
11913         (Link): New section.
11914         * modules/connect (Depends-on): Add socketlib.
11915         (Link): New section.
11916         * modules/getpeername (Depends-on): Add socketlib.
11917         (Link): New section.
11918         * modules/getsockname (Depends-on): Add socketlib.
11919         (Link): New section.
11920         * modules/getsockopt (Depends-on): Add socketlib.
11921         (Link): New section.
11922         * modules/listen (Depends-on): Add socketlib.
11923         (Link): New section.
11924         * modules/recv (Depends-on): Add socketlib.
11925         (Link): New section.
11926         * modules/recvfrom (Depends-on): Add socketlib.
11927         (Link): New section.
11928         * modules/send (Depends-on): Add socketlib.
11929         (Link): New section.
11930         * modules/sendto (Depends-on): Add socketlib.
11931         (Link): New section.
11932         * modules/setsockopt (Depends-on): Add socketlib.
11933         (Link): New section.
11934         * modules/shutdown (Depends-on): Add socketlib.
11935         (Link): New section.
11936         * modules/socket (Depends-on): Add socketlib.
11937         (Link): New section.
11938
11939 2011-09-18  Bruno Haible  <bruno@clisp.org>
11940
11941         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
11942         * tests/test-ptsname.c (main): Terminate the test if it takes longer
11943         than 5 seconds.
11944         * modules/ptsname-tests (configure.ac): Test for alarm.
11945
11946 2011-09-18  Bruno Haible  <bruno@clisp.org>
11947
11948         posix_spawn_file_actions_add*: Fix module dependencies.
11949         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
11950         posix_spawn_file_actions_init.
11951         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
11952         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
11953
11954 2011-09-18  Bruno Haible  <bruno@clisp.org>
11955
11956         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
11957         * tests/test-rename.h (test_rename): Allow error code EEXIST.
11958         * tests/test-renameat.c (main): Likewise.
11959
11960 2011-09-18  Bruno Haible  <bruno@clisp.org>
11961
11962         Tests for module 'accept4'.
11963         * modules/accept4-tests: New file.
11964         * tests/test-accept4.c: New file.
11965
11966 2011-09-18  Bruno Haible  <bruno@clisp.org>
11967
11968         Tests for module 'accept'.
11969         * modules/accept-tests: New file.
11970         * tests/test-accept.c: New file.
11971
11972 2011-09-18  Bruno Haible  <bruno@clisp.org>
11973
11974         dup2: Support for MSVC.
11975         * lib/dup2.c: Include msvc-inval.h.
11976         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11977         _get_osfhandle calls.
11978         * modules/dup2 (Depends-on): Add msvc-inval.
11979         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11980
11981         New module 'msvc-inval'.
11982         * lib/msvc-inval.h: New file.
11983         * lib/msvc-inval.c: New file.
11984         * m4/msvc-inval.m4: New file.
11985         * modules/msvc-inval: New file.
11986
11987 2011-09-17  Bruno Haible  <bruno@clisp.org>
11988
11989         Tests for module 'pclose'.
11990         * modules/pclose-tests: New file.
11991
11992         New module 'pclose'.
11993         * lib/stdio.in.h (pclose): New declaration.
11994         * lib/pclose.c: New file.
11995         * m4/pclose.m4: New file.
11996         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11997         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11998         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11999         * modules/pclose: New file.
12000         * modules/popen-tests (Depends-on): Add pclose.
12001         * modules/popen-safer-tests (Depends-on): Likewise.
12002         * doc/posix-functions/pclose.texi: Mention the new module.
12003
12004 2011-09-17  Bruno Haible  <bruno@clisp.org>
12005
12006         popen: Support for MSVC.
12007         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12008         * lib/popen.c (popen): Provide alternate definition for native Windows.
12009         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12011         * modules/popen (Depends-on, configure.ac): Update condition.
12012         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12013         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12014         fixed.
12015
12016 2011-09-17  Bruno Haible  <bruno@clisp.org>
12017
12018         isnanl, isnand, isnanf: Work around MSVC bug.
12019         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12020
12021 2011-09-17  Bruno Haible  <bruno@clisp.org>
12022
12023         sys_socket tests: Fix recent mistake.
12024         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12025
12026 2011-09-17  Bruno Haible  <bruno@clisp.org>
12027
12028         putenv: Support for MSVC.
12029         * modules/putenv (Depends-on): Add environ.
12030         * lib/putenv.c (environ): Disable declaration.
12031         * lib/unistd.in.h: Update comment.
12032
12033 2011-09-17  Bruno Haible  <bruno@clisp.org>
12034
12035         math: Avoid macro redefinition warnings on MSVC.
12036         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12037         Undefine before redefining.
12038
12039 2011-09-17  Bruno Haible  <bruno@clisp.org>
12040
12041         doc: Mention functions which are declared as macros.
12042         * doc/posix-functions/*[fl].texi: Mention that some functions are
12043         defined as macros with arguments only.
12044
12045 2011-09-17  Bruno Haible  <bruno@clisp.org>
12046
12047         Add dependencies to new dirent related modules.
12048         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12049         * modules/fts (Depends-on): Likewise.
12050         * modules/glob (Depends-on): Likewise.
12051         * modules/savedir (Depends-on): Likewise.
12052         * modules/scandir (Depends-on): Likewise.
12053         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12054         * modules/fdopendir (Depends-on): Add opendir.
12055
12056 2011-09-17  Bruno Haible  <bruno@clisp.org>
12057
12058         inet_pton: Support for MSVC on Windows Vista or newer.
12059         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12060         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12061         HAVE_DECL_INET_PTON is defined.
12062         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12063         On platforms with <winsock2.h>, test whether inet_pton is declared in
12064         <ws2tcpip.h>. If so, arrange to replace it.
12065         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12066         REPLACE_INET_PTON.
12067         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12068         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12069         (Depends-on, configure.ac): Update condition.
12070         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12071
12072 2011-09-17  Bruno Haible  <bruno@clisp.org>
12073
12074         inet_ntop: Support for MSVC on Windows Vista or newer.
12075         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12076         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12077         HAVE_DECL_INET_NTOP is defined.
12078         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12079         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12080         <ws2tcpip.h>. If so, arrange to replace it.
12081         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12082         REPLACE_INET_NTOP.
12083         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12084         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12085         (Depends-on, configure.ac): Update condition.
12086         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12087
12088 2011-09-16  Eric Blake  <eblake@redhat.com>
12089
12090         test-fsync: yet another enhancement
12091         * tests/test-fsync.c (main): Also test behavior on read-only text
12092         file.
12093
12094 2011-09-16  Bruno Haible  <bruno@clisp.org>
12095
12096         Enhance fsync, fdatasync tests.
12097         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12098         * tests/test-fdatasync.c (main): Likewise.
12099
12100 2011-09-16  Bruno Haible  <bruno@clisp.org>
12101
12102         Support for MSVC compiler: Ensure mode_t gets defined.
12103         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12104         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12105         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12106         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12107         * tests/test-fcntl-h.c: Check that mode_t is defined.
12108         * tests/test-sys_stat.c: Likewise.
12109         * tests/test-sys_types.c: Likewise.
12110         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12111         * doc/posix-headers/sys_stat.texi: Likewise.
12112         * doc/posix-headers/sys_types.texi: Likewise.
12113
12114 2011-09-16  Bruno Haible  <bruno@clisp.org>
12115
12116         sys_stat: Support for MSVC.
12117         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12118         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12119         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12120         MSVC.
12121
12122 2011-09-16  Bruno Haible  <bruno@clisp.org>
12123
12124         Support for MSVC compiler: Ensure off_t gets defined.
12125         * lib/unistd.in.h: Include <sys/types.h>.
12126         * tests/test-fcntl-h.c: Check that off_t is defined.
12127         * tests/test-sys_stat.c: Likewise.
12128         * tests/test-sys_types.c: Likewise.
12129
12130 2011-09-16  Eric Blake  <eblake@redhat.com>
12131
12132         fdatasync: port to Solaris
12133         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12134         * modules/fdatasync (Link): Document it.
12135         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12136
12137         fdatasync: port to MacOS X 10.7
12138         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12139         declared.
12140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12141         * modules/unistd (Makefile.am): Substitute it.
12142         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12143         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12144
12145         fdatasync: minor improvements
12146         * modules/fdatasync (Depends-on): Add condition for fsync.
12147         * lib/fdatasync.c (fdatasync): Add comment.
12148         * tests/test-unistd-c++.cc: Test fdatasync.
12149
12150         unistd: update refs to newer POSIX
12151         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12152         Suggested by Bruno Haible.
12153
12154         fdatasync: new module
12155         * modules/fsync (Description): Document difference to fdatasync.
12156         * modules/fdatasync: New module.
12157         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12158         * lib/fdatasync.c (fdatasync): Likewise.
12159         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12160         defaults.
12161         * modules/unistd (Makefile.am): Set witnesses.
12162         * lib/unistd.in.h (fdatasync): Declare.
12163         * MODULES.html.sh: Document it.
12164         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12165         * modules/fdatasync-tests: New test.
12166         * tests/test-fdatasync.c: Likewise.
12167
12168 2011-09-16  Eric Blake  <eblake@redhat.com>
12169
12170         test-fsync: enhance tests
12171         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12172         * tests/test-fsync.c (main): Enhance test.
12173
12174 2011-09-15  Bruno Haible  <bruno@clisp.org>
12175
12176         Support for MSVC compiler: Ensure ssize_t gets defined.
12177         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12178         * doc/posix-headers/stdio.texi: Likewise.
12179         * modules/stdio (Depends-on): Add ssize_t.
12180         * modules/sys_socket (Depends-on): Likewise.
12181         * modules/sys_types (Depends-on): Likewise.
12182         * modules/sys_uio (Depends-on): Likewise.
12183         * modules/unistd (Depends-on): Likewise.
12184         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12185         * tests/test-sys_types.c: Check that ssize_t is defined.
12186
12187 2011-09-14  Bruno Haible  <bruno@clisp.org>
12188
12189         Avoid using #, the m4 comment starter character, near brackets.
12190         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12191         delimiter character in sed expressions.
12192         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12193         Suggested by Eric Blake.
12194
12195         Properly quote AC_CHECK_DECLS' 4th argument.
12196         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12197         argument.
12198         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12199         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12200         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12201         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12202         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12203         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12204         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12205         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12206         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12207         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12208         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12209         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12210         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12211         * m4/isinf.m4 (gl_ISINF): Likewise.
12212         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12213         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12214         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12215         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12216         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12217         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12218         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12219         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12220         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12221         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12222         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12223         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12225         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12227         Reported by Eric Blake.
12228
12229         Properly quote AC_CHECK_DECL's 4th argument.
12230         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12231         argument.
12232         * m4/argp.m4 (gl_ARGP): Likewise.
12233         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12234         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12235         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12236         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12237         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12238         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12239         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12240         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12241         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12242         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12243         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12244         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12245         Reported by Eric Blake.
12246
12247 2011-09-14  Eric Blake  <eblake@redhat.com>
12248
12249         opendir: avoid compile warning
12250         * lib/opendir.c (includes): Always include errno.h.
12251         Reported by Tatsuro MATSUOKA.
12252
12253 2011-09-14  Jim Meyering  <meyering@redhat.com>
12254
12255         maint.mk: sc_tight_scope: propagate failure from sub-make
12256         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12257         Reported by Martin von Gagern.
12258
12259 2011-09-13  Bruno Haible  <bruno@clisp.org>
12260
12261         tempname: Support for MSVC.
12262         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12263         MSVC.
12264         * modules/tempname (Depends-on): Add fcntl-h.
12265
12266 2011-09-13  Bruno Haible  <bruno@clisp.org>
12267
12268         sys_time: Support for MSVC.
12269         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12270         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12271         include <winsock2.h>.
12272         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12273         function declarations that collide with POSIX.
12274         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12275         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12276
12277 2011-09-13  Bruno Haible  <bruno@clisp.org>
12278
12279         stat: Support for MSVC.
12280         * lib/stat.c: Include pathmax.h.
12281         * modules/stat (Depends-on): Add pathmax.
12282
12283         pathmax: Support for native Windows.
12284         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12285
12286 2011-09-12  Bruno Haible  <bruno@clisp.org>
12287
12288         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12289         * lib/dirent.in.h (struct dirent): New type.
12290         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12291         DT_WHT): New macros.
12292         (DIR): New type.
12293         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12294         (readdir, rewinddir): New declarations.
12295         * lib/dirent-private.h: New file.
12296         * lib/opendir.c: New file.
12297         * lib/readdir.c: New file.
12298         * lib/rewinddir.c: New file.
12299         * lib/closedir.c: New file.
12300         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12301         * m4/opendir.m4: New file.
12302         * m4/readdir.m4: New file.
12303         * m4/rewinddir.m4: New file.
12304         * m4/closedir.m4: New file.
12305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12306         REPLACE_CLOSEDIR here.
12307         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12308         readdir, rewinddir are declared.
12309         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12310         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12311         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12312         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12313         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12314         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12315         * modules/opendir: New file.
12316         * modules/readdir: New file.
12317         * modules/rewinddir: New file.
12318         * modules/closedir: New file.
12319         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12320         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12321         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12322         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12323         * NEWS: Mention the 'fchdir' change.
12324
12325 2011-09-11  Bruno Haible  <bruno@clisp.org>
12326
12327         asm-underscore.m4: Support for MSVC.
12328         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12329         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12330
12331 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12332
12333         Doc about crypt functions.
12334         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12335         needing for _GNU_SOURCE to get crypt.
12336         * doc/posix-functions/encrypt.texi: Likewise.
12337         * doc/posix-functions/setkey.texi: Likewise.
12338
12339 2011-09-11  Bruno Haible  <bruno@clisp.org>
12340
12341         doc: Update regarding MSVC 9.
12342         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12343         tested".
12344         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12345         * doc/posix-headers/*.texi: Likewise.
12346         * doc/pastposix-functions/*.texi: Likewise.
12347         * doc/glibc-functions/*.texi: Likewise.
12348         * doc/glibc-headers/*.texi: Likewise.
12349
12350 2011-09-11  Bruno Haible  <bruno@clisp.org>
12351
12352         unistd et al.: Don't assume <unistd.h> exists.
12353         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12354         does not exist.
12355         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12356         exist. But include <stdlib.h>.
12357         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12358         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12359         symlink() does not exist.
12360         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12361         include <io.h> instead.
12362         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12363         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12364         include <direct.h> instead.
12365         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12366         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12367         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12368         <io.h> instead.
12369         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12370         correctly if the system does not have hard links.
12371         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12372         <direct.h> instead.
12373         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12374         it when looking for function declarations.
12375         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12376         <direct.h> and <io.h> instead.
12377         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12378
12379 2011-09-11  Bruno Haible  <bruno@clisp.org>
12380
12381         strcase: Support for MSVC.
12382         * modules/strcase (Status, Notice): Remove obsoletion mark.
12383         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12384         * doc/posix-functions/strncasecmp.texi: Likewise.
12385
12386         strings: Don't assume <strings.h> exists.
12387         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12388         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12389         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12390         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12391
12392 2011-09-11  Bruno Haible  <bruno@clisp.org>
12393
12394         dirent: Don't assume <dirent.h> exists.
12395         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12396         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12397         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12398         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12399
12400 2011-09-11  Bruno Haible  <bruno@clisp.org>
12401
12402         Fix wint_t on MSVC.
12403         * lib/wchar.in.h (wint_t): On MSVC, override it.
12404         * lib/wctype.in.h (wint_t): Likewise.
12405         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12406         MSVC.
12407         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12408         * doc/posix-headers/wctype.texi: Likewise.
12409
12410 2011-09-11  Bruno Haible  <bruno@clisp.org>
12411
12412         sys_types: Fix typo.
12413         * lib/sys_types.in.h: Fix typo in comment.
12414         Reported by Paul Eggert.
12415
12416         Support for MSVC compiler: Ensure size_t gets defined.
12417         * modules/strings (Depends-on): Add 'sys_types'.
12418         * modules/sys_uio (Depends-on): Likewise.
12419         * lib/sys_uio.in.h: Update comment.
12420
12421         C++ tests for module 'sys_types'.
12422         * modules/sys_types-c++-tests: New file.
12423         * tests/test-sys_types-c++.cc: New file.
12424
12425         Tests for module 'sys_types'.
12426         * modules/sys_types-tests: New file.
12427         * tests/test-sys_types.c: New file.
12428
12429         New module 'sys_types'.
12430         * lib/sys_types.in.h: New file.
12431         * m4/sys_types_h.m4: New file.
12432         * modules/sys_types: New file.
12433         * doc/posix-headers/sys_types.texi: Mention the new module and the
12434         size_t problem on MSVC 9.
12435
12436 2011-09-11  Bruno Haible  <bruno@clisp.org>
12437
12438         Support for MSVC compiler: Avoid division by a literal 0.
12439         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12440         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12441         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12442         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12443         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12444         * tests/infinity.h: New file.
12445         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12446         on MSVC.
12447         * tests/test-ceilf1.c: Include infinity.h.
12448         (main): Use Infinityf.
12449         * tests/test-ceil1.c: Include infinity.h.
12450         (main): Use Infinityd.
12451         * tests/test-ceill.c: Include infinity.h.
12452         (main): Use Infinityl.
12453         * tests/test-dprintf-posix.c: Include infinity.h.
12454         (test_function): Use Infinityd.
12455         * tests/test-floorf1.c: Include infinity.h.
12456         (main): Use Infinityf.
12457         * tests/test-floor1.c: Include infinity.h.
12458         (main): Use Infinityd.
12459         * tests/test-floorl.c: Include infinity.h.
12460         (main): Use Infinityl.
12461         * tests/test-fprintf-posix.c: Include infinity.h.
12462         (test_function): Use Infinityd.
12463         * tests/test-frexp.c: Include infinity.h.
12464         (main): Use Infinityd.
12465         * tests/test-frexpl.c: Include infinity.h.
12466         (main): Use Infinityl.
12467         * tests/test-isfinite.c: Include infinity.h.
12468         (test_isfinitef): Use Infinityf.
12469         (test_isfinited): Use Infinityd.
12470         (test_isfinitel): Use Infinityl.
12471         * tests/test-isinf.c: Include infinity.h.
12472         (test_isinff): Use Infinityf.
12473         (test_isinfd): Use Infinityd.
12474         (test_isinfl): Use Infinityl.
12475         * tests/test-isnan.c: Include infinity.h.
12476         (test_float): Use Infinityf.
12477         (test_double): Use Infinityd.
12478         (test_long_double): Use Infinityl.
12479         * tests/test-isnanf.h: Include infinity.h.
12480         (main): Use Infinityf.
12481         * tests/test-isnand.h: Include infinity.h.
12482         (main): Use Infinityd.
12483         * tests/test-isnanl.h: Include infinity.h.
12484         (main): Use Infinityl.
12485         * tests/test-ldexpl.c: Include infinity.h.
12486         (main): Use Infinityl.
12487         * tests/test-printf-posix.h: Include infinity.h.
12488         (test_function): Use Infinityd.
12489         * tests/test-roundf1.c: Include infinity.h.
12490         (main): Use Infinityf.
12491         * tests/test-round1.c: Include infinity.h.
12492         (main): Use Infinityd.
12493         * tests/test-roundl.c: Include infinity.h.
12494         (main): Use Infinityl.
12495         * tests/test-signbit.c: Include infinity.h.
12496         (test_signbitf): Use Infinityf.
12497         (test_signbitd): Use Infinityd.
12498         (test_signbitl): Use Infinityl.
12499         * tests/test-snprintf-posix.h: Include infinity.h.
12500         (test_function): Use Infinityd, Infinityl.
12501         * tests/test-sprintf-posix.h: Include infinity.h.
12502         (test_function): Use Infinityd, Infinityl.
12503         * tests/test-truncf1.c: Include infinity.h.
12504         (main): Use Infinityf.
12505         * tests/test-trunc1.c: Include infinity.h.
12506         (main): Use Infinityd.
12507         * tests/test-truncl.c: Include infinity.h.
12508         (main): Use Infinityl.
12509         * tests/test-vasnprintf-posix.c: Include infinity.h.
12510         (test_function): Use Infinityd, Infinityl.
12511         * tests/test-vasprintf-posix.c: Include infinity.h.
12512         (test_function): Use Infinityd, Infinityl.
12513         * modules/ceilf-tests (Files): Add tests/infinity.h.
12514         * modules/ceil-tests (Files): Likewise.
12515         * modules/ceill-tests (Files): Likewise.
12516         * modules/dprintf-posix-tests (Files): Likewise.
12517         * modules/floorf-tests (Files): Likewise.
12518         * modules/floor-tests (Files): Likewise.
12519         * modules/floorl-tests (Files): Likewise.
12520         * modules/fprintf-posix-tests (Files): Likewise.
12521         * modules/frexp-tests (Files): Likewise.
12522         * modules/frexp-nolibm-tests (Files): Likewise.
12523         * modules/frexpl-tests (Files): Likewise.
12524         * modules/frexpl-nolibm-tests (Files): Likewise.
12525         * modules/isfinite-tests (Files): Likewise.
12526         * modules/isinf-tests (Files): Likewise.
12527         * modules/isnan-tests (Files): Likewise.
12528         * modules/isnanf-tests (Files): Likewise.
12529         * modules/isnanf-nolibm-tests (Files): Likewise.
12530         * modules/isnand-tests (Files): Likewise.
12531         * modules/isnand-nolibm-tests (Files): Likewise.
12532         * modules/isnanl-tests (Files): Likewise.
12533         * modules/isnanl-nolibm-tests (Files): Likewise.
12534         * modules/ldexpl-tests (Files): Likewise.
12535         * modules/printf-posix-tests (Files): Likewise.
12536         * modules/roundf-tests (Files): Likewise.
12537         * modules/round-tests (Files): Likewise.
12538         * modules/roundl-tests (Files): Likewise.
12539         * modules/signbit-tests (Files): Likewise.
12540         * modules/snprintf-posix-tests (Files): Likewise.
12541         * modules/sprintf-posix-tests (Files): Likewise.
12542         * modules/truncf-tests (Files): Likewise.
12543         * modules/trunc-tests (Files): Likewise.
12544         * modules/truncl-tests (Files): Likewise.
12545         * modules/vasnprintf-posix-tests (Files): Likewise.
12546         * modules/vasprintf-posix-tests (Files): Likewise.
12547         * modules/vdprintf-posix-tests (Files): Likewise.
12548         * modules/vfprintf-posix-tests (Files): Likewise.
12549         * modules/vprintf-posix-tests (Files): Likewise.
12550         * modules/vsnprintf-posix-tests (Files): Likewise.
12551         * modules/vsprintf-posix-tests (Files): Likewise.
12552         * modules/xprintf-posix-tests (Files): Likewise.
12553
12554 2011-09-11  Bruno Haible  <bruno@clisp.org>
12555
12556         Ensure pid_t gets defined.
12557         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12558         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12559         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12560         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12561         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12562         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12563         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12564         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12565         * tests/test-fcntl-h.c: Check that pid_t is defined.
12566         * tests/test-sched.c: Likewise.
12567         * tests/test-termios.c: Likewise.
12568         * tests/test-time.c: Likewise.
12569         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12570         * doc/posix-headers/signal.texi: Likewise.
12571         * doc/posix-headers/sys_types.texi: Likewise.
12572         * doc/posix-headers/time.texi: Likewise.
12573
12574 2011-09-11  Bruno Haible  <bruno@clisp.org>
12575
12576         acl: Fix compilation on Solaris 10 (older version).
12577         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12578         of ACE_EVERYONE.
12579         * lib/set-mode-acl.c (qset_acl): Likewise.
12580         Reported by Christian Jullien <eligis@orange.fr>.
12581
12582 2011-09-10  Bruno Haible  <bruno@clisp.org>
12583
12584         iconv, unsetenv: Add support for MSVC compiler.
12585         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12586         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12587
12588 2011-09-10  Bruno Haible  <bruno@clisp.org>
12589
12590         *printf: Add support for MSVC compiler.
12591         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12592         handles the exception caused by the %n directive. When cross-compiling,
12593         guess no on native Windows.
12594         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12595         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12596         emulate it through vsnprintf.
12597         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12598         * doc/posix-functions/dprintf.texi: Update documentation regarding
12599         MSVC 9.
12600         * doc/posix-functions/fprintf.texi: Likewise.
12601         * doc/posix-functions/printf.texi: Likewise.
12602         * doc/posix-functions/snprintf.texi: Likewise.
12603         * doc/posix-functions/sprintf.texi: Likewise.
12604         * doc/posix-functions/swprintf.texi: Likewise.
12605         * doc/posix-functions/vdprintf.texi: Likewise.
12606         * doc/posix-functions/vfprintf.texi: Likewise.
12607         * doc/posix-functions/vprintf.texi: Likewise.
12608         * doc/posix-functions/vsnprintf.texi: Likewise.
12609         * doc/posix-functions/vsprintf.texi: Likewise.
12610         * doc/glibc-functions/asprintf.texi: Likewise.
12611         * doc/glibc-functions/obstack_printf.texi: Likewise.
12612         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12613         * doc/glibc-functions/vasprintf.texi: Likewise.
12614
12615 2011-09-10  Bruno Haible  <bruno@clisp.org>
12616
12617         nocrash: Add support for native Windows.
12618         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12619
12620 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12621             Bruno Haible  <bruno@clisp.org>
12622
12623         absolute-header, include-next: Add support for MSVC compiler.
12624         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12625         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12626         directory separator in #line directives.
12627         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12628         recognize also backslash as directory separator in #line directives.
12629
12630 2011-09-08  Jim Meyering  <meyering@redhat.com>
12631
12632         maint.mk: mark the post-release commit log with "maint: " prefix
12633         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12634         one-line commit-log summary.
12635
12636 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12637             Bruno Haible  <bruno@clisp.org>
12638
12639         Doc about crypt functions.
12640         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12641         systems.
12642         * doc/posix-functions/encrypt.texi: Likewise.
12643         * doc/posix-functions/setkey.texi: Likewise.
12644
12645 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12646
12647         * lib/gc.h: Fix copyright header.
12648
12649 2011-09-07  Bruno Haible  <bruno@clisp.org>
12650
12651         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12652         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12653         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12654
12655 2011-09-07  Bruno Haible  <bruno@clisp.org>
12656
12657         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12658         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12659         * lib/freopen.c: Likewise.
12660         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12661         * lib/lstat.c: Likewise.
12662         * lib/stat.c: Likewise.
12663         * lib/open.c: Use different syntax for include of <fcntl.h>.
12664         * lib/openat.c: Include fcntl.h again, explicitly.
12665
12666 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12667
12668         parse-datetime: document the newly accepted format
12669         * doc/parse-datetime.texi (Combined date and time of day items):
12670         New section.
12671
12672 2011-09-06  Bruno Haible  <bruno@clisp.org>
12673
12674         acl: Fix a test failure on newer Solaris 10 with ZFS.
12675         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12676         ENOSYS as no ACL.
12677         Reported by Jim Meyering.
12678
12679 2011-09-06  Bruno Haible  <bruno@clisp.org>
12680
12681         acl: Update for AIX >= 5.3 with NFS.
12682         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12683         ENOSYS as no ACL.
12684
12685         acl: Fix a test failure on AIX >= 5.3 with NFS.
12686         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12687         as no ACL.
12688
12689 2011-09-06  Bruno Haible  <bruno@clisp.org>
12690
12691         acl: Fix a test failure on IRIX 6.5 with NFS.
12692         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12693         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12694         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12695         * lib/copy-acl.c (qcopy_acl): Likewise.
12696
12697 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12698
12699         openat: port to AIX 7.1 with large files
12700         AIX 7.1 does a "#define openat open64at" if large files are in use,
12701         so we can't simply #undef openat.  Use the orig_openat trick (similar
12702         to orig_open in lib/open.c) to work around the problem.  Problem
12703         reported by Kevin Brott for GNU tar, in the thread containing
12704         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12705         * lib/openat.c (__need_system_fcntl_h): Define first.
12706         Include <fcntl.h> and <sys/types.h> before undefining.
12707         (orig_openat) [HAVE_OPENAT]: New inline function.
12708         (openat) [HAVE_OPENAT]: Do not undef.
12709         (rpl_openat): Use orig_openat, not openat.
12710
12711 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12712             Bruno Haible  <bruno@clisp.org>
12713
12714         acl: Avoid errors on NonStop Kernel.
12715         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12716         ENOTSUP errors.
12717
12718 2011-09-05  Bruno Haible  <bruno@clisp.org>
12719
12720         acl: Clean up Solaris code.
12721         * lib/acl-internal.h: Remove no-op #if.
12722         * lib/file-has-acl.c: Likewise.
12723         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12724         * lib/copy-acl.c (qcopy_acl): Likewise.
12725
12726 2011-09-05  Bruno Haible  <bruno@clisp.org>
12727
12728         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12729         binaries built on the original Solaris 10.
12730         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12731         trivial.
12732
12733 2011-09-05  Bruno Haible  <bruno@clisp.org>
12734
12735         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12736         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12737         10.
12738         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12739         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12740         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12741         instead of acl_get, facl_get, acl_set, facl_set.
12742
12743 2011-09-05  Bruno Haible  <bruno@clisp.org>
12744
12745         copy-file: Try unit tests on more file systems.
12746         * tests/test-copy-file-1.sh: New file.
12747         * tests/test-copy-file-2.sh: New file.
12748         * modules/copy-file-tests (Files): Add them.
12749         (Makefile.am): Add them to TESTS.
12750
12751         acl: Try unit tests on more file systems.
12752         * tests/test-file-has-acl-1.sh: New file.
12753         * tests/test-file-has-acl-2.sh: New file.
12754         * tests/test-set-mode-acl-1.sh: New file.
12755         * tests/test-set-mode-acl-2.sh: New file.
12756         * tests/test-copy-acl-1.sh: New file.
12757         * tests/test-copy-acl-2.sh: New file.
12758         * modules/acl-tests (Files): Add them.
12759         (Makefile.am): Add them to TESTS.
12760
12761 2011-09-04  Bruno Haible  <bruno@clisp.org>
12762
12763         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12764         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12765         10.
12766         (OLD_ALLOW, OLD_DENY): New macros.
12767         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12768         ACE_ACCESS_ALLOWED_ACE_TYPE.
12769         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12770         ACE_ACCESS_DENIED_ACE_TYPE.
12771         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12772         (NEW_ACE_EXECUTE): Fix value.
12773         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12774         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12775         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12776         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12777         NEW_ACE_SYNCHRONIZE): New macros.
12778         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12779         instead of acl_fromtext, acl_set, facl_set.
12780         Fixes a coreutils/tests/cp/perm failure.
12781
12782 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12783
12784         openat: test for fstatat (..., 0) bug
12785         Further testing with tar suggests that fstatat (..., 0)
12786         does not work in general, on AIX 7.1; see
12787         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12788         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12789         replacement fstatat (which is what older AIX releases were using
12790         anyway).
12791         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12792         use is now changed to orig_fstatat.  This was probably the right
12793         thing to do anyway.
12794         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12795         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12796         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12797         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12798         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12799         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12800         if the bug is found.
12801
12802         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12803         This tests for another fstatat bug on AIX 7.1:
12804         fstatat (AT_FDCWD, ..., 0) does not work.  See
12805         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12806         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12807         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12808         (rpl_fstatat): Adjust so that it works around either (or both)
12809         bugs if present.
12810         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12811
12812 2011-09-03  Karl Berry  <karl@gnu.org>
12813
12814         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12815         in index entries.
12816
12817 2011-09-02  Bruno Haible  <bruno@clisp.org>
12818
12819         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12820         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12821         values of AR, ARFLAGS, RANLIB.
12822         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12823
12824 2011-09-02  Bruno Haible  <bruno@clisp.org>
12825
12826         Find 'ar' program that fits with --host argument.
12827         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12828
12829 2011-09-02  Bruno Haible  <bruno@clisp.org>
12830
12831         tests: init.sh: Support any non-GNU diff.
12832         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
12833         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
12834         Solaris 8.
12835
12836 2011-09-02  Bruno Haible  <bruno@clisp.org>
12837
12838         tests: init.sh: work also with any non-GNU diff that supports -u
12839         * tests/init.sh: Relax check for diff -u support.
12840         Rather than checking for GNU diff via --version, simply check
12841         for support for -u itself.  Useful at least on OpenBSD 4.9,
12842         AIX 7.1, IRIX 6.5, and Solaris 10.
12843
12844 2011-09-01  Bruno Haible  <bruno@clisp.org>
12845
12846         strtoimax, strtoumax: Document problem on HP-UX 11.
12847         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
12848         * doc/posix-functions/strtoumax.texi: Likewise.
12849
12850 2011-09-01  Bruno Haible  <bruno@clisp.org>
12851
12852         strtoumax: Avoid link error on OSF/1 with DTK cc.
12853         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
12854         defined as a function.
12855         * modules/strtoumax (Depends-on, configure.ac): Test only whether
12856         strtoumax is defined, not whether it is declared.
12857
12858 2011-09-01  Bruno Haible  <bruno@clisp.org>
12859
12860         strtoimax: Avoid link error on OSF/1 with DTK cc.
12861         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
12862         defined as a function.
12863         * modules/strtoimax (Depends-on, configure.ac): Test only whether
12864         strtoimax is defined, not whether it is declared.
12865
12866 2011-09-01  Bruno Haible  <bruno@clisp.org>
12867
12868         imaxdiv: Avoid link error on OSF/1 with DTK cc.
12869         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
12870         as a function.
12871         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
12872         whether it is declared.
12873
12874 2011-09-01  Bruno Haible  <bruno@clisp.org>
12875
12876         imaxabs: Avoid link error on OSF/1 with DTK cc.
12877         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
12878         as a function.
12879         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
12880         whether it is declared.
12881
12882 2011-09-01  Bruno Haible  <bruno@clisp.org>
12883
12884         Tests for module 'strtoumax'.
12885         * modules/strtoumax-tests: New file.
12886         * tests/test-strtoumax.c: New file.
12887
12888         Tests for module 'strtoimax'.
12889         * modules/strtoimax-tests: New file.
12890         * tests/test-strtoimax.c: New file.
12891
12892         Tests for module 'imaxdiv'.
12893         * modules/imaxdiv-tests: New file.
12894         * tests/test-imaxdiv.c: New file.
12895
12896         Tests for module 'imaxabs'.
12897         * modules/imaxabs-tests: New file.
12898         * tests/test-imaxabs.c: New file.
12899
12900 2011-09-01  Bruno Haible  <bruno@clisp.org>
12901
12902         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
12903         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
12904         pthread_create.
12905
12906 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12907
12908         openat: work around AIX 7.1 fstatat issue
12909         This should fix the problem that was not properly fixed
12910         in the previous change, dated 2011-08-30.
12911         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
12912         __need_system_stat_h defined.
12913         (orig_fstatat) [HAVE_FSTATAT]: New function.
12914         (rpl_fstatat): Go back to the old way of doing things,
12915         except call orig_fstatat instead of fstatat.
12916         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
12917         Remove unnecessary check whether fstatat fills in st_size etc.
12918
12919 2011-09-01  Bruno Haible  <bruno@clisp.org>
12920
12921         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
12922         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
12923         just include the system's header.
12924
12925 2011-08-31  Jim Meyering  <meyering@redhat.com>
12926
12927         tests: avoid spurious assertion failure in test-float.c on ppc64
12928         * tests/test-float.c (test_long_double): Comment out an assertion,
12929         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
12930         with gcc-4.4.4.
12931
12932         maint: indent with spaces, not TABs
12933         I need to get in the habit of running gnulib's "make check".
12934         Both of these would have been caught.
12935         * m4/largefile.m4: Indent with spaces, not TABs.
12936         * lib/parse-datetime.y (iso_8601_time): Likewise.
12937         Spotted by Pádraig Brady.
12938
12939         test-parse-datetime.c: accommodate a relatively strict gcc warning
12940         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
12941         to avoid a warning from gcc's -Werror=missing-declarations.
12942         Insert a few spaces-before-funcall-parenthesis.
12943
12944 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
12945
12946         parse-datetime: accept ISO 8601 date and time rep with "T" separator
12947         The parser now accepts ISO 8601 date-time strings with "T" as the
12948         separator.  It has long parsed dates like "2004-02-29 16:21:42"
12949         with a space between the date and time strings.  Now it also parses
12950         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
12951         variants like "2004-02-29T16:21:42.333-07:00"
12952         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
12953         of day representation using the 'T' separator character.
12954         * doc/parse-datetime.texi (General date syntax): replace use of
12955         deprecated --iso-8601 option with --rfc-3339 in example of date
12956         command output formats that can be parsed.
12957         * tests/test-parse-datetime.c (tm_diff): New function, taken from
12958         lib/parse-datetime.y.
12959         (gmt_offset): New function.
12960         (main): Add additional test cases to validate ISO8601 extended
12961         date and time of day parsing.
12962
12963 2011-08-31  Bruno Haible  <bruno@clisp.org>
12964
12965         freopen: Documentation.
12966         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
12967         name.
12968         Reported by Claudio Bley <claudio.bley@gmail.com>.
12969
12970 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
12971
12972         freopen: Don't crash if the filename argument is NULL.
12973         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
12974         NULL.
12975
12976 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12977
12978         openat: work around AIX 7.1 fstatat bug
12979         Problem reported by Kevin Brott for GNU tar, in the thread containing
12980         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12981         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12982         FSTATAT_ST_SIZE_ETC_BROKEN.
12983         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12984         rpl_fstatat.
12985         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12986         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12987         AC_CHECK_FUNCS_ONCE for fstatat.
12988         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12989         fchmodat, mkdirat, openat and unlinkat.
12990
12991 2011-08-30  Bruno Haible  <bruno@clisp.org>
12992
12993         Avoid endless recursions if config.h includes some header files.
12994         * lib/fopen.c (__need_FILE): Define already before including config.h.
12995         * lib/freopen.c (__need_FILE): Likewise.
12996         * lib/open.c (__need_system_fcntl_h): Likewise.
12997         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12998         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12999         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13000
13001 2011-08-25  Karl Berry  <karl@gnu.org>
13002
13003         * config/srclist.txt (ylwrap): new try.
13004         * build-aux/ylwrap: new file.
13005
13006 2011-08-23  Bruno Haible  <bruno@clisp.org>
13007
13008         tmpdir: Use a good default directory on native Windows.
13009         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13010         (P_tmpdir): Default to _P_tmpdir on native Windows.
13011         (path_search): On native Windows, try the value returned by GetTempPath
13012         before trying P_tmpdir.
13013         * modules/tmpdir (Depends-on): Add pathmax.
13014         Suggested by John Darrington <john@darrington.wattle.id.au>.
13015
13016 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13017
13018         doc: fix typo in README-release
13019         * top/README-release: Capitalize first word of a sentence.
13020
13021 2011-08-19  Jim Meyering  <meyering@redhat.com>
13022
13023         fts: do not exhaust memory when processing million-entry directories
13024         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13025         directory would require about 256*N bytes of memory.  Thus, it was
13026         easy to construct a directory too large to be processed by any of
13027         those tools.  With this change, fts' maximum memory utilization is
13028         now limited to around 30MB.
13029         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13030         (fts_read): When we've processed the final entry (i.e., when
13031         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13032         using the parent entry to read any remaining entries.  Dispatch
13033         depending on what fts_build returns:
13034         - NULL+stop, aka failure: stop
13035         - NULL otherwise: move up in the dir hierarchy
13036         - non-NULL: handle this new entry
13037         (fts_build): Declare and use new local, continue_readdir.
13038         Prepare to be called from fts_read, when the entries
13039         from a partially-read directory have just been exhausted.
13040         In that case, we'll skip the opendir and instead use the parent's
13041         fts_dirp and derive dir_fd from that.
13042         Finally, in the readdir loop, if we read max_entries entries,
13043         exit the loop ensuring *not* to call closedir.  This is required
13044         so that fts_dirp can be reused on a subsequent call.
13045         Prompted by Ben England's report of memory exhaustion in find
13046         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13047
13048         maint: fts: move decl of `dp' down into while loop; split a long line
13049         * lib/fts.c (fts_build): No semantic change.
13050
13051         fts: add/use new struct member, fts_dirp
13052         We are about to use this to manage any directory with
13053         too many entries to read all of them into memory at once.
13054         To do that, we'll need to save the DIR* pointer in each
13055         affected FTSENT struct.
13056         * lib/fts_.h: Include <dirent.h>.
13057         (struct FTSENT) [fts_dirp]: New member.
13058         * lib/fts.c (closedir_and_clear): Define.
13059         Use it in place of closedir so that we are sure to
13060         clear the new fts_dirp member when done with it.
13061         (fts_alloc): Initialize the new member.
13062         (fts_lfree): Free, if needed.
13063
13064         maint: fts: give __opendir2 a new parameter and rename
13065         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13066         than surreptitiously using sole caller's "dir_fd".
13067         (fts_opendir): Rename from __opendir2.
13068
13069         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13070         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13071
13072         maint: fts.c: correct off-by-one indentation
13073         * lib/fts.c (fts_build): Correct indentation, change style
13074         of a couple of block comments, and bracing style.
13075
13076         maint: fts.c: move __opendir2 #define "up" out of function body
13077         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13078
13079         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13080         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13081         out for a long time and besides was useful only on BSD systems.
13082
13083 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13084
13085         regex: port to Stratus OpenVOS
13086         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13087         define to empty, rather than attempting nonportable optimizations.
13088         Problem reported by Paul Green in:
13089         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13090         and fix suggested by Eric Blake in:
13091         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13092
13093 2011-08-17  Eric Blake  <eblake@redhat.com>
13094
13095         getcwd: fix test failures on mingw
13096         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13097         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13098         test if long directory cannot be created, and allow mingw errno.
13099
13100         getcwd-lgpl: fix m4 to match relaxed test for BSD
13101         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13102         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13103         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13104         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13105         signature problem.
13106
13107         getcwd: fix compilation on mingw64
13108         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13109         getcwd.
13110         Reported by Marc-André Lureau.
13111
13112         pipe2: silence compiler warning
13113         * lib/pipe2.c (pipe2): Hide label if it is not used.
13114
13115 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13116
13117         relocatable-prog: fix link error
13118         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13119         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13120         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13121         into modules/relocatable-lib without noticing that
13122         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13123         also needs to build relocatable.c.
13124
13125 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13126
13127         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13128         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13129         shell code: it contained a 'break' that was not in a loop.
13130         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13131         via a shell-language loop; this may have been true in old Autoconf
13132         versions, but it's not true in Autoconf 2.68.  I found this bug
13133         when testing coreutils git on Solaris 8, whose shell complains
13134         about the syntax error.
13135
13136 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13137
13138         * lib/base64.c: Fix comment to reference RFC 4648.
13139         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13140         <gvtulder@gmail.com>.
13141
13142 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13143
13144         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13145
13146         po/Makefile.in.in: fix make -q problem
13147         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13148         rule, since there's no file named 'check-macro-version' and its
13149         use as a file breaks make -q.
13150         (all): Don't depend on check-macro-version.
13151         (CHECK_MACRO_VERSION): New macro.
13152         (stamp-po): Use it.
13153
13154         configmake: fix make -q problem
13155         * modules/configmake (configmake.h): Update configmake.h's time stamp
13156         even if the file does not change.  Otherwise, 'make -q' fails.
13157         Problem reported by Simon Josefsson in
13158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13159
13160 2011-08-11  Jim Meyering  <meyering@redhat.com>
13161
13162         git-version-gen: correct the advice in a comment
13163         * build-aux/git-version-gen: Correct comment.
13164         Don't recommend to list .tarball-version in .gitignore.
13165
13166 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13167
13168         base64: fix off-by-one buffer size bug
13169         Problem and (trivial) fix reported by Gijs van Tulder in
13170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13171         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13172         * tests/test-base64.c (main): Catch the bug.
13173
13174 2011-08-10  Eric Blake  <eblake@redhat.com>
13175
13176         closein: correct comments
13177         * lib/closein.c (close_stdin): Improve comments.
13178
13179 2011-08-09  Bruno Haible  <bruno@clisp.org>
13180
13181         More tests for 'fseeko'.
13182         * tests/test-fseeko3.c: New file, from Eric Blake.
13183         * tests/test-fseeko3.sh: New file.
13184         * modules/fseeko-tests (Files): Add them.
13185         (TESTS): Add test-fseeko3.sh.
13186         (check_PROGRAMS): Add test-fseeko3.
13187
13188 2011-08-09  Eric Blake  <eblake@redhat.com>
13189
13190         fseeko: remove unneeded hack
13191         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13192
13193         fseeko: fix bug on glibc
13194         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13195         Reported by John W. Eaton.
13196
13197 2011-08-08  Bruno Haible  <bruno@clisp.org>
13198
13199         unictype/base: Fix interoperability with preinstalled libunistring.
13200         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13201         Reported by Simon Josefsson.
13202
13203 2011-08-08  Bruno Haible  <bruno@clisp.org>
13204
13205         iswblank: Detect declaration correctly.
13206         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13207         AC_CHECK_DECLS invocation.
13208
13209 2011-08-08  Bruno Haible  <bruno@clisp.org>
13210
13211         tcgetsid: Detect declaration correctly.
13212         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13213         AC_CHECK_DECLS invocation.
13214         Reported by Simon Josefsson.
13215
13216 2011-08-08  Eric Blake  <eblake@redhat.com>
13217
13218         largefile: fix typo that regressed large file support
13219         * modules/largefile (configure.ac-early): Fix section name.
13220
13221 2011-08-06  Karl Berry  <karl@gnu.org>
13222
13223         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13224         a separate module.
13225
13226 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13227
13228         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13229         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13230         get prototype for free.
13231
13232 2011-08-04  Bruno Haible  <bruno@clisp.org>
13233
13234         Tests for module 'pathmax'.
13235         * modules/pathmax-tests: New file.
13236         * tests/test-pathmax.c: New file.
13237
13238         canonicalize-lgpl: Support larger filenames on the Hurd.
13239         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13240         Reported by Paul Eggert.
13241
13242         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13243         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13244         * lib/chdir-long.h: Include pathmax.h.
13245         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13246         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13247         (PATH_MAX): Remove code that is done by pathmax.h.
13248         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13249         * lib/tmpfile.c: Add a comment.
13250         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13251         * modules/chdir-long (Depends-on): Add pathmax.
13252         * modules/getcwd (Depends-on): Add pathmax.
13253         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13254         is not defined.
13255         * doc/posix-headers/limits.texi: Mention the pathmax module.
13256         * NEWS: Mention the change.
13257
13258 2011-08-02  Bruno Haible  <bruno@clisp.org>
13259
13260         pthread_sigmask: Actually use results of gl_THREADLIB.
13261         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13262         gl_THREADLIB, not gl_[]THREADLIB.
13263         Reported by Eric Blake.
13264
13265 2011-08-02  Jim Meyering  <meyering@redhat.com>
13266
13267         maint.mk: relax the default _gl_TS_function_match regexp
13268         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13269         space between function name and "(" in an "extern" declaration.
13270         That would fail to match a decl with no space there: extern void foo();
13271
13272 2011-07-31  Iain Nicol  <iain@thenicols.net>
13273
13274         git-version-gen: document that EXTRA_DIST must include .version
13275         * build-aux/git-version-gen: In the how-to-use comment, document
13276         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13277         will fail when run from an unpacked distribution tarball.
13278
13279 2011-08-01  Bruno Haible  <bruno@clisp.org>
13280
13281         wctype-h: Fix last change.
13282         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13283         REPLACE_TOWLOWER to 0.
13284         Reported by Sam Steingold <sds@gnu.org>.
13285
13286 2011-07-31  Bruno Haible  <bruno@clisp.org>
13287
13288         frexpl: Update autoconf test.
13289         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13290         according to changes of 2011-06-20.
13291
13292 2011-07-31  Bruno Haible  <bruno@clisp.org>
13293
13294         sys_utsname: Add support for Minix.
13295         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13296         <sys/utsname.h>.
13297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13298         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13299
13300 2011-07-31  Bruno Haible  <bruno@clisp.org>
13301
13302         strings: Add support for Minix.
13303         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13304         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13305         * doc/posix-headers/strings.texi: Document the Minix problem.
13306
13307 2011-07-31  Bruno Haible  <bruno@clisp.org>
13308
13309         wctype-h: Add support for Minix.
13310         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13311         REPLACE_TOWLOWER.
13312         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13313         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13314         REPLACE_ISWCNTRL.
13315
13316 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13317
13318         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13319         This is a performance improvement for 64-bit hosts: it causes the
13320         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13321
13322 2011-07-31  Bruno Haible  <bruno@clisp.org>
13323
13324         stdioext: Add support for Minix.
13325         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13326         * lib/fpurge.c (fpurge): Likewise.
13327         * lib/freadahead.c (freadahead): Likewise.
13328         * lib/freadable.c (freadable): Likewise.
13329         * lib/freading.c (freading): Likewise.
13330         * lib/freadptr.c (freadptr): Likewise.
13331         * lib/freadseek.c (freadptrinc): Likewise.
13332         * lib/fseeko.c (rpl_fseeko): Likewise.
13333         * lib/fseterr.c (fseterr): Likewise.
13334         * lib/fwritable.c (fwritable): Likewise.
13335         * lib/fwriting.c (fwriting): Likewise.
13336         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13337         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13338
13339 2011-07-31  Bruno Haible  <bruno@clisp.org>
13340
13341         errno: Port to Minix.
13342         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13343         ECONNABORTED are defined.
13344         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13345         GNULIB_defined_ECONNABORTED): New macros.
13346         * lib/strerror-override.h (strerror_override): Test also
13347         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13348         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13349         ECONNABORTED.
13350         * doc/posix-headers/errno.texi: Mention the Minix problem.
13351
13352 2011-07-31  Bruno Haible  <bruno@clisp.org>
13353
13354         Work around declaration collisions on Minix.
13355         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13356         defined, set REPLACE_MBSINIT.
13357         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13358         defined, set REPLACE_MBRTOWC.
13359         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13360         set REPLACE_MBRLEN.
13361         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13362         defined, set REPLACE_MBSRTOWCS.
13363         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13364         defined, set REPLACE_WCRTOMB.
13365         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13366         defined, set REPLACE_WCSRTOMBS.
13367
13368 2011-07-31  Bruno Haible  <bruno@clisp.org>
13369
13370         Add support for Minix with ACK compiler.
13371         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13372         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13373         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13374
13375 2011-07-31  Bruno Haible  <bruno@clisp.org>
13376
13377         Documentation about Minix.
13378         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13379         * doc/glibc-headers/*.texi: Likewise.
13380         * doc/posix-functions/*.texi: Likewise.
13381         * doc/glibc-functions/*.texi: Likewise.
13382
13383 2011-07-31  Bruno Haible  <bruno@clisp.org>
13384
13385         snippet/warn-on-use: Fix indentation.
13386         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13387
13388 2011-07-25  Jim Meyering  <meyering@redhat.com>
13389
13390         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13391         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13392         commands.
13393
13394 2011-07-27  Jim Meyering  <meyering@redhat.com>
13395
13396         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13397         * top/maint.mk (gl_extract_significant_defines_): Now that
13398         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13399         gnulib/lib/signal.in.h, and now that we recommend to
13400         define-if-undefined those two symbols in application code,
13401         we must filter them out of the "significant" list.
13402         This avoids a "make syntax-check" failure in coreutils.
13403
13404 2011-07-26  Eric Blake  <eblake@redhat.com>
13405
13406         warnings: add comments about previous patch
13407         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13408         * m4/include_next.m4: Likewise.
13409         * m4/warn-on-use.m4: Likewise.
13410         * m4/warnings.m4: Likewise, and simplify use.
13411         Suggested by Stefano Lattarini.
13412
13413         include-next, warnings: support older autoconf
13414         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13415         AS_VAR_PUSHDEF in a way that works with older autoconf.
13416         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13417         Reported by Daniel P. Berrange.
13418
13419 2011-07-25  Bruno Haible  <bruno@clisp.org>
13420
13421         fseek, ftell: Fix doc.
13422         * doc/posix-functions/fseek.texi: Reword statement about
13423         AC_SYS_LARGEFILE.
13424         * doc/posix-functions/ftell.texi: Likewise.
13425
13426 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13427             Bruno Haible  <bruno@clisp.org>
13428
13429         Add dependencies to the 'largefile' module.
13430         * modules/fopen (Depends-on): Add 'largefile'.
13431         * modules/freopen (Depends-on): Likewise.
13432         * modules/fseeko (Depends-on): Likewise.
13433         * modules/ftello (Depends-on): Likewise.
13434         * modules/glob (Depends-on): Likewise.
13435         * modules/lseek (Depends-on): Likewise.
13436         * modules/lstat (Depends-on): Likewise.
13437         * modules/mkostemp (Depends-on): Likewise.
13438         * modules/mkostemps (Depends-on): Likewise.
13439         * modules/mkstemp (Depends-on): Likewise.
13440         * modules/mkstemps (Depends-on): Likewise.
13441         * modules/open (Depends-on): Likewise.
13442         * modules/openat (Depends-on): Likewise.
13443         * modules/pread (Depends-on): Likewise.
13444         * modules/pwrite (Depends-on): Likewise.
13445         * modules/scandir (Depends-on): Likewise.
13446         * modules/stat (Depends-on): Likewise.
13447         * modules/tmpfile (Depends-on): Likewise.
13448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13449         since the containing module now depends on the largefile module.
13450         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13451         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13452         off_t is fixed by gnulib.
13453         * doc/posix-functions/freopen.texi: Likewise.
13454         * doc/posix-functions/fseeko.texi: Likewise.
13455         * doc/posix-functions/fstatat.texi: Likewise.
13456         * doc/posix-functions/ftello.texi: Likewise.
13457         * doc/posix-functions/glob.texi: Likewise.
13458         * doc/posix-functions/lseek.texi: Likewise.
13459         * doc/posix-functions/lstat.texi: Likewise.
13460         * doc/posix-functions/mkstemp.texi: Likewise.
13461         * doc/posix-functions/open.texi: Likewise.
13462         * doc/posix-functions/openat.texi: Likewise.
13463         * doc/posix-functions/pread.texi: Likewise.
13464         * doc/posix-functions/pwrite.texi: Likewise.
13465         * doc/posix-functions/scandir.texi: Likewise.
13466         * doc/posix-functions/stat.texi: Likewise.
13467         * doc/posix-functions/tmpfile.texi: Likewise.
13468         * doc/glibc-functions/mkostemp.texi: Likewise.
13469         * doc/glibc-functions/mkostemps.texi: Likewise.
13470         * doc/glibc-functions/mkstemps.texi: Likewise.
13471
13472 2011-07-25  Bruno Haible  <bruno@clisp.org>
13473
13474         fcntl: Move AC_LIBOBJ invocation to module description.
13475         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13476         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13477
13478         fcntl: Remove call-in from fchdir.m4.
13479         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13481
13482         dup3: Remove potential call-in from fchdir.m4.
13483         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13485
13486         dup2: Move AC_LIBOBJ invocation to module description.
13487         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13488         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13489         Don't invoke AC_LIBOBJ.
13490         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13491
13492         dup2: Remove call-in from fchdir.m4.
13493         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13495
13496         fclose: Move AC_LIBOBJ invocation to module description.
13497         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13498         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13499         to 1.
13500         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13501
13502         fclose: Remove call-in from close.m4.
13503         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13504         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13505
13506         close: Move AC_LIBOBJ invocation to module description.
13507         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13508         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13509         1.
13510         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13511
13512         close: Remove call-in from fchdir.m4.
13513         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13515
13516         open: Move AC_LIBOBJ invocation to module description.
13517         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13518         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13519         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13520
13521         open: Remove call-in from fchdir.m4.
13522         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13523         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13524
13525         fchdir: Start to remove gl_REPLACE_* idiom.
13526         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13527         (gl_FUNC_FCHDIR): Invoke it.
13528
13529 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13530
13531         * lib/ftell.c (ftell): Comment out cast.
13532
13533         close: use gl_REPLACE_FCLOSE only if defined
13534         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13535         is defined.  The close module doesn't depend on the fclose module
13536         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13538         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13539
13540 2011-07-24  Jim Meyering  <meyering@redhat.com>
13541
13542         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13543         * tests/test-select.h (test_function): Declare as "static".
13544
13545 2011-07-24  Bruno Haible  <bruno@clisp.org>
13546
13547         doc: Mention the effects of AC_SYS_LARGEFILE.
13548         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13549         on this function.
13550         * doc/posix-functions/aio_error.texi: Likewise.
13551         * doc/posix-functions/aio_fsync.texi: Likewise.
13552         * doc/posix-functions/aio_read.texi: Likewise.
13553         * doc/posix-functions/aio_return.texi: Likewise.
13554         * doc/posix-functions/aio_suspend.texi: Likewise.
13555         * doc/posix-functions/aio_write.texi: Likewise.
13556         * doc/posix-functions/fgetpos.texi: Likewise.
13557         * doc/posix-functions/fopen.texi: Likewise.
13558         * doc/posix-functions/freopen.texi: Likewise.
13559         * doc/posix-functions/fsetpos.texi: Likewise.
13560         * doc/posix-functions/fstatvfs.texi: Likewise.
13561         * doc/posix-functions/ftruncate.texi: Likewise.
13562         * doc/posix-functions/ftw.texi: Likewise.
13563         * doc/posix-functions/getrlimit.texi: Likewise.
13564         * doc/posix-functions/glob.texi: Likewise.
13565         * doc/posix-functions/lio_listio.texi: Likewise.
13566         * doc/posix-functions/lockf.texi: Likewise.
13567         * doc/posix-functions/mkstemp.texi: Likewise.
13568         * doc/posix-functions/mmap.texi: Likewise.
13569         * doc/posix-functions/nftw.texi: Likewise.
13570         * doc/posix-functions/openat.texi: Likewise.
13571         * doc/posix-functions/opendir.texi: Likewise.
13572         * doc/posix-functions/posix_fadvise.texi: Likewise.
13573         * doc/posix-functions/posix_fallocate.texi: Likewise.
13574         * doc/posix-functions/pread.texi: Likewise.
13575         * doc/posix-functions/pwrite.texi: Likewise.
13576         * doc/posix-functions/readdir.texi: Likewise.
13577         * doc/posix-functions/readdir_r.texi: Likewise.
13578         * doc/posix-functions/rewinddir.texi: Likewise.
13579         * doc/posix-functions/scandir.texi: Likewise.
13580         * doc/posix-functions/seekdir.texi: Likewise.
13581         * doc/posix-functions/setrlimit.texi: Likewise.
13582         * doc/posix-functions/statvfs.texi: Likewise.
13583         * doc/posix-functions/telldir.texi: Likewise.
13584         * doc/posix-functions/tmpfile.texi: Likewise.
13585         * doc/posix-functions/truncate.texi: Likewise.
13586         * doc/glibc-functions/fallocate.texi: Likewise.
13587         * doc/glibc-functions/fstatfs.texi: Likewise.
13588         * doc/glibc-functions/fts_children.texi: Likewise.
13589         * doc/glibc-functions/fts_read.texi: Likewise.
13590         * doc/glibc-functions/getdirentries.texi: Likewise.
13591         * doc/glibc-functions/mkostemp.texi: Likewise.
13592         * doc/glibc-functions/mkostemps.texi: Likewise.
13593         * doc/glibc-functions/mkstemps.texi: Likewise.
13594         * doc/glibc-functions/preadv.texi: Likewise.
13595         * doc/glibc-functions/pwritev.texi: Likewise.
13596         * doc/glibc-functions/sendfile.texi: Likewise.
13597         * doc/glibc-functions/statfs.texi: Likewise.
13598
13599 2011-07-24  Bruno Haible  <bruno@clisp.org>
13600
13601         doc: Fix typo.
13602         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13603
13604 2011-07-24  Bruno Haible  <bruno@clisp.org>
13605
13606         doc: Mention fsusage.
13607         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13608
13609 2011-07-24  Bruno Haible  <bruno@clisp.org>
13610
13611         doc: Mention new glibc headers and functions.
13612         * doc/glibc-headers/gshadow.texi: New file.
13613         * doc/glibc-functions/endsgent.texi: New file.
13614         * doc/glibc-functions/fgetsgent.texi: New file.
13615         * doc/glibc-functions/fgetsgent_r.texi: New file.
13616         * doc/glibc-functions/getsgent.texi: New file.
13617         * doc/glibc-functions/getsgent_r.texi: New file.
13618         * doc/glibc-functions/getsgnam.texi: New file.
13619         * doc/glibc-functions/getsgnam_r.texi: New file.
13620         * doc/glibc-functions/putsgent.texi: New file.
13621         * doc/glibc-functions/setsgent.texi: New file.
13622         * doc/glibc-functions/sgetsgent.texi: New file.
13623         * doc/glibc-functions/sgetsgent_r.texi: New file.
13624         * doc/glibc-functions/malloc_info.texi: New file.
13625         * doc/glibc-functions/preadv.texi: New file.
13626         * doc/glibc-functions/pwritev.texi: New file.
13627         * doc/glibc-functions/register_printf_modifier.texi: New file.
13628         * doc/glibc-functions/register_printf_specifier.texi: New file.
13629         * doc/glibc-functions/register_printf_type.texi: New file.
13630         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13631         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13632         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13633         * doc/glibc-functions/pthread_getname_np.texi: New file.
13634         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13635         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13636         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13637         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13638         * doc/glibc-functions/pthread_setname_np.texi: New file.
13639         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13640         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13641         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13642         * doc/glibc-functions/qsort_r.texi: New file.
13643         * doc/glibc-functions/quick_exit.texi: New file.
13644         * doc/glibc-functions/syncfs.texi: New file.
13645         * doc/gnulib.texi: Include them.
13646         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13647         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13648         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13649         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13650         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13651         * doc/glibc-functions/execvpe.texi: Likewise.
13652
13653 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13654
13655         ftell: don't include <unistd.h>
13656         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13657         guaranteed to define off_t, and the ftell module depends on the
13658         stdio module.
13659
13660         ftell: do not assume wraparound signed arithmetic
13661         * lib/ftell.c: Include <limits.h>.
13662         (ftell): Don't assume wraparound signed arithmetic.
13663
13664 2011-07-24  Bruno Haible  <bruno@clisp.org>
13665
13666         close: No longer depend on module 'fclose'.
13667         * modules/close (Depends-on): Remove fclose.
13668         * NEWS: Mention the change.
13669         Suggested by Sam Steingold <sds@gnu.org>.
13670
13671 2011-07-24  Bruno Haible  <bruno@clisp.org>
13672
13673         fsusage: Enable large volume support on AIX >= 5.2.
13674         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13675         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13676         instead of STAT_STATVFS.
13677         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13678
13679         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13680         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13681         f_blocks field only on MacOS X.
13682
13683         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13684         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13685         * modules/fsusage (Depends-on): Add largefile.
13686
13687 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13688
13689         * README: Modernize discussion of signed integers.
13690         Assuming overflow wraparound is no longer safe.
13691         Mention ones' complement and signed magnitude.
13692
13693 2011-07-22  Bruno Haible  <bruno@clisp.org>
13694
13695         select tests, pselect tests: Refactor.
13696         * tests/test-select.h: New file, extracted from tests/test-select.c.
13697         (select_fn): New type.
13698         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13699         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13700         test_pipe): Add my_select argument.
13701         (test_function): Renamed from main. Add my_select argument.
13702         * tests/test-select.c: Move most code to tests/test-select.h. Include
13703         test-select.h.
13704         * modules/select-tests (Files): Add tests/test-select.h.
13705         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13706         (my_select, main): New functions.
13707         * modules/pselect-tests (Files): Add tests/test-select.h,
13708         tests/macros.h, tests/signature.h.
13709         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13710         (configure.ac): Check for <sys/wait.h>.
13711
13712 2011-07-22  Bruno Haible  <bruno@clisp.org>
13713
13714         sys_select tests: Check the signature of FD_*.
13715         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13716         signature tests from here...
13717         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13718         here.
13719         * modules/sys_select-tests (Files): Add tests/signature.h.
13720
13721 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13722
13723         largefile: new module, replacing large-inode
13724         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13725         * MODULES.html.sh: Add largefile, remove large-inode.
13726         * modules/largefile, m4/largefile.m4: New files.
13727         * modules/large-inode, m4/large-inode.m4: Remove.
13728
13729         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13730         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13731         implementations that use only 32 bits to count blocks.
13732         On typical hosts with 1024-byte blocks, this fails with file
13733         systems as small as 4 TiB.  Problem reported by Herb Wartens
13734         <http://debbugs.gnu.org/9140> and this should also fix a similar
13735         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13736
13737         large-inode: New module
13738         * MODULES.html.sh: Add it.
13739         * modules/large-inode, m4/large-inode.m4: New files.
13740
13741         extensions: Enable extensions on MacOS X 10.5 and later.
13742         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13743
13744 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13745
13746         file-has-acl: use acl_extended_file_nofollow if available
13747         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13748         (acl_extended_file): New macro.
13749         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13750         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13751
13752 2011-07-21  Bruno Haible  <bruno@clisp.org>
13753
13754         Declare system functions in a way that works with C++.
13755         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13756         declare fdopendir as extern "C".
13757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13758         declare frexpl as extern "C".
13759         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13760         declare gai_strerror as extern "C".
13761         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13762         programs, declare gai_strerror as extern "C".
13763         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13764         declare getlogin_r as extern "C".
13765         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13766         as extern "C".
13767         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13768         declare ldexpl as extern "C".
13769         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13770         as extern "C".
13771         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13772         program, declare getmntinfo as extern "C".
13773         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13774         stpncpy as extern "C".
13775         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13776         program, declare __xpg_strerror_r as extern "C".
13777         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13778         strndup as extern "C".
13779         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13780         declare memset and bzero as extern "C".
13781         Reported by Sam Steingold <sds@gnu.org>.
13782
13783 2011-07-12  Jim Meyering  <meyering@redhat.com>
13784
13785         maint.mk: prohibit inclusion of "verify.h" without use
13786         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13787
13788 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13789
13790         timer-time: A new module to check for timer_settime()
13791         * m4/timer_time.m4: Check for the posix function.
13792         * modules/timer-time: Add the new module.
13793         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13794         Mention it.
13795
13796 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13797             Bruno Haible  <bruno@clisp.org>
13798
13799         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13800         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13801         not defined, assume POSIX threads and look for pthread_sigmask in
13802         $LIBS, without changing $CPPFLAGS.
13803
13804 2011-07-19  Bruno Haible  <bruno@clisp.org>
13805
13806         strstr: Update cross-compilation guess.
13807         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13808         CPUs, guess no, in view of glibc
13809         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13810         Suggested by Eric Blake. Reported by Reuben Thomas.
13811
13812 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13813
13814         getopt-gnu: suppress core dumps from detection code
13815         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13816         to suppress core dumps that may well occur on glibc systems.
13817         * modules/getopt-gnu: Depend on nocrash.
13818
13819 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13820
13821         pthread_sigmask: ensure usleep is declared
13822         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13823         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13824
13825 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13826
13827         doc: Document NonStop portability issues.
13828         * doc/posix-functions/sigaction.texi (sigaction):
13829         * doc/posix-headers/signal.texi (signal.h):
13830         Document NonStop.  See Joachim Schmitz in
13831         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
13832
13833 2011-07-15  Bruno Haible  <bruno@clisp.org>
13834
13835         ffsl, ffsll: Avoid unportable behaviour.
13836         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
13837
13838 2011-07-15  Bruno Haible  <bruno@clisp.org>
13839
13840         ffs: More tests.
13841         * tests/test-ffs.c (NBITS): New macro.
13842         (main): Add more tests.
13843         * tests/test-ffsl.c (NBITS): New macro.
13844         (main): Add more tests.
13845         * tests/test-ffsll.c (NBITS): New macro.
13846         (main): Add more tests.
13847
13848 2011-07-15  Eric Blake  <eblake@redhat.com>
13849
13850         ffsl, ffsll: new modules
13851         * modules/ffsl: New file.
13852         * modules/ffsll: Likewise.
13853         * m4/ffsl.m4: Likewise.
13854         * m4/ffsll.m4: Likewise.
13855         * lib/ffsl.c: Likewise.
13856         * lib/ffsl.h: Likewise.
13857         * lib/ffsll.c: Likewise.
13858         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
13859         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
13860         * modules/string (Makefile.am): Substitute witnesses.
13861         * lib/strings.in.h (ffsl, ffsll): Declare.
13862         * modules/ffsl-tests: New test file.
13863         * modules/ffsll-tests: Likewise.
13864         * tests/test-ffsl.c: Likewise.
13865         * tests/test-ffsll.c: Likewise.
13866         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13867         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
13868         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
13869
13870         ffs: fix m4 prerequisite
13871         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
13872
13873         ffs: avoid undefined behavior
13874         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
13875         * tests/test-ffs.c (naive, main): Avoid signed shifts.
13876         Reported by Bruno Haible.
13877
13878 2011-07-12  Bruno Haible  <bruno@clisp.org>
13879
13880         pthread_sigmask: Rely on module 'threadlib'.
13881         * modules/pthread_sigmask (Depends-on): Add threadlib.
13882         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
13883         is defined.
13884
13885 2011-07-12  Bruno Haible  <bruno@clisp.org>
13886
13887         regex: Depend on module 'strcase'.
13888         * modules/regex (Depends-on): Add strcase, for strcasecmp().
13889
13890 2011-07-12  Jim Meyering  <meyering@redhat.com>
13891
13892         warn-on-use: fix typo in file name
13893         * modules/snippet/warn-on-use (Files): Correct file name:
13894         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
13895
13896 2011-07-12  Bruno Haible  <bruno@clisp.org>
13897
13898         strings: Document module.
13899         * doc/posix-headers/strings.texi: Mention module 'strings'.
13900
13901 2011-07-12  Bruno Haible  <bruno@clisp.org>
13902
13903         Rename module '_Noreturn' to 'snippet/_Noreturn'.
13904         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
13905         (Files, Makefile.am): Update.
13906         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
13907         * modules/stdlib (Depends-on): Update.
13908
13909 2011-07-12  Bruno Haible  <bruno@clisp.org>
13910
13911         * NEWS: Mention the changes.
13912
13913         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
13914         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
13915         (Files, Makefile.am): Update.
13916         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
13917         * modules/arpa_inet (Depends-on): Update.
13918         * modules/ctype (Depends-on): Update.
13919         * modules/dirent (Depends-on): Update.
13920         * modules/fcntl-h (Depends-on): Update.
13921         * modules/glob (Depends-on): Update.
13922         * modules/iconv-h (Depends-on): Update.
13923         * modules/inttypes-incomplete (Depends-on): Update.
13924         * modules/langinfo (Depends-on): Update.
13925         * modules/locale (Depends-on): Update.
13926         * modules/math (Depends-on): Update.
13927         * modules/netdb (Depends-on): Update.
13928         * modules/poll-h (Depends-on): Update.
13929         * modules/pty (Depends-on): Update.
13930         * modules/search (Depends-on): Update.
13931         * modules/signal (Depends-on): Update.
13932         * modules/spawn (Depends-on): Update.
13933         * modules/stdio (Depends-on): Update.
13934         * modules/stdlib (Depends-on): Update.
13935         * modules/string (Depends-on): Update.
13936         * modules/strings (Depends-on): Update.
13937         * modules/sys_file (Depends-on): Update.
13938         * modules/sys_ioctl (Depends-on): Update.
13939         * modules/sys_select (Depends-on): Update.
13940         * modules/sys_socket (Depends-on): Update.
13941         * modules/sys_stat (Depends-on): Update.
13942         * modules/sys_time (Depends-on): Update.
13943         * modules/sys_times (Depends-on): Update.
13944         * modules/sys_utsname (Depends-on): Update.
13945         * modules/sys_wait (Depends-on): Update.
13946         * modules/termios (Depends-on): Update.
13947         * modules/time (Depends-on): Update.
13948         * modules/unistd (Depends-on): Update.
13949         * modules/wchar (Depends-on): Update.
13950         * modules/wctype-h (Depends-on): Update.
13951         * MODULES.html.sh (Support for building libraries and executables):
13952         Update.
13953
13954         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
13955         * modules/snippet/unused-parameter: Renamed from
13956         modules/unused-parameter.
13957         (Files, Makefile.am): Update.
13958         * build-aux/snippet/unused-parameter.h: Renamed from
13959         build-aux/unused-parameter.h.
13960         * modules/selinux-h (Depends-on): Update.
13961         * modules/unistr/base (Depends-on): Update.
13962         * MODULES.html.sh (Core language properties): Update.
13963
13964         Rename module 'link-warning' to 'snippet/link-warning'.
13965         * modules/snippet/link-warning: Renamed from modules/link-warning.
13966         (Files, Makefile.am): Update.
13967         * build-aux/snippet/link-warning.h: Renamed from
13968         build-aux/link-warning.h.
13969         * MODULES.html.sh (Support for building libraries and executables):
13970         Update.
13971
13972         Rename module 'c++defs' to 'snippet/c++defs'.
13973         * modules/snippet/c++defs: Renamed from modules/c++defs.
13974         (Files, Makefile.am): Update.
13975         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
13976         * modules/arpa_inet (Depends-on): Update.
13977         * modules/ctype (Depends-on): Update.
13978         * modules/dirent (Depends-on): Update.
13979         * modules/fcntl-h (Depends-on): Update.
13980         * modules/glob (Depends-on): Update.
13981         * modules/iconv-h (Depends-on): Update.
13982         * modules/langinfo (Depends-on): Update.
13983         * modules/locale (Depends-on): Update.
13984         * modules/math (Depends-on): Update.
13985         * modules/netdb (Depends-on): Update.
13986         * modules/poll-h (Depends-on): Update.
13987         * modules/pty (Depends-on): Update.
13988         * modules/search (Depends-on): Update.
13989         * modules/signal (Depends-on): Update.
13990         * modules/spawn (Depends-on): Update.
13991         * modules/stdio (Depends-on): Update.
13992         * modules/stdlib (Depends-on): Update.
13993         * modules/string (Depends-on): Update.
13994         * modules/strings (Depends-on): Update.
13995         * modules/sys_ioctl (Depends-on): Update.
13996         * modules/sys_select (Depends-on): Update.
13997         * modules/sys_socket (Depends-on): Update.
13998         * modules/sys_stat (Depends-on): Update.
13999         * modules/sys_time (Depends-on): Update.
14000         * modules/sys_wait (Depends-on): Update.
14001         * modules/termios (Depends-on): Update.
14002         * modules/time (Depends-on): Update.
14003         * modules/unistd (Depends-on): Update.
14004         * modules/wchar (Depends-on): Update.
14005         * modules/wctype-h (Depends-on): Update.
14006
14007         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14008         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14009         (Files, Makefile.am): Update.
14010         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14011         * modules/argv-iter (Depends-on): Update.
14012         * modules/arpa_inet (Depends-on): Update.
14013         * modules/dirent (Depends-on): Update.
14014         * modules/fcntl-h (Depends-on): Update.
14015         * modules/fnmatch (Depends-on): Update.
14016         * modules/getopt-posix (Depends-on): Update.
14017         * modules/glob (Depends-on): Update.
14018         * modules/iconv-h (Depends-on): Update.
14019         * modules/inttypes-incomplete (Depends-on): Update.
14020         * modules/locale (Depends-on): Update.
14021         * modules/math (Depends-on): Update.
14022         * modules/netdb (Depends-on): Update.
14023         * modules/search (Depends-on): Update.
14024         * modules/signal (Depends-on): Update.
14025         * modules/spawn (Depends-on): Update.
14026         * modules/stdio (Depends-on): Update.
14027         * modules/stdlib (Depends-on): Update.
14028         * modules/string (Depends-on): Update.
14029         * modules/strings (Depends-on): Update.
14030         * modules/sys_socket (Depends-on): Update.
14031         * modules/sys_stat (Depends-on): Update.
14032         * modules/sys_time (Depends-on): Update.
14033         * modules/sys_times (Depends-on): Update.
14034         * modules/sys_utsname (Depends-on): Update.
14035         * modules/time (Depends-on): Update.
14036         * modules/unistd (Depends-on): Update.
14037         * modules/wchar (Depends-on): Update.
14038         * MODULES.html.sh (Support for building libraries and executables):
14039         Update.
14040
14041 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14042
14043         Improvements on _Noreturn and related modules.
14044
14045         modules/_Exit-tests: test _Noreturn too
14046         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14047         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14048         (main): Use them.
14049
14050         stdnoreturn, stdnoreturn-tests: remove modules
14051         They're not needed here and a bit premature for use elsewhere.  See
14052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14053         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14054         * tests/test-stdnoreturn.c: Remove files.
14055         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14056         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14057         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14058         and using noreturn.
14059         * modules/openat, modules/sigpipe-die, modules/xalloc:
14060         * modules/xmemdup0, modules/xstrtol:
14061         Remove dependency on stdnoreturn.
14062
14063         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14064         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14065         Reparenthesize to avoid GCC warning.
14066         Support Microsoft's syntax.
14067         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14068
14069         _Noreturn-tests: remove module
14070         * modules/_Noreturn-tests: Remove.
14071         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14072         * tests/test-_Noreturn.c: Remove.
14073         * tests/test-stdnoreturn.c: Merge from the old
14074         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14075
14076 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14077
14078         _Noreturn, stdnoreturn, and related modules.
14079
14080         * top/maint.mk: Adjust to new noreturn support.
14081         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14082         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14083
14084         xalloc: use stdnoreturn.h
14085         * lib/xalloc.h: Include <stdnoreturn.h>.
14086         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14087         * modules/xalloc (Depends-on): Add stdnoreturn.
14088
14089         xstrtol: use stdnoreturn.h
14090         * lib/xstrtol.h: Include <stdnoreturn.h>.
14091         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14092         * modules/xstrtol (Depends-on): Add stdnoreturn.
14093
14094         xmemdup0: use stdnoreturn.h
14095         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14096         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14097         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14098
14099         sigpipe-die: use stdnoreturn.h
14100         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14101         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14102         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14103
14104         openat: use stdnoreturn.h
14105         * lib/openat.h: Include <stdnoreturn.h>.
14106         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14107         * modules/openat (Depends-on): Add stdnoreturn.
14108
14109         * lib/openat-die.c (openat_save_fail): Modernize comment.
14110
14111         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14112
14113         * lib/glthread/thread.h: Modernize comment.
14114
14115         obstack: use _Noreturn
14116         * lib/obstack.c (__attribute__): Remove macro.
14117         (print_and_abort): Use _Noreturn.
14118
14119         c-stack: use _Noreturn
14120         * lib/c-stack.c (die, overflow_handler, segv_handler):
14121         Use _Noreturn rather than __attribute__((noreturn)).
14122
14123         argmatch-tests, exclude_tests: use _Noreturn
14124         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14125         Remove.
14126         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14127
14128         stdlib: use _Noreturn
14129         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14130         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14131         * modules/stdlib (Depends-on): Add _Noreturn.
14132         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14133
14134         stdnoreturn-tests: new module
14135         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14136
14137         stdnoreturn: new module
14138         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14139         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14140
14141         _Noreturn-tests: new module
14142         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14143
14144         _Noreturn: new module
14145         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14146         New section, mentioning it.
14147         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14148
14149         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14150
14151 2011-07-11  Eric Blake  <eblake@redhat.com>
14152
14153         ffs: new module
14154         * modules/ffs: New file.
14155         * m4/ffs.m4: Likewise.
14156         * lib/ffs.c: Likewise.
14157         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14158         * modules/strings (Makefile.am): Substitute witness.
14159         (Depends-on): Add c++defs.
14160         * lib/strings.in.h (ffs): Declare.
14161         * modules/ffs-tests: New test file.
14162         * tests/test-ffs.c: Test new module.
14163         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14164         * doc/posix-functions/ffs.texi (ffs): Likewise.
14165
14166         regex: avoid compiler warning
14167         * lib/regex.c (includes): Include <strings.h>, for use of
14168         strcasecmp in regcomp.c.
14169         Reported by Joachim Schmitz.
14170
14171 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14172
14173         stdint: respect system's intmax_t if INTMAX_MAX
14174         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14175         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14176         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14177         long but int64_t is long long, and where we will clash with the
14178         system intmax_t if we override it.  See
14179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14180         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14181         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14182         similarly for UINTMAX_C.
14183
14184 2011-07-08  Bruno Haible  <bruno@clisp.org>
14185
14186         pthread_sigmask tests: Avoid a compiler warning.
14187         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14188         non-zero.
14189
14190         sigprocmask tests: A better way to avoid a compiler warning.
14191         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14192         (main): Complain if system() returns non-zero.
14193         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14194
14195 2011-07-08  Bruno Haible  <bruno@clisp.org>
14196
14197         pthread_sigmask: Work around IRIX bug.
14198         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14199         bug.
14200         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14201         there may be unblocked pending signals.
14202         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14203
14204 2011-07-08  Bruno Haible  <bruno@clisp.org>
14205
14206         pthread_sigmask: Work around Cygwin bug.
14207         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14208         bug.
14209         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14210         the system's pthread_sigmask function.
14211         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14212
14213 2011-07-08  Bruno Haible  <bruno@clisp.org>
14214
14215         pthread_sigmask: Work around bug in single-threaded implementation.
14216         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14217         FreeBSD, HP-UX, Solaris bug.
14218         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14219         * lib/pthread_sigmask.c: Include <stddef.h>.
14220         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14221         the system's pthread_sigmask function.
14222         * modules/pthread_sigmask (configure.ac): Invoke
14223         gl_PREREQ_PTHREAD_SIGMASK.
14224         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14225         HP-UX, Solaris.
14226
14227 2011-07-08  Eric Blake  <eblake@redhat.com>
14228
14229         test-sigprocmask: avoid compiler warning
14230         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14231         * tests/test-sigprocmask.c (main): Use it to silence warning.
14232         Reported by Jim Meyering.
14233
14234         test-snprintf: avoid compiler warning
14235         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14236         * tests/test-vsnprintf.c (main): Likewise.
14237         Reported by Jim Meyering.
14238
14239 2011-07-08  Bruno Haible  <bruno@clisp.org>
14240
14241         Tests for module 'pthread_sigmask'.
14242         * modules/pthread_sigmask-tests: New file.
14243         * tests/test-pthread_sigmask1.c: New file, based on
14244         tests/test-sigprocmask.c.
14245         * tests/test-pthread_sigmask2.c: New file.
14246
14247 2011-07-08  Jim Meyering  <meyering@redhat.com>
14248
14249         test-getopt.h: avoid warning about an unused variable
14250         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14251
14252 2011-07-07  Jim Meyering  <meyering@redhat.com>
14253
14254         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14255         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14256         now that it no longer contains leading TABs.
14257         Remove unused "url=FIXME" statement.
14258
14259 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14260
14261         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14262         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14263         When gl_THREADLIB is not in use, assume that the POSIX sematics
14264         are desired.  This is better for Emacs, which uses POSIX semantics
14265         on GNUish and/or POSIXish platforms, and does not use threads at
14266         all otherwise.
14267
14268         pthread_sigmask: fix typo when testing for libraries
14269         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14270         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14271
14272 2011-07-08  Eric Blake  <eblake@redhat.com>
14273
14274         fts: introduce FTS_NOATIME
14275         * lib/fts_.h (FTS_NOATIME): New bit flag.
14276         (FTS_OPTIONMASK): Adjust.
14277         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14278         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14279
14280 2011-07-08  Bruno Haible  <bruno@clisp.org>
14281
14282         Tests for module 'thread'.
14283         * modules/thread-tests: New file.
14284         * tests/test-thread_self.c: New file.
14285         * tests/test-thread_create.cc: New file.
14286
14287 2011-07-08  Bruno Haible  <bruno@clisp.org>
14288
14289         thread: Avoid gcc warnings when using gl_thread_self().
14290         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14291         'void *'.
14292         (gl_thread_self_pointer): Update.
14293
14294 2011-07-07  Bruno Haible  <bruno@clisp.org>
14295
14296         signal-c++-tests: Check declaration of pthread_sigmask.
14297         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14298         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14299         $(LIB_PTHREAD_SIGMASK).
14300
14301 2011-07-07  Bruno Haible  <bruno@clisp.org>
14302
14303         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14304         * lib/signal.in.h (pthread_sigmask): Override if
14305         REPLACE_PTHREAD_SIGMASK is 1.
14306         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14307         REPLACE_PTHREAD_SIGMASK.
14308         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14309         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14310         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14311         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14312         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14313
14314 2011-07-07  Bruno Haible  <bruno@clisp.org>
14315
14316         pthread_sigmask: Ensure declaration in <signal.h>.
14317         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14318         include <pthread.h>.
14319         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14320         problem.
14321
14322 2011-07-07  Bruno Haible  <bruno@clisp.org>
14323
14324         pthread_sigmask: Document the module.
14325         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14326
14327 2011-07-07  Bruno Haible  <bruno@clisp.org>
14328
14329         pthread_sigmask: Follow gnulib conventions.
14330         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14331         gl_PTHREAD_SIGMASK.
14332         * modules/pthread_sigmask (configure.ac): Update.
14333
14334 2011-07-07  Bruno Haible  <bruno@clisp.org>
14335
14336         pthread_sigmask: Make declaration C++ safe.
14337         * lib/signal.in.h: In two special conditions, just do an #include_next.
14338         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14339         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14340         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14341         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14342         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14343         not REPLACE_PTHREAD_MASK.
14344         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14345         not REPLACE_PTHREAD_MASK.
14346         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14347
14348 2011-07-07  Bruno Haible  <bruno@clisp.org>
14349
14350         pthread_sigmask: Fix return value.
14351         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14352         * lib/pthread_sigmask.c: New file.
14353         * modules/pthread_sigmask (Files): Add it.
14354         (configure.ac): Invoke AC_LIBOBJ.
14355
14356 2011-07-07  Eric Blake  <eblake@redhat.com>
14357
14358         getopt: more portable argv creation
14359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14360         const, use char arrays rather than strings.
14361         Suggested by Paul Eggert.
14362
14363 2011-07-07  Bruno Haible  <bruno@clisp.org>
14364
14365         Tests for module 'sigprocmask'.
14366         * modules/sigprocmask-tests: New file.
14367         * tests/test-sigprocmask.c: New file.
14368
14369 2011-07-07  Bruno Haible  <bruno@clisp.org>
14370
14371         float tests: Tweak.
14372         * tests/test-float.c (main): Tweak skip message.
14373
14374 2011-07-07  Eric Blake  <eblake@redhat.com>
14375
14376         getopt: avoid compiler warning during configure
14377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14378         assigning string literals to non-const pointer.
14379
14380         getopt-gnu: avoid crash in glibc getopt
14381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14382         * tests/test-getopt.h (test_getopt): Enhance test.
14383         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14384         * doc/posix-functions/getopt.texi (getopt): Document it.
14385         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14386         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14387         Likewise.
14388
14389 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14390
14391         getopt: handle W; without long options in getopt [BZ #12922]
14392         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14393         but no long options are defined, just return 'W'.
14394
14395 2011-07-07  Bruno Haible  <bruno@clisp.org>
14396
14397         Avoid literal tabs.
14398         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14399         variable containing a tab instead of a literal tab.
14400         Reported by Jim Meyering.
14401
14402 2011-07-07  Bruno Haible  <bruno@clisp.org>
14403
14404         Comments.
14405         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14406
14407 2011-07-06  Bruno Haible  <bruno@clisp.org>
14408
14409         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14410         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14411         <winsock2.h>.
14412         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14413         lib/sys_socket.in.h.
14414         (close, gethostname): Hide declarations from <winsock2.h>.
14415         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14416         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14417         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14418         (select): Don't override if gnulib's <sys/select.h> was already
14419         included.
14420         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14421         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14422         setsockopt, shutdown, select): Tweak indentation.
14423
14424 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14427         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14428         in an application that does not use the sys_select module.
14429
14430 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14431
14432         poll: do not return 0 on timeout=-1
14433         * lib/poll.c: Loop with yield if no events occured
14434
14435 2011-07-06  Eric Blake  <eblake@redhat.com>
14436
14437         pthread_sigmask: always replace when not using pthread
14438         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14439         replacement when using some threading other than pthread.  Fix
14440         logic bug.
14441
14442 2011-07-06  Bruno Haible  <bruno@clisp.org>
14443
14444         Comments.
14445         * m4/printf.m4: Update comments about mingw.
14446
14447 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14448
14449         sys_select: define sigset_t more portably
14450         * lib/sys_select.in.h: Always include <sys/types.h>, since
14451         we now need sigset_t and mingw defines it there.
14452         Include <signal.h> before split inclusion guard, to avoid
14453         mishaps on Solaris, whose <signal.h> eventually includes us.
14454         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14455         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14456         which come from ...
14457         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14458         gl_CHECK_TYPE_SIGSET_T.
14459         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14460         does the real work.
14461         * modules/sys_select (Depends-on): Add 'signal'.
14462
14463         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14464         Suggested by Bruno Haible.
14465
14466         pselect: Use pthread_sigmask, not sigprocmask.
14467         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14468         multithreaded apps better than sigprocmask does.
14469         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14470         sigprocmask directly.
14471
14472 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14473
14474         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14475         Don't #undef,  since we don't need any underlying pselect.
14476         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14477         (Depends-on): Add select.
14478         (Link): Add $(LIBSOCKET).
14479         These changes suggested by Bruno Haible.
14480
14481         pselect: document better
14482         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14483         * doc/posix-functions/pselect.texi (pselect): Document new module.
14484
14485         pthread_sigmask: new module
14486         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14487         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14488         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14489         This is done only as a macro; I don't know how well that'll
14490         work for C++.  Move <sys/types.h> include before the include_next,
14491         to avoid mishap on Solaris.
14492         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14493         * modules/signal (Makefile.am): Substitute the check's results.
14494         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14495
14496         test-pselect: new module
14497         * modules/pselect-tests, tests/test-pselect.c: New files.
14498         * tests/test-select.c, tests/test-sys_select-c++.cc:
14499         If TEST_PSELECT is defined, test pselect instead of testing select.
14500
14501         * tests/test-sys_select.c (sigset_t): Test for it, too.
14502         Suggested by Bruno Haible.
14503
14504 2011-07-05  Eric Blake  <eblake@redhat.com>
14505
14506         snprintf: guarantee %1$d, for libintl
14507         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14508         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14509         * doc/posix-functions/snprintf.texi (snprintf): Update.
14510         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14511         * tests/test-snprintf.c (main): Enhance test.
14512         * tests/test-vsnprintf.c (main): Likewise.
14513
14514 2011-07-05  Jim Meyering  <meyering@redhat.com>
14515
14516         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14517         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14518         per Bruno's request, to accommodate this idiom (no space after "#")
14519         even when the function is inside an #if block:
14520         char *
14521         gets (char *s)
14522         #undef gets
14523         {
14524           ...
14525         }
14526
14527 2011-07-04  Jim Meyering  <meyering@redhat.com>
14528
14529         maint: indent with spaces, not TABs, and add a rule to check this
14530         * tests/test-userspec.c: Indent with spaces, not TABs.
14531         * tests/test-argp.c: Likewise.
14532         * tests/test-c-stack2.sh: Likewise.
14533         * tests/test-parse-duration.sh: Likewise
14534         * m4/strtod.m4: Likewise.
14535         * m4/alloca.m4: Likewise.
14536         * m4/pselect.m4: Likewise.
14537         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14538
14539 2011-07-03  Jim Meyering  <meyering@redhat.com>
14540
14541         maint.mk: correct omissions in prohibit_argmatch_without_use check
14542         This rule would mistakenly report that argmatch.h is included without
14543         use even when both the argmatch and invalid_arg macro were used.
14544         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14545         of argmatch and invalid_arg.
14546
14547 2011-07-03  Bruno Haible  <bruno@clisp.org>
14548
14549         Comments about EINTR.
14550         * lib/safe-read.h: Explain the purpose of this module.
14551         * lib/safe-write.h: Likewise.
14552         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14553         module.
14554         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14555         module.
14556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14557
14558 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14559
14560         xnanosleep: Rewrite to use new dtotimespec module.
14561         It has the conversion code that used to be in xnanosleep.
14562         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14563         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14564         (TIME_T_MAX): Remove.
14565         (xnanosleep): Rewrite in terms of dtotimespec.
14566         * modules/xnanosleep (Depends-on): Add dtotimespec.
14567         Remove intprops, stdbool.
14568
14569         timespec-add, timespec-sub: new modules
14570         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14571         * lib/timespec-add.c, lib/timespec-sub.c:
14572         * modules/timespec-add, modules/timespec-sub: New files.
14573
14574         dtotimespec: new module
14575         * lib/timespec.h (dtotimespec): New decl.
14576         * lib/dtotimespec.c, modules/dtotimespec: New files.
14577
14578         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14579
14580         pselect: new module
14581         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14582         (pselect): New decls.
14583         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14584         since the standard pselect decl uses 'restrict'.
14585         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14586         HAVE_PSELECT, REPLACE_PSELECT.
14587         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14588         HAVE_PSELECT, REPLACE_PSELECT.
14589         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14590
14591         sys_select: don't depend on sys_socket
14592         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14594         This fix works on GNU and GNU-like platforms, but has not been tested
14595         on native Windows.
14596         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14597         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14598         gl_HEADER_SYS_SOCKET.
14599         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14600         gl_PREREQ_SYS_H_WINSOCK2.
14601
14602 2011-06-29  Eric Blake  <eblake@redhat.com>
14603
14604         pipe2: fix C89 compile problem
14605         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14606         Reported by Bruno Haible.
14607
14608         pipe, pipe2: don't corrupt fd on error
14609         * lib/pipe.c (pipe): Leave fd unchanged on error.
14610         * lib/pipe2.c (pipe2): Likewise.
14611         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14612         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14613
14614 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14615
14616         mmap-anon: do not use regular expressions inadvertently
14617         * m4/mmap-anon.m4: Remove trailing period from strings sought
14618         in the output.
14619
14620 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14621
14622         nanosleep: fix integer overflow problem
14623         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14624         arithmetic wraps around on overflow.
14625
14626         nanosleep: simplify carrying
14627         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14628         first call to the underyling nanosleep, not for the last one.
14629         This doesn't fix any bugs, but it simplifies the computation of
14630         the remaining delay.  Found while auditing integer overflow issues.
14631
14632         dup2: remove test for existence of fcntl
14633         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14634         "#if HAVE_FCNTL", in the configure-time test program.
14635         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14636         and therefore speeds up "configure" a bit.  Found while
14637         adding the dup2 module to Emacs.
14638
14639 2011-06-24  Eric Blake  <eblake@redhat.com>
14640
14641         maint.mk: enhance useless header checks
14642         * top/maint.mk (_sc_header_without_use): Check both include
14643         styles.
14644         (sc_prohibit_assert_without_use)
14645         (sc_prohibit_close_stream_without_use)
14646         (sc_prohibit_getopt_without_use)
14647         (sc_prohibit_quotearg_without_use)
14648         (sc_prohibit_quote_without_use)
14649         (sc_prohibit_long_options_without_use)
14650         (sc_prohibit_inttostr_without_use)
14651         (sc_prohibit_ignore_value_without_use)
14652         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14653         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14654         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14655         (sc_prohibit_hash_pjw_without_use)
14656         (sc_prohibit_safe_read_without_use)
14657         (sc_prohibit_argmatch_without_use)
14658         (sc_prohibit_canonicalize_without_use)
14659         (sc_prohibit_root_dev_ino_without_use)
14660         (sc_prohibit_openat_without_use)
14661         (sc_prohibit_c_ctype_without_use)
14662         (sc_prohibit_signal_without_use)
14663         (sc_prohibit_stdio--_without_use)
14664         (sc_prohibit_stdio-safer_without_use)
14665         (sc_prohibit_strings_without_use)
14666         (sc_prohibit_intprops_without_use)
14667         (sc_prohibit_stddef_without_use)
14668         (sc_prohibit_xfreopen_without_use): Update clients.
14669
14670 2011-06-24  Jim Meyering  <meyering@redhat.com>
14671
14672         syntax-check: keep one maint.mk rule in sync with its header
14673         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14674         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14675         I prefer to avoid temporary files here, so use <(...), but that
14676         is not supported by /bin/sh, so...
14677         (SHELL): Define to /bin/bash.
14678
14679 2011-06-24  Eric Blake  <eblake@redhat.com>
14680
14681         maint.mk: update sc_prohibit_intprops_without_use
14682         * top/maint.mk (_intprops_names): Match recent changes.
14683
14684 2011-06-24  Bruno Haible  <bruno@clisp.org>
14685
14686         strerror-override: No-op tweak.
14687         * lib/strerror-override.h (strerror_override): Reorder conditions,
14688         for consistency with lib/strerror-override.c.
14689
14690 2011-06-23  Eric Blake  <eblake@redhat.com>
14691
14692         maint.mk: test further PATH_MAX issues
14693         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14694         (sc_prohibit_path_max_allocation): ...and also test alloca.
14695         Suggested by Jim Meyering.
14696
14697 2011-06-22  Eric Blake  <eblake@redhat.com>
14698
14699         maint.mk: add syntax-check to avoid char[PATH_MAX]
14700         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14701
14702         stat: be robust to PATH_MAX definition
14703         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14704         * modules/stat (Depends-on): Add verify.
14705
14706         link: work around IRIX bug
14707         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14708         * lib/link.c (rpl_link): Work around it.
14709         * tests/test-link.h (test_link): Enhance test.
14710         * doc/posix-functions/link.texi (link): Document the bug.
14711
14712         getopt: silence clang warning
14713         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14714         dereference.
14715         Reported by Gustavo Martin Domato.
14716
14717 2011-06-22  Jim Meyering  <meyering@redhat.com>
14718
14719         bootstrap: do not insert a blank line into each .gitignore file
14720         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14721
14722 2011-06-21  Eric Blake  <eblake@redhat.com>
14723
14724         perror: test for output mismatch
14725         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14726         perror on IRIX.
14727
14728         strerror_r: fix OpenBSD behavior on out-of-range
14729         * lib/strerror_r.c (strerror_r): Always use maximal string.
14730         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14731
14732         strerror_r: fix OpenBSD behavior on 0
14733         * lib/strerror-override.c (strerror_override): Also override 0
14734         when needed.
14735         * lib/strerror-override.h (strerror_override): Likewise.
14736         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14737         earlier.
14738         * lib/strerror_r.c (strerror_r): Likewise.
14739         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14740         behavior...
14741         (gl_FUNC_STRERROR_0): ...into new macro.
14742         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14743         is overridden.
14744         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14745         * modules/strerror-override (Files): Add strerror.m4.
14746         (configure.ac): Also provide override for 0 when needed.
14747         * doc/posix-functions/strerror.texi (strerror): Document this.
14748         * doc/posix-functions/perror.texi (perror): Likewise.
14749
14750         perror: adjust array size
14751         * modules/perror (Depends-on): Add strerror-override.
14752         * lib/perror.c (perror): Use it to avoid magic number.
14753
14754         strerror-override: reduce size
14755         * lib/strerror-override.c (strerror_override): Use fewer lines.
14756
14757 2011-06-20  Bruno Haible  <bruno@clisp.org>
14758
14759         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14760         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14761
14762 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14763
14764         alloca: port to compilers that can optimize like GCC 4.6.0
14765         * lib/alloca.c (find_stack_direction): New signature, taken from
14766         Autoconf git.  This works with GCC 4.6.0.  This code should never
14767         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14768         be used with other compilers that optimize as well as GCC 4.6.0 does.
14769         (alloca): Adjust to new signature.
14770         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14771         New macro, which patches Autoconf in a similar way.
14772
14773         c-stack: stop worrying about stack direction
14774         * lib/c-stack.c (find_stack_direction): Remove.
14775         (segv_handler): Don't worry about stack direction growth, as it's
14776         too much of a pain to configure this correctly, given how compilers
14777         are optimizing-away our stack-growth detection code.  Instead, assume
14778         that any access to just before or just after the stack is OK.
14779         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14780         Don't require AC_FUNC_ALLOCA; no longer needed.
14781
14782 2011-06-20  Eric Blake  <eblake@redhat.com>
14783
14784         test-stat: don't allocate PATH_MAX bytes
14785         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14786         PATH_MAX-sized buffer.
14787         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14788         * modules/stat-tests (Depends-on): Likewise.
14789         * tests/test-fstatat.c (includes): Drop pathmax.h.
14790         * tests/test-stat.c (includes): Likewise.
14791         Reported by Bruno Haible.
14792
14793 2011-06-20  Bruno Haible  <bruno@clisp.org>
14794
14795         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14796         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14797         * lib/float.c: New file.
14798         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14799         REPLACE_FLOAT_LDBL.
14800         * modules/float (Files): Add lib/float.c.
14801         (configure.ac): Invoke AC_LIBOBJ.
14802         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14803
14804 2011-06-20  Bruno Haible  <bruno@clisp.org>
14805
14806         Tests for module 'float'.
14807         * modules/float-tests: New file.
14808         * tests/test-float.c: New file.
14809
14810 2011-06-19  Bruno Haible  <bruno@clisp.org>
14811
14812         isinf: Coding style.
14813         * lib/isinf.c: Use GNU coding style.
14814
14815 2011-06-19  Bruno Haible  <bruno@clisp.org>
14816
14817         linkat test: Avoid test failure on AIX 7.1.
14818         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14819         * tests/test-link.h (test_link): Likewise.
14820
14821 2011-06-19  Bruno Haible  <bruno@clisp.org>
14822
14823         pread test: Avoid test failure on OpenBSD 4.9.
14824         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14825
14826 2011-06-19  Bruno Haible  <bruno@clisp.org>
14827
14828         sprintf-posix: Fix test failure on AIX 7.1.
14829         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14830         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14831         on AIX.
14832         * doc/posix-functions/fprintf.texi: Likewise.
14833         * doc/posix-functions/printf.texi: Likewise.
14834         * doc/posix-functions/snprintf.texi: Likewise.
14835         * doc/posix-functions/sprintf.texi: Likewise.
14836         * doc/posix-functions/vdprintf.texi: Likewise.
14837         * doc/posix-functions/vfprintf.texi: Likewise.
14838         * doc/posix-functions/vprintf.texi: Likewise.
14839         * doc/posix-functions/vsnprintf.texi: Likewise.
14840         * doc/posix-functions/vsprintf.texi: Likewise.
14841
14842 2011-06-19  Bruno Haible  <bruno@clisp.org>
14843
14844         roundl-ieee: Fix test failure on AIX 7.1.
14845         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
14846         * doc/posix-functions/roundl.texi: Mention problem with negative
14847         arguments.
14848
14849 2011-06-19  Bruno Haible  <bruno@clisp.org>
14850
14851         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14852         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
14853         * doc/posix-functions/round.texi: Mention problem with negative
14854         arguments.
14855         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
14856
14857 2011-06-19  Bruno Haible  <bruno@clisp.org>
14858
14859         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14860         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
14861         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
14862         * doc/posix-functions/roundf.texi: Mention problem with negative
14863         arguments.
14864         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
14865
14866 2011-06-19  Bruno Haible  <bruno@clisp.org>
14867
14868         ceilf-ieee: Work around bug on MacOS X 10.5.
14869         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
14870
14871         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
14872         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
14873         IEEE compliant, avoid compiler optimizations.
14874         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14875         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14876         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14877         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14878         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14879         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14880         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14881         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14882         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14883         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14884
14885 2011-06-19  Bruno Haible  <bruno@clisp.org>
14886
14887         ceilf-ieee: Work around bug on AIX 7.1.
14888         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
14889         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
14890
14891 2011-06-19  Bruno Haible  <bruno@clisp.org>
14892
14893         ceil-ieee: Work around bug on AIX 7.1.
14894         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
14895         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
14896
14897 2011-06-18  Bruno Haible  <bruno@clisp.org>
14898
14899         fsync test: Avoid test failure on MacOS X and AIX.
14900         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
14901         EINVAL.
14902
14903 2011-06-18  Bruno Haible  <bruno@clisp.org>
14904
14905         openat, fdopendir tests: Fix link errors.
14906         * modules/openat-tests (Depends-on): Add progname.
14907         * modules/fdopendir-tests (Depends-on): Likewise.
14908         * tests/test-fchownat.c: Include progname.h.
14909         (main): Call set_program_name.
14910         * tests/test-fstatat.c: Include progname.h.
14911         (main): Call set_program_name.
14912         * tests/test-mkdirat.c: Include progname.h.
14913         (main): Call set_program_name.
14914         * tests/test-openat.c: Include progname.h.
14915         (main): Call set_program_name.
14916         * tests/test-unlinkat.c: Include progname.h.
14917         (main): Call set_program_name.
14918         * tests/test-fdopendir.c: Include progname.h.
14919         (main): Call set_program_name.
14920
14921 2011-06-18  Bruno Haible  <bruno@clisp.org>
14922
14923         Doc update.
14924         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
14925         HP-UX.
14926         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
14927
14928 2011-06-18  Bruno Haible  <bruno@clisp.org>
14929
14930         getcwd tests: Avoid compilation error on HP-UX 11.31.
14931         * modules/getcwd-tests (Depends-on): Add pathmax.
14932         * tests/test-getcwd.c: Include pathmax.h.
14933
14934 2011-06-18  Bruno Haible  <bruno@clisp.org>
14935
14936         isfinite, isinf: Fix link error on AIX 6 and 7.
14937         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
14938         needed, also test the macro with a 'float' argument.
14939         * m4/isinf.m4 (gl_ISINF): Likewise.
14940
14941 2011-06-18  Bruno Haible  <bruno@clisp.org>
14942
14943         getloadavg: Don't clobber LIBS. Regression from previous commit.
14944         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
14945         AC_CHECK_LIB from here...
14946         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
14947         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
14948         gl_func_getloadavg_done.
14949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14950
14951 2011-06-18  Bruno Haible  <bruno@clisp.org>
14952
14953         clean-temp: Improve documentation.
14954         * lib/clean-temp.h: Explain better how to use this module.
14955         Reported by John Darrington <john@darrington.wattle.id.au>.
14956
14957 2011-06-17  Bruno Haible  <bruno@clisp.org>
14958
14959         pread, pwrite: Avoid cc warning on AIX.
14960         * lib/unistd.in.h (pread): Undefine before defining as a macro.
14961         (pwrite): Likewise.
14962
14963 2011-06-17  Bruno Haible  <bruno@clisp.org>
14964
14965         spawn-pipe tests: Fix link error.
14966         * tests/test-spawn-pipe-child.c: Undefine fprintf.
14967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14968
14969 2011-06-17  Bruno Haible  <bruno@clisp.org>
14970
14971         Tests: Remove unnecessary dependency.
14972         * modules/canonicalize-tests (Depends-on): Remove progname.
14973         * modules/chown-tests (Depends-on): Likewise.
14974         * modules/dirname-tests (Depends-on): Likewise.
14975         * modules/fdopendir-tests (Depends-on): Likewise.
14976         * modules/fdutimensat-tests (Depends-on): Likewise.
14977         * modules/hash-tests (Depends-on): Likewise.
14978         * modules/lchown-tests (Depends-on): Likewise.
14979         * modules/linkat-tests (Depends-on): Likewise.
14980         * modules/renameat-tests (Depends-on): Likewise.
14981         * modules/spawn-pipe-tests (Depends-on): Likewise.
14982         * modules/utimensat-tests (Depends-on): Likewise.
14983
14984 2011-06-17  Bruno Haible  <bruno@clisp.org>
14985
14986         spawn-pipe tests: Fix link error.
14987         * tests/test-spawn-pipe-child.c: Undefine fflush.
14988
14989 2011-06-17  Bruno Haible  <bruno@clisp.org>
14990
14991         Fix tests link errors.
14992         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14993         * modules/chown-tests (Makefile.am): Don't link test-chown with
14994         LIBINTL.
14995         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14996         LIBINTL.
14997         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14998         LIBINTL.
14999         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15000         LIBINTL.
15001
15002 2011-06-16  Bruno Haible  <bruno@clisp.org>
15003
15004         crypto/gc-sha1: Fix recent regression.
15005         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15006         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15007
15008         crypto/gc-md5: Fix recent regression.
15009         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15010
15011         crypto/gc-md4: Fix recent regression.
15012         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15013         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15014
15015         crypto/gc-arctwo: Fix recent regression.
15016         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15017         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15018
15019         crypto/gc-rijndael: Fix recent regression.
15020         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15021         (configure.ac): Invoke AC_LIBOBJ here.
15022         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15024
15025         crypto/gc-hmac-sha1: Fix recent regression.
15026         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15027         (configure.ac): Invoke AC_LIBOBJ here.
15028         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15030
15031         crypto/gc-hmac-md5: Fix recent regression.
15032         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15033         (configure.ac): Invoke AC_LIBOBJ here.
15034         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15036
15037         crypto/gc-des: Fix recent regression.
15038         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15039         (configure.ac): Invoke AC_LIBOBJ here.
15040         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15042
15043         crypto/gc-arcfour: Fix recent regression.
15044         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15045         (configure.ac): Invoke AC_LIBOBJ here.
15046         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15048
15049 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15050
15051         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15052         After the 2011-05-21 change, this macro requires
15053         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15054         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15055
15056 2011-06-16  Bruno Haible  <bruno@clisp.org>
15057
15058         fprintftime: Move AC_LIBOBJ invocations to module description.
15059         * m4/fprintftime.m4: Remove file.
15060         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15061         (configure.ac): Remove gl_FPRINTFTIME call.
15062         (Makefile.am): Augment lib_SOURCES.
15063         Reported by Jim Meyering.
15064
15065 2011-06-16  Bruno Haible  <bruno@clisp.org>
15066
15067         tmpfile-safer: Finish 2011-05-23 commit.
15068         * m4/stdio-safer.m4: Really remove file.
15069         Reported by Jim Meyering.
15070
15071 2011-06-16  Bruno Haible  <bruno@clisp.org>
15072
15073         syntax-check: Fix typo.
15074         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15075         printf-posix.m4.
15076         Reported by Jim Meyering.
15077
15078 2011-06-13  Jim Meyering  <meyering@redhat.com>
15079
15080         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15081         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15082
15083 2011-05-23  Bruno Haible  <bruno@clisp.org>
15084
15085         yesno: Move AC_LIBOBJ invocations to module description.
15086         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15087         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15088
15089 2011-05-23  Bruno Haible  <bruno@clisp.org>
15090
15091         xstrtol: Move AC_LIBOBJ invocations to module description.
15092         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15093         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15094
15095 2011-05-23  Bruno Haible  <bruno@clisp.org>
15096
15097         xstrtold: Move AC_LIBOBJ invocations to module description.
15098         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15099         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15100
15101 2011-05-23  Bruno Haible  <bruno@clisp.org>
15102
15103         xstrtod: Move AC_LIBOBJ invocations to module description.
15104         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15105         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15106
15107 2011-05-23  Bruno Haible  <bruno@clisp.org>
15108
15109         xnanosleep: Move AC_LIBOBJ invocations to module description.
15110         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15111         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15112
15113 2011-05-23  Bruno Haible  <bruno@clisp.org>
15114
15115         xgetcwd: Move AC_LIBOBJ invocations to module description.
15116         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15117         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15118
15119 2011-05-23  Bruno Haible  <bruno@clisp.org>
15120
15121         xalloc: Move AC_LIBOBJ invocations to module description.
15122         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15123         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15124
15125 2011-05-23  Bruno Haible  <bruno@clisp.org>
15126
15127         write-any-file: Move AC_LIBOBJ invocations to module description.
15128         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15129         invocation.
15130         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15131
15132 2011-05-23  Bruno Haible  <bruno@clisp.org>
15133
15134         utimens: Move AC_LIBOBJ invocations to module description.
15135         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15136         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15137
15138 2011-05-23  Bruno Haible  <bruno@clisp.org>
15139
15140         utimecmp: Move AC_LIBOBJ invocations to module description.
15141         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15142         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15143
15144 2011-05-23  Bruno Haible  <bruno@clisp.org>
15145
15146         userspec: Move AC_LIBOBJ invocations to module description.
15147         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15148         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15149
15150 2011-05-23  Bruno Haible  <bruno@clisp.org>
15151
15152         unlinkdir: Move AC_LIBOBJ invocations to module description.
15153         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15154         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15155
15156 2011-05-23  Bruno Haible  <bruno@clisp.org>
15157
15158         unistd-safer: Move AC_LIBOBJ invocations to module description.
15159         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15160         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15161
15162 2011-05-23  Bruno Haible  <bruno@clisp.org>
15163
15164         tempname: Move AC_LIBOBJ invocations to module description.
15165         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15166         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15167
15168 2011-05-23  Bruno Haible  <bruno@clisp.org>
15169
15170         strftime: Move AC_LIBOBJ invocations to module description.
15171         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15172         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15173
15174 2011-05-23  Bruno Haible  <bruno@clisp.org>
15175
15176         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15177         * m4/stdlib-safer.m4: Remove file.
15178         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15179         (configure.ac): Remove gl_STDLIB_SAFER call.
15180         (Makefile.am): Augment lib_SOURCES.
15181
15182 2011-05-23  Bruno Haible  <bruno@clisp.org>
15183
15184         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15185         * m4/stdio-safer.m4: Remove file.
15186         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15187         (configure.ac): Remove gl_TMPFILE_SAFER call.
15188         (Makefile.am): Augment lib_SOURCES.
15189
15190 2011-05-23  Bruno Haible  <bruno@clisp.org>
15191
15192         popen-safer: Move AC_LIBOBJ invocations to module description.
15193         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15194         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15195         (configure.ac): Remove gl_POPEN_SAFER call.
15196         (Makefile.am): Augment lib_SOURCES.
15197
15198 2011-05-23  Bruno Haible  <bruno@clisp.org>
15199
15200         freopen-safer: Move AC_LIBOBJ invocations to module description.
15201         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15202         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15203         (configure.ac): Remove gl_FREOPEN_SAFER call.
15204         (Makefile.am): Augment lib_SOURCES.
15205
15206 2011-05-23  Bruno Haible  <bruno@clisp.org>
15207
15208         fopen-safer: Move AC_LIBOBJ invocations to module description.
15209         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15210         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15211         (configure.ac): Remove gl_FOPEN_SAFER call.
15212         (Makefile.am): Augment lib_SOURCES.
15213
15214 2011-05-23  Bruno Haible  <bruno@clisp.org>
15215
15216         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15217         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15218         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15219
15220 2011-05-23  Bruno Haible  <bruno@clisp.org>
15221
15222         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15223         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15224         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15225
15226 2011-05-23  Bruno Haible  <bruno@clisp.org>
15227
15228         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15229         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15230         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15231
15232 2011-05-23  Bruno Haible  <bruno@clisp.org>
15233
15234         settime: Move AC_LIBOBJ invocations to module description.
15235         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15236         * modules/settime (Makefile.am): Augment lib_SOURCES.
15237
15238 2011-05-23  Bruno Haible  <bruno@clisp.org>
15239
15240         savedir: Move AC_LIBOBJ invocations to module description.
15241         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15242         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15243
15244 2011-05-23  Bruno Haible  <bruno@clisp.org>
15245
15246         save-cwd: Move AC_LIBOBJ invocations to module description.
15247         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15248         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15249
15250 2011-05-23  Bruno Haible  <bruno@clisp.org>
15251
15252         same: Move AC_LIBOBJ invocations to module description.
15253         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15254         * modules/same (Makefile.am): Augment lib_SOURCES.
15255
15256 2011-05-23  Bruno Haible  <bruno@clisp.org>
15257
15258         safe-write: Move AC_LIBOBJ invocations to module description.
15259         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15260         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15261         instead of gl_SAFE_WRITE.
15262         (Makefile.am): Augment lib_SOURCES.
15263
15264 2011-05-23  Bruno Haible  <bruno@clisp.org>
15265
15266         safe-read: Move AC_LIBOBJ invocations to module description.
15267         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15268         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15269         of gl_SAFE_READ.
15270         (Makefile.am): Augment lib_SOURCES.
15271
15272 2011-05-23  Bruno Haible  <bruno@clisp.org>
15273
15274         safe-alloc: Move AC_LIBOBJ invocations to module description.
15275         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15276         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15277
15278 2011-05-23  Bruno Haible  <bruno@clisp.org>
15279
15280         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15281         * m4/rijndael.m4: Remove file.
15282         * modules/crypto/rijndael (Files): Remove it.
15283         (configure.ac): Remove gl_RIJNDAEL call.
15284         (Makefile.am): Augment lib_SOURCES.
15285
15286 2011-05-23  Bruno Haible  <bruno@clisp.org>
15287
15288         readtokens: Move AC_LIBOBJ invocations to module description.
15289         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15290         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15291
15292 2011-05-23  Bruno Haible  <bruno@clisp.org>
15293
15294         read-file: Move AC_LIBOBJ invocations to module description.
15295         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15296         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15297         of gl_FUNC_READ_FILE.
15298         (Makefile.am): Augment lib_SOURCES.
15299
15300 2011-05-23  Bruno Haible  <bruno@clisp.org>
15301
15302         quotearg: Move AC_LIBOBJ invocations to module description.
15303         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15304         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15305
15306 2011-05-23  Bruno Haible  <bruno@clisp.org>
15307
15308         quote: Move AC_LIBOBJ invocations to module description.
15309         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15310         * modules/quote (Makefile.am): Augment lib_SOURCES.
15311
15312 2011-05-23  Bruno Haible  <bruno@clisp.org>
15313
15314         posixver: Move AC_LIBOBJ invocations to module description.
15315         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15316         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15317
15318 2011-05-23  Bruno Haible  <bruno@clisp.org>
15319
15320         posixtm: Move AC_LIBOBJ invocations to module description.
15321         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15322         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15323
15324 2011-05-23  Bruno Haible  <bruno@clisp.org>
15325
15326         physmem: Move AC_LIBOBJ invocations to module description.
15327         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15328         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15329
15330 2011-05-23  Bruno Haible  <bruno@clisp.org>
15331
15332         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15333         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15334         invocation.
15335         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15336
15337 2011-05-23  Bruno Haible  <bruno@clisp.org>
15338
15339         mpsort: Move AC_LIBOBJ invocations to module description.
15340         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15341         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15342
15343 2011-05-23  Bruno Haible  <bruno@clisp.org>
15344
15345         modechange: Move AC_LIBOBJ invocations to module description.
15346         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15347         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15348
15349 2011-05-23  Bruno Haible  <bruno@clisp.org>
15350
15351         mkdir-p: Move AC_LIBOBJ invocations to module description.
15352         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15353         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15354
15355 2011-05-23  Bruno Haible  <bruno@clisp.org>
15356
15357         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15358         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15359         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15360
15361 2011-05-23  Bruno Haible  <bruno@clisp.org>
15362
15363         mgetgroups: Move AC_LIBOBJ invocations to module description.
15364         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15365         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15366
15367 2011-05-23  Bruno Haible  <bruno@clisp.org>
15368
15369         memxor: Move AC_LIBOBJ invocations to module description.
15370         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15371         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15372
15373 2011-05-23  Bruno Haible  <bruno@clisp.org>
15374
15375         memcoll: Move AC_LIBOBJ invocations to module description.
15376         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15377         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15378
15379 2011-05-23  Bruno Haible  <bruno@clisp.org>
15380
15381         memcasecmp: Move AC_LIBOBJ invocations to module description.
15382         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15383         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15384
15385 2011-05-23  Bruno Haible  <bruno@clisp.org>
15386
15387         crypto/md5: Move AC_LIBOBJ invocations to module description.
15388         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15389         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15390
15391 2011-05-23  Bruno Haible  <bruno@clisp.org>
15392
15393         crypto/md4: Move AC_LIBOBJ invocations to module description.
15394         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15395         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15396
15397 2011-05-23  Bruno Haible  <bruno@clisp.org>
15398
15399         crypto/md2: Move AC_LIBOBJ invocations to module description.
15400         * m4/md2.m4: Remove file.
15401         * modules/crypto/md2 (Files): Remove it.
15402         (configure.ac): Remove gl_MD2 call.
15403         (Makefile.am): Augment lib_SOURCES.
15404
15405 2011-05-23  Bruno Haible  <bruno@clisp.org>
15406
15407         long-options: Move AC_LIBOBJ invocations to module description.
15408         * m4/long-options.m4: Remove file.
15409         * modules/long-options (Files): Remove it.
15410         (configure.ac): Remove gl_LONG_OPTIONS call.
15411         (Makefile.am): Augment lib_SOURCES.
15412
15413 2011-05-23  Bruno Haible  <bruno@clisp.org>
15414
15415         i-ring: Move AC_LIBOBJ invocations to module description.
15416         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15417         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15418
15419 2011-05-23  Bruno Haible  <bruno@clisp.org>
15420
15421         idcache: Move AC_LIBOBJ invocations to module description.
15422         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15423         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15424
15425 2011-05-23  Bruno Haible  <bruno@clisp.org>
15426
15427         human: Move AC_LIBOBJ invocations to module description.
15428         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15429         * modules/human (Makefile.am): Augment lib_SOURCES.
15430
15431 2011-05-23  Bruno Haible  <bruno@clisp.org>
15432
15433         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15434         * m4/hmac-sha1.m4: Remove file.
15435         * modules/crypto/hmac-sha1 (Files): Remove it.
15436         (configure.ac): Remove gl_HMAC_SHA1 call.
15437         (Makefile.am): Augment lib_SOURCES.
15438
15439 2011-05-23  Bruno Haible  <bruno@clisp.org>
15440
15441         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15442         * m4/hmac-md5.m4: Remove file.
15443         * modules/crypto/hmac-md5 (Files): Remove it.
15444         (configure.ac): Remove gl_HMAC_MD5 call.
15445         (Makefile.am): Augment lib_SOURCES.
15446
15447 2011-05-23  Bruno Haible  <bruno@clisp.org>
15448
15449         hash: Move AC_LIBOBJ invocations to module description.
15450         * m4/hash.m4: Remove file.
15451         * modules/hash (Files): Remove it.
15452         (configure.ac): Remove gl_HASH call.
15453         (Makefile.am): Augment lib_SOURCES.
15454
15455 2011-05-23  Bruno Haible  <bruno@clisp.org>
15456
15457         hard-locale: Move AC_LIBOBJ invocations to module description.
15458         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15459         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15460
15461 2011-05-23  Bruno Haible  <bruno@clisp.org>
15462
15463         getugroups: Move AC_LIBOBJ invocations to module description.
15464         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15465         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15466
15467 2011-05-23  Bruno Haible  <bruno@clisp.org>
15468
15469         gettime: Move AC_LIBOBJ invocations to module description.
15470         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15471         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15472
15473 2011-05-23  Bruno Haible  <bruno@clisp.org>
15474
15475         getndelim2: Move AC_LIBOBJ invocations to module description.
15476         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15477         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15478
15479 2011-05-23  Bruno Haible  <bruno@clisp.org>
15480
15481         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15482         * m4/gc-pbkdf2-sha1.m4: Remove file.
15483         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15484         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15485         (Makefile.am): Augment lib_SOURCES.
15486
15487 2011-05-23  Bruno Haible  <bruno@clisp.org>
15488
15489         fts: Move AC_LIBOBJ invocations to module description.
15490         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15491         * modules/fts (configure.ac): ... to here.
15492
15493 2011-05-23  Bruno Haible  <bruno@clisp.org>
15494
15495         file-type: Move AC_LIBOBJ invocations to module description.
15496         * m4/file-type.m4: Remove file.
15497         * modules/file-type (Files): Remove it.
15498         (configure.ac): Remove gl_FILE_TYPE call.
15499         (Makefile.am): Augment lib_SOURCES.
15500
15501 2011-05-23  Bruno Haible  <bruno@clisp.org>
15502
15503         filenamecat*: Respect rules for use of AC_LIBOBJ.
15504         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15505         Remove AC_LIBOBJ invocation.
15506         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15507         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15508
15509 2011-05-23  Bruno Haible  <bruno@clisp.org>
15510
15511         filemode: Move AC_LIBOBJ invocations to module description.
15512         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15513         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15514
15515 2011-05-23  Bruno Haible  <bruno@clisp.org>
15516
15517         openat-safer: Move AC_LIBOBJ invocations to module description.
15518         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15519         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15520
15521 2011-05-23  Bruno Haible  <bruno@clisp.org>
15522
15523         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15524         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15525         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15526
15527 2011-05-23  Bruno Haible  <bruno@clisp.org>
15528
15529         exclude: Move AC_LIBOBJ invocations to module description.
15530         * m4/exclude.m4: Remove file.
15531         * modules/exclude (Files): Remove it.
15532         (configure.ac): Remove gl_EXCLUDE call.
15533         (Makefile.am): Augment lib_SOURCES.
15534
15535 2011-05-23  Bruno Haible  <bruno@clisp.org>
15536
15537         dirname*: Respect rules for use of AC_LIBOBJ.
15538         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15539         invocations.
15540         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15541         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15542
15543 2011-05-23  Bruno Haible  <bruno@clisp.org>
15544
15545         dirent-safer: Move AC_LIBOBJ invocations to module description.
15546         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15547         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15548
15549 2011-05-23  Bruno Haible  <bruno@clisp.org>
15550
15551         crypto/des: Move AC_LIBOBJ invocations to module description.
15552         * m4/des.m4: Remove file.
15553         * modules/crypto/des (Files): Remove it.
15554         (configure.ac): Remove gl_DES call.
15555         (Makefile.am): Augment lib_SOURCES.
15556
15557 2011-05-23  Bruno Haible  <bruno@clisp.org>
15558
15559         cycle-check: Move AC_LIBOBJ invocations to module description.
15560         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15561         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15562
15563 2011-05-23  Bruno Haible  <bruno@clisp.org>
15564
15565         c-strtold: Move AC_LIBOBJ invocations to module description.
15566         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15567         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15568
15569 2011-05-23  Bruno Haible  <bruno@clisp.org>
15570
15571         c-strtod: Move AC_LIBOBJ invocations to module description.
15572         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15573         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15574
15575 2011-05-23  Bruno Haible  <bruno@clisp.org>
15576
15577         crc: Move AC_LIBOBJ invocations to module description.
15578         * m4/crc.m4: Remove file.
15579         * modules/crc (Files): Remove it.
15580         (configure.ac): Remove gl_CRC call.
15581         (Makefile.am): Augment lib_SOURCES.
15582
15583 2011-05-23  Bruno Haible  <bruno@clisp.org>
15584
15585         close-stream: Move AC_LIBOBJ invocations to module description.
15586         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15587         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15588
15589 2011-05-23  Bruno Haible  <bruno@clisp.org>
15590
15591         closeout: Move AC_LIBOBJ invocations to module description.
15592         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15593         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15594
15595 2011-05-23  Bruno Haible  <bruno@clisp.org>
15596
15597         closein: Move AC_LIBOBJ invocations to module description.
15598         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15599         * modules/closein (Makefile.am): Augment lib_SOURCES.
15600
15601 2011-05-23  Bruno Haible  <bruno@clisp.org>
15602
15603         cloexec: Move AC_LIBOBJ invocations to module description.
15604         * m4/cloexec.m4: Remove file.
15605         * modules/cloexec (Files): Remove it.
15606         (configure.ac): Remove gl_CLOEXEC call.
15607         (Makefile.am): Augment lib_SOURCES.
15608
15609 2011-05-23  Bruno Haible  <bruno@clisp.org>
15610
15611         check-version: Move AC_LIBOBJ invocations to module description.
15612         * m4/check-version.m4: Remove file.
15613         * modules/check-version (Files): Remove it.
15614         (configure.ac): Remove gl_CHECK_VERSION call.
15615         (Makefile.am): Augment lib_SOURCES.
15616
15617 2011-05-23  Bruno Haible  <bruno@clisp.org>
15618
15619         chdir-safer: Move AC_LIBOBJ invocations to module description.
15620         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15621         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15622
15623 2011-05-23  Bruno Haible  <bruno@clisp.org>
15624
15625         canonicalize: Move AC_LIBOBJ invocations to module description.
15626         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15627         AC_LIBOBJ invocation.
15628         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15629
15630 2011-05-23  Bruno Haible  <bruno@clisp.org>
15631
15632         canon-host: Move AC_LIBOBJ invocations to module description.
15633         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15634         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15635         instead of gl_CANON_HOST.
15636         (Makefile.am): Augment lib_SOURCES.
15637
15638 2011-05-23  Bruno Haible  <bruno@clisp.org>
15639
15640         backupfile: Move AC_LIBOBJ invocations to module description.
15641         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15642         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15643
15644 2011-05-23  Bruno Haible  <bruno@clisp.org>
15645
15646         argmatch: Move AC_LIBOBJ invocations to module description.
15647         * m4/argmatch.m4: Remove file.
15648         * modules/argmatch (Files): Remove it.
15649         (configure.ac): Remove gl_ARGMATCH call.
15650         (Makefile.am): Augment lib_SOURCES.
15651
15652 2011-05-23  Bruno Haible  <bruno@clisp.org>
15653
15654         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15655         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15656         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15657
15658 2011-05-23  Bruno Haible  <bruno@clisp.org>
15659
15660         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15661         * m4/arcfour.m4: Remove file.
15662         * modules/crypto/arcfour (Files): Remove it.
15663         (configure.ac): Remove gl_ARCFOUR call.
15664         (Makefile.am): Augment lib_SOURCES.
15665
15666 2011-05-22  Bruno Haible  <bruno@clisp.org>
15667
15668         write: Move AC_LIBOBJ invocations to module description.
15669         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15670         * modules/write (configure.ac): ... to here.
15671
15672 2011-05-22  Bruno Haible  <bruno@clisp.org>
15673
15674         wmemset: Move AC_LIBOBJ invocations to module description.
15675         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15676         here...
15677         * modules/wmemset (configure.ac): ... to here.
15678
15679 2011-05-22  Bruno Haible  <bruno@clisp.org>
15680
15681         wmemmove: Move AC_LIBOBJ invocations to module description.
15682         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15683         here...
15684         * modules/wmemmove (configure.ac): ... to here.
15685
15686 2011-05-22  Bruno Haible  <bruno@clisp.org>
15687
15688         wmemcpy: Move AC_LIBOBJ invocations to module description.
15689         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15690         here...
15691         * modules/wmemcpy (configure.ac): ... to here.
15692
15693 2011-05-22  Bruno Haible  <bruno@clisp.org>
15694
15695         wmemcmp: Move AC_LIBOBJ invocations to module description.
15696         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15697         here...
15698         * modules/wmemcmp (configure.ac): ... to here.
15699
15700 2011-05-22  Bruno Haible  <bruno@clisp.org>
15701
15702         wmemchr: Move AC_LIBOBJ invocations to module description.
15703         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15704         here...
15705         * modules/wmemchr (configure.ac): ... to here.
15706
15707 2011-05-22  Bruno Haible  <bruno@clisp.org>
15708
15709         wcswidth: Move AC_LIBOBJ invocations to module description.
15710         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15711         here...
15712         * modules/wcswidth (configure.ac): ... to here.
15713
15714 2011-05-22  Bruno Haible  <bruno@clisp.org>
15715
15716         wcwidth: Respect rules for use of AC_LIBOBJ.
15717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15718         invocation from here...
15719         * modules/wcwidth (configure.ac): ... to here.
15720         (Depends-on): Update conditions.
15721
15722 2011-05-22  Bruno Haible  <bruno@clisp.org>
15723
15724         wctype: Move AC_LIBOBJ invocations to module description.
15725         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15726         invocation from here...
15727         * modules/wctype (configure.ac): ... to here.
15728         (Depends-on): Update conditions.
15729
15730 2011-05-22  Bruno Haible  <bruno@clisp.org>
15731
15732         wctrans: Move AC_LIBOBJ invocations to module description.
15733         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15734         invocation from here...
15735         * modules/wctrans (configure.ac): ... to here.
15736
15737 2011-05-22  Bruno Haible  <bruno@clisp.org>
15738
15739         wctomb: Move AC_LIBOBJ invocations to module description.
15740         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15741         invocations from here...
15742         * modules/wctomb (configure.ac): ... to here.
15743
15744 2011-05-22  Bruno Haible  <bruno@clisp.org>
15745
15746         wctob: Move AC_LIBOBJ invocations to module description.
15747         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15748         gl_PREREQ_WCTOB invocations from here...
15749         * modules/wctob (configure.ac): ... to here.
15750         (Depends-on): Update conditions.
15751
15752 2011-05-22  Bruno Haible  <bruno@clisp.org>
15753
15754         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15755         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15756         here...
15757         * modules/wcsxfrm (configure.ac): ... to here.
15758
15759 2011-05-22  Bruno Haible  <bruno@clisp.org>
15760
15761         wcstok: Move AC_LIBOBJ invocations to module description.
15762         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15763         * modules/wcstok (configure.ac): ... to here.
15764
15765 2011-05-22  Bruno Haible  <bruno@clisp.org>
15766
15767         wcsstr: Move AC_LIBOBJ invocations to module description.
15768         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15769         * modules/wcsstr (configure.ac): ... to here.
15770
15771 2011-05-22  Bruno Haible  <bruno@clisp.org>
15772
15773         wcsspn: Move AC_LIBOBJ invocations to module description.
15774         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15775         * modules/wcsspn (configure.ac): ... to here.
15776
15777 2011-05-22  Bruno Haible  <bruno@clisp.org>
15778
15779         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15780         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15781         gl_PREREQ_WCSRTOMBS invocations from here...
15782         * modules/wcsrtombs (configure.ac): ... to here.
15783
15784 2011-05-22  Bruno Haible  <bruno@clisp.org>
15785
15786         wcsrchr: Move AC_LIBOBJ invocations to module description.
15787         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15788         here...
15789         * modules/wcsrchr (configure.ac): ... to here.
15790
15791 2011-05-22  Bruno Haible  <bruno@clisp.org>
15792
15793         wcspbrk: Move AC_LIBOBJ invocations to module description.
15794         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15795         here...
15796         * modules/wcspbrk (configure.ac): ... to here.
15797
15798 2011-05-22  Bruno Haible  <bruno@clisp.org>
15799
15800         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15801         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15802         gl_PREREQ_WCSNRTOMBS invocations from here...
15803         * modules/wcsnrtombs (configure.ac): ... to here.
15804
15805 2011-05-22  Bruno Haible  <bruno@clisp.org>
15806
15807         wcsnlen: Move AC_LIBOBJ invocations to module description.
15808         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15809         here...
15810         * modules/wcsnlen (configure.ac): ... to here.
15811
15812 2011-05-22  Bruno Haible  <bruno@clisp.org>
15813
15814         wcsncpy: Move AC_LIBOBJ invocations to module description.
15815         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15816         here...
15817         * modules/wcsncpy (configure.ac): ... to here.
15818
15819 2011-05-22  Bruno Haible  <bruno@clisp.org>
15820
15821         wcsncmp: Move AC_LIBOBJ invocations to module description.
15822         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15823         here...
15824         * modules/wcsncmp (configure.ac): ... to here.
15825
15826 2011-05-22  Bruno Haible  <bruno@clisp.org>
15827
15828         wcsncat: Move AC_LIBOBJ invocations to module description.
15829         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15830         here...
15831         * modules/wcsncat (configure.ac): ... to here.
15832
15833 2011-05-22  Bruno Haible  <bruno@clisp.org>
15834
15835         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
15836         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
15837         from here...
15838         * modules/wcsncasecmp (configure.ac): ... to here.
15839
15840 2011-05-22  Bruno Haible  <bruno@clisp.org>
15841
15842         wcslen: Move AC_LIBOBJ invocations to module description.
15843         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
15844         * modules/wcslen (configure.ac): ... to here.
15845
15846 2011-05-22  Bruno Haible  <bruno@clisp.org>
15847
15848         wcsdup: Move AC_LIBOBJ invocations to module description.
15849         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
15850         * modules/wcsdup (configure.ac): ... to here.
15851
15852 2011-05-22  Bruno Haible  <bruno@clisp.org>
15853
15854         wcscspn: Move AC_LIBOBJ invocations to module description.
15855         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
15856         here...
15857         * modules/wcscspn (configure.ac): ... to here.
15858
15859 2011-05-22  Bruno Haible  <bruno@clisp.org>
15860
15861         wcscpy: Move AC_LIBOBJ invocations to module description.
15862         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
15863         * modules/wcscpy (configure.ac): ... to here.
15864
15865 2011-05-22  Bruno Haible  <bruno@clisp.org>
15866
15867         wcscoll: Move AC_LIBOBJ invocations to module description.
15868         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
15869         here...
15870         * modules/wcscoll (configure.ac): ... to here.
15871
15872 2011-05-22  Bruno Haible  <bruno@clisp.org>
15873
15874         wcscmp: Move AC_LIBOBJ invocations to module description.
15875         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
15876         * modules/wcscmp (configure.ac): ... to here.
15877
15878 2011-05-22  Bruno Haible  <bruno@clisp.org>
15879
15880         wcschr: Move AC_LIBOBJ invocations to module description.
15881         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
15882         * modules/wcschr (configure.ac): ... to here.
15883
15884 2011-05-22  Bruno Haible  <bruno@clisp.org>
15885
15886         wcscat: Move AC_LIBOBJ invocations to module description.
15887         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
15888         * modules/wcscat (configure.ac): ... to here.
15889
15890 2011-05-22  Bruno Haible  <bruno@clisp.org>
15891
15892         wcscasecmp: Move AC_LIBOBJ invocations to module description.
15893         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
15894         here...
15895         * modules/wcscasecmp (configure.ac): ... to here.
15896
15897 2011-05-22  Bruno Haible  <bruno@clisp.org>
15898
15899         wcrtomb: Move AC_LIBOBJ invocations to module description.
15900         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
15901         invocations from here...
15902         * modules/wcrtomb (configure.ac): ... to here.
15903
15904 2011-05-22  Bruno Haible  <bruno@clisp.org>
15905
15906         wcpncpy: Move AC_LIBOBJ invocations to module description.
15907         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
15908         here...
15909         * modules/wcpncpy (configure.ac): ... to here.
15910
15911 2011-05-22  Bruno Haible  <bruno@clisp.org>
15912
15913         wcpcpy: Move AC_LIBOBJ invocations to module description.
15914         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
15915         * modules/wcpcpy (configure.ac): ... to here.
15916
15917 2011-05-22  Bruno Haible  <bruno@clisp.org>
15918
15919         waitpid: Move AC_LIBOBJ invocations to module description.
15920         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
15921         invocation from here...
15922         * modules/waitpid (configure.ac): ... to here.
15923
15924 2011-05-22  Bruno Haible  <bruno@clisp.org>
15925
15926         utimensat: Move AC_LIBOBJ invocations to module description.
15927         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
15928         here...
15929         * modules/utimensat (configure.ac): ... to here.
15930
15931 2011-05-22  Bruno Haible  <bruno@clisp.org>
15932
15933         usleep: Move AC_LIBOBJ invocations to module description.
15934         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
15935         here...
15936         * modules/usleep (configure.ac): ... to here.
15937
15938 2011-05-22  Bruno Haible  <bruno@clisp.org>
15939
15940         unlockpt: Move AC_LIBOBJ invocations to module description.
15941         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
15942         gl_PREREQ_UNLOCKPT invocations from here...
15943         * modules/unlockpt (configure.ac): ... to here.
15944
15945 2011-05-22  Bruno Haible  <bruno@clisp.org>
15946
15947         unlink: Respect rules for use of AC_LIBOBJ.
15948         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
15949         * modules/unlink (configure.ac): ... to here.
15950
15951 2011-05-22  Bruno Haible  <bruno@clisp.org>
15952
15953         uname: Move AC_LIBOBJ invocations to module description.
15954         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
15955         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
15956         here...
15957         * modules/uname (configure.ac): ... to here.
15958
15959 2011-05-22  Bruno Haible  <bruno@clisp.org>
15960
15961         ttyname_r: Move AC_LIBOBJ invocations to module description.
15962         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
15963         gl_PREREQ_TTYNAME_R invocations from here...
15964         * modules/ttyname_r (configure.ac): ... to here.
15965
15966 2011-05-22  Bruno Haible  <bruno@clisp.org>
15967
15968         tsearch: Move AC_LIBOBJ invocations to module description.
15969         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
15970         invocations from here...
15971         * modules/tsearch (configure.ac): ... to here.
15972
15973 2011-05-22  Bruno Haible  <bruno@clisp.org>
15974
15975         towctrans: Move AC_LIBOBJ invocations to module description.
15976         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15977         AC_LIBOBJ invocation from here...
15978         * modules/towctrans (configure.ac): ... to here.
15979
15980 2011-05-22  Bruno Haible  <bruno@clisp.org>
15981
15982         tmpfile: Move AC_LIBOBJ invocations to module description.
15983         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15984         invocations from here...
15985         * modules/tmpfile (configure.ac): ... to here.
15986
15987 2011-05-22  Bruno Haible  <bruno@clisp.org>
15988
15989         times: Move AC_LIBOBJ invocations to module description.
15990         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15991         * modules/times (configure.ac): ... to here.
15992
15993 2011-05-22  Bruno Haible  <bruno@clisp.org>
15994
15995         time_r: Move AC_LIBOBJ invocations to module description.
15996         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15997         invocations from here...
15998         * modules/time_r (configure.ac): ... to here.
15999
16000 2011-05-22  Bruno Haible  <bruno@clisp.org>
16001
16002         timegm: Move AC_LIBOBJ invocations to module description.
16003         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16004         invocations from here...
16005         * modules/timegm (configure.ac): ... to here.
16006
16007 2011-05-22  Bruno Haible  <bruno@clisp.org>
16008
16009         tcgetsid: Move AC_LIBOBJ invocations to module description.
16010         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16011         and gl_PREREQ_TCGETSID invocations from here...
16012         * modules/tcgetsid (configure.ac): ... to here.
16013         (Depends-on): Update conditions.
16014
16015 2011-05-22  Bruno Haible  <bruno@clisp.org>
16016
16017         symlinkat: Move AC_LIBOBJ invocations to module description.
16018         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16019         here...
16020         * modules/symlinkat (configure.ac): ... to here.
16021
16022 2011-05-22  Bruno Haible  <bruno@clisp.org>
16023
16024         symlink: Move AC_LIBOBJ invocations to module description.
16025         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16026         here...
16027         * modules/symlink (configure.ac): ... to here.
16028
16029 2011-05-22  Bruno Haible  <bruno@clisp.org>
16030
16031         strverscmp: Move AC_LIBOBJ invocations to module description.
16032         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16034         from here...
16035         * modules/strverscmp (configure.ac): ... to here.
16036
16037 2011-05-22  Bruno Haible  <bruno@clisp.org>
16038
16039         strtok_r: Move AC_LIBOBJ invocations to module description.
16040         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16041         and gl_PREREQ_STRTOK_R invocations from here...
16042         * modules/strtok_r (configure.ac): ... to here.
16043         (Depends-on): Update conditions.
16044
16045 2011-05-22  Bruno Haible  <bruno@clisp.org>
16046
16047         strtoumax: Move AC_LIBOBJ invocations to module description.
16048         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16049         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16050         from here...
16051         * modules/strtoumax (configure.ac): ... to here.
16052
16053 2011-05-22  Bruno Haible  <bruno@clisp.org>
16054
16055         strtoimax: Move AC_LIBOBJ invocations to module description.
16056         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16057         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16058         from here...
16059         * modules/strtoimax (configure.ac): ... to here.
16060
16061 2011-05-22  Bruno Haible  <bruno@clisp.org>
16062
16063         strtoull: Move AC_LIBOBJ invocations to module description.
16064         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16065         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16066         from here...
16067         * modules/strtoull (configure.ac): ... to here.
16068
16069 2011-05-22  Bruno Haible  <bruno@clisp.org>
16070
16071         strtoll: Move AC_LIBOBJ invocations to module description.
16072         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16073         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16074         here...
16075         * modules/strtoll (configure.ac): ... to here.
16076
16077 2011-05-22  Bruno Haible  <bruno@clisp.org>
16078
16079         strtoul: Move AC_LIBOBJ invocations to module description.
16080         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16081         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16082         * modules/strtoul (configure.ac): ... to here.
16083
16084 2011-05-22  Bruno Haible  <bruno@clisp.org>
16085
16086         strtol: Move AC_LIBOBJ invocations to module description.
16087         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16088         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16089         * modules/strtol (configure.ac): ... to here.
16090
16091 2011-05-22  Bruno Haible  <bruno@clisp.org>
16092
16093         strtod: Move AC_LIBOBJ invocations to module description.
16094         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16095         invocations from here...
16096         * modules/strtod (configure.ac): ... to here.
16097
16098 2011-05-22  Bruno Haible  <bruno@clisp.org>
16099
16100         strstr*: Move AC_LIBOBJ invocations to module description.
16101         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16102         invocations from here...
16103         * modules/strstr-simple (configure.ac): ... to here.
16104         * modules/strstr (configure.ac): ... and here.
16105
16106 2011-05-22  Bruno Haible  <bruno@clisp.org>
16107
16108         strsignal: Move AC_LIBOBJ invocations to module description.
16109         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16110         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16111         * modules/strsignal (configure.ac): ... to here.
16112         (Depends-on): Update conditions.
16113
16114 2011-05-22  Bruno Haible  <bruno@clisp.org>
16115
16116         strsep: Move AC_LIBOBJ invocations to module description.
16117         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16118         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16119         here...
16120         * modules/strsep (configure.ac): ... to here.
16121
16122 2011-05-22  Bruno Haible  <bruno@clisp.org>
16123
16124         strptime: Move AC_LIBOBJ invocations to module description.
16125         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16126         gl_PREREQ_STRPTIME invocations from here...
16127         * modules/strptime (configure.ac): ... to here.
16128
16129 2011-05-22  Bruno Haible  <bruno@clisp.org>
16130
16131         strpbrk: Move AC_LIBOBJ invocations to module description.
16132         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16134         here...
16135         * modules/strpbrk (configure.ac): ... to here.
16136
16137 2011-05-22  Bruno Haible  <bruno@clisp.org>
16138
16139         strnlen: Move AC_LIBOBJ invocations to module description.
16140         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16141         invocations from here...
16142         * modules/strnlen (configure.ac): ... to here.
16143
16144 2011-05-22  Bruno Haible  <bruno@clisp.org>
16145
16146         strndup: Move AC_LIBOBJ invocations to module description.
16147         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16148         invocations from here...
16149         * modules/strndup (configure.ac): ... to here.
16150         (Depends-on): Update conditions.
16151
16152 2011-05-22  Bruno Haible  <bruno@clisp.org>
16153
16154         strncat: Move AC_LIBOBJ invocations to module description.
16155         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16156         invocations from here...
16157         * modules/strncat (configure.ac): ... to here.
16158
16159 2011-05-22  Bruno Haible  <bruno@clisp.org>
16160
16161         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16162         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16163         invocations from here...
16164         * modules/strdup (configure.ac): ... to here.
16165         * modules/strdup-posix (configure.ac): ... and here.
16166
16167 2011-05-22  Bruno Haible  <bruno@clisp.org>
16168
16169         strcspn: Move AC_LIBOBJ invocations to module description.
16170         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16171         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16172         here...
16173         * modules/strcspn (configure.ac): ... to here.
16174
16175 2011-05-22  Bruno Haible  <bruno@clisp.org>
16176
16177         strchrnul: Move AC_LIBOBJ invocations to module description.
16178         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16179         gl_PREREQ_STRCHRNUL invocations from here...
16180         * modules/strchrnul (configure.ac): ... to here.
16181
16182 2011-05-22  Bruno Haible  <bruno@clisp.org>
16183
16184         strcasestr*: Move AC_LIBOBJ invocations to module description.
16185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16186         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16187         * modules/strcasestr-simple (configure.ac): ... to here.
16188         * modules/strcasestr (configure.ac): ... and here.
16189
16190 2011-05-22  Bruno Haible  <bruno@clisp.org>
16191
16192         strcase: Move AC_LIBOBJ invocations to module description.
16193         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16194         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16195         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16196         gl_PREREQ_STRNCASECMP invocations from here...
16197         * modules/strcase (configure.ac): ... to here.
16198
16199 2011-05-22  Bruno Haible  <bruno@clisp.org>
16200
16201         stpncpy: Move AC_LIBOBJ invocations to module description.
16202         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16203         here...
16204         * modules/stpncpy (configure.ac): ... to here.
16205
16206 2011-05-22  Bruno Haible  <bruno@clisp.org>
16207
16208         stpcpy: Move AC_LIBOBJ invocations to module description.
16209         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16211         here...
16212         * modules/stpcpy (configure.ac): ... to here.
16213
16214 2011-05-21  Bruno Haible  <bruno@clisp.org>
16215
16216         stat: Move AC_LIBOBJ invocations to module description.
16217         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16218         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16219         here...
16220         * modules/stat (configure.ac): ... to here.
16221
16222 2011-05-21  Bruno Haible  <bruno@clisp.org>
16223
16224         sleep: Move AC_LIBOBJ invocations to module description.
16225         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16226         * modules/sleep (configure.ac): ... to here.
16227
16228 2011-05-21  Bruno Haible  <bruno@clisp.org>
16229
16230         signbit: Move AC_LIBOBJ invocations to module description.
16231         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16232         * modules/signbit (configure.ac): ... to here.
16233
16234 2011-05-21  Bruno Haible  <bruno@clisp.org>
16235
16236         sigprocmask: Move AC_LIBOBJ invocations to module description.
16237         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16238         gl_PREREQ_SIGPROMASK invocations from here...
16239         * modules/sigprocmask (configure.ac): ... to here.
16240
16241 2011-05-21  Bruno Haible  <bruno@clisp.org>
16242
16243         sigaction: Move AC_LIBOBJ invocations to module description.
16244         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16245         gl_PREREQ_SIGACTION invocations from here...
16246         * modules/sigaction (configure.ac): ... to here.
16247
16248 2011-05-21  Bruno Haible  <bruno@clisp.org>
16249
16250         sig2str: Move AC_LIBOBJ invocations to module description.
16251         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16253         here...
16254         * modules/sig2str (configure.ac): ... to here.
16255
16256 2011-05-21  Bruno Haible  <bruno@clisp.org>
16257
16258         setlocale: Move AC_LIBOBJ invocations to module description.
16259         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16260         gl_PREREQ_SETLOCALE invocations from here...
16261         * modules/setlocale (configure.ac): ... to here.
16262
16263 2011-05-21  Bruno Haible  <bruno@clisp.org>
16264
16265         unsetenv: Move AC_LIBOBJ invocations to module description.
16266         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16267         and gl_PREREQ_UNSETENV invocations from here...
16268         * modules/unsetenv (configure.ac): ... to here.
16269         (Depends-on): Update.
16270
16271 2011-05-21  Bruno Haible  <bruno@clisp.org>
16272
16273         setenv: Move AC_LIBOBJ invocations to module description.
16274         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16275         here...
16276         * modules/setenv (configure.ac): ... to here.
16277
16278 2011-05-21  Bruno Haible  <bruno@clisp.org>
16279
16280         selinux-h: Move AC_LIBOBJ invocations to module description.
16281         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16282         AC_LIBOBJ invocation from here...
16283         * modules/selinux-h (configure.ac): ... to here.
16284
16285 2011-05-21  Bruno Haible  <bruno@clisp.org>
16286
16287         select: Respect rules for use of AC_LIBOBJ.
16288         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16289         here...
16290         * modules/select (configure.ac): ... to here.
16291
16292 2011-05-21  Bruno Haible  <bruno@clisp.org>
16293
16294         scandir: Move AC_LIBOBJ invocations to module description.
16295         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16296         invocations from here...
16297         * modules/scandir (configure.ac): ... to here.
16298
16299 2011-05-21  Bruno Haible  <bruno@clisp.org>
16300
16301         rpmatch: Move AC_LIBOBJ invocations to module description.
16302         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16304         here...
16305         * modules/rpmatch (configure.ac): ... to here.
16306
16307 2011-05-21  Bruno Haible  <bruno@clisp.org>
16308
16309         rmdir: Respect rules for use of AC_LIBOBJ.
16310         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16311         * modules/rmdir (configure.ac): ... to here.
16312
16313 2011-05-21  Bruno Haible  <bruno@clisp.org>
16314
16315         renameat: Move AC_LIBOBJ invocations to module description.
16316         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16317         here...
16318         * modules/renameat (configure.ac): ... to here.
16319
16320 2011-05-21  Bruno Haible  <bruno@clisp.org>
16321
16322         rename: Respect rules for use of AC_LIBOBJ.
16323         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16324         here...
16325         * modules/rename (configure.ac): ... to here.
16326
16327 2011-05-21  Bruno Haible  <bruno@clisp.org>
16328
16329         remove: Move AC_LIBOBJ invocations to module description.
16330         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16331         here...
16332         * modules/remove (configure.ac): ... to here.
16333
16334 2011-05-21  Bruno Haible  <bruno@clisp.org>
16335
16336         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16337         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16338         macro.
16339         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16340         * modules/relocatable-lib (configure.ac): ... to here.
16341         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16342         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16343
16344 2011-05-21  Bruno Haible  <bruno@clisp.org>
16345
16346         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16347         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16348         here...
16349         * modules/relocatable-prog (configure.ac): ... to here.
16350
16351 2011-05-21  Bruno Haible  <bruno@clisp.org>
16352
16353         regex: Move AC_LIBOBJ invocations to module description.
16354         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16355         invocations from here...
16356         * modules/regex (configure.ac): ... to here.
16357
16358 2011-05-21  Bruno Haible  <bruno@clisp.org>
16359
16360         realloc-*: Move AC_LIBOBJ invocations to module description.
16361         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16362         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16363         AC_LIBOBJ invocations from here...
16364         * modules/realloc-gnu (configure.ac): ... to here.
16365         * modules/realloc-posix (configure.ac): ... and here.
16366
16367 2011-05-21  Bruno Haible  <bruno@clisp.org>
16368
16369         readutmp: Move AC_LIBOBJ invocations to module description.
16370         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16371         * modules/readutmp (configure.ac): ... to here.
16372
16373 2011-05-21  Bruno Haible  <bruno@clisp.org>
16374
16375         readlinkat: Move AC_LIBOBJ invocations to module description.
16376         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16377         here...
16378         * modules/readlinkat (configure.ac): ... to here.
16379
16380 2011-05-21  Bruno Haible  <bruno@clisp.org>
16381
16382         readlink: Move AC_LIBOBJ invocations to module description.
16383         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16384         gl_PREREQ_READLINK invocations from here...
16385         * modules/readlink (configure.ac): ... to here.
16386
16387 2011-05-21  Bruno Haible  <bruno@clisp.org>
16388
16389         readline: Move AC_LIBOBJ invocations to module description.
16390         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16391         gl_PREREQ_READLINE invocations from here...
16392         * modules/readline (configure.ac): ... to here.
16393
16394 2011-05-21  Bruno Haible  <bruno@clisp.org>
16395
16396         read: Move AC_LIBOBJ invocations to module description.
16397         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16398         * modules/read (configure.ac): ... to here.
16399
16400 2011-05-21  Bruno Haible  <bruno@clisp.org>
16401
16402         rawmemchr: Move AC_LIBOBJ invocations to module description.
16403         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16404         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16405         from here...
16406         * modules/rawmemchr (configure.ac): ... to here.
16407
16408 2011-05-21  Bruno Haible  <bruno@clisp.org>
16409
16410         random_r: Move AC_LIBOBJ invocations to module description.
16411         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16412         gl_PREREQ_RANDOM_R invocations from here...
16413         * modules/random_r (configure.ac): ... to here.
16414
16415 2011-05-21  Bruno Haible  <bruno@clisp.org>
16416
16417         pwrite: Move AC_LIBOBJ invocations to module description.
16418         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16419         * modules/pwrite (configure.ac): ... to here.
16420
16421 2011-05-21  Bruno Haible  <bruno@clisp.org>
16422
16423         putenv: Move AC_LIBOBJ invocations to module description.
16424         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16425         * modules/putenv (configure.ac): ... to here.
16426
16427 2011-05-21  Bruno Haible  <bruno@clisp.org>
16428
16429         login_tty: Move AC_LIBOBJ invocations to module description.
16430         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16431         * modules/login_tty (configure.ac): ... to here.
16432
16433 2011-05-21  Bruno Haible  <bruno@clisp.org>
16434
16435         openpty: Move AC_LIBOBJ invocations to module description.
16436         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16437         * modules/openpty (configure.ac): ... to here.
16438
16439 2011-05-21  Bruno Haible  <bruno@clisp.org>
16440
16441         forkpty: Move AC_LIBOBJ invocations to module description.
16442         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16443         * modules/forkpty (configure.ac): ... to here.
16444
16445 2011-05-21  Bruno Haible  <bruno@clisp.org>
16446
16447         ptsname: Move AC_LIBOBJ invocations to module description.
16448         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16449         invocations from here...
16450         * modules/ptsname (configure.ac): ... to here.
16451
16452 2011-05-21  Bruno Haible  <bruno@clisp.org>
16453
16454         pread: Move AC_LIBOBJ invocations to module description.
16455         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16456         * modules/pread (configure.ac): ... to here.
16457
16458 2011-05-21  Bruno Haible  <bruno@clisp.org>
16459
16460         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16461         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16462         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16463         * modules/posix_spawn (configure.ac): ... to here.
16464         * modules/posix_spawnp (configure.ac): ... and here.
16465
16466 2011-05-21  Bruno Haible  <bruno@clisp.org>
16467
16468         popen: Move AC_LIBOBJ invocations to module description.
16469         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16470         invocations from here...
16471         * modules/popen (configure.ac): ... to here.
16472
16473 2011-05-21  Bruno Haible  <bruno@clisp.org>
16474
16475         poll: Move AC_LIBOBJ invocations to module description.
16476         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16477         invocations from here...
16478         * modules/poll (configure.ac): ... to here.
16479
16480 2011-05-21  Bruno Haible  <bruno@clisp.org>
16481
16482         pipe-posix: Move AC_LIBOBJ invocations to module description.
16483         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16484         * modules/pipe-posix (configure.ac): ... to here.
16485
16486 2011-05-21  Bruno Haible  <bruno@clisp.org>
16487
16488         openat: Respect rules for use of AC_LIBOBJ.
16489         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16490         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16491         * modules/openat (configure.ac): ... to here.
16492
16493 2011-05-21  Bruno Haible  <bruno@clisp.org>
16494
16495         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16496         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16497         invocation from here...
16498         * modules/obstack-printf (configure.ac): ... to here.
16499         * modules/obstack-printf-posix (configure.ac): ... and here.
16500
16501 2011-05-21  Bruno Haible  <bruno@clisp.org>
16502
16503         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16504         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16505         from here...
16506         * modules/nl_langinfo (configure.ac): ... to here.
16507
16508 2011-05-21  Bruno Haible  <bruno@clisp.org>
16509
16510         nanosleep: Move AC_LIBOBJ invocations to module description.
16511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16512         gl_PREREQ_NANOSLEEP invocations from here...
16513         * modules/nanosleep (configure.ac): ... to here.
16514
16515 2011-05-21  Bruno Haible  <bruno@clisp.org>
16516
16517         mountlist: Move AC_LIBOBJ invocations to module description.
16518         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16519         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16520         * modules/mountlist (configure.ac): ... to here.
16521
16522 2011-05-21  Bruno Haible  <bruno@clisp.org>
16523
16524         mktime: Respect rules for use of AC_LIBOBJ.
16525         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16526         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16527         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16528         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16529         * modules/mktime (configure.ac): ... to here.
16530         * modules/mktime-internal (configure.ac): ... and here.
16531         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16532
16533 2011-05-21  Bruno Haible  <bruno@clisp.org>
16534
16535         mkstemps: Move AC_LIBOBJ invocations to module description.
16536         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16537         here...
16538         * modules/mkstemps (configure.ac): ... to here.
16539
16540 2011-05-21  Bruno Haible  <bruno@clisp.org>
16541
16542         mkstemp: Move AC_LIBOBJ invocations to module description.
16543         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16544         gl_PREREQ_MKSTEMP invocations from here...
16545         * modules/mkstemp (configure.ac): ... to here.
16546
16547 2011-05-21  Bruno Haible  <bruno@clisp.org>
16548
16549         mkostemps: Move AC_LIBOBJ invocations to module description.
16550         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16551         here...
16552         * modules/mkostemps (configure.ac): ... to here.
16553
16554 2011-05-21  Bruno Haible  <bruno@clisp.org>
16555
16556         mkostemp: Move AC_LIBOBJ invocations to module description.
16557         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16558         gl_PREREQ_MKOSTEMP invocations from here...
16559         * modules/mkostemp (configure.ac): ... to here.
16560
16561 2011-05-21  Bruno Haible  <bruno@clisp.org>
16562
16563         mknod: Move AC_LIBOBJ invocations to module description.
16564         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16565         * modules/mknod (configure.ac): ... to here.
16566
16567 2011-05-21  Bruno Haible  <bruno@clisp.org>
16568
16569         mkfifoat: Move AC_LIBOBJ invocations to module description.
16570         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16571         here...
16572         * modules/mkfifoat (configure.ac): ... to here.
16573
16574 2011-05-21  Bruno Haible  <bruno@clisp.org>
16575
16576         mkfifo: Respect rules for use of AC_LIBOBJ.
16577         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16578         here...
16579         * modules/mkfifo (configure.ac): ... to here.
16580
16581 2011-05-21  Bruno Haible  <bruno@clisp.org>
16582
16583         mkdtemp: Move AC_LIBOBJ invocations to module description.
16584         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16585         invocations from here...
16586         * modules/mkdtemp (configure.ac): ... to here.
16587
16588 2011-05-21  Bruno Haible  <bruno@clisp.org>
16589
16590         mkdir: Move AC_LIBOBJ invocations to module description.
16591         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16592         * modules/mkdir (configure.ac): ... to here.
16593
16594 2011-05-21  Bruno Haible  <bruno@clisp.org>
16595
16596         memset: Move AC_LIBOBJ invocations to module description.
16597         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16598         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16599         here...
16600         * modules/memset (configure.ac): ... to here.
16601
16602 2011-05-21  Bruno Haible  <bruno@clisp.org>
16603
16604         memrchr: Move AC_LIBOBJ invocations to module description.
16605         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16606         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16607         here...
16608         * modules/memrchr (configure.ac): ... to here.
16609
16610 2011-05-21  Bruno Haible  <bruno@clisp.org>
16611
16612         mempcpy: Move AC_LIBOBJ invocations to module description.
16613         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16614         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16615         here...
16616         * modules/mempcpy (configure.ac): ... to here.
16617
16618 2011-05-21  Bruno Haible  <bruno@clisp.org>
16619
16620         memmove: Move AC_LIBOBJ invocations to module description.
16621         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16622         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16623         here...
16624         * modules/memmove (configure.ac): ... to here.
16625
16626 2011-05-21  Bruno Haible  <bruno@clisp.org>
16627
16628         memmem*: Move AC_LIBOBJ invocations to module description.
16629         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16630         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16631         here...
16632         (gl_FUNC_MEMMEM): ... and here...
16633         * modules/memmem-simple (configure.ac): ... to here.
16634         * modules/memmem (configure.ac): ... and here.
16635
16636 2011-05-21  Bruno Haible  <bruno@clisp.org>
16637
16638         memcpy: Move AC_LIBOBJ invocations to module description.
16639         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16640         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16641         here...
16642         * modules/memcpy (configure.ac): ... to here.
16643
16644 2011-05-21  Bruno Haible  <bruno@clisp.org>
16645
16646         memcmp: Simplify autoconf macro.
16647         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16648         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16649         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16650
16651 2011-05-21  Bruno Haible  <bruno@clisp.org>
16652
16653         memcmp: Move AC_LIBOBJ invocations to module description.
16654         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16655         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16656         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16657         * modules/memcmp (configure.ac): ... to here.
16658         (Depends-on): Update conditions.
16659
16660 2011-05-21  Bruno Haible  <bruno@clisp.org>
16661
16662         memchr: Respect rules for use of AC_LIBOBJ.
16663         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16664         invocations from here...
16665         * modules/memchr (configure.ac): ... to here.
16666
16667 2011-05-21  Bruno Haible  <bruno@clisp.org>
16668
16669         mbtowc: Move AC_LIBOBJ invocations to module description.
16670         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16671         invocations from here...
16672         * modules/mbtowc (configure.ac): ... to here.
16673
16674 2011-05-21  Bruno Haible  <bruno@clisp.org>
16675
16676         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16677         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16678         gl_PREREQ_MBSRTOWCS invocations from here...
16679         * modules/mbsrtowcs (configure.ac): ... to here.
16680
16681 2011-05-21  Bruno Haible  <bruno@clisp.org>
16682
16683         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16684         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16685         gl_PREREQ_MBSNRTOWCS invocations from here...
16686         * modules/mbsnrtowcs (configure.ac): ... to here.
16687
16688 2011-05-21  Bruno Haible  <bruno@clisp.org>
16689
16690         mbsinit: Move AC_LIBOBJ invocations to module description.
16691         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16692         invocations from here...
16693         * modules/mbsinit (configure.ac): ... to here.
16694
16695 2011-05-21  Bruno Haible  <bruno@clisp.org>
16696
16697         mbrlen: Move AC_LIBOBJ invocations to module description.
16698         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16699         invocations from here...
16700         * modules/mbrlen (configure.ac): ... to here.
16701
16702 2011-05-21  Bruno Haible  <bruno@clisp.org>
16703
16704         mbrtowc: Respect rules for use of AC_LIBOBJ.
16705         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16706         invocations from here...
16707         * modules/mbrtowc (configure.ac): ... to here.
16708
16709 2011-05-21  Bruno Haible  <bruno@clisp.org>
16710
16711         malloc-*: Move AC_LIBOBJ invocations to module description.
16712         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16713         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16714         AC_LIBOBJ invocations from here...
16715         * modules/malloc-gnu (configure.ac): ... to here.
16716         * modules/malloc-posix (configure.ac): ... and here.
16717
16718 2011-05-21  Bruno Haible  <bruno@clisp.org>
16719
16720         lstat, openat: Respect rules for use of AC_LIBOBJ.
16721         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16722         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16723         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16724         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16725         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16726         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16727         here.
16728         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16729
16730 2011-05-21  Bruno Haible  <bruno@clisp.org>
16731
16732         lseek: Move AC_LIBOBJ invocations to module description.
16733         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16734         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16735         * modules/lseek (configure.ac): ... to here.
16736
16737 2011-05-21  Bruno Haible  <bruno@clisp.org>
16738
16739         linkat: Move AC_LIBOBJ invocations to module description.
16740         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16741         here...
16742         * modules/linkat (configure.ac): ... to here.
16743
16744 2011-05-21  Bruno Haible  <bruno@clisp.org>
16745
16746         link: Respect rules for use of AC_LIBOBJ.
16747         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16748         * modules/link (configure.ac): ... to here.
16749
16750 2011-05-21  Bruno Haible  <bruno@clisp.org>
16751
16752         lchown: Move AC_LIBOBJ invocations to module description.
16753         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16754         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16755         * modules/lchown (configure.ac): ... to here.
16756
16757 2011-05-21  Bruno Haible  <bruno@clisp.org>
16758
16759         iswctype: Move AC_LIBOBJ invocations to module description.
16760         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16761         here...
16762         * modules/iswctype (configure.ac): ... to here.
16763
16764 2011-05-21  Bruno Haible  <bruno@clisp.org>
16765
16766         iswblank: Move AC_LIBOBJ invocations to module description.
16767         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16768         here...
16769         * modules/iswblank (configure.ac): ... to here.
16770
16771 2011-05-21  Bruno Haible  <bruno@clisp.org>
16772
16773         atanl: Move AC_LIBOBJ invocations to module description.
16774         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16775         * modules/atanl (configure.ac): ... to here.
16776
16777 2011-05-21  Bruno Haible  <bruno@clisp.org>
16778
16779         acosl: Move AC_LIBOBJ invocations to module description.
16780         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16781         * modules/acosl (configure.ac): ... to here.
16782
16783 2011-05-21  Bruno Haible  <bruno@clisp.org>
16784
16785         asinl: Respect rules for use of AC_LIBOBJ.
16786         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16787         * modules/asinl (configure.ac): ... to here.
16788
16789 2011-05-21  Bruno Haible  <bruno@clisp.org>
16790
16791         tanl: Move AC_LIBOBJ invocations to module description.
16792         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16793         * modules/tanl (configure.ac): ... to here.
16794
16795 2011-05-21  Bruno Haible  <bruno@clisp.org>
16796
16797         cosl: Move AC_LIBOBJ invocations to module description.
16798         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16799         * modules/cosl (configure.ac): ... to here.
16800
16801 2011-05-21  Bruno Haible  <bruno@clisp.org>
16802
16803         sinl: Move AC_LIBOBJ invocations to module description.
16804         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16805         * modules/sinl (configure.ac): ... to here.
16806
16807 2011-05-21  Bruno Haible  <bruno@clisp.org>
16808
16809         logl: Move AC_LIBOBJ invocations to module description.
16810         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16811         * modules/logl (configure.ac): ... to here.
16812
16813 2011-05-21  Bruno Haible  <bruno@clisp.org>
16814
16815         expl: Move AC_LIBOBJ invocations to module description.
16816         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16817         * modules/expl (configure.ac): ... to here.
16818
16819 2011-05-21  Bruno Haible  <bruno@clisp.org>
16820
16821         roundl: Move AC_LIBOBJ invocations to module description.
16822         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16823         * modules/roundl (configure.ac): ... to here.
16824
16825 2011-05-21  Bruno Haible  <bruno@clisp.org>
16826
16827         round: Move AC_LIBOBJ invocations to module description.
16828         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16829         * modules/round (configure.ac): ... to here.
16830
16831 2011-05-21  Bruno Haible  <bruno@clisp.org>
16832
16833         roundf: Move AC_LIBOBJ invocations to module description.
16834         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
16835         * modules/roundf (configure.ac): ... to here.
16836
16837 2011-05-21  Bruno Haible  <bruno@clisp.org>
16838
16839         truncl: Move AC_LIBOBJ invocations to module description.
16840         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
16841         * modules/truncl (configure.ac): ... to here.
16842
16843 2011-05-21  Bruno Haible  <bruno@clisp.org>
16844
16845         trunc: Move AC_LIBOBJ invocations to module description.
16846         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
16847         * modules/trunc (configure.ac): ... to here.
16848
16849 2011-05-21  Bruno Haible  <bruno@clisp.org>
16850
16851         truncf: Move AC_LIBOBJ invocations to module description.
16852         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
16853         * modules/truncf (configure.ac): ... to here.
16854
16855 2011-05-21  Bruno Haible  <bruno@clisp.org>
16856
16857         ceill: Move AC_LIBOBJ invocations to module description.
16858         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
16859         * modules/ceill (configure.ac): ... to here.
16860
16861 2011-05-21  Bruno Haible  <bruno@clisp.org>
16862
16863         ceil: Move AC_LIBOBJ invocations to module description.
16864         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
16865         * modules/ceil (configure.ac): ... to here.
16866
16867 2011-05-21  Bruno Haible  <bruno@clisp.org>
16868
16869         ceilf: Move AC_LIBOBJ invocations to module description.
16870         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
16871         * modules/ceilf (configure.ac): ... to here.
16872
16873 2011-05-21  Bruno Haible  <bruno@clisp.org>
16874
16875         floorl: Respect rules for use of AC_LIBOBJ.
16876         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
16877         * modules/floorl (configure.ac): ... to here.
16878
16879 2011-05-21  Bruno Haible  <bruno@clisp.org>
16880
16881         floor: Respect rules for use of AC_LIBOBJ.
16882         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
16883         * modules/floor (configure.ac): ... to here.
16884
16885 2011-05-21  Bruno Haible  <bruno@clisp.org>
16886
16887         floorf: Move AC_LIBOBJ invocations to module description.
16888         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
16889         * modules/floorf (configure.ac): ... to here.
16890
16891 2011-05-20  Bruno Haible  <bruno@clisp.org>
16892
16893         sqrtl: Respect rules for use of AC_LIBOBJ.
16894         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
16895         * modules/sqrtl (configure.ac): ... to here.
16896
16897 2011-05-20  Bruno Haible  <bruno@clisp.org>
16898
16899         ldexpl: Respect rules for use of AC_LIBOBJ.
16900         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
16901         * modules/ldexpl (configure.ac): ... to here.
16902
16903 2011-05-20  Bruno Haible  <bruno@clisp.org>
16904
16905         frexpl*: Respect rules for use of AC_LIBOBJ.
16906         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
16907         invocation from here...
16908         * modules/frexpl (configure.ac): ... to here.
16909         * modules/frexpl-nolibm (configure.ac): ... and here.
16910
16911 2011-05-20  Bruno Haible  <bruno@clisp.org>
16912
16913         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
16914         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
16915         invocation from here...
16916         * modules/frexp (configure.ac): ... to here.
16917         * modules/frexp-nolibm (configure.ac): ... and here.
16918
16919 2011-05-20  Bruno Haible  <bruno@clisp.org>
16920
16921         isnan: Respect rules for use of AC_LIBOBJ.
16922         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
16923         invocations here.
16924         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
16925         REPLACE_ISNAN.
16926         * modules/isnand (configure.ac): Likewise.
16927         * modules/isnanl (configure.ac): Likewise.
16928
16929 2011-05-20  Bruno Haible  <bruno@clisp.org>
16930
16931         isnanl*: Respect rules for use of AC_LIBOBJ.
16932         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
16933         invocation from here...
16934         * modules/isnanl (configure.ac): ... to here.
16935         * modules/isnanl-nolibm (configure.ac): ... and here.
16936
16937 2011-05-20  Bruno Haible  <bruno@clisp.org>
16938
16939         isnand*: Move AC_LIBOBJ invocations to module description.
16940         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
16941         invocation from here...
16942         * modules/isnand (configure.ac): ... to here.
16943         * modules/isnand-nolibm (configure.ac): ... and here.
16944
16945 2011-05-20  Bruno Haible  <bruno@clisp.org>
16946
16947         isnanf*: Move AC_LIBOBJ invocations to module description.
16948         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
16949         invocation from here...
16950         * modules/isnanf (configure.ac): ... to here.
16951         * modules/isnanf-nolibm (configure.ac): ... and here.
16952
16953 2011-05-20  Bruno Haible  <bruno@clisp.org>
16954
16955         isnan*: Separate the AC_LIBOBJ invocations.
16956         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
16957         AC_LIBOBJ invocation.
16958         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
16959         here.
16960         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
16961         AC_LIBOBJ invocation.
16962         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
16963         here.
16964         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
16965         AC_LIBOBJ invocation.
16966         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
16967         here.
16968         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
16969
16970 2011-05-08  Bruno Haible  <bruno@clisp.org>
16971
16972         isinf: Move AC_LIBOBJ invocations to module description.
16973         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
16974         * modules/isinf (configure.ac): ... to here.
16975
16976 2011-05-08  Bruno Haible  <bruno@clisp.org>
16977
16978         isfinite: Move AC_LIBOBJ invocations to module description.
16979         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16980         * modules/isfinite (configure.ac): ... to here.
16981
16982 2011-05-08  Bruno Haible  <bruno@clisp.org>
16983
16984         isblank: Move AC_LIBOBJ invocations to module description.
16985         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16986         here...
16987         * modules/isblank (configure.ac): ... to here.
16988
16989 2011-05-08  Bruno Haible  <bruno@clisp.org>
16990
16991         isapipe: Move AC_LIBOBJ invocations to module description.
16992         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16993         gl_PREREQ_ISAPIPE invocations from here...
16994         * modules/isapipe (configure.ac): ... to here.
16995         (Depends-on): Update condition.
16996
16997 2011-05-08  Bruno Haible  <bruno@clisp.org>
16998
16999         ioctl: Move AC_LIBOBJ invocations to module description.
17000         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17001         invocations from here...
17002         * modules/ioctl (configure.ac): ... to here.
17003         (Depends-on): Update condition.
17004
17005 2011-05-08  Bruno Haible  <bruno@clisp.org>
17006
17007         imaxdiv: Move AC_LIBOBJ invocations to module description.
17008         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17009         invocations from here...
17010         * modules/imaxdiv (configure.ac): ... to here.
17011
17012 2011-05-08  Bruno Haible  <bruno@clisp.org>
17013
17014         imaxabs: Move AC_LIBOBJ invocations to module description.
17015         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17016         invocations from here...
17017         * modules/imaxabs (configure.ac): ... to here.
17018
17019 2011-05-08  Bruno Haible  <bruno@clisp.org>
17020
17021         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17022         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17023         AC_LIBOBJ invocations from here...
17024         * modules/getaddrinfo (configure.ac): ... to here.
17025         (Depends-on): Add conditions.
17026
17027 2011-05-08  Bruno Haible  <bruno@clisp.org>
17028
17029         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17030         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17031         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17032         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17033         (gl_PREREQ_INET_PTON): ... from here.
17034         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17035         gl_PREREQ_INET_PTON here.
17036         (Depends-on): Update condition.
17037
17038 2011-05-08  Bruno Haible  <bruno@clisp.org>
17039
17040         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17041         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17042         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17043         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17044         (gl_PREREQ_INET_NTOP): ... from here.
17045         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17046         gl_PREREQ_INET_NTOP here.
17047         (Depends-on): Update condition.
17048
17049 2011-05-08  Bruno Haible  <bruno@clisp.org>
17050
17051         iconv_open: Move AC_LIBOBJ invocations to module description.
17052         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17053         AC_LIBOBJ invocations from here...
17054         * modules/iconv_open (configure.ac): ... to here.
17055
17056 2011-05-08  Bruno Haible  <bruno@clisp.org>
17057
17058         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17059         If module 'iconv_open' is among the main modules and module
17060         'iconv_open-utf' is among the tests dependencies, then
17061         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17062         return the special iconv_t values. Therefore iconv() and iconv_close()
17063         must support these special iconv_t values, already in lib, not only in
17064         tests.
17065         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17066         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17067         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17068         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17069         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17070         (Depends-on): Add the dependencies of iconv_open-utf.
17071         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17072         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17073         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17074
17075 2011-05-08  Bruno Haible  <bruno@clisp.org>
17076
17077         group-member: Move AC_LIBOBJ invocations to module description.
17078         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17079         gl_PREREQ_GROUP_MEMBER invocations from here...
17080         * modules/group-member (configure.ac): ... to here.
17081
17082 2011-05-08  Bruno Haible  <bruno@clisp.org>
17083
17084         grantpt: Move AC_LIBOBJ invocations to module description.
17085         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17086         invocations from here...
17087         * modules/grantpt (configure.ac): ... to here.
17088
17089 2011-05-08  Bruno Haible  <bruno@clisp.org>
17090
17091         glob: Move AC_LIBOBJ invocations to module description.
17092         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17093         from here...
17094         * modules/glob (configure.ac): ... to here.
17095
17096 2011-05-08  Bruno Haible  <bruno@clisp.org>
17097
17098         getusershell: Move AC_LIBOBJ invocations to module description.
17099         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17100         Move AC_LIBOBJ invocation from here...
17101         * modules/getusershell (configure.ac): ... to here.
17102         (Depends-on): Update condition.
17103
17104 2011-05-08  Bruno Haible  <bruno@clisp.org>
17105
17106         gettimeofday: Move AC_LIBOBJ invocations to module description.
17107         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17108         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17109         gl_PREREQ_GETTIMEOFDAY invocations from here...
17110         * modules/gettimeofday (configure.ac): ... to here.
17111
17112 2011-05-08  Bruno Haible  <bruno@clisp.org>
17113
17114         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17115         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17116         just gl_FUNC_TZSET.
17117         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17118         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17120         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17121
17122 2011-05-08  Bruno Haible  <bruno@clisp.org>
17123
17124         getsubopt: Move AC_LIBOBJ invocations to module description.
17125         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17126         gl_PREREQ_GETSUBOPT invocations from here...
17127         * modules/getsubopt (configure.ac): ... to here.
17128
17129 2011-05-08  Bruno Haible  <bruno@clisp.org>
17130
17131         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17132         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17133         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17134         * modules/getpass-gnu (configure.ac): ... to here.
17135
17136 2011-05-08  Bruno Haible  <bruno@clisp.org>
17137
17138         getpass: Move AC_LIBOBJ invocations to module description.
17139         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17140         gl_PREREQ_GETPASS invocations from here...
17141         * modules/getpass (configure.ac): ... to here.
17142
17143 2011-05-08  Bruno Haible  <bruno@clisp.org>
17144
17145         getpagesize: Move AC_LIBOBJ invocations to module description.
17146         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17147         from here...
17148         * modules/getpagesize (configure.ac): ... to here.
17149
17150 2011-05-08  Bruno Haible  <bruno@clisp.org>
17151
17152         getopt: Move AC_LIBOBJ invocations to module description.
17153         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17154         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17155         invocations from here...
17156         * modules/getopt-gnu (configure.ac): ... to here.
17157         * modules/getopt-posix (configure.ac): ... and here.
17158         (Depends-on): Update condition.
17159
17160 2011-05-08  Bruno Haible  <bruno@clisp.org>
17161
17162         getopt, argp: Respect rules for use of AC_LIBOBJ.
17163         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17164         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17165         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17166         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17167
17168 2011-05-08  Bruno Haible  <bruno@clisp.org>
17169
17170         getlogin_r: Move AC_LIBOBJ invocations to module description.
17171         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17172         gl_PREREQ_GETLOGIN_R invocations from here...
17173         * modules/getlogin_r (configure.ac): ... to here.
17174
17175 2011-05-08  Bruno Haible  <bruno@clisp.org>
17176
17177         getlogin: Move AC_LIBOBJ invocations to module description.
17178         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17179         here...
17180         * modules/getlogin (configure.ac): ... to here.
17181
17182 2011-05-08  Bruno Haible  <bruno@clisp.org>
17183
17184         getloadavg: Move AC_LIBOBJ invocations to module description.
17185         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17186         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17187         * modules/getloadavg (configure.ac): ... to here.
17188
17189 2011-05-08  Bruno Haible  <bruno@clisp.org>
17190
17191         gethrxtime: Move AC_LIBOBJ invocations to module description.
17192         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17193         LIB_GETHRXTIME from here...
17194         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17195         invocations from here...
17196         * modules/gethrxtime (configure.ac): ... to here.
17197
17198 2011-05-08  Bruno Haible  <bruno@clisp.org>
17199
17200         gethostname: Move AC_LIBOBJ invocations to module description.
17201         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17202         gl_PREREQ_GETHOSTNAME invocations from here...
17203         * modules/gethostname (configure.ac): ... to here.
17204
17205 2011-05-08  Bruno Haible  <bruno@clisp.org>
17206
17207         getgroups: Move AC_LIBOBJ invocations to module description.
17208         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17209         here...
17210         * modules/getgroups (configure.ac): ... to here.
17211
17212 2011-05-08  Bruno Haible  <bruno@clisp.org>
17213
17214         getdtablesize: Move AC_LIBOBJ invocations to module description.
17215         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17216         invocation from here...
17217         * modules/getdtablesize (configure.ac): ... to here.
17218
17219 2011-05-08  Bruno Haible  <bruno@clisp.org>
17220
17221         getdomainname: Move AC_LIBOBJ invocations to module description.
17222         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17223         gl_PREREQ_GETDOMAINNAME invocations from here...
17224         * modules/getdomainname (configure.ac): ... to here.
17225
17226 2011-05-08  Bruno Haible  <bruno@clisp.org>
17227
17228         getline: Move AC_LIBOBJ invocations to module description.
17229         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17230         invocations from here...
17231         * modules/getline (configure.ac): ... to here.
17232
17233 2011-05-08  Bruno Haible  <bruno@clisp.org>
17234
17235         getline: Simplify.
17236         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17237         It's already handled through the module dependency.
17238
17239 2011-05-08  Bruno Haible  <bruno@clisp.org>
17240
17241         getdelim: Move AC_LIBOBJ invocations to module description.
17242         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17243         and gl_PREREQ_GETDELIM invocations from here...
17244         * modules/getdelim (configure.ac): ... to here.
17245         (Depends-on): Fix condition.
17246
17247 2011-05-08  Bruno Haible  <bruno@clisp.org>
17248
17249         getcwd: Move AC_LIBOBJ invocations to module description.
17250         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17251         invocations from here...
17252         * modules/getcwd (configure.ac): ... to here.
17253
17254 2011-05-08  Bruno Haible  <bruno@clisp.org>
17255
17256         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17257         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17258         here...
17259         * modules/getcwd-lgpl (configure.ac): ... to here.
17260
17261 2011-05-07  Bruno Haible  <bruno@clisp.org>
17262
17263         crypto/gc: Move AC_LIBOBJ invocations to module description.
17264         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17265         * modules/crypto/gc (configure.ac): ... to here.
17266
17267 2011-05-07  Bruno Haible  <bruno@clisp.org>
17268
17269         fwriting: Move AC_LIBOBJ invocations to module description.
17270         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17271         here...
17272         * modules/fwriting (configure.ac): ... to here.
17273
17274 2011-05-07  Bruno Haible  <bruno@clisp.org>
17275
17276         fwritable: Move AC_LIBOBJ invocations to module description.
17277         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17278         here...
17279         * modules/fwritable (configure.ac): ... to here.
17280
17281 2011-05-07  Bruno Haible  <bruno@clisp.org>
17282
17283         futimens: Move AC_LIBOBJ invocations to module description.
17284         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17285         here...
17286         * modules/futimens (configure.ac): ... to here.
17287
17288 2011-05-07  Bruno Haible  <bruno@clisp.org>
17289
17290         ftruncate: Move AC_LIBOBJ invocations to module description.
17291         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17292         gl_PREREQ_FTRUNCATE invocations from here...
17293         * modules/ftruncate (configure.ac): ... to here.
17294
17295 2011-05-07  Bruno Haible  <bruno@clisp.org>
17296
17297         fsync: Move AC_LIBOBJ invocations to module description.
17298         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17299         invocations from here...
17300         * modules/fsync (configure.ac): ... to here.
17301
17302 2011-05-07  Bruno Haible  <bruno@clisp.org>
17303
17304         fsusage: Move AC_LIBOBJ invocations to module description.
17305         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17306         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17307         * modules/fsusage (configure.ac): ... to here.
17308
17309 2011-05-07  Bruno Haible  <bruno@clisp.org>
17310
17311         freopen: Move AC_LIBOBJ invocations to module description.
17312         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17313         invocations from here...
17314         * modules/freopen (configure.ac): ... to here.
17315
17316 2011-05-07  Bruno Haible  <bruno@clisp.org>
17317
17318         free: Move AC_LIBOBJ invocations to module description.
17319         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17320         invocations from here...
17321         * modules/free (configure.ac): ... to here.
17322
17323 2011-05-07  Bruno Haible  <bruno@clisp.org>
17324
17325         freadable: Move AC_LIBOBJ invocations to module description.
17326         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17327         here...
17328         * modules/freadable (configure.ac): ... to here.
17329
17330 2011-05-07  Bruno Haible  <bruno@clisp.org>
17331
17332         fpurge: Move AC_LIBOBJ invocations to module description.
17333         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17334         invocations from here...
17335         * modules/fpurge (configure.ac): ... to here.
17336
17337 2011-05-07  Bruno Haible  <bruno@clisp.org>
17338
17339         fpending: Move AC_LIBOBJ invocations to module description.
17340         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17341         gl_FUNC_FPENDING.
17342         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17343         invocations from here...
17344         * modules/fpending (configure.ac): ... to here.
17345
17346 2011-05-07  Bruno Haible  <bruno@clisp.org>
17347
17348         fopen: Move AC_LIBOBJ invocations to module description.
17349         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17350         invocations from here...
17351         * modules/fopen (configure.ac): ... to here.
17352
17353 2011-05-07  Bruno Haible  <bruno@clisp.org>
17354
17355         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17356         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17357         gl_FUNC_FNMATCH_POSIX.
17358         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17359         invocations from here...
17360         * modules/fnmatch (configure.ac): ... to here.
17361         * modules/fnmatch-gnu (configure.ac): ... and here.
17362
17363 2011-05-07  Bruno Haible  <bruno@clisp.org>
17364
17365         flock: Move AC_LIBOBJ invocations to module description.
17366         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17367         invocations from here...
17368         * modules/flock (configure.ac): ... to here.
17369
17370 2011-05-07  Bruno Haible  <bruno@clisp.org>
17371
17372         fileblocks: Move AC_LIBOBJ invocations to module description.
17373         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17374         gl_PREREQ_FILEBLOCKS invocations from here...
17375         * modules/fileblocks (configure.ac): ... to here.
17376
17377 2011-05-06  Bruno Haible  <bruno@clisp.org>
17378
17379         fflush: Move AC_LIBOBJ invocations to module description.
17380         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17381         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17382         invocations from here...
17383         * modules/fflush (configure.ac): ... to here.
17384
17385 2011-05-06  Bruno Haible  <bruno@clisp.org>
17386
17387         fdopendir: Move AC_LIBOBJ invocations to module description.
17388         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17389         here...
17390         * modules/fdopendir (configure.ac): ... to here.
17391         (Depends-on): Improve conditions.
17392
17393 2011-05-06  Bruno Haible  <bruno@clisp.org>
17394
17395         _Exit: Move AC_LIBOBJ invocations to module description.
17396         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17397         invocations from here...
17398         * modules/_Exit (configure.ac): ... to here.
17399
17400 2011-05-21  Bruno Haible  <bruno@clisp.org>
17401
17402         euidaccess: Respect rules for use of AC_LIBOBJ.
17403         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17404         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17405         from here...
17406         * modules/euidaccess (configure.ac): ... to here.
17407
17408 2011-05-06  Bruno Haible  <bruno@clisp.org>
17409
17410         error: Move AC_LIBOBJ invocations to module description.
17411         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17412         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17413         invocations from here...
17414         * modules/error (configure.ac): ... to here.
17415
17416 2011-05-06  Bruno Haible  <bruno@clisp.org>
17417
17418         duplocale: Move AC_LIBOBJ invocations to module description.
17419         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17420         gl_PREREQ_DUPLOCALE invocations from here...
17421         * modules/duplocale (configure.ac): ... to here.
17422
17423 2011-05-05  Bruno Haible  <bruno@clisp.org>
17424
17425         dirfd: Move AC_LIBOBJ invocations to module description.
17426         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17427         gl_FUNC_DIRFD.
17428         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17429         here...
17430         * modules/dirfd (configure.ac): ... to here.
17431         (Depends-on): Fix condition.
17432
17433 2011-05-05  Bruno Haible  <bruno@clisp.org>
17434
17435         chown: Respect rules for use of AC_LIBOBJ.
17436         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17437         * modules/chown (configure.ac): ... to here.
17438
17439 2011-05-05  Bruno Haible  <bruno@clisp.org>
17440
17441         chdir-long: Move AC_LIBOBJ invocations to module description.
17442         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17443         gl_PREREQ_CHDIR_LONG invocations from here...
17444         * modules/chdir-long (configure.ac): ... to here.
17445
17446 2011-05-05  Bruno Haible  <bruno@clisp.org>
17447
17448         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17449         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17450         from here...
17451         * modules/canonicalize-lgpl (configure.ac): ... to here.
17452
17453 2011-05-05  Bruno Haible  <bruno@clisp.org>
17454
17455         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17456         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17457         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17458         REPLACE_CALLOC.
17459         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17460         * modules/calloc-gnu (configure.ac): Likewise.
17461
17462 2011-05-05  Bruno Haible  <bruno@clisp.org>
17463
17464         btowc: Move AC_LIBOBJ invocations to module description.
17465         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17466         invocations from here...
17467         * modules/btowc (configure.ac): ... to here.
17468
17469 2011-05-21  Bruno Haible  <bruno@clisp.org>
17470
17471         atexit: Move AC_LIBOBJ invocations to module description.
17472         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17473         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17474         here...
17475         * modules/atexit (configure.ac): ... to here.
17476
17477 2011-05-05  Bruno Haible  <bruno@clisp.org>
17478
17479         atoll: Move AC_LIBOBJ invocations to module description.
17480         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17481         invocations from here...
17482         * modules/atoll (configure.ac): ... to here.
17483
17484 2011-05-05  Bruno Haible  <bruno@clisp.org>
17485
17486         argz: Move AC_LIBOBJ invocations to module description.
17487         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17488         * modules/argz (configure.ac): ... to here.
17489
17490 2011-05-05  Bruno Haible  <bruno@clisp.org>
17491
17492         alphasort: Move AC_LIBOBJ invocations to module description.
17493         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17494         gl_PREREQ_ALPHASORT invocations from here...
17495         * modules/alphasort (configure.ac): ... to here.
17496
17497 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17498
17499         verify: new macro verify_expr; verify_true deprecated
17500         * NEWS: Mention this.
17501         * doc/verify.texi (Compile-time Assertions): Document this.
17502         * lib/verify.h (verify_true): Deprecate.
17503         (verify_expr): New macro.
17504         * tests/test-verify.c (function): Test verify_expr.
17505
17506 2011-06-14  Jim Meyering  <meyering@redhat.com>
17507
17508         init.sh: give more portable redirection-related advice in a comment
17509         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17510         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17511         for lots of discussion.  Stefano Lattarini suggested the solution
17512         of putting "9>&2" after the command.  Reported by Bruno Haible.
17513
17514 2011-06-13  Bruno Haible  <bruno@clisp.org>
17515
17516         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17517         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17518         'none'.
17519
17520 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17521
17522         ftoastr: use strtof only if HAVE_STRTOF
17523         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17525         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17526         * modules/ftoastr (configure.ac): Check for strtof.
17527
17528 2011-06-13  Bruno Haible  <bruno@clisp.org>
17529
17530         gnulib-tool: Addendum to 2011-06-08 commit.
17531         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17532         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17533
17534 2011-06-13  Bruno Haible  <bruno@clisp.org>
17535
17536         fseeko: Provide a non-inline replacement of fseek().
17537         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17538         * modules/fseeko (Depends-on): Add fseek.
17539         * modules/fseek (License): Change to LGPLv2+.
17540
17541 2011-06-13  Bruno Haible  <bruno@clisp.org>
17542
17543         ftello: Provide a non-inline replacement of ftell().
17544         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17545         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17546         not have ftello() (such as on mingw).
17547         * modules/ftello (Depends-on): Add ftell.
17548         * modules/ftell (License): Change to LGPLv2+.
17549
17550 2011-05-07  Bruno Haible  <bruno@clisp.org>
17551
17552         ftell: Move AC_LIBOBJ invocations to module description.
17553         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17554         * modules/ftell (configure.ac): ... to here.
17555
17556 2011-05-07  Bruno Haible  <bruno@clisp.org>
17557
17558         ftello: Respect rules for use of AC_LIBOBJ.
17559         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17560         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17561         here...
17562         * modules/ftello (configure.ac): ... to here.
17563
17564 2011-05-07  Bruno Haible  <bruno@clisp.org>
17565
17566         fseeko: Simplify.
17567         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17568         (gl_FUNC_FSEEKO): Inline it here.
17569
17570 2011-05-07  Bruno Haible  <bruno@clisp.org>
17571
17572         fseek: Move AC_LIBOBJ invocations to module description.
17573         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17574         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17575         * modules/fseek (configure.ac): ... to here.
17576
17577 2011-05-07  Bruno Haible  <bruno@clisp.org>
17578
17579         fseek: Respect rules for use of AC_LIBOBJ.
17580         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17581         here...
17582         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17583
17584 2011-05-07  Bruno Haible  <bruno@clisp.org>
17585
17586         fseeko: Respect rules for use of AC_LIBOBJ.
17587         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17588         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17589         here...
17590         * modules/fseeko (configure.ac): ... to here.
17591
17592 2011-06-13  Bruno Haible  <bruno@clisp.org>
17593
17594         gnulib-tool: Allow comments in the 'Depends-on' section.
17595         * doc/gnulib.texi (Module description): Mention comment syntax in the
17596         Depends-on section.
17597         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17598
17599 2011-06-13  Bruno Haible  <bruno@clisp.org>
17600
17601         file-set.h: guard __attibute__ use, now that it's not always defined
17602         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17603         versions that support it.  This fixes a coreutils build failure with
17604         the vendor cc on HP-UX 11.31.
17605
17606 2011-06-12  Bruno Haible  <bruno@clisp.org>
17607
17608         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17609         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17610         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17611         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17612         (acl, aclsort): New declarations.
17613         (aclv_nontrivial): New declaration.
17614         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17615         (file_has_acl): Read also the second kind of HP-UX ACLs.
17616         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17617         kind of HP-UX ACLs if the first kind fails.
17618         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17619         second kind of HP-UX ACLs.
17620         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17621         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17622         agree.
17623         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17624         hpuxjfs.
17625         Handle hpuxjfs.
17626         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17627         hpuxjfs.
17628         Handle hpuxjfs.
17629         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17630         (func_test_same_acls): Use both lsacl and getacl.
17631         Handle hpuxjfs.
17632         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17633         (func_test_same_acls): Use both lsacl and getacl.
17634         Handle hpuxjfs.
17635
17636 2011-06-12  Bruno Haible  <bruno@clisp.org>
17637
17638         acl: Complete the 2010-08-10 fix.
17639         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17640         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17641         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17642         explicitly.
17643         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17644         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17645
17646 2011-06-12  Bruno Haible  <bruno@clisp.org>
17647
17648         spawn-pipe tests: Comments.
17649         * tests/test-spawn-pipe-child.c (main): Update comment.
17650         Reported by James Youngman <jay@gnu.org>.
17651
17652 2011-06-11  James Youngman  <jay@gnu.org>
17653
17654         New module 'stat-size'.
17655         * modules/stat-size: New module.  Provides macros for accessing
17656         file size information in instances of struct stat.  Depends on the
17657         fileblocks module because it calls st_blocks.
17658         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17659         * doc/gnulib.texi: Include stat-size.texi.
17660         * doc/stat-size.texi: Documentation for this module.
17661         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17662         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17663         AC_STRUCT_ST_BLOCKS.
17664
17665 2011-06-09  Bruno Haible  <bruno@clisp.org>
17666
17667         thread: Support pthreads-win32.
17668         * lib/glthread/thread.h (gl_thread_self): Define differently on
17669         pthreads-win32.
17670         (gl_null_thread): New declaration.
17671         (gl_thread_self_pointer): New macro.
17672         * lib/glthread/thread.c (gl_null_thread): New constant.
17673         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17674         gl_thread_self.
17675         * tests/test-tls.c: Likewise.
17676         Suggested by Paul Eggert. Reported by Eric Blake.
17677
17678 2011-06-09  Bruno Haible  <bruno@clisp.org>
17679
17680         thread: Fix confusion between NULL and 0.
17681         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17682         Reported by Paul Eggert.
17683
17684 2011-06-09  Bruno Haible  <bruno@clisp.org>
17685
17686         spawn-pipe tests: Avoid test failure on HP-UX 11.
17687         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17688         is closed.
17689
17690 2011-06-09  Bruno Haible  <bruno@clisp.org>
17691
17692         acl tests: Fix compilation error on HP-UX 11.
17693         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17694
17695 2011-06-09  Bruno Haible  <bruno@clisp.org>
17696
17697         rmdir: Avoid test failure on HP-UX 10.20.
17698         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17699         EEXIST.
17700
17701 2011-06-08  Eric Blake  <eblake@redhat.com>
17702
17703         perror: fix test on mingw
17704         * modules/perror-tests (Depends-on): Add dup2.
17705
17706         strerror_r-posix: fix on MacOS
17707         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17709         logic bug.
17710         * lib/strerror_r.c (strerror_r): Fix the bug.
17711         * lib/strerror.c (strerror): Likewise.
17712         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17713         problem.
17714         * doc/posix-functions/strerror.texi (strerror): Likewise.
17715         * doc/posix-functions/perror.texi (perror): Likewise.
17716         * tests/test-strerror.c (main): Enhance test.
17717         * tests/test-strerror_r.c (main): Likewise.
17718
17719 2011-06-08  Bruno Haible  <bruno@clisp.org>
17720
17721         gnulib-tool: Better isolation between different gnulib-tool invocations.
17722         * gnulib-tool: New option --witness-c-macro.
17723         (witness_c_macro): New variable.
17724         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17725         AM_CPPFLAGS define it as a C macro.
17726         (func_emit_tests_Makefile_am): Likewise.
17727         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17728         read it from there.
17729         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17730         m4_define, not AC_DEFUN.
17731         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17732         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17733         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17734         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17735         s|...|...|, to substitute the values of the GNULIB_* module indicator
17736         variables.
17737         * modules/dirent (Makefile.am): Likewise.
17738         * modules/fcntl-h (Makefile.am): Likewise.
17739         * modules/iconv-h (Makefile.am): Likewise.
17740         * modules/langinfo (Makefile.am): Likewise.
17741         * modules/locale (Makefile.am): Likewise.
17742         * modules/math (Makefile.am): Likewise.
17743         * modules/netdb (Makefile.am): Likewise.
17744         * modules/poll-h (Makefile.am): Likewise.
17745         * modules/pty (Makefile.am): Likewise.
17746         * modules/search (Makefile.am): Likewise.
17747         * modules/signal (Makefile.am): Likewise.
17748         * modules/spawn (Makefile.am): Likewise.
17749         * modules/stdio (Makefile.am): Likewise.
17750         * modules/stdlib (Makefile.am): Likewise.
17751         * modules/string (Makefile.am): Likewise.
17752         * modules/sys_ioctl (Makefile.am): Likewise.
17753         * modules/sys_select (Makefile.am): Likewise.
17754         * modules/sys_socket (Makefile.am): Likewise.
17755         * modules/sys_stat (Makefile.am): Likewise.
17756         * modules/sys_times (Makefile.am): Likewise.
17757         * modules/sys_utsname (Makefile.am): Likewise.
17758         * modules/sys_wait (Makefile.am): Likewise.
17759         * modules/termios (Makefile.am): Likewise.
17760         * modules/time (Makefile.am): Likewise.
17761         * modules/unistd (Makefile.am): Likewise.
17762         * modules/wchar (Makefile.am): Likewise.
17763
17764 2011-06-08  Eric Blake  <eblake@redhat.com>
17765
17766         strerror: simplify replacement
17767         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17768         * modules/strerror (configure.ac): No prereqs needed here...
17769         * modules/strerror-override (configure.ac): ...but this needs it.
17770         (Files): Add file for needed prereq macro.
17771
17772 2011-06-08  Bruno Haible  <bruno@clisp.org>
17773
17774         strerror_r-posix: Tweaks.
17775         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17776         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17777         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17778         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17779         (gl_FUNC_STRERROR_R): ... to here.
17780         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17781
17782 2011-06-07  Eric Blake  <eblake@redhat.com>
17783
17784         perror: document fixed bugs
17785         * doc/posix-functions/perror.texi (perror): Document recent
17786         patches.
17787
17788 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17789
17790         stat-time: get_stat_birthtime failure is better-defined
17791         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17792         return a timestamp whose tv_sec and tv_nsec values are both -1.
17793         Previously, the spec said only that the tv_nsec value was negative.
17794         This upward-compatible change simplifies GNU tar a bit.
17795
17796 2011-06-07  Eric Blake  <eblake@redhat.com>
17797
17798         strerror_r-posix: work around cygwin 1.7.9
17799         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17800         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17801         bug without replacing strerror_r.
17802         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17803         strerror_r is buggy, but without requiring strerror_r compilation.
17804         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17805
17806         test-perror: relax test to ignore cygwin bug
17807         * tests/test-perror2.c (main): Relax test on requiring detection
17808         of stream errors, and use unbuffered stream.
17809         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17810         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17811         * doc/posix-functions/fputc.texi (fputc): Likewise.
17812         * doc/posix-functions/fputs.texi (fputs): Likewise.
17813         * doc/posix-functions/fputws.texi (fputws): Likewise.
17814         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17815         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17816         * doc/posix-functions/getopt.texi (getopt): Likewise.
17817         * doc/posix-functions/perror.texi (perror): Likewise.
17818         * doc/posix-functions/printf.texi (printf): Likewise.
17819         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17820         * doc/posix-functions/psignal.texi (psignal): Likewise.
17821         * doc/posix-functions/putc.texi (putc): Likewise.
17822         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17823         Likewise.
17824         * doc/posix-functions/putchar.texi (putchar): Likewise.
17825         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17826         Likewise.
17827         * doc/posix-functions/puts.texi (puts): Likewise.
17828         * doc/posix-functions/putwc.texi (putwc): Likewise.
17829         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17830         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17831         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17832         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17833         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17834         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17835         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17836         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17837
17838 2011-05-22  Bruno Haible  <bruno@clisp.org>
17839
17840         strerror: Move AC_LIBOBJ invocations to module description.
17841         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
17842         gl_PREREQ_STRERROR invocations from here...
17843         * modules/strerror (configure.ac): ... to here.
17844
17845 2011-05-21  Bruno Haible  <bruno@clisp.org>
17846
17847         perror: Use common idiom.
17848         * modules/perror (configure.ac): Reorder statements.
17849
17850 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17851
17852         tests: fix usage message in 'mktempd_'
17853         * tests/init.sh (mktempd_): In the usage message, use literal
17854         'mktempd_', not '$ME' (which is even undefined), as the name of
17855         the subroutine.
17856
17857 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17858
17859         tests init: new function 'fatal_', for hard errors
17860         Before this patch, the only way offered by tests/init.sh to
17861         properly signal a hard error was the `framework_failure_'
17862         function.  But the error message issued by that function,
17863         as its name would suggest, refers to a set-up failure in the
17864         testsuite, while hard errors can obviously also be due to
17865         other reasons.  The best way to fix this inconsistency is to
17866         introduce a new function with a more general error message.
17867         * tests/init.sh (fatal_): New function.
17868
17869 2011-06-06  Eric Blake  <eblake@redhat.com>
17870
17871         canonicalize-lgpl: use common idiom
17872         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
17873         over newer POSIX -Rf.
17874         Reported by Bruno Haible.
17875
17876         canonicalize-lgpl: work around AIX realpath bug
17877         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
17878         * doc/posix-functions/realpath.texi (realpath): Document it.
17879         Reported by Bruno Haible.
17880
17881         strerror: work around FreeBSD bug
17882         * lib/strerror.c (strerror): Special case 0.
17883         Reported by Bruno Haible.
17884
17885         strerror-override: avoid bloating errno module
17886         * modules/errno (Files, configure.ac): Move replacement strings...
17887         * modules/strerror-override: ...to new module.
17888         * modules/strerror (Depends-on): Add strerror-override.
17889         * modules/strerror_r-posix (Depends-on): Likewise.
17890         * MODULES.html.sh: Document new module.
17891         Reported by Bruno Haible.
17892
17893 2011-06-06  Bruno Haible  <bruno@clisp.org>
17894
17895         spawn-pipe tests: Rename program.
17896         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
17897         * tests/test-spawn-pipe-child.c: Update comment.
17898         * tests/test-spawn-pipe.sh: Update.
17899         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
17900
17901         spawn-pipe tests: Link the child program only against libc.
17902         * tests/test-spawn-pipe-child.c: New file, extracted from
17903         tests/test-spawn-pipe.c.
17904         (main): Expect only one argument.
17905         (is_open): New function, copied from tests/test-pipe.c.
17906         * tests/test-spawn-pipe.c: Don't include <errno.h>.
17907         (child_main): Remove function.
17908         (test_pipe): Pass only one argument to the child program.
17909         (main): Remove child process code. Expect the child program's name as
17910         first argument.
17911         * tests/test-spawn-pipe.sh: Pass the child program's name as first
17912         argument.
17913         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
17914         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
17915         test-spawn-pipe-child against no libraries.
17916
17917 2011-06-06  Bruno Haible  <bruno@clisp.org>
17918
17919         careadlinkat: Avoid mismatch between ssize_t and int.
17920         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
17921         * lib/careadlinkat.c (careadlinkatcwd): Define always.
17922
17923 2011-06-06  Jim Meyering  <meyering@redhat.com>
17924
17925         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
17926         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
17927         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
17928
17929 2011-06-05  Bruno Haible  <bruno@clisp.org>
17930
17931         ansi-c++-opt: Interoperability with libtool.
17932         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
17933         set the variable to "no", not to ":".
17934         * NEWS: Mention the change.
17935
17936 2011-06-05  Bruno Haible  <bruno@clisp.org>
17937
17938         acl: Fix test failure on AIX 7.
17939         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
17940         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
17941
17942 2011-06-05  Bruno Haible  <bruno@clisp.org>
17943
17944         pipe-filter-ii: Fix test failure on AIX and IRIX.
17945         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
17946         with EAGAIN, retry with a smaller buffer size.
17947
17948 2011-06-05  Bruno Haible  <bruno@clisp.org>
17949
17950         localename: Fix link dependencies.
17951         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
17952         * modules/localename-tests (Makefile.am): Link test-localename with
17953         $(LIBTHREAD).
17954
17955 2011-06-05  Bruno Haible  <bruno@clisp.org>
17956
17957         error: Avoid gcc warning.
17958         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
17959
17960 2011-06-05  Bruno Haible  <bruno@clisp.org>
17961
17962         unsetenv: Avoid gcc warning.
17963         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
17964
17965 2011-06-05  Bruno Haible  <bruno@clisp.org>
17966
17967         setenv: Avoid gcc warning.
17968         * lib/setenv.c (setenv): Provide declaration if system lacks it.
17969
17970 2011-06-05  Bruno Haible  <bruno@clisp.org>
17971
17972         sys_select: Ensure memset is declared also on AIX 7.
17973         * lib/sys_select.in.h: Include <string.h> also on AIX.
17974         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
17975         self-contained also on AIX 7.1.
17976
17977 2011-06-04  Jim Meyering  <meyering@redhat.com>
17978
17979         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17980         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17981         function name, "error".
17982         (_gl_translatable_diag_func_re): New configurable variable.
17983
17984 2011-06-04  Bruno Haible  <bruno@clisp.org>
17985
17986         getopt: Avoid gcc warning.
17987         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17988
17989 2011-06-04  Bruno Haible  <bruno@clisp.org>
17990
17991         strerror_r: Fix comments.
17992         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17993         commit.
17994
17995 2011-06-04  Bruno Haible  <bruno@clisp.org>
17996
17997         perror: Fix compilation error.
17998         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17999         Undefine fprintf, not sprintf.
18000         * modules/perror (Depends-on): Remove intprops, verify.
18001
18002 2011-06-04  Bruno Haible  <bruno@clisp.org>
18003
18004         setlocale: Enable replacement on Cygwin 1.5.
18005         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18006         Cygwin 1.5.x.
18007         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18008         LC_CTYPE category also exists on Cygwin 1.5.x.
18009
18010 2011-06-04  Bruno Haible  <bruno@clisp.org>
18011
18012         strerror-override: Don't disable symbol renamings.
18013         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18014         * lib/strerror-override.c: Include config.h.
18015         (strerror_override): Don't undefine.
18016
18017 2011-06-03  Bruno Haible  <bruno@clisp.org>
18018
18019         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18020         * lib/localename.h: Update copyright header.
18021         * lib/localename.c: Likewise.
18022         * lib/relocatable.h: Likewise.
18023         * lib/relocatable.c: Likewise.
18024
18025 2011-06-02  Bruno Haible  <bruno@clisp.org>
18026
18027         doc: Fix a module name.
18028         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18029
18030 2011-06-02  Bruno Haible  <bruno@clisp.org>
18031
18032         pipe2: Remove dependency on 'nonblocking' module.
18033         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18034         O_NONBLOCK is defined by gnulib.
18035         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18036         is zero.
18037         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18038         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18039         defined by gnulib.
18040         (get_nonblocking_flag): New function.
18041         (main): Test O_NONBLOCK flag only if it is nonzero.
18042         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18043
18044 2011-06-03  Jim Meyering  <meyering@redhat.com>
18045
18046         maint: three new prohibit-header-without-use rules
18047         Prohibit use of cloexec.h, posixver.h, same.h without use.
18048         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18049         (sc_prohibit_posixver_without_use): Likewise.
18050         (sc_prohibit_same_without_use): Likewise.
18051
18052 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18053
18054         allocator: 'die' routine is now given requested size
18055         * lib/allocator.h (struct allocator.die): New size arg.
18056         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18057         If the actual problem is an ssize_t limitation, not a size_t or
18058         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18059
18060 2011-06-01  Eric Blake  <eblake@redhat.com>
18061
18062         strerror: drop strerror_r dependency
18063         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18064         * lib/strerror-override.c (strerror_override): ...to new file.
18065         * lib/strerror-override.h: Add prototype.
18066         * lib/strerror-impl.h: Delete.
18067         * lib/strerror.c (strerror): New implementation.
18068         * modules/errno (Files): Add new files.
18069         (configure.ac): Compile new file as appropriate.
18070         * modules/strerror (Files): Drop unused file.
18071         (Depends-on): Drop strerror_r-posix.
18072         * MODULES.html.sh: Document strerror_r-posix.
18073         Requested by Sam Steingold.
18074
18075         perror: call strerror_r directly
18076         * modules/perror (Files): Drop strerror-impl.h.
18077         * lib/perror.c (perror): Use our own stack buffer, rather than
18078         calling a wrapper that uses static storage.
18079         * doc/posix-functions/perror.texi (perror): Document a limitation
18080         of our replacement.
18081
18082         strerror_r: fix includes for FreeBSD
18083         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18084         since we use abort on some platforms.
18085         Reported by Matthias Bolte.
18086
18087 2011-05-31  Bruno Haible  <bruno@clisp.org>
18088
18089         Fix link errors in tests: openat-die uses gettext-h.
18090         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18091         against $(LIBINTL).
18092         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18093         against $(LIBINTL).
18094         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18095         $(LIBINTL).
18096         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18097         against $(LIBINTL).
18098         * modules/linkat-tests (Makefile.am): Link test-linkat against
18099         $(LIBINTL).
18100         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18101         $(LIBINTL).
18102         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18103         against $(LIBINTL).
18104         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18105         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18106         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18107         $(LIBINTL).
18108         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18109         $(LIBINTL).
18110         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18111         $(LIBINTL).
18112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18113
18114 2011-05-31  Bruno Haible  <bruno@clisp.org>
18115
18116         Fix link errors in tests: wait-process uses gettext-h.
18117         * modules/nonblocking-pipe-tests (Makefile.am): Set
18118         test_nonblocking_pipe_main_LDADD.
18119         * modules/nonblocking-socket-tests (Makefile.am): Link
18120         test-nonblocking-socket-main against $(LIBINTL).
18121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18122
18123 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18124
18125         assert-h: work around 'verify' incompatibility
18126         * lib/verify.h: Use @...@ directives, not ifdef.
18127         * modules/assert-h (assert.h): Implement the directives.
18128         (assert.h): Substitute the symbol-prefix more consistently.
18129
18130 2011-05-29  Jim Meyering  <meyering@redhat.com>
18131
18132         trim: remove three superfluous assignments
18133         * lib/trim.c (trim2): Remove three superfluous assignments
18134         and correct brace positioning.
18135
18136 2011-05-29  Bruno Haible  <bruno@clisp.org>
18137
18138         wctype-h: Avoid namespace pollution on Solaris 2.6.
18139         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18140         identifiers.
18141         * doc/posix-headers/wctype.texi: Mention the problem.
18142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18143
18144 2011-05-28  Jim Meyering  <meyering@redhat.com>
18145
18146         parse-datetime.y: accommodate -Wstrict-overflow
18147         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18148         placate -Wstrict-overflow.
18149
18150         trim: avoid a warning from -O2 -Wstrict-overflow
18151         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18152
18153 2011-05-29  Bruno Haible  <bruno@clisp.org>
18154
18155         gnulib-tool: Fix bug in yesterday's commit.
18156         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18157         twice.
18158
18159 2011-05-29  Bruno Haible  <bruno@clisp.org>
18160
18161         Allow multiple gnulib generated include files to be combined.
18162         * gnulib-tool (func_compute_include_guard_prefix): New function.
18163         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18164         ${gl_include_guard_prefix} references.
18165         (func_import, func_create_testdir): Invoke
18166         func_compute_include_guard_prefix.
18167         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18168         * lib/ctype.in.h: Likewise.
18169         * lib/dirent.in.h: Likewise.
18170         * lib/errno.in.h: Likewise.
18171         * lib/fcntl.in.h: Likewise.
18172         * lib/float.in.h: Likewise.
18173         * lib/getopt.in.h: Likewise.
18174         * lib/iconv.in.h: Likewise.
18175         * lib/langinfo.in.h: Likewise.
18176         * lib/locale.in.h: Likewise.
18177         * lib/math.in.h: Likewise.
18178         * lib/netdb.in.h: Likewise.
18179         * lib/netinet_in.in.h: Likewise.
18180         * lib/poll.in.h: Likewise.
18181         * lib/pthread.in.h: Likewise.
18182         * lib/pty.in.h: Likewise.
18183         * lib/sched.in.h: Likewise.
18184         * lib/se-selinux.in.h: Likewise.
18185         * lib/search.in.h: Likewise.
18186         * lib/signal.in.h: Likewise.
18187         * lib/spawn.in.h: Likewise.
18188         * lib/stdarg.in.h: Likewise.
18189         * lib/stddef.in.h: Likewise.
18190         * lib/stdint.in.h: Likewise.
18191         * lib/stdio.in.h: Likewise.
18192         * lib/stdlib.in.h: Likewise.
18193         * lib/string.in.h: Likewise.
18194         * lib/strings.in.h: Likewise.
18195         * lib/sys_file.in.h: Likewise.
18196         * lib/sys_ioctl.in.h: Likewise.
18197         * lib/sys_select.in.h: Likewise.
18198         * lib/sys_socket.in.h: Likewise.
18199         * lib/sys_stat.in.h: Likewise.
18200         * lib/sys_time.in.h: Likewise.
18201         * lib/sys_times.in.h: Likewise.
18202         * lib/sys_uio.in.h: Likewise.
18203         * lib/sys_utsname.in.h: Likewise.
18204         * lib/sys_wait.in.h: Likewise.
18205         * lib/sysexits.in.h: Likewise.
18206         * lib/termios.in.h: Likewise.
18207         * lib/time.in.h: Likewise.
18208         * lib/unistd.in.h: Likewise.
18209         * lib/wchar.in.h: Likewise.
18210         * lib/wctype.in.h: Likewise.
18211         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18212         * modules/ctype (Makefile.am): Likewise.
18213         * modules/dirent (Makefile.am): Likewise.
18214         * modules/errno (Makefile.am): Likewise.
18215         * modules/fcntl-h (Makefile.am): Likewise.
18216         * modules/float (Makefile.am): Likewise.
18217         * modules/getopt-posix (Makefile.am): Likewise.
18218         * modules/iconv-h (Makefile.am): Likewise.
18219         * modules/langinfo (Makefile.am): Likewise.
18220         * modules/locale (Makefile.am): Likewise.
18221         * modules/math (Makefile.am): Likewise.
18222         * modules/netdb (Makefile.am): Likewise.
18223         * modules/netinet_in (Makefile.am): Likewise.
18224         * modules/poll-h (Makefile.am): Likewise.
18225         * modules/pthread (Makefile.am): Likewise.
18226         * modules/pty (Makefile.am): Likewise.
18227         * modules/sched (Makefile.am): Likewise.
18228         * modules/search (Makefile.am): Likewise.
18229         * modules/selinux-h (Makefile.am): Likewise.
18230         * modules/signal (Makefile.am): Likewise.
18231         * modules/spawn (Makefile.am): Likewise.
18232         * modules/stdarg (Makefile.am): Likewise.
18233         * modules/stddef (Makefile.am): Likewise.
18234         * modules/stdint (Makefile.am): Likewise.
18235         * modules/stdio (Makefile.am): Likewise.
18236         * modules/stdlib (Makefile.am): Likewise.
18237         * modules/string (Makefile.am): Likewise.
18238         * modules/strings (Makefile.am): Likewise.
18239         * modules/sys_file (Makefile.am): Likewise.
18240         * modules/sys_ioctl (Makefile.am): Likewise.
18241         * modules/sys_select (Makefile.am): Likewise.
18242         * modules/sys_socket (Makefile.am): Likewise.
18243         * modules/sys_stat (Makefile.am): Likewise.
18244         * modules/sys_time (Makefile.am): Likewise.
18245         * modules/sys_times (Makefile.am): Likewise.
18246         * modules/sys_uio (Makefile.am): Likewise.
18247         * modules/sys_utsname (Makefile.am): Likewise.
18248         * modules/sys_wait (Makefile.am): Likewise.
18249         * modules/sysexits (Makefile.am): Likewise.
18250         * modules/termios (Makefile.am): Likewise.
18251         * modules/time (Makefile.am): Likewise.
18252         * modules/unistd (Makefile.am): Likewise.
18253         * modules/wchar (Makefile.am): Likewise.
18254         * modules/wctype-h (Makefile.am): Likewise.
18255         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18256
18257 2011-05-29  Bruno Haible  <bruno@clisp.org>
18258
18259         assert-h: Allow multiple gnulib generated replacements to coexist.
18260         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18261
18262 2011-05-29  Bruno Haible  <bruno@clisp.org>
18263
18264         argp: Allow coexistence with strerror_r-posix module.
18265         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18266         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18267         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18268         not the glibc signature.
18269
18270 2011-05-28  Bruno Haible  <bruno@clisp.org>
18271
18272         gnulib-tool: Alternative structure of testdirs, similar to --import.
18273         * gnulib-tool: New option --single-configure.
18274         (func_usage): Document it.
18275         (single_configure): New variable.
18276         (func_modules_transitive_closure_separately,
18277         func_modules_transitive_closure_separately,
18278         func_determine_use_libtests, func_modules_add_dummy_separately,
18279         func_modules_to_filelist_separately): New functions, extracted from
18280         func_import.
18281         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18282         (func_import): Use the new functions.
18283         (func_create_testdir): Set final_modules. Handle $single_configure =
18284         true case.
18285
18286 2011-05-28  Bruno Haible  <bruno@clisp.org>
18287
18288         getloadavg: Remove an unreliable safety check.
18289         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18290         getloadavg.c is in place.
18291         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18292         Reported by Sam Steingold <sds@gnu.org>.
18293
18294 2011-05-28  Bruno Haible  <bruno@clisp.org>
18295
18296         doc: Cleanup yet another file produced by texinfo.tex.
18297         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18298
18299 2011-05-28  Bruno Haible  <bruno@clisp.org>
18300
18301         Finish the conditional dependencies mechanism.
18302         * gnulib-tool: New option --no-conditional-dependencies.
18303         (func_usage): Document it. Don't mark --conditional-dependencies as
18304         experimental.
18305         (cond_dependencies): The possible values can now be true, false, empty.
18306         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18307         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18308         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18309
18310 2011-05-28  Bruno Haible  <bruno@clisp.org>
18311
18312         doc: Use a recent texinfo.tex.
18313         * doc/Makefile (tex_opts): New variable.
18314         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18315
18316 2011-05-28  Jim Meyering  <meyering@redhat.com>
18317
18318         intprops.h: adjust comment to match code change
18319         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18320         only once, it *may* have side effects.  Also fix an unrelated typo.
18321         (_GL_INT_SIGNED): Likewise.
18322
18323 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18324
18325         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18326
18327 2011-05-26  Bruno Haible  <bruno@clisp.org>
18328
18329         mbsrchr: Avoid collision with system function on Interix.
18330         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18331         Reported by Markus Duft <mduft@gentoo.org>.
18332
18333 2011-05-15  James Youngman  <jay@gnu.org>
18334
18335         getopt: for ambiguous options, enumerate the possibilities.
18336         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18337         the ambiguous options when an ambiguous prefix is given. This was
18338         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18339         glibc change was
18340         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18341
18342 2011-05-25  Eric Blake  <eblake@redhat.com>
18343
18344         getcwd: work around mingw bug
18345         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18346         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18347         Reported by Matthias Bolte.
18348
18349 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18350
18351         test-intprops: disable -Wtype-limits diagnostics
18352         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18353         diagnostics.  Otherwise, the integer overflow macros generate many
18354         diagnostics.  Reported by Jim Meyering in
18355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18356
18357         intprops: shorten, to pacify gcc -Woverlength-strings
18358         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18359         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18360         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18361         likely to run afoul of C compiler limits for string constant lengths.
18362         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18363
18364 2011-05-24  Eric Blake  <eblake@redhat.com>
18365
18366         docs: document recently fixed glibc printf bug
18367         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18368         * doc/posix-functions/printf.texi (printf): Likewise.
18369         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18370         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18371
18372         closein-tests: convert to init.sh
18373         * modules/closein-tests (Files): Add init.sh
18374         * tests/test-closein.sh Use it.
18375
18376         yesno-tests: convert to init.sh
18377         * modules/yesno-tests (Files): Add init.sh.
18378         * tests/test-yesno.sh: Use it.
18379
18380         atexit-tests: ensure reliable exit status
18381         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18382         Reported by Bruno Haible.
18383
18384 2011-05-24  Bruno Haible  <bruno@clisp.org>
18385
18386         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18387         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18388         gl_PREREQ_STRERROR_R invocations from here...
18389         * modules/strerror_r-posix (configure.ac): ... to here.
18390
18391 2011-05-24  Eric Blake  <eblake@redhat.com>
18392
18393         strerror_r: fix missing header
18394         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18395
18396         strerror_r: fix AIX test failures
18397         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18398         ERANGE failure.
18399
18400         strerror_r: fix Solaris test failures
18401         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18402         failures.
18403         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18404
18405         strerror_r: enforce POSIX recommendations
18406         * lib/strerror_r.c (safe_copy): New helper method.
18407         (strerror_r): Guarantee a non-empty string.
18408         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18409         recent POSIX rulings and to match our strerror guarantees.
18410         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18411
18412 2011-05-24  Jim Meyering  <meyering@redhat.com>
18413
18414         test-perror2.c: avoid warning about unused variable
18415         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18416
18417 2011-05-24  Eric Blake  <eblake@redhat.com>
18418
18419         perror: avoid spurious test failure on HP-UX
18420         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18421
18422         tests: fix logic bug in init.sh
18423         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18424         shell.
18425
18426 2011-05-24  Jim Meyering  <meyering@redhat.com>
18427
18428         utimensat: do not reference an out-of-scope buffer
18429         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18430         declared in an inner scope, yet "times" would be dereferenced outside
18431         the scope in which "ts" was valid.
18432         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18433         of ts[2] "out/up", so that the use of aliased "times" (via
18434         "times = ts;") does not end up referencing an out-of-scope "ts"
18435
18436         opendir-safer.c: don't clobber errno; don't close negative FD
18437         * lib/opendir-safer.c (opendir_safer):
18438         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18439         file descriptor, and more importantly, don't clobber the
18440         offending errno value with EINVAL.  Before, upon failure
18441         of dup_safer, we would pass the negative file descriptor to
18442         fdopendir, which would clobber errno.
18443
18444 2011-05-23  Bruno Haible  <bruno@clisp.org>
18445
18446         idcache: Fix module description.
18447         * modules/idcache (Include): Set to "idcache.h".
18448
18449 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18450
18451         gnulib-tool: fix portability problem with MacOS sed
18452         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18453         before the "}".  Problem reported by Leo in
18454         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18455         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18456         sed_extract_condition1, sed_extract_condition2.
18457
18458 2011-05-23  Bruno Haible  <bruno@clisp.org>
18459
18460         hash: Simplify autoconf macro.
18461         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18462
18463 2011-05-23  Bruno Haible  <bruno@clisp.org>
18464
18465         getugroups: Fix module description.
18466         * modules/getugroups (Include): Set to "getugroups.h".
18467
18468 2011-05-23  Bruno Haible  <bruno@clisp.org>
18469
18470         linkat: Simplify autoconf macro.
18471         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18472
18473 2011-05-23  Bruno Haible  <bruno@clisp.org>
18474             Eric Blake  <eblake@redhat.com>
18475
18476         linkat, renameat: Update dependencies.
18477         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18478         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18479         symlinkat.
18480
18481 2011-05-23  Jim Meyering  <meyering@redhat.com>
18482
18483         maint.mk: more tight_scope improvements
18484         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18485         (_gl_TS_headers): Define only in if-0'd block.
18486         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18487         sometimes we must *not* use it.  Adjust uses accordingly.
18488         (sc_tight_scope): Use much simpler grep-based test to determine
18489         whether we skip this rule.
18490
18491         maint.mk: generalize/improve the tight-scope rule
18492         * top/maint.mk: Emit a warning when the test is skipped.
18493         (_gl_TS_dir): Add $(srcdir)/ prefix.
18494         (_gl_TS_function_match): Simplify, rather than trying
18495         to enumerate common types.  Otherwise, it would fail to match an
18496         "extern unsigned char const *" declaration in idutils.
18497         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18498         a way to support use of that type of macro.
18499         (_gl_TS_var_match): Simplify regexp.
18500         (_gl_TS_obj_files): New configurable variable.
18501         (_gl_TS_headers): Likewise.
18502
18503 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18504
18505         verify: fix bug when gnulib <assert.h> is also included
18506         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18507         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18508         Perhaps there's a better way, but this fixes the immediate problem.
18509         Problem reported by Bruno Haible in
18510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18511
18512 2011-05-22  Bruno Haible  <bruno@clisp.org>
18513
18514         xgetcwd: Simplify autoconf macro.
18515         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18516
18517 2011-05-22  Bruno Haible  <bruno@clisp.org>
18518
18519         New module 'mktime-internal'.
18520         * modules/mktime-internal: New file.
18521         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18522         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18523         mktime_internal as a C macro if libc has __mktime_internal.
18524         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18525         conditions.
18526         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18527
18528 2011-05-22  Bruno Haible  <bruno@clisp.org>
18529
18530         timegm: Correct mktime replacement statements.
18531         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18532         defining mktime as a C macro. This completes a 2009-07-28 commit.
18533
18534 2011-05-22  Bruno Haible  <bruno@clisp.org>
18535
18536         timegm: Simplify autoconf macro.
18537         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18538
18539 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18540
18541         clock-time: change to LGPLv2+.
18542         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18543         BSD-like but we have no mark for that; this is good enough for now.
18544
18545 2011-05-21  Bruno Haible  <bruno@clisp.org>
18546
18547         strerror_r: Fix comments.
18548         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18549
18550 2011-05-21  Bruno Haible  <bruno@clisp.org>
18551
18552         relocatable-prog-wrapper: Fix possible link error.
18553         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18554         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18555         (gl_FUNC_SETENV): ... to here.
18556         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18557         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18558
18559 2011-05-21  Bruno Haible  <bruno@clisp.org>
18560
18561         relocatable-prog-wrapper: Assume strerror() exists.
18562         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18563         m4/strerror.m4.
18564         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18565         * lib/relocwrapper.c: Remove mention of strerror module.
18566         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18567         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18568         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18569         C macro.
18570
18571 2011-05-21  Bruno Haible  <bruno@clisp.org>
18572
18573         select: Simplify replacement idiom.
18574         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18575         Win32 platforms.
18576         * lib/sys_select.in.h (select): Simplify accordingly.
18577         * modules/select (Depends-on): Likewise.
18578
18579 2011-05-21  Bruno Haible  <bruno@clisp.org>
18580
18581         mkdir-p: Simplify autoconf macro.
18582         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18583         gl_FUNC_LCHOWN.
18584
18585 2011-05-21  Eric Blake  <eblake@redhat.com>
18586
18587         strerror_r: avoid clobbering strerror on cygwin
18588         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18589         fall back instead to sys_errlist.
18590         * modules/strerror (configure.ac): Add witness.
18591         * tests/test-strerror_r.c (main): Enhance test.
18592         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18593         * tests/test-perror2.c (main): Free memory before exit.
18594
18595 2011-05-21  Bruno Haible  <bruno@clisp.org>
18596
18597         mkdtemp: Use gnulib naming conventions.
18598         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18599         * modules/mkdtemp (configure.ac): Update.
18600
18601 2011-05-20  Eric Blake  <eblake@redhat.com>
18602
18603         strerror_r: avoid corrupting errno on Solaris
18604         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18605         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18606
18607         strerror_r: avoid compiler warning
18608         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18609
18610         strerror_r: simplify AIX code
18611         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18612
18613         test-perror: avoid spurious failure on FreeBSD
18614         * modules/perror-tests (Depends-on): Add strerror, now that
18615         strerror_r no longer pulls it in.
18616
18617 2011-05-20  Bruno Haible  <bruno@clisp.org>
18618
18619         strerror_r-posix: Remove unused dependencies.
18620         * modules/strerror_r-posix (Depends-on): Remove strerror.
18621         Reported by Eric Blake.
18622
18623 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18624
18625         intprops: remove assumption about A|B representation
18626         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18627         is a valid integer if both A and B are.  Although this is true for
18628         all known practical hosts, the C standard doesn't guarantee it,
18629         and the code need not assume it.  Also, this change may work around
18630         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18632
18633 2011-05-20  Eric Blake  <eblake@redhat.com>
18634
18635         perror: work around FreeBSD bug
18636         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18637         is broken.  Move AC_LIBOBJ...
18638         * modules/perror (configure.ac): Here.
18639         * doc/posix-functions/perror.texi (perror): Document this.
18640         * tests/test-perror2.c (main): Enhance test.
18641
18642         test-perror: check for strerror interactions
18643         * tests/macros.h (STREQ): Add macro.
18644         * modules/perror-tests (Files): Add second test.
18645         * tests/test-perror2.c (main): New file.
18646         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18647
18648         test-perror: rewrite to use init script
18649         * modules/perror-tests (Files): Add init.sh.
18650         * tests/test-perror.sh: Use temporary directory.
18651
18652 2011-05-20  Jim Meyering  <meyering@redhat.com>
18653
18654         maint: replace misused "a" with "an"
18655         * doc/intprops.texi: "a integer"
18656         * doc/regex.texi: "a explanation"
18657         * lib/alignof.h: "a object"
18658         * lib/argmatch.h: "a explanation"
18659         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18660         * lib/stdint.in.h: "a integer"
18661         * lib/userspec.c: "a owner"
18662         * doc/gnulib.texi: Fix "a idea", and reword.
18663
18664 2011-05-19  Jim Meyering  <meyering@redhat.com>
18665
18666         maint: correct misuse of "a" and "an"
18667         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18668         * lib/argp-help.c: "an docum...": s/an/a/
18669         * lib/argp-parse.c: "An vector": s/An/A/
18670         * lib/execute.c: "an native": s/an/a/
18671         * lib/spawn-pipe.c: Likewise.
18672         * lib/gc.h: "an Gc_rc": s/an/a/
18673         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18674         * lib/fts.c: "an stat.st_dev": s/an/a/
18675
18676 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18677
18678         intprops-tests: work around HP-UX 11.23 cc bug with constants
18679         * tests/test-intprops.c (VERIFY): New macro.
18680         (main): Use it, instead of verify, to work around the compiler bug; see
18681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18682
18683         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18684         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18685         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18686         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18687         (_GL_REMAINDER_OVERFLOW): Use it.
18688
18689         intprops-tests: revert unsigned part of previous change
18690         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18691         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18692         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18694
18695 2011-05-19  Bruno Haible  <bruno@clisp.org>
18696
18697         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18698         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18699         strerror_r() returned without filling the buffer.
18700         Reported by Eric Blake.
18701
18702 2011-05-19  Eric Blake  <eblake@redhat.com>
18703
18704         strerror_r: guarantee unchanged errno
18705         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18706         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18707         failure.
18708         * tests/test-strerror_r.c (main): Enhance test.
18709
18710 2011-05-19  Bruno Haible  <bruno@clisp.org>
18711
18712         strerror_r: Reorder #if blocks.
18713         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18714         for consistency with the previous commit.
18715
18716 2011-05-19  Bruno Haible  <bruno@clisp.org>
18717
18718         perror: Avoid clobbering the strerror buffer when possible.
18719         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18720         * lib/strerror.c: Include it.
18721         * modules/strerror (Files): Add lib/strerror-impl.h.
18722         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18723         (my_strerror): New function, defined through lib/strerror-impl.h.
18724         (perror): Use it instead of strerror.
18725         * modules/perror (Files): Add lib/strerror-impl.h.
18726         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18727
18728 2011-05-19  Eric Blake  <eblake@redhat.com>
18729
18730         strerror_r: fix on newer cygwin
18731         * lib/strerror_r.c (strerror_r): Cygwin now has
18732         __xpg_strerror_r, use it.
18733
18734 2011-05-19  Bruno Haible  <bruno@clisp.org>
18735
18736         strerror_r: Avoid clobbering the strerror buffer when possible.
18737         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18738         (sys_nerr, sys_errlist): New declarations.
18739         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18740         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18741         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18742
18743 2011-05-19  Bruno Haible  <bruno@clisp.org>
18744
18745         strerror_r: Fix test failure on mingw.
18746         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18747         EXTEND_STRERROR_R.
18748         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18749         macros from errno.in.h instead.
18750
18751 2011-05-19  Eric Blake  <eblake@redhat.com>
18752
18753         strerror: relax test for Solaris
18754         * tests/test-strerror.c (main): Permit Solaris behavior.
18755         * tests/test-strerror_r.c (main): Likewise.
18756
18757         strerror: enforce POSIX ruling on strerror(0)
18758         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18759         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18760         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18761         * doc/posix-functions/strerror.texi (strerror): Document it.
18762         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18763         * tests/test-strerror.c (main): Strengthen test.
18764         * tests/test-strerror_r.c (main): Likewise.
18765
18766 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18767
18768         intprop-tests: port to older and more-pedantic compilers
18769         * modules/intprops-tests (Files): Add tests/macros.h.
18770         * tests/test-intprops.c: Include macros.h.
18771         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18772         it's no longer documented to expand to an integer constant expression.
18773         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18774         argument is floating point, as it's no longer documented to expand
18775         to an integer constant expression in that case.
18776         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18777         compiler bugs reported by Bruno Haible.  See
18778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18779         (U0, U1): New constants, to work around the same bugs.  Also,
18780         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18781
18782         intprops: work around C compiler bugs
18783         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18784         bug in Sun C 5.11 2010/08/13 and other compilers; see
18785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18786
18787         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18788         * doc/intprops.texi (Integer Type Determination): Fix
18789         documentation for TYPE_IS_INTEGER: it returns an constant
18790         expression, not an integer constant expression.  Fix doc for
18791         TYPE_SIGNED: it returns an integer constant expression only if its
18792         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18793         hardly worth documented that way....)
18794
18795 2011-05-18  Bruno Haible  <bruno@clisp.org>
18796
18797         strerror_r: Avoid clobbering the strerror buffer when possible.
18798         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18799         Handle gnulib defined errno values here. When strerror() returns NULL
18800         or an empty string, return EINVAL.
18801         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18802         gnulib defined errno values here.
18803         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18804
18805 2011-05-18  Eric Blake  <eblake@redhat.com>
18806
18807         fnmatch: avoid compiler warning
18808         * lib/fnmatch_loop.c (FCT): Use correct type.
18809         Reported by Matthias Bolte.
18810
18811 2011-05-13  Jim Meyering  <meyering@redhat.com>
18812
18813         maint.mk: three new prohibit_<HDR>_without_use rules
18814         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18815         (sc_prohibit_stdio-safer_without_use): Likewise.
18816         (sc_prohibit_xfreopen_without_use): Likewise.
18817
18818 2011-05-17  Jim Meyering  <meyering@redhat.com>
18819
18820         announce-gen: fail if the NEWS delta is empty
18821         If there's nothing noteworthy in NEWS, then either you forgot
18822         or you shouldn't be releasing.
18823         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18824
18825 2011-05-17  Pádraig Brady <P@draigBrady.com>
18826
18827         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18828         reserved symbols starting with double underscore from the check.
18829
18830 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18831
18832         intprops: add doc
18833         * doc/intprops.texi: New file, documenting intprops.
18834         * doc/gnulib.texi (Particular Modules): Include it.
18835
18836         verify: add doc to gnulib manual and fix example
18837         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
18838         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
18839         (Compile-time Assertions): Fix example so it can't overflow.
18840
18841 2011-05-17  Jim Meyering  <meyering@redhat.com>
18842
18843         warnings.m4: don't usurp save_CPPFLAGS variable name
18844         * m4/warnings.m4: Prefix local temporary variable name with gl_.
18845
18846         doc: fix typo
18847         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
18848
18849 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18850             Bruno Haible  <bruno@clisp.org>
18851
18852         doc: Tweak recent change.
18853         * README (Portability guidelines): Tweak new text.
18854         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
18855         Interix 6.1.
18856
18857 2011-05-16  Eric Blake  <eblake@redhat.com>
18858
18859         inttypes: avoid autoconf warning
18860         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
18861         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18862
18863 2011-05-16  Sam Steingold <sds@gnu.org>
18864         and Eric Blake  <eblake@redhat.com>
18865
18866         vc-list-files: accept multiple directory operands
18867         * build-aux/vc-list-files: Iterate over all remaining operands.
18868
18869 2011-05-16  Bruno Haible  <bruno@clisp.org>
18870
18871         Fix confusion regarding deprecated modules.
18872         * modules/calloc (Status, Notice): Mark module as deprecated, not
18873         obsolete.
18874         * modules/fnmatch-posix (Status, Notice): Likewise.
18875         * modules/getdate (Status, Notice): Likewise.
18876         * modules/getopt (Status, Notice): Likewise.
18877         * modules/malloc (Status, Notice): Likewise.
18878         * modules/pipe (Status, Notice): Likewise.
18879         * modules/realloc (Status, Notice): Likewise.
18880         * modules/rename-dest-slash (Status, Notice): Likewise.
18881         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
18882         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
18883         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
18884         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
18885         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
18886
18887 2011-05-16  Bruno Haible  <bruno@clisp.org>
18888
18889         doc: List the target platforms.
18890         * doc/gnulib-intro.texi (Target Platforms): New section.
18891         * doc/gnulib.texi (Introduction): Update menu.
18892         * README (Portability guidelines): Refer to the new section. Update
18893         statement about oldest supported environment. Remove rationale why
18894         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
18895         unportable C89 function.
18896         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
18897         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
18898
18899 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18900
18901         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
18902
18903 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18904
18905         intprops-tests: new module
18906         * modules/intprops-tests, tests/test-intprops.c: New files.
18907
18908         intprops: add safe, portable integer overflow checking
18909         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
18910         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
18911         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
18912         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
18913         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
18914         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
18915         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
18916         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
18917         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18918         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
18919         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
18920
18921 2011-05-12  James Youngman  <jay@gnu.org>
18922
18923         Add a test for glibc's Bugzilla bug #12378.
18924         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
18925         doesn't allow the literal matching of a lone "[" (which is
18926         required by POSIX).
18927         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
18928
18929 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18930
18931         Sync glibc change fixing Bugzilla bug #12378.
18932         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
18933         beginning and fall back to matching as normal character if the
18934         string ends before the matching ']' is found.  This is what POSIX
18935         requires.
18936
18937 2011-05-13  Eric Blake  <eblake@redhat.com>
18938
18939         getcwd-lgpl: relax test for FreeBSD
18940         * doc/posix-functions/getcwd.texi (getcwd): Document portability
18941         issue.
18942         * tests/test-getcwd-lgpl.c (main): Relax test.
18943         Reported by Matthias Bolte.
18944
18945 2011-05-11  Eric Blake  <eblake@redhat.com>
18946
18947         test-fflush: silence compiler warning
18948         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
18949
18950 2011-05-11  Bruno Haible  <bruno@clisp.org>
18951
18952         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
18953         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
18954         * modules/canonicalize (Depends-on): Add 'nocrash'.
18955         * modules/canonicalize-lgpl (Depends-on): Likewise.
18956         * doc/posix-functions/realpath.texi: Update platforms list.
18957         Reported by Ryan Schmidt <ryandesign@macports.org>.
18958
18959 2011-05-11  Bruno Haible  <bruno@clisp.org>
18960
18961         group-member: Declare function in <unistd.h>.
18962         * lib/unistd.in.h (group_member): New declaration.
18963         * lib/group-member.h: Remove file.
18964         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
18965         * tests/test-unistd-c++.cc: Check signature of group_member.
18966         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
18967         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
18968         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
18969         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
18970         HAVE_GROUP_MEMBER.
18971         * modules/group-member (Files): Remove lib/group-member.h.
18972         (Depends-on): Add unistd. Specify conditions.
18973         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18974         (Include): Change to <unistd.h>.
18975         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
18976         HAVE_GROUP_MEMBER.
18977         * NEWS: Mention the change.
18978         * lib/euidaccess.c: Don't include group-member.h.
18979
18980 2011-05-11  Bruno Haible  <bruno@clisp.org>
18981
18982         group-member: Document module.
18983         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18984         module.
18985
18986 2011-05-11  Bruno Haible  <bruno@clisp.org>
18987
18988         fclose: Fix mistake earlier today.
18989         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18990
18991 2011-05-11  Eric Blake  <eblake@redhat.com>
18992
18993         fclose: preserve fflush errors
18994         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18995         Reported by Jim Meyering.
18996
18997         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18998         * build-aux/bootstrap (check_versions): When no specific version
18999         is required, merely check that the app produces an exit status
19000         that indicates its existence.
19001
19002         maint.mk: drop redundant check
19003         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19004         the same but better.
19005
19006 2011-05-11  Bruno Haible  <bruno@clisp.org>
19007
19008         fclose: Fix possible link error.
19009         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19010         unregister_shadow_fd. Improve comments.
19011         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19012         Eric Blake.
19013
19014 2011-05-11  Jim Meyering  <meyering@redhat.com>
19015
19016         maint.mk: improve "can not" detection and generalize rule name
19017         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19018         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19019         Use the same technique as in sc_prohibit_doubled_word, so that
19020         we recognize "can not" also when the words are separated by a newline.
19021         Suggested by Eric Blake.
19022         (perl_filename_lineno_text_): Define.  Factored out of...
19023         (prohibit_doubled_word_): ...here.  Use the new definition.
19024         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19025         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19026         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19027
19028 2011-05-10  Eric Blake  <eblake@redhat.com>
19029
19030         fclose: avoid double close race when possible
19031         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19032         all but WINDOWS_SOCKETS.
19033
19034 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19035
19036         openat: correct new comment
19037         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19038
19039 2011-05-10  Jim Meyering  <meyering@redhat.com>
19040
19041         openat: add comments
19042         * lib/openat-proc.c (openat_proc_name): Add comments,
19043         mostly from Eric Blake.
19044
19045 2011-05-09  Eric Blake  <eblake@redhat.com>
19046
19047         openat: reduce syscalls in first probe of /proc
19048         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19049         be a directory.  Simplify the probe for .. bugs.
19050         * modules/openat (Depends-on): Drop same-inode.
19051         Reported by Bastien ROUCARIES.
19052
19053 2011-05-09  Jim Meyering  <meyering@redhat.com>
19054
19055         maint.mk: change semantics/name of tight_scope variables
19056         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19057         Rename variables to align with semantics that make them more useful.
19058
19059         maint.mk: tweak new rule's name not to impinge
19060         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19061         (sc_tight_scope): Use new rule name rather than $@-0.
19062
19063         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19064         * top/maint.mk (sc_tight_scope): New rule.
19065         (sc_tight_scope-0): New rule, ifdef'd out.
19066         (_gl_TS_dir): Default.
19067         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19068         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19069
19070 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19071
19072         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19073         Haible <bruno@clisp.org>.
19074
19075 2011-05-08  Bruno Haible  <bruno@clisp.org>
19076
19077         Comments.
19078         * m4/isnanf.m4: Add comment.
19079         * m4/isnanl.m4: Likewise.
19080
19081 2011-05-08  Bruno Haible  <bruno@clisp.org>
19082
19083         glob: Remove obsolete macro.
19084         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19085
19086 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19087
19088         intprops: Sun C 5.11 supports __typeof__
19089         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19090         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19091         which is new.
19092         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19093
19094         intprops: switch to usual gnulib indenting and naming
19095         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19096         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19097
19098         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19099
19100 2011-05-08  Jim Meyering  <meyering@redhat.com>
19101
19102         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19103         * top/maint.mk (release-prep): Use make's --no-print-directory
19104         option when generating the announcement.  This eliminates the
19105         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19106         generated announcement template.
19107
19108 2011-05-08  Bruno Haible  <bruno@clisp.org>
19109
19110         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19111         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19112         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19113
19114 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19115
19116         ignore-value, verify: Omit include files from lib_SOURCES.
19117         * modules/ignore-value, modules/verify (Makefile.am):
19118         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19119         that leads Automake to duplicate use of am__objects_... variables
19120         in Makefile.in.  See
19121         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19122
19123 2011-05-07  Bruno Haible  <bruno@clisp.org>
19124
19125         fclose: Simplify autoconf macro.
19126         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19127         defined.
19128
19129 2011-05-07  Bruno Haible  <bruno@clisp.org>
19130
19131         canonicalize-lgpl: Fix autoconf macro ordering bug.
19132         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19133         gl_STDLIB_H_DEFAULTS.
19134
19135 2011-05-06  Eric Blake  <eblake@redhat.com>
19136
19137         maintainer-makefile: make sc_po_check easier to tune
19138         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19139         to probe for strings, such as an alternate location for gnulib.
19140
19141         fclose: guarantee behavior on seekable stdin
19142         * modules/fclose (Depends-on): Add fflush.
19143         * doc/posix-functions/fclose.texi (fclose): Document this.
19144         * tests/test-fclose.c (main): Make test for this unconditional.
19145
19146 2011-05-06  Bruno Haible  <bruno@clisp.org>
19147
19148         fflush, fpurge: Relicense under LGPLv2+.
19149         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19150         * modules/fpurge (License): Likewise.
19151         With permission from Eric Blake and Jim Meyering.
19152         Suggested by Eric Blake.
19153
19154 2011-05-06  Karl Berry  <karl@gnu.org>
19155
19156         * MODULES.html.sh (func_all_modules): remove exit.
19157
19158 2011-05-06  Jim Meyering  <meyering@redhat.com>
19159
19160         maint.mk: use info-gnu@ as the default only for a stable release
19161         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19162         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19163         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19164         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19165
19166 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19167
19168         assert-h: new module, which supports C1X-style static_assert
19169         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19170         * lib/verify.h: Revamp so that this can be copied into assert.h,
19171         while retaining the ability to use it standalone as before.
19172         Rename private identifiers so as not to encroach on the
19173         standard C namespace, since this is now used by assert.h.
19174         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19175         the old verify_true.
19176         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19177         the old verify_true.  Use _GL_VERIFY_TYPE.
19178         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19179         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19180         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19181         defined when this file is copied into the replacement assert.h.
19182         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19183         and _Static_assert is not built in.
19184         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19185         defined, and use the new macros mentioned above.
19186         * doc/posix-headers/assert.texi: Document this.
19187
19188 2011-05-05  Bruno Haible  <bruno@clisp.org>
19189
19190         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19191         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19192         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19193         gl_REPLACE_FCLOSE here.
19194         * modules/fflush (Depends-on): Remove fclose.
19195         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19196         combination with module 'fclose'.
19197
19198 2011-05-05  Bruno Haible  <bruno@clisp.org>
19199
19200         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19201         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19202         gl_FUNC_FFLUSH.
19203         (gl_FUNC_FFLUSH): Use it.
19204         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19205         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19206         gl_REPLACE_FSEEKO here.
19207
19208 2011-05-05  Bruno Haible  <bruno@clisp.org>
19209
19210         tzset: Relicense under LGPL.
19211         * modules/tzset (License): Change to LGPL.
19212         No agreement needed; it's a no-op.
19213
19214         strtoimax, strtoumax: Relicense under LGPL.
19215         * modules/strtoimax (License): Change to LGPL.
19216         * modules/strtoumax (License): Likewise.
19217         With permission from Jim Meyering, Paul Eggert:
19218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19220
19221         getgroups: Relicense under LGPL.
19222         * modules/getgroups (License): Change to LGPL.
19223         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19227
19228         nanosleep: Relicense under LGPL.
19229         * modules/nanosleep (License): Change to LGPL.
19230         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19231         Haible:
19232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19236
19237         futimens: Relicense under LGPL.
19238         * modules/futimens (License): Change to LGPL.
19239         With permission from Eric Blake:
19240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19241
19242         fflush: Relicense under LGPL.
19243         * modules/fflush (License): Change to LGPL.
19244         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19248
19249         tmpfile: Relicense under LGPL.
19250         * modules/tmpfile (License): Change to LGPL.
19251         With permission from Ben Pfaff:
19252         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19253
19254         isfinite: Relicense under LGPL.
19255         * modules/isfinite (License): Change to LGPL.
19256         With permission from Ben Pfaff, Bruno Haible:
19257         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19259
19260         acosl..tanl: Relicense under LGPL.
19261         * modules/acosl (License): Change to LGPL.
19262         * modules/asinl (License): Likewise.
19263         * modules/atanl (License): Likewise.
19264         * modules/cosl (License): Likewise.
19265         * modules/expl (License): Likewise.
19266         * modules/logl (License): Likewise.
19267         * modules/sinl (License): Likewise.
19268         * modules/sqrtl (License): Likewise.
19269         * modules/tanl (License): Likewise.
19270         Source code originally from glibc and Paolo Bonzini. Agreements:
19271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19273
19274 2011-05-05  Bruno Haible  <bruno@clisp.org>
19275
19276         signal: Define sighandler_t.
19277         * lib/signal.in.h (sighandler_t): New type.
19278         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19279         whether sighandler_t is defined.
19280         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19281         * modules/signal (Depends-on): Add extensions.
19282         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19283         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19284         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19285
19286 2011-05-05  Eric Blake  <eblake@redhat.com>
19287
19288         maint: remove useless REPLACE_*_H macros
19289         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19290         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19291         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19292         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19293         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19294         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19295         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19296         * m4/btowc.m4: Update callers.
19297         * m4/dirfd.m4: Likewise.
19298         * m4/duplocale.m4: Likewise.
19299         * m4/fchdir.m4: Likewise.
19300         * m4/fdopendir.m4: Likewise.
19301         * m4/inet_ntop.m4: Likewise.
19302         * m4/inet_pton.m4: Likewise.
19303         * m4/ioctl.m4: Likewise.
19304         * m4/mbrlen.m4: Likewise.
19305         * m4/mbrtowc.m4: Likewise.
19306         * m4/mbsinit.m4: Likewise.
19307         * m4/mbsnrtowcs.m4: Likewise.
19308         * m4/mbsrtowcs.m4: Likewise.
19309         * m4/poll.m4: Likewise.
19310         * m4/setlocale.m4: Likewise.
19311         * m4/wcrtomb.m4: Likewise.
19312         * m4/wcsnrtombs.m4: Likewise.
19313         * m4/wcsrtombs.m4: Likewise.
19314         * m4/wctob.m4: Likewise.
19315         * m4/wcwidth.m4: Likewise.
19316         * modules/posix_spawn: Likewise.
19317         * modules/posix_spawn_file_actions_addclose: Likewise.
19318         * modules/posix_spawn_file_actions_adddup2: Likewise.
19319         * modules/posix_spawn_file_actions_addopen: Likewise.
19320         * modules/posix_spawn_file_actions_destroy: Likewise.
19321         * modules/posix_spawn_file_actions_init: Likewise.
19322         * modules/posix_spawnattr_destroy: Likewise.
19323         * modules/posix_spawnattr_getflags: Likewise.
19324         * modules/posix_spawnattr_getpgroup: Likewise.
19325         * modules/posix_spawnattr_getschedparam: Likewise.
19326         * modules/posix_spawnattr_getschedpolicy: Likewise.
19327         * modules/posix_spawnattr_getsigdefault: Likewise.
19328         * modules/posix_spawnattr_getsigmask: Likewise.
19329         * modules/posix_spawnattr_init: Likewise.
19330         * modules/posix_spawnattr_setflags: Likewise.
19331         * modules/posix_spawnattr_setpgroup: Likewise.
19332         * modules/posix_spawnattr_setschedparam: Likewise.
19333         * modules/posix_spawnattr_setschedpolicy: Likewise.
19334         * modules/posix_spawnattr_setsigdefault: Likewise.
19335         * modules/posix_spawnattr_setsigmask: Likewise.
19336         * modules/posix_spawnp: Likewise.
19337
19338 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19339
19340         Add option to do-release-commit-and-tag to specify branch.
19341         * build-aux/do-release-commit-and-tag: Add --branch.
19342
19343 2011-05-03  Bruno Haible  <bruno@clisp.org>
19344
19345         Avoid unnecessary compilation units, through conditional dependencies.
19346         * modules/accept (Depends-on): Add conditions to the dependencies.
19347         * modules/acosl (Depends-on): Likewise.
19348         * modules/argz (Depends-on): Likewise.
19349         * modules/asinl (Depends-on): Likewise.
19350         * modules/atanl (Depends-on): Likewise.
19351         * modules/atoll (Depends-on): Likewise.
19352         * modules/bind (Depends-on): Likewise.
19353         * modules/btowc (Depends-on): Likewise.
19354         * modules/canonicalize-lgpl (Depends-on): Likewise.
19355         * modules/ceil (Depends-on): Likewise.
19356         * modules/ceilf (Depends-on): Likewise.
19357         * modules/ceill (Depends-on): Likewise.
19358         * modules/chdir-long (Depends-on): Likewise.
19359         * modules/chown (Depends-on): Likewise.
19360         * modules/close (Depends-on): Likewise.
19361         * modules/connect (Depends-on): Likewise.
19362         * modules/cosl (Depends-on): Likewise.
19363         * modules/dirfd (Depends-on): Likewise.
19364         * modules/dprintf (Depends-on): Likewise.
19365         * modules/dprintf-posix (Depends-on): Likewise.
19366         * modules/error (Depends-on): Likewise.
19367         * modules/euidaccess (Depends-on): Likewise.
19368         * modules/expl (Depends-on): Likewise.
19369         * modules/faccessat (Depends-on): Likewise.
19370         * modules/fchdir (Depends-on): Likewise.
19371         * modules/fclose (Depends-on): Likewise.
19372         * modules/fcntl (Depends-on): Likewise.
19373         * modules/fdopendir (Depends-on): Likewise.
19374         * modules/fflush (Depends-on): Likewise.
19375         * modules/floor (Depends-on): Likewise.
19376         * modules/floorf (Depends-on): Likewise.
19377         * modules/floorl (Depends-on): Likewise.
19378         * modules/fnmatch (Depends-on): Likewise.
19379         * modules/fopen (Depends-on): Likewise.
19380         * modules/fprintf-posix (Depends-on): Likewise.
19381         * modules/frexp (Depends-on): Likewise.
19382         * modules/frexp-nolibm (Depends-on): Likewise.
19383         * modules/frexpl (Depends-on): Likewise.
19384         * modules/frexpl-nolibm (Depends-on): Likewise.
19385         * modules/fseek (Depends-on): Likewise.
19386         * modules/fsusage (Depends-on): Likewise.
19387         * modules/ftell (Depends-on): Likewise.
19388         * modules/ftello (Depends-on): Likewise.
19389         * modules/futimens (Depends-on): Likewise.
19390         * modules/getcwd (Depends-on): Likewise.
19391         * modules/getcwd-lgpl (Depends-on): Likewise.
19392         * modules/getdelim (Depends-on): Likewise.
19393         * modules/getdomainname (Depends-on): Likewise.
19394         * modules/getgroups (Depends-on): Likewise.
19395         * modules/gethostname (Depends-on): Likewise.
19396         * modules/getline (Depends-on): Likewise.
19397         * modules/getlogin_r (Depends-on): Likewise.
19398         * modules/getopt-posix (Depends-on): Likewise.
19399         * modules/getpeername (Depends-on): Likewise.
19400         * modules/getsockname (Depends-on): Likewise.
19401         * modules/getsockopt (Depends-on): Likewise.
19402         * modules/getsubopt (Depends-on): Likewise.
19403         * modules/getusershell (Depends-on): Likewise.
19404         * modules/glob (Depends-on): Likewise.
19405         * modules/grantpt (Depends-on): Likewise.
19406         * modules/iconv_open (Depends-on): Likewise.
19407         * modules/iconv_open-utf (Depends-on): Likewise.
19408         * modules/inet_ntop (Depends-on): Likewise.
19409         * modules/inet_pton (Depends-on): Likewise.
19410         * modules/ioctl (Depends-on): Likewise.
19411         * modules/isapipe (Depends-on): Likewise.
19412         * modules/isfinite (Depends-on): Likewise.
19413         * modules/isinf (Depends-on): Likewise.
19414         * modules/lchown (Depends-on): Likewise.
19415         * modules/ldexpl (Depends-on): Likewise.
19416         * modules/link (Depends-on): Likewise.
19417         * modules/linkat (Depends-on): Likewise.
19418         * modules/listen (Depends-on): Likewise.
19419         * modules/logl (Depends-on): Likewise.
19420         * modules/lstat (Depends-on): Likewise.
19421         * modules/mbrlen (Depends-on): Likewise.
19422         * modules/mbrtowc (Depends-on): Likewise.
19423         * modules/mbsinit (Depends-on): Likewise.
19424         * modules/mbsnrtowcs (Depends-on): Likewise.
19425         * modules/mbsrtowcs (Depends-on): Likewise.
19426         * modules/mbtowc (Depends-on): Likewise.
19427         * modules/memcmp (Depends-on): Likewise.
19428         * modules/mkdir (Depends-on): Likewise.
19429         * modules/mkdtemp (Depends-on): Likewise.
19430         * modules/mkfifo (Depends-on): Likewise.
19431         * modules/mkfifoat (Depends-on): Likewise.
19432         * modules/mknod (Depends-on): Likewise.
19433         * modules/mkostemp (Depends-on): Likewise.
19434         * modules/mkostemps (Depends-on): Likewise.
19435         * modules/mkstemp (Depends-on): Likewise.
19436         * modules/mkstemps (Depends-on): Likewise.
19437         * modules/mktime (Depends-on): Likewise.
19438         * modules/nanosleep (Depends-on): Likewise.
19439         * modules/open (Depends-on): Likewise.
19440         * modules/openat (Depends-on): Likewise.
19441         * modules/perror (Depends-on): Likewise.
19442         * modules/poll (Depends-on): Likewise.
19443         * modules/popen (Depends-on): Likewise.
19444         * modules/posix_spawn (Depends-on): Likewise.
19445         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19446         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19447         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19448         * modules/posix_spawnp (Depends-on): Likewise.
19449         * modules/pread (Depends-on): Likewise.
19450         * modules/printf-posix (Depends-on): Likewise.
19451         * modules/ptsname (Depends-on): Likewise.
19452         * modules/putenv (Depends-on): Likewise.
19453         * modules/pwrite (Depends-on): Likewise.
19454         * modules/readline (Depends-on): Likewise.
19455         * modules/readlink (Depends-on): Likewise.
19456         * modules/readlinkat (Depends-on): Likewise.
19457         * modules/recv (Depends-on): Likewise.
19458         * modules/recvfrom (Depends-on): Likewise.
19459         * modules/regex (Depends-on): Likewise.
19460         * modules/remove (Depends-on): Likewise.
19461         * modules/rename (Depends-on): Likewise.
19462         * modules/renameat (Depends-on): Likewise.
19463         * modules/rmdir (Depends-on): Likewise.
19464         * modules/round (Depends-on): Likewise.
19465         * modules/roundf (Depends-on): Likewise.
19466         * modules/roundl (Depends-on): Likewise.
19467         * modules/rpmatch (Depends-on): Likewise.
19468         * modules/select (Depends-on): Likewise.
19469         * modules/send (Depends-on): Likewise.
19470         * modules/sendto (Depends-on): Likewise.
19471         * modules/setenv (Depends-on): Likewise.
19472         * modules/setlocale (Depends-on): Likewise.
19473         * modules/setsockopt (Depends-on): Likewise.
19474         * modules/shutdown (Depends-on): Likewise.
19475         * modules/sigaction (Depends-on): Likewise.
19476         * modules/signbit (Depends-on): Likewise.
19477         * modules/sigprocmask (Depends-on): Likewise.
19478         * modules/sinl (Depends-on): Likewise.
19479         * modules/sleep (Depends-on): Likewise.
19480         * modules/snprintf (Depends-on): Likewise.
19481         * modules/snprintf-posix (Depends-on): Likewise.
19482         * modules/socket (Depends-on): Likewise.
19483         * modules/sprintf-posix (Depends-on): Likewise.
19484         * modules/sqrtl (Depends-on): Likewise.
19485         * modules/stat (Depends-on): Likewise.
19486         * modules/strchrnul (Depends-on): Likewise.
19487         * modules/strdup-posix (Depends-on): Likewise.
19488         * modules/strerror (Depends-on): Likewise.
19489         * modules/strerror_r-posix (Depends-on): Likewise.
19490         * modules/strndup (Depends-on): Likewise.
19491         * modules/strnlen (Depends-on): Likewise.
19492         * modules/strptime (Depends-on): Likewise.
19493         * modules/strsep (Depends-on): Likewise.
19494         * modules/strsignal (Depends-on): Likewise.
19495         * modules/strstr-simple (Depends-on): Likewise.
19496         * modules/strtod (Depends-on): Likewise.
19497         * modules/strtoimax (Depends-on): Likewise.
19498         * modules/strtok_r (Depends-on): Likewise.
19499         * modules/strtoumax (Depends-on): Likewise.
19500         * modules/symlink (Depends-on): Likewise.
19501         * modules/symlinkat (Depends-on): Likewise.
19502         * modules/tanl (Depends-on): Likewise.
19503         * modules/tcgetsid (Depends-on): Likewise.
19504         * modules/tmpfile (Depends-on): Likewise.
19505         * modules/trunc (Depends-on): Likewise.
19506         * modules/truncf (Depends-on): Likewise.
19507         * modules/truncl (Depends-on): Likewise.
19508         * modules/uname (Depends-on): Likewise.
19509         * modules/unlink (Depends-on): Likewise.
19510         * modules/unlockpt (Depends-on): Likewise.
19511         * modules/unsetenv (Depends-on): Likewise.
19512         * modules/usleep (Depends-on): Likewise.
19513         * modules/utimensat (Depends-on): Likewise.
19514         * modules/vasprintf (Depends-on): Likewise.
19515         * modules/vdprintf (Depends-on): Likewise.
19516         * modules/vdprintf-posix (Depends-on): Likewise.
19517         * modules/vfprintf-posix (Depends-on): Likewise.
19518         * modules/vprintf-posix (Depends-on): Likewise.
19519         * modules/vsnprintf (Depends-on): Likewise.
19520         * modules/vsnprintf-posix (Depends-on): Likewise.
19521         * modules/vsprintf-posix (Depends-on): Likewise.
19522         * modules/wcrtomb (Depends-on): Likewise.
19523         * modules/wcscasecmp (Depends-on): Likewise.
19524         * modules/wcscspn (Depends-on): Likewise.
19525         * modules/wcsdup (Depends-on): Likewise.
19526         * modules/wcsncasecmp (Depends-on): Likewise.
19527         * modules/wcsnrtombs (Depends-on): Likewise.
19528         * modules/wcspbrk (Depends-on): Likewise.
19529         * modules/wcsrtombs (Depends-on): Likewise.
19530         * modules/wcsspn (Depends-on): Likewise.
19531         * modules/wcsstr (Depends-on): Likewise.
19532         * modules/wcstok (Depends-on): Likewise.
19533         * modules/wcswidth (Depends-on): Likewise.
19534         * modules/wctob (Depends-on): Likewise.
19535         * modules/wctomb (Depends-on): Likewise.
19536         * modules/wctype (Depends-on): Likewise.
19537         * modules/wcwidth (Depends-on): Likewise.
19538         * modules/write (Depends-on): Likewise.
19539
19540 2011-05-03  Bruno Haible  <bruno@clisp.org>
19541
19542         Support for conditional dependencies.
19543         * doc/gnulib.texi (Module description): Document the syntax of
19544         conditional dependencies.
19545         * gnulib-tool: New option --conditional-dependencies.
19546         (func_usage): Document it.
19547         (cond_dependencies): New variable.
19548         (func_get_automake_snippet_conditional,
19549         func_get_automake_snippet_unconditional): New functions, extracted from
19550         func_get_automake_snippet.
19551         (func_get_automake_snippet): Use them.
19552         (sed_first_32_chars): New variable.
19553         (func_module_shellfunc_name): New function.
19554         (func_module_shellvar_name): New function.
19555         (func_module_conditional_name): New function.
19556         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19557         func_cond_module_condition): New functions.
19558         (func_modules_transitive_closure): Add support for conditional
19559         dependencies.
19560         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19561         conditional automake snippet in an automake conditional.
19562         (func_emit_autoconf_snippets): Emit shell functions that contain the
19563         code for conditional modules.
19564         (func_import, func_create_testdir): Update specification.
19565
19566 2011-05-03  Eric Blake  <eblake@redhat.com>
19567
19568         test-getaddrinfo: report error information
19569         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19570
19571 2011-05-03  Jim Meyering  <meyering@redhat.com>
19572
19573         bootstrap: avoid build failure when $GZIP is set
19574         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19575         program name.  If defined at all, it is supposed to list gzip options.
19576         Reported by Alan Curry in http://debbugs.gnu.org/8609
19577
19578 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19579
19580         readme-release: new module with release instructions
19581         * modules/readme-release: New module.
19582         * top/README-release: New file, from coreutils, grep, diffutils.
19583         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19584
19585 2011-05-02  Eric Blake  <eblake@redhat.com>
19586
19587         fflush: also replace fclose when fixing fflush
19588         * modules/fflush (Depends-on): Add fclose.
19589         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19590         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19591         memstreams with no backing fd.
19592         * doc/posix-functions/fclose.texi (fclose): Document the use of
19593         fflush module to fix the bug.
19594         * tests/test-fclose.c (main): Relax test when fclose is used in
19595         isolation.
19596
19597         fclose: add some tests
19598         * modules/fclose-tests: New test module.
19599         * tests/test-fclose.c: New file.
19600         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19601
19602         fclose: reduced dependencies
19603         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19604         simpler lseek.
19605         * lib/fclose.c (rpl_fclose): Likewise.
19606         Reported by Simon Josefsson.
19607
19608         exit: drop remaining clients
19609         * modules/argmatch (Depends-on): Replace exit with stdlib.
19610         * modules/copy-file (Depends-on): Likewise.
19611         * modules/execute (Depends-on): Likewise.
19612         * modules/exitfail (Depends-on): Likewise.
19613         * modules/obstack (Depends-on): Likewise.
19614         * modules/pagealign_alloc (Depends-on): Likewise.
19615         * modules/pipe-filter-gi (Depends-on): Likewise.
19616         * modules/pipe-filter-ii (Depends-on): Likewise.
19617         * modules/savewd (Depends-on): Likewise.
19618         * modules/spawn-pipe (Depends-on): Likewise.
19619         * modules/wait-process (Depends-on): Likewise.
19620         * modules/xsetenv (Depends-on): Likewise.
19621         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19622         * modules/git-merge-changelog (Depends-on): Likewise.
19623         * modules/long-options (Depends-on): Likewise.
19624         * modules/pt_chown (Depends-on): Likewise.
19625         * modules/sysexits (Depends-on): Likewise.
19626
19627         freading: relax license from LGPLv3+ to LGPLv2+
19628         * modules/freading (License): Relax LGPL version.
19629
19630 2011-05-02  Bruno Haible  <bruno@clisp.org>
19631
19632         fchdir: Remove unused dependencies.
19633         * modules/fchdir (Depends-on): Remove include_next.
19634
19635 2011-05-02  Bruno Haible  <bruno@clisp.org>
19636
19637         gnulib-tool: Refactor.
19638         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19639         from func_emit_autoconf_snippets.
19640         (func_emit_autoconf_snippets): Use it.
19641
19642 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19643
19644         * NEWS: Document removal of 'exit'.
19645         * modules/exit: Remove file.
19646
19647 2011-05-01  Bruno Haible  <bruno@clisp.org>
19648
19649         Update DEPENDENCIES.
19650         * DEPENDENCIES (gettext): Recommend the newest release.
19651         Reported by Simon Josefsson.
19652
19653 2011-05-01  Bruno Haible  <bruno@clisp.org>
19654
19655         gnulib-tool: Reduce code duplication.
19656         * gnulib-tool (func_emit_autoconf_snippets): New function.
19657         (func_import, func_create_testdir): Use it.
19658
19659 2011-04-30  Eric Blake  <eblake@redhat.com>
19660
19661         fclose: don't fail on non-seekable input stream
19662         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19663         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19664         since fflush is allowed to fail in that case.
19665
19666 2011-04-30  Bruno Haible  <bruno@clisp.org>
19667
19668         dup3: cleanup
19669         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19670
19671 2011-04-30  Bruno Haible  <bruno@clisp.org>
19672
19673         netdb: Make it work in C++ mode.
19674         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19675         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19676         module.
19677         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19678         gl_MODULE_INDICATOR_FOR_TESTS.
19679         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19680         * modules/netdb-c++-tests: New file.
19681         * tests/test-netdb-c++.cc: New file.
19682
19683 2011-04-30  Bruno Haible  <bruno@clisp.org>
19684
19685         New modules 'vfscanf', 'vscanf'.
19686         * modules/vfscanf: New file.
19687         * modules/vscanf: New file.
19688         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19689         here.
19690         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19691         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19692
19693 2011-04-30  Bruno Haible  <bruno@clisp.org>
19694
19695         passfd: Add comments.
19696         * lib/passfd.c: Add comments about platforms.
19697
19698 2011-04-30  Bruno Haible  <bruno@clisp.org>
19699
19700         sys_uio: Make <sys/uio.h> self-contained.
19701         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19702         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19703
19704 2011-04-30  Bruno Haible  <bruno@clisp.org>
19705
19706         sys_socket: Ensure 'struct iovec' definition.
19707         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19708         <sys/socket.h>.
19709         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19710
19711 2011-04-30  Bruno Haible  <bruno@clisp.org>
19712
19713         sys_uio: Protect definition of 'struct iovec'.
19714         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19715         it as a C struct.
19716
19717 2011-04-30  Bruno Haible  <bruno@clisp.org>
19718
19719         manywarnings: fix indentation
19720         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19721
19722 2011-04-30  Pádraig Brady <P@draigBrady.com>
19723
19724         manywarnings: add -Wno-missing-field-initializers if needed.
19725         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19726         option if it's needed to allow initialization with { 0, }
19727
19728 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19729
19730         announce-gen: cosmetic improvement
19731         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19732
19733 2011-04-29  Jim Meyering  <meyering@redhat.com>
19734
19735         vc-list-files: indent with spaces, not TABs
19736         * build-aux/vc-list-files: Convert leading TABs to spaces,
19737         to match the style of most other files in gnulib.
19738
19739         announce-gen: indent with spaces, not TABs
19740         * build-aux/announce-gen: Convert all TABs to spaces, to match
19741         the style of most other files in gnulib.
19742
19743 2011-04-29  Eric Blake  <eblake@redhat.com>
19744
19745         quotearg: avoid uninitialized variable use
19746         * lib/quotearg.c (quoting_options_from_style): Initialize
19747         remaining fields, and ensure that custom styles are only used via
19748         quoting_options rather than quoting_style.
19749
19750 2011-04-29  Jim Meyering  <meyering@redhat.com>
19751
19752         maint.mk: remove unused VC-tag variable
19753         * top/maint.mk (VC-tag): Remove unused variable.
19754
19755 2011-04-29  Bruno Haible  <bruno@clisp.org>
19756
19757         netdb: fix gai_strerror replacements
19758         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19759         * modules/netdb: Substitute it.
19760
19761 2011-04-29  Jim Meyering  <meyering@redhat.com>
19762
19763         test-getcwd.c: avoid new set-but-not-used warning
19764         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19765         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19766         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19767         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19768
19769         test-hash.c: avoid a new shadowing warning
19770         * tests/test-hash.c (main): Don't shadow "dup".
19771
19772 2011-04-28  Eric Blake  <eblake@redhat.com>
19773
19774         getaddrinfo: fix gai_strerror signature
19775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19776         and work around mingw with UNICODE defined.
19777         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19778         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19779         * modules/netdb (Makefile.am): Substitute it.
19780         * lib/netdb.in.h (gai_strerror): Declare replacement.
19781         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19782         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19783         the fix.
19784
19785         getsockopt: avoid compiler warning
19786         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19787         Reported by Matthias Bolte.
19788
19789         tests: drop unused link dependency
19790         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19791         * modules/dirent-safer-tests (Makefile.am): Likewise.
19792         * modules/fdopendir-tests (Makefile.am): Likewise.
19793         * modules/mkfifoat-tests (Makefile.am): Likewise.
19794         * modules/openat-safer-tests (Makefile.am): Likewise.
19795         * modules/openat-tests (Makefile.am): Likewise.
19796         * modules/readlinkat-tests (Makefile.am): Likewise.
19797         * modules/symlinkat-tests (Makefile.am): Likewise.
19798         * modules/linkat-tests (Makefile.am): Likewise.
19799         (Depends-on): Switch to filenamecat-lgpl.
19800         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19801         LIBINTL.
19802         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19803         * tests/test-linkat.c (main): Don't require xalloc.
19804
19805         hash, mgetgroups: drop xalloc dependency
19806         * lib/hash.c (includes): Adjust includes.
19807         * lib/mgetgroups.c (includes): Likewise.
19808         (xgetgroups): Move...
19809         * lib/xgetgroups.c: ...to new file.
19810         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19811         * modules/xgetgroups: New file, split from...
19812         * modules/mgetgroups: ...here.
19813         (Depends-on): Add xalloc-oversized.
19814         * modules/hash (Depends-on): Likewise.
19815         * modules/hash-tests (Depends-on): Drop xalloc.
19816         (test_hash_LDADD): Drop unused library.
19817         * tests/test-hash.c (main): Break xalloc dependency.
19818         (includes): Drop unused include.
19819
19820         xalloc-oversized: new module
19821         * modules/xalloc-oversized: New module.
19822         * modules/xalloc (Depends-on): Add it.
19823         * lib/xalloc.h (xalloc_oversized): Move...
19824         * lib/xalloc-oversized.h: ...into new file.
19825
19826         utimecmp: drop dependency on xmalloc
19827         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19828         due to memory pressure.
19829         * modules/utimecmp (Depends-on): Drop xalloc.
19830
19831 2011-04-27  Eric Blake  <eblake@redhat.com>
19832
19833         getcwd: fix mingw bugs
19834         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
19835         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
19836         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
19837
19838 2011-04-27  Bruno Haible  <bruno@clisp.org>
19839
19840         mkstemps: Ensure declaration on MacOS X 10.5.
19841         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
19842         * doc/glibc-functions/mkstemps.texi: Document header file problem on
19843         MacOS X.
19844
19845 2011-04-27  Bruno Haible  <bruno@clisp.org>
19846
19847         mkstemp: More documentation.
19848         * doc/posix-functions/mkstemp.texi: Document header file problem on
19849         MacOS X.
19850
19851 2011-04-27  Bruno Haible  <bruno@clisp.org>
19852
19853         mkstemp: Tweak configure message when cross-compiling.
19854         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
19855         result as a guess.
19856
19857 2011-04-27  Bruno Haible  <bruno@clisp.org>
19858
19859         clean-temp: Clarify what it does.
19860         * lib/clean-temp.h: Add more comments.
19861         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
19862         module.
19863         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
19864         * doc/glibc-functions/mkstemps.texi: Likewise.
19865         * doc/glibc-functions/mkostemps.texi: Likewise.
19866
19867 2011-04-27  Eric Blake  <eblake@redhat.com>
19868
19869         fchdir: avoid extra chdir and fix test
19870         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
19871         getcwd-lgpl.
19872         * lib/fchdir.c (get_name): Any absolute name will do; it does not
19873         have to be canonical.
19874         (canonicalize_file_name): Drop unused macro.
19875         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
19876
19877         filenamecat-lgpl: fix licence
19878         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
19879         when it was first created.
19880
19881         linkat, renameat: add missing dependency
19882         * modules/linkat (Depends-on): Require getcwd-lgpl.
19883         * modules/renameat (Depends-on): Likewise.
19884
19885         tests: reduce dependencies
19886         * tests/test-linkat.c (main): Use lighter-weight getcwd.
19887         * tests/test-renameat.c (main): Likewise.
19888         * modules/linkat-tests (Depends-on): Relax dependency.
19889         * modules/renameat-tests (Depends-on): Likewise.
19890         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
19891         dependency explicit.
19892
19893         save-cwd: reduce default dependency
19894         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
19895         * lib/save-cwd.c: Update comments.
19896         * NEWS: Document the semantic change.
19897
19898         getcwd: enhance tests
19899         * tests/test-getcwd-lgpl.c: New file, taken from...
19900         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
19901         repeat long path stress tests from m4 probe.
19902         * modules/getcwd-lgpl-tests: New module.
19903         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
19904         * m4/getcwd-abort-bug.m4: Update comment.
19905         * m4/getcwd-path-max.m4: Likewise.
19906
19907         getcwd-lgpl: new module
19908         * modules/getcwd-lgpl: New module.
19909         * lib/getcwd-lgpl.c: New file.
19910         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19911         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19912         * modules/getcwd (configure.ac): Set C witness.
19913         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
19914
19915         getcwd: tweak comments
19916         * m4/getcwd-abort-bug.m4: Fix comments.
19917         * m4/getcwd-path-max.m4: Likewise.
19918         * m4/getcwd.m4: Likewise.
19919
19920 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19921         and Eric Blake  <eblake@redhat.com>
19922
19923         mkstemp: replace if system version uses wrong permissions
19924         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
19925         read/write mode bits set in file created by mkstemp.
19926         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
19927
19928 2011-04-27  Eric Blake  <eblake@redhat.com>
19929
19930         passfd: avoid compiler warning
19931         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
19932         Reported by Laine Stump.
19933
19934 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
19935
19936         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
19937         required by the NetBSD (and perhaps other 4.4BSD derived) join.
19938
19939 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19940         and Eric Blake  <eblake@redhat.com>
19941
19942         mkstemp: mention clean-temp module
19943         * lib/mkstemp.c: Add comment.
19944         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
19945
19946 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19947
19948         inttypes: also provide default values for 32-bit tests
19949         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
19950         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
19951
19952 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19953
19954         strtoumax: remove dependency on strtoimax
19955         This is like the strtoull change of yesterday.
19956         * modules/strtoumax (Files): Add lib/strtoimax.c.
19957         (Depends-on): Remove strtoimax and add verify.
19958
19959         inttypes-incomplete: new module
19960         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
19961         all but the PRI* and SCN* parts of gl_INTTYPES_H.
19962         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
19963         of gl_INTTYPES_H.
19964         (gl_INTTYPES_H): Rewrite in terms of these new macros.
19965         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
19966         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
19967         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
19968         * modules/strtoumax, modules/xstrtol (Depends-on):
19969         Depend on inttypes-incomplete, not inttypes.
19970         * modules/inttypes-incomplete: New module, containing the contents
19971         of the old modules/inttypes module, except that the Files: section
19972         omits m4/inttypes-pri.m4, and the configure.ac section invokes
19973         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
19974         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
19975         (Depends-on): Depend only on inttypes-incomplete.
19976         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19977
19978         inttypes: omit now-redundant strtoimax and strtoumax work
19979         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19980         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19981
19982         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19983         This supports apps that need pointers to strtoimax and strtoumax,
19984         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19985         nonexistent functions.  See
19986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19987         et seq.
19988         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19989         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19990         a macro.
19991         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19992
19993 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19994
19995         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19996
19997 2011-04-25  Bruno Haible  <bruno@clisp.org>
19998
19999         strtol, strtoul: Mark modules as obsolete.
20000         * modules/strtol (Status, Notice): New sections.
20001         * modules/strtoul (Status, Notice): New sections.
20002
20003 2011-04-25  Bruno Haible  <bruno@clisp.org>
20004
20005         strtod: Remove check for strtod, unless supporting old platforms.
20006         * modules/strtod-obsolete: New file.
20007         * m4/strtod-obsolete.m4: New file.
20008         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20009         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20010         * modules/strtod (Depends-on): Add strtod-obsolete.
20011         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20012
20013 2011-04-25  Bruno Haible  <bruno@clisp.org>
20014
20015         strcase: Make module obsolete.
20016         * modules/strcase (Status, Notice): New sections.
20017
20018 2011-04-25  Bruno Haible  <bruno@clisp.org>
20019
20020         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20021         * modules/dup2-obsolete: New file.
20022         * m4/dup2-obsolete.m4: New file.
20023         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20024         gl_FUNC_DUP2_OBSOLETE is not also defined.
20025         * modules/dup2 (Depends-on): Add dup2-obsolete.
20026         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20027
20028 2011-04-25  Bruno Haible  <bruno@clisp.org>
20029
20030         strnlen: Avoid memchr related link error on old obsolete platforms.
20031         * modules/memchr-obsolete: New file.
20032         * m4/memchr-obsolete.m4: New file.
20033         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20034         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20035         * modules/memchr (Depends-on): Add memchr-obsolete.
20036         * modules/strnlen (Depends-on): Likewise.
20037         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20038
20039 2011-04-25  Jim Meyering  <meyering@redhat.com>
20040
20041         maint.mk: makefile_at_at_check extend and clean up
20042         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20043         in addition to */Makefile.am.
20044         Exempt legitimate uses of @VAR@ notation, e.g.,
20045         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20046         Remove obsolete coreutils-specific comment.
20047         Prompted by discussion here:
20048         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20049
20050 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20051
20052         strtoul: remove dependency on strtol
20053         This is so that 'configure' need not check for strtol merely because
20054         the application needs strtoul.
20055         * modules/strtoul (Files): Add lib/strtol.c.
20056         (Depends-on): Remove strtol.
20057
20058         strtoull: remove dependency on strtoul
20059         This is like the strtoll change.
20060         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20061         (Depends-on): Remove strtoul.
20062
20063         strtoll: remove dependency on strtol
20064         This is so that 'configure' need not check for strtol merely because
20065         the application needs strtoll.
20066         * modules/strtoll (Files): Add lib/strtol.c.
20067         (Depends-on): Remove strtol.
20068
20069 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20070
20071         inttypes: Move some configure check to module 'imaxdiv'.
20072         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20073         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20074         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20075
20076 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20077
20078         inttypes: Move some configure check to module 'imaxabs'.
20079         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20080         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20081         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20082
20083 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20084
20085         inttypes: Remove configure tests that are not needed since 2009-12-31.
20086         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20087         gl_cv_header_working_inttypes_h.
20088
20089 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20090
20091         * modules/strnlen (Depends-on): Remove memchr.
20092         The strnlen implementation doesn't need the memchr module's fixes; see
20093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20094
20095         strtol: remove dependency on wchar
20096         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20097         * modules/strtol (Depends-on): Remove wchar.
20098
20099 2011-04-21  Eric Blake  <eblake@redhat.com>
20100
20101         passfd: fix test regression on Linux
20102         * modules/passfd-tests (configure.ac): Correct socketpair check.
20103
20104         passfd: speed up configure and drop unused code
20105         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20106         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20107         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20108         Instead of probing at configure for unix_scm_rights_bsd44_way,
20109         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20110         check to a struct member probe.
20111         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20112         (sendfd, recvfd): Update preprocessor checks.
20113         * modules/passfd (Files): Reflect rename, and drop unused file.
20114         (Depends-on): Drop unused dependency.
20115
20116         passfd: allow compilation on mingw
20117         * modules/sys_socket (Depends-on): Add sys_uio.
20118         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20119         iovec and a minimal struct msghdr.
20120         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20121         * tests/test-sys_socket.c (main): Enhance test.
20122         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20123         guaranteed to provide what we need.
20124         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20125         * modules/passfd-tests (Depends-on): Add sys_wait.
20126         * tests/test-passfd.c (main): Skip test on mingw, for now.
20127         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20128         partial 'struct msghdr' implementation.
20129
20130         sys_uio: new module
20131         * modules/sys_uio: New module.
20132         * modules/sys_uio-tests: Likewise.
20133         * lib/sys_uio.in.h: New file.
20134         * m4/sys_uio_h.m4: Likewise.
20135         * tests/test-sys_uio.c: Likewise.
20136         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20137         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20138
20139 2011-04-20  Jim Meyering  <meyering@redhat.com>
20140
20141         useless-if-before-free: avoid false-positive
20142         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20143         disjunct so that it too requires a terminating ";".  Without that,
20144         this script would identify as useless one statement from gcc that
20145         was not:
20146           if (aligned_ptr)
20147             free (((void **) aligned_ptr) [-1]);
20148
20149 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20150
20151         doc: update users.txt.
20152         * users.txt: Add barcode.
20153
20154 2011-04-19  Bruno Haible  <bruno@clisp.org>
20155
20156         ioctl: Remove link dependency on native Windows.
20157         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20158         (gl_close_fn, gl_ioctl_fn): New types.
20159         (struct fd_hook): Renamed from struct close_hook. Change type of
20160         private_close_fn field. Add private_ioctl_fn field.
20161         (close_hook_fn): Add parameter for primary close method.
20162         (execute_close_hooks, execute_all_close_hooks): Likewise.
20163         (ioctl_hook_fn): New type.
20164         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20165         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20166         argument.
20167         (unregister_fd_hook): Renamed from unregister_close_hook.
20168         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20169         Don't include <unistd.h>.
20170         (close): Remove undef.
20171         (anchor): Update.
20172         (execute_close_hooks): Add argument for primary close method.
20173         (execute_all_close_hooks): Likewise.
20174         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20175         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20176         argument. Allow each argument to be NULL.
20177         (unregister_fd_hook): Renamed from unregister_close_hook.
20178         * lib/close.c (rpl_close): Pass 'close' function pointer to
20179         execute_all_close_hooks.
20180         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20181         (primary_ioctl): New function.
20182         (ioctl): Don't call ioctlsocket here. Instead, call
20183         execute_all_ioctl_hooks.
20184         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20185         close method.
20186         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20187         (fd_sockets_hook): Renamed from close_sockets_hook.
20188         (gl_sockets_startup, gl_sockets_cleanup): Update.
20189         * modules/fd-hook: Renamed from modules/close-hook. Update.
20190         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20191         * modules/sockets (Depends-on): Likewise.
20192         * modules/ioctl (Depends-on): Add fd-hook.
20193         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20194         GNULIB_SOCKET.
20195
20196 2011-04-19  Bruno Haible  <bruno@clisp.org>
20197
20198         Move the support of O_NONBLOCK in open() to the 'open' module.
20199         * modules/nonblocking (Depends-on): Remove 'open'.
20200         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20201         gl_cv_have_open_O_NONBLOCK.
20202         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20203         O_NONBLOCK support.
20204         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20205
20206 2011-04-17  Bruno Haible  <bruno@clisp.org>
20207
20208         pipe2: Simplify code.
20209         * lib/pipe2.c (pipe2): Reduce code duplication.
20210
20211 2011-04-17  Bruno Haible  <bruno@clisp.org>
20212
20213         nonblocking: Add comment.
20214         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20215
20216 2011-04-17  Bruno Haible  <bruno@clisp.org>
20217
20218         nonblocking: Add tests for sockets.
20219         * tests/test-nonblocking-socket.sh: New file.
20220         * tests/test-nonblocking-socket-main.c: New file.
20221         * tests/test-nonblocking-socket-child.c: New file.
20222         * tests/test-nonblocking-socket.h: New file.
20223         * tests/socket-server.h: New file.
20224         * tests/socket-client.h: New file.
20225         * modules/nonblocking-socket-tests: New file.
20226         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20227
20228 2011-04-17  Bruno Haible  <bruno@clisp.org>
20229
20230         nonblocking: Add tests for pipes.
20231         * tests/test-nonblocking-pipe.sh: New file.
20232         * tests/test-nonblocking-pipe-main.c: New file.
20233         * tests/test-nonblocking-pipe-child.c: New file.
20234         * tests/test-nonblocking-pipe.h: New file.
20235         * tests/test-nonblocking-writer.h: New file.
20236         * tests/test-nonblocking-reader.h: New file.
20237         * tests/test-nonblocking-misc.h: New file.
20238         * modules/nonblocking-pipe-tests: New file.
20239         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20240
20241 2011-04-16  Bruno Haible  <bruno@clisp.org>
20242
20243         gettext: Clarify the needed programmer actions.
20244         * modules/gettext (Notice): New field.
20245         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20246
20247 2011-04-16  Bruno Haible  <bruno@clisp.org>
20248
20249         strchrnul: Tweak last commit.
20250         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20251         bug.
20252         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20253         as in _GL_FUNCDECL_SYS.
20254         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20255         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20256
20257 2011-04-15  Eric Blake  <eblake@redhat.com>
20258
20259         strchrnul: work around cygwin bug
20260         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20261         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20263         * modules/string (Makefile.am): Substitute it.
20264         * lib/string.in.h (strchrnul): Use it.
20265
20266 2011-04-15  Bruno Haible  <bruno@clisp.org>
20267
20268         Don't require lib/stdio-write.c when only module 'stdio' is used.
20269         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20270         invocation.
20271         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20272
20273 2011-04-14  Bruno Haible  <bruno@clisp.org>
20274
20275         Support non-blocking pipe I/O in read() on native Windows.
20276         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20277         (read): New declaration.
20278         * lib/read.c: New file.
20279         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20280         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20281         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20282         vscanf): New declarations.
20283         * lib/stdio-read.c: New file.
20284         * m4/read.m4: New file.
20285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20286         REPLACE_READ.
20287         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20288         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20289         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20290         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20291         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20292         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20293         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20294         * modules/read: New file.
20295         * modules/nonblocking (Files): Add lib/stdio-read.c.
20296         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20297         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20298         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20299         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20300         * modules/pread (Depends-on): Add read.
20301         * modules/safe-read (Depends-on): Likewise.
20302         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20303         gets, scanf, vfscanf, vscanf): Verify signatures.
20304         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20305         problem with non-blocking pipes.
20306         * doc/posix-functions/fgetc.texi: Likewise.
20307         * doc/posix-functions/fgets.texi: Likewise.
20308         * doc/posix-functions/fread.texi: Likewise.
20309         * doc/posix-functions/fscanf.texi: Likewise.
20310         * doc/posix-functions/getc.texi: Likewise.
20311         * doc/posix-functions/getchar.texi: Likewise.
20312         * doc/posix-functions/gets.texi: Likewise.
20313         * doc/posix-functions/scanf.texi: Likewise.
20314         * doc/posix-functions/vfscanf.texi: Likewise.
20315         * doc/posix-functions/vscanf.texi: Likewise.
20316
20317 2011-04-14  Bruno Haible  <bruno@clisp.org>
20318
20319         Support non-blocking pipe I/O in write() on native Windows.
20320         * lib/write.c (rpl_write): Split a write request that failed merely
20321         because the byte count was larger than the pipe buffer's size.
20322         * doc/posix-functions/write.texi: Mention the problem with large byte
20323         counts.
20324
20325 2011-04-14  Bruno Haible  <bruno@clisp.org>
20326
20327         wchar: Ensure that wchar_t gets defined on uClibc.
20328         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20329         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20330
20331 2011-04-13  Bruno Haible  <bruno@clisp.org>
20332
20333         safe-write, full-read: Avoid unnecessary compilation units.
20334         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20335         (Depends-on): Remove safe-read. Add ssize_t.
20336         * modules/full-read (Files): Add lib/full-write.c.
20337         (Depends-on): Add full-write.
20338
20339 2011-04-13  Bruno Haible  <bruno@clisp.org>
20340
20341         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20342         * modules/pwrite (Depends-on): Add 'write'.
20343
20344 2011-04-13  Bruno Haible  <bruno@clisp.org>
20345
20346         Support non-blocking pipe I/O in write() on native Windows.
20347         * lib/unistd.in.h (write): Enable replacement also if
20348         GNULIB_UNISTD_H_NONBLOCKING is 1.
20349         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20350         (rpl_write): When failing to write on a non-blocking pipe, change
20351         errno from ENOSPC to EAGAIN.
20352         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20353         putchar, puts, vfprintf, vprintf): Enable replacement also if
20354         GNULIB_STDIO_H_NONBLOCKING is 1.
20355         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20356         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20357         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20358         CALL_WITH_SIGPIPE_EMULATION.
20359         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20360         * m4/nonblocking.m4: New file.
20361         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20362         for non-blocking I/O support.
20363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20364         GNULIB_UNISTD_H_NONBLOCKING.
20365         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20366         required for non-blocking I/O support.
20367         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20368         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20369         lib/stdio-write.c, m4/asm-underscore.m4.
20370         (Depends-on): Add stdio, unistd.
20371         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20372         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20373         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20374         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20375         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20376         problem with non-blocking pipes.
20377         * doc/posix-functions/fputc.texi: Likewise.
20378         * doc/posix-functions/fputs.texi: Likewise.
20379         * doc/posix-functions/fwrite.texi: Likewise.
20380         * doc/posix-functions/printf.texi: Likewise.
20381         * doc/posix-functions/putc.texi: Likewise.
20382         * doc/posix-functions/putchar.texi: Likewise.
20383         * doc/posix-functions/puts.texi: Likewise.
20384         * doc/posix-functions/vfprintf.texi: Likewise.
20385         * doc/posix-functions/vprintf.texi: Likewise.
20386         * doc/posix-functions/write.texi: Likewise.
20387
20388 2011-04-10  Jim Meyering  <meyering@redhat.com>
20389
20390         maint.mk: prohibit doubled words
20391         Detect them also when they're separated by a newline.
20392         There are 3 ways to customize it:
20393           - disable the test on a per file basis, as usual with rules using
20394             $(VC_LIST_EXCEPT)
20395           - replace the default doubled-word-selecting regexp (affects all files)
20396           - ignore a particular file-vs-doubled-word match
20397         I nearly used that last one to ignore the "is is" match in
20398         coreutils' NEWS file, since the text was "ls -is is ..."
20399         To do that, I would have added this line to cfg.mk:
20400           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20401         but it would have ignored any "is is" match in NEWS.
20402         Low probability, but still...
20403         Instead, I changed the text, slightly:
20404           -  ls -is is now consistent with ls -lis in ignoring values returned
20405           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20406         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20407         (prohibit_doubled_word_): Define.
20408         (sc_prohibit_doubled_word): New rule.
20409         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20410
20411 2011-04-10  Jim Meyering  <meyering@redhat.com>
20412
20413         maint: fix doubled-word typo in comment
20414         * m4/gethostname.m4: s/is is/it is/
20415         * m4/getdomainname.m4: Likewise.
20416
20417 2011-04-10  Jim Meyering  <meyering@redhat.com>
20418
20419         maint: remove doubled word: s/it it/it/
20420         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20421
20422 2011-04-10  Jim Meyering  <meyering@redhat.com>
20423
20424         maint.mk: remove useless semicolon and backslash
20425         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20426         semicolon and backslash.
20427
20428 2011-04-10  Bruno Haible  <bruno@clisp.org>
20429
20430         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20431         * modules/stdint-tests (Depends-on): Add wchar.
20432
20433 2011-04-10  Jim Meyering  <meyering@redhat.com>
20434
20435         maint: remove doubled words in comments, e.g., s/a a/a/
20436         * lib/strptime.c (day_of_the_week): s/the the/the/
20437         * tests/test-chown.h (test_chown): s/a a/a/
20438
20439         test-chown.h: correct a cast
20440         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20441         when the destination is a stat.st_gid.
20442
20443 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20444
20445         getaddrinfo: Fix test for sa_len member.
20446         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20447         include <sys/types.h> before <sys/socket.h>.
20448
20449 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20450
20451         maint: change "can not" to "cannot"
20452         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20453         boundaries.
20454
20455 2011-04-09  Jim Meyering  <meyering@redhat.com>
20456
20457         maint: change "a a" to "a"
20458         * tests/test-lchown.h (test_lchown): s/a a/a/
20459
20460         maint.mk: prohibit \<the the\>
20461         * top/maint.mk (sc_prohibit_the_the): New rule.
20462
20463         maint: fix "the the" in comment
20464         * lib/count-one-bits.h: s/the the/the/
20465
20466         maint: change "can not" to "cannot"
20467         But do not change the occurrences in maintain.texi or in
20468         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20469         * doc/gnulib-tool.texi: s/can not/cannot/
20470         * doc/posix-functions/accept.texi (accept): Likewise.
20471         * doc/posix-functions/socket.texi (socket): Likewise.
20472         * lib/mbrtowc.c: Likewise.
20473
20474         maint.mk: prohibit use of "can not"
20475         * top/maint.mk (sc_prohibit_can_not): New rule.
20476         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20477
20478 2011-04-09  Bruno Haible  <bruno@clisp.org>
20479
20480         careadlinkat: Guard against misuse of careadlinkatcwd.
20481         * lib/careadlinkat.c: Include <stdlib.h>.
20482         (careadlinkatcwd): Check that the fd argument is as expected.
20483
20484 2011-04-09  Bruno Haible  <bruno@clisp.org>
20485
20486         careadlinkat: Use common coding style.
20487         * lib/careadlinkat.c: Move gnulib includes after system includes.
20488
20489 2011-04-09  Bruno Haible  <bruno@clisp.org>
20490
20491         careadlinkat: Clarify specification.
20492         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20493         (careadlinkatcwd): Add comment.
20494         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20495
20496 2011-04-09  Bruno Haible  <bruno@clisp.org>
20497
20498         areadlinkat: Avoid link error on many platforms.
20499         * modules/areadlinkat (Depends-on): Add areadlink.
20500
20501 2011-04-09  Bruno Haible  <bruno@clisp.org>
20502
20503         allocator, careadlinkat: Fix double-inclusion guard.
20504         * lib/allocator.h: Fix double-inclusion guard.
20505         * lib/careadlinkat.h: Likewise.
20506
20507 2011-04-09  Bruno Haible  <bruno@clisp.org>
20508
20509         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20510         * lib/relocwrapper.c: Update dependencies hierarchy.
20511         * build-aux/install-reloc: Update list of files to be compiled.
20512         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20513         lib/allocator.[hc].
20514
20515 2011-04-08  Eric Blake  <eblake@redhat.com>
20516
20517         strftime: silence gnulib-tool warning
20518         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20519
20520 2011-04-08  Bruno Haible  <bruno@clisp.org>
20521
20522         verify: Fix syntax error with GCC 4.6 in C++ mode.
20523         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20524         (HAVE_STATIC_ASSERT): New macro.
20525         (verify_true, verify): Use 'static_assert' if it is supported and
20526         '_Static_assert' is not supported.
20527
20528 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20529
20530         allocator: New module.
20531         * modules/allocator, lib/allocator.c: New files.
20532         * lib/allocator.h (stdlib_allocator): New decl.
20533         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20534         Remove.  Do not include <stdlib.h>.
20535         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20536         * modules/careadlinkat (Files): Remove lib/allocator.h.
20537         (Depends-on): Add allocator.
20538
20539         stdlib: let modules use system malloc, realloc
20540         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20541         if !_GL_USE_STDLIB_ALLOC.
20542         (malloc, realloc): Limit this change to a smaller scope.
20543
20544         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20545         (malloc, realloc): Don't #undef; no longer needed.
20546         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20547         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20548         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20549         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20550         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20551         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20552         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20553         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20554
20555         careadlinkat: rename members to avoid problem
20556         * lib/allocator.h (struct allocator): Rename members from
20557         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20558         and realloc are #define'd.  Reported by Eric Blake in
20559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20560         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20561
20562 2011-04-08  Eric Blake  <eblake@redhat.com>
20563
20564         nonblocking: reduce dependency
20565         * tests/test-nonblocking.c: Only test sockets when in use.
20566         * modules/nonblocking-tests (Depends-on): Drop socket.
20567         (Makefile.am): Link even if sockets are not present.
20568         * modules/pipe2-tests (Makefile.am): Likewise.
20569         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20570
20571         pipe2: fix O_NONBLOCK support on mingw
20572         * modules/pipe2 (Depends-on): Add nonblocking.
20573         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20574         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20575         * tests/test-nonblocking.c (main): Likewise.
20576         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20577
20578         fcntl-h: fix O_ACCMODE on cygwin
20579         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20580         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20581
20582         pipe-filter: drop O_NONBLOCK workarounds
20583         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20584         * modules/pipe-filter-ii (Depends-on): Likewise.
20585         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20586
20587         nonblocking: provide O_NONBLOCK for mingw
20588         * modules/nonblocking (Depends-on): Add open.
20589         (configure.ac): Set new witness macro.
20590         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20591         * modules/fcntl-h (Makefile.am): Substitute it.
20592         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20593         nonblocking module is in use.
20594         * lib/nonblocking.c: Adjust portability test.
20595         * lib/open.c (open): Don't let native open see gnulib flag.
20596         * tests/test-fcntl-h.c (main): Enhance test.
20597         * tests/test-open.h (test_open): Likewise.
20598         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20599
20600         careadlinkat: fix compilation error on mingw
20601         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20602         within struct allocator.
20603
20604 2011-04-06  Eric Blake  <eblake@redhat.com>
20605
20606         binary-io: relicense under LGPLv2+
20607         * modules/binary-io (License): Relax to LGPLv2+.
20608         Requested for libvirt, and required by pipe2.
20609
20610 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20611
20612         verify: use _Static_assert if available
20613         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20614         (verify_true, verify): Use it if available.  This generates better
20615         diagnostics with GCC 4.6.0 and later.
20616
20617 2011-04-05  Bruno Haible  <bruno@clisp.org>
20618
20619         Remove leftover generated .h files after config.status changed.
20620
20621         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20622         GL_GENERATE_ALLOCA_H.
20623         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20624         GL_GENERATE_ALLOCA_H evaluates to false.
20625
20626         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20627         GL_GENERATE_ARGZ_H.
20628         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20629         evaluates to false.
20630
20631         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20632         GL_GENERATE_BYTESWAP_H.
20633         * modules/byteswap (Makefile.am): Remove byteswap.h if
20634         GL_GENERATE_BYTESWAP_H evaluates to false.
20635
20636         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20637         GL_GENERATE_ERRNO_H.
20638         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20639         evaluates to false.
20640
20641         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20642         GL_GENERATE_FLOAT_H.
20643         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20644         evaluates to false.
20645
20646         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20647         GL_GENERATE_FNMATCH_H.
20648         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20649         GL_GENERATE_FNMATCH_H evaluates to false.
20650
20651         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20652         GL_GENERATE_GLOB_H.
20653         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20654         evaluates to false.
20655
20656         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20657         automake conditional GL_GENERATE_ICONV_H.
20658         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20659         evaluates to false.
20660
20661         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20662         GL_GENERATE_NETINET_IN_H.
20663         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20664         GL_GENERATE_NETINET_IN_H evaluates to false.
20665
20666         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20667         conditional GL_GENERATE_PTHREAD_H.
20668         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20669         * modules/pthread (Makefile.am): Remove pthread.h if
20670         GL_GENERATE_PTHREAD_H evaluates to false.
20671
20672         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20673         GL_GENERATE_SCHED_H.
20674         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20675         evaluates to false.
20676
20677         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20678         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20679         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20680         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20681
20682         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20683         GL_GENERATE_STDARG_H.
20684         * modules/stdarg (Makefile.am): Remove stdarg.h if
20685         GL_GENERATE_STDARG_H evaluates to false.
20686
20687         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20688         GL_GENERATE_STDBOOL_H.
20689         * modules/stdbool (Makefile.am): Remove stdbool.h if
20690         GL_GENERATE_STDBOOL_H evaluates to false.
20691
20692         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20693         conditional GL_GENERATE_STDDEF_H.
20694         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20695         * modules/stddef (Makefile.am): Remove stddef.h if
20696         GL_GENERATE_STDDEF_H evaluates to false.
20697
20698         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20699         GL_GENERATE_STDINT_H.
20700         * modules/stdint (Makefile.am): Remove stdint.h if
20701         GL_GENERATE_STDINT_H evaluates to false.
20702
20703         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20704         GL_GENERATE_SYSEXITS_H.
20705         * modules/sysexits (Makefile.am): Remove sysexits.h if
20706         GL_GENERATE_SYSEXITS_H evaluates to false.
20707
20708         Reported by Karl Berry and Ralf Wildenhues.
20709
20710 2011-04-05  Bruno Haible  <bruno@clisp.org>
20711
20712         Ensure to rebuild generated .h files when config.status has changed.
20713         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20714         config.status.
20715         * modules/ctype (Makefile.am): Likewise.
20716         * modules/dirent (Makefile.am): Likewise.
20717         * modules/errno (Makefile.am): Likewise.
20718         * modules/fcntl-h (Makefile.am): Likewise.
20719         * modules/float (Makefile.am): Likewise.
20720         * modules/getopt-posix (Makefile.am): Likewise.
20721         * modules/glob (Makefile.am): Likewise.
20722         * modules/iconv-h (Makefile.am): Likewise.
20723         * modules/inttypes (Makefile.am): Likewise.
20724         * modules/langinfo (Makefile.am): Likewise.
20725         * modules/locale (Makefile.am): Likewise.
20726         * modules/math (Makefile.am): Likewise.
20727         * modules/netdb (Makefile.am): Likewise.
20728         * modules/netinet_in (Makefile.am): Likewise.
20729         * modules/poll-h (Makefile.am): Likewise.
20730         * modules/pthread (Makefile.am): Likewise.
20731         * modules/pty (Makefile.am): Likewise.
20732         * modules/sched (Makefile.am): Likewise.
20733         * modules/search (Makefile.am): Likewise.
20734         * modules/selinux-h (Makefile.am): Likewise.
20735         * modules/signal (Makefile.am): Likewise.
20736         * modules/spawn (Makefile.am): Likewise.
20737         * modules/stdarg (Makefile.am): Likewise.
20738         * modules/stdbool (Makefile.am): Likewise.
20739         * modules/stddef (Makefile.am): Likewise.
20740         * modules/stdint (Makefile.am): Likewise.
20741         * modules/stdio (Makefile.am): Likewise.
20742         * modules/stdlib (Makefile.am): Likewise.
20743         * modules/string (Makefile.am): Likewise.
20744         * modules/strings (Makefile.am): Likewise.
20745         * modules/sys_file (Makefile.am): Likewise.
20746         * modules/sys_ioctl (Makefile.am): Likewise.
20747         * modules/sys_select (Makefile.am): Likewise.
20748         * modules/sys_socket (Makefile.am): Likewise.
20749         * modules/sys_stat (Makefile.am): Likewise.
20750         * modules/sys_time (Makefile.am): Likewise.
20751         * modules/sys_times (Makefile.am): Likewise.
20752         * modules/sys_utsname (Makefile.am): Likewise.
20753         * modules/sys_wait (Makefile.am): Likewise.
20754         * modules/sysexits (Makefile.am): Likewise.
20755         * modules/termios (Makefile.am): Likewise.
20756         * modules/time (Makefile.am): Likewise.
20757         * modules/unistd (Makefile.am): Likewise.
20758         * modules/wchar (Makefile.am): Likewise.
20759         * modules/wctype-h (Makefile.am): Likewise.
20760         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20761
20762 2011-04-05  Bruno Haible  <bruno@clisp.org>
20763
20764         pipe2: Relicense under LGPLv2+.
20765         * modules/pipe2 (License): Change to LGPLv2+.
20766         Requested by Eric Blake, for libvirt.
20767
20768 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20769
20770         bootstrap: compute gnulib_extra_files after updating build_aux
20771         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20772         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20773
20774 2011-04-05  Eric Blake  <eblake@redhat.com>
20775
20776         bootstrap: preserve git whitelist item sorting
20777         * build-aux/bootstrap (sort_patterns): New function.
20778         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20779
20780 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20781
20782         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20783         sc_space_tab check.
20784
20785 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20786
20787         areadlink, areadlinkat: rewrite in terms of careadlinkat
20788         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20789         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20790         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20791         (malloc, realloc): Remove #undefs.
20792         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20793         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20794         readlink, ssize_t, stdint, unistd.
20795         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20796         areadlink, stdint.
20797
20798         careadlinkat: new module
20799         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20800         * modules/careadlinkat: New files, written by me with
20801         a review and feedback from Ben Pfaff in
20802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20803
20804 2011-04-01  Bruno Haible  <bruno@clisp.org>
20805
20806         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20807         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20808         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20809         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20810         Reported by Bruce Korb <bruce.korb@gmail.com>.
20811
20812 2011-04-01  Bruno Haible  <bruno@clisp.org>
20813
20814         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20815         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20816         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20817         * modules/wcpcpy (Depends-on): Add extensions.
20818         * modules/wcpncpy (Depends-on): Likewise.
20819         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20820         systems.
20821         * doc/posix-functions/wcpncpy.texi: Likewise.
20822         * doc/posix-functions/wcwidth.texi: Likewise.
20823
20824 2011-03-31  Eric Blake  <eblake@redhat.com>
20825
20826         nonblocking: fix mingw test failures
20827         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20828         non-blocking flag on regular file.
20829         (get_nonblocking_flag): Set errno on invalid fd.
20830         * tests/test-nonblocking.c (main): Avoid test failure on
20831         directories if fchdir is not active.
20832         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
20833
20834 2011-03-31  Bruno Haible  <bruno@clisp.org>
20835
20836         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
20837         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
20838         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
20839         Reported by Simon Josefsson <simon@josefsson.org>.
20840
20841 2011-03-31  Bruno Haible  <bruno@clisp.org>
20842         and Eric Blake  <eblake@redhat.com>
20843
20844         nonblocking: new module
20845         * modules/nonblocking: New module.
20846         * modules/nonblocking-tests: Likewise.
20847         * lib/nonblocking.h: New file.
20848         * lib/nonblocking.c: Likewise.
20849         * tests/test-nonblocking.c: New test.
20850         * lib/ioctl.c (ioctl) [mingw]: Update comment.
20851
20852 2011-03-30  Bruno Haible  <bruno@clisp.org>
20853
20854         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
20855         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
20856         instead of 'printf' format for GCC >= 4.4.
20857         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
20858         (fprintf, printf, vfprintf, vprintf): Declare with
20859         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
20860         the system's vfprintf() function.
20861         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
20862
20863 2011-03-30  Eric Blake  <eblake@redhat.com>
20864
20865         passfd: fix scoping bug
20866         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
20867         before sendmsg/recvmsg.
20868
20869         passfd: standardize coding conventions
20870         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
20871         can be learned at compile time.
20872         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
20873         ifdefs.
20874         (sendfd, recvfd): Follow gnulib code conventions.
20875
20876         passfd: fix incorrect sendmsg arguments
20877         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
20878         incorrect msg_controllen value.
20879         * modules/passfd-tests (Depends-on): Check for alarm.
20880         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
20881         Reported by Bastien ROUCARIES.
20882
20883 2011-03-30  Bruno Haible  <bruno@clisp.org>
20884
20885         c-strcasestr: Relicense under LGPLv2+.
20886         * modules/c-strcasestr (License): Change to LGPLv2+.
20887         Requested by Eric Blake, for libvirt.
20888
20889 2011-03-30  Simon Josefsson  <simon@josefsson.org>
20890
20891         * users.txt: Add libidn2.  Fix libtasn1 link.
20892
20893 2011-03-30  Jim Meyering  <meyering@redhat.com>
20894
20895         tests: readlink* ("",... fails with EINVAL on newer kernels
20896         readlink and readlinkat have typically failed with ENOENT for
20897         the invalid, empty file name,  "".  However, with the advent
20898         of linux-2.6.39, they fail with EINVAL.
20899         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
20900         when operating on the empty file name.
20901         * tests/test-readlink.h (test_readlink): Likewise.
20902
20903 2011-03-29  Bruno Haible  <bruno@clisp.org>
20904
20905         Relicense some modules under LGPLv2+, for libidn2.
20906         * modules/array-mergesort (License): Change to LGPLv2+.
20907         * modules/c-strcaseeq (License): Likewise.
20908         * modules/striconveh (License): Likewise.
20909         * modules/striconveha (License): Likewise.
20910         * modules/uniconv/base (License): Likewise.
20911         * modules/uniconv/u8-conv-from-enc (License): Likewise.
20912         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
20913         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
20914         * modules/unictype/base (License): Likewise.
20915         * modules/unictype/bidiclass-of (License): Likewise.
20916         * modules/unictype/category-M (License): Likewise.
20917         * modules/unictype/category-none (License): Likewise.
20918         * modules/unictype/category-of (License): Likewise.
20919         * modules/unictype/category-test (License): Likewise.
20920         * modules/unictype/category-test-withtable (License): Likewise.
20921         * modules/unictype/combining-class (License): Likewise.
20922         * modules/unictype/joiningtype-of (License): Likewise.
20923         * modules/unictype/scripts (License): Likewise.
20924         * modules/uninorm/base (License): Likewise.
20925         * modules/uninorm/canonical-decomposition (License): Likewise.
20926         * modules/uninorm/composition (License): Likewise.
20927         * modules/uninorm/decompose-internal (License): Likewise.
20928         * modules/uninorm/decomposition-table (License): Likewise.
20929         * modules/uninorm/nfc (License): Likewise.
20930         * modules/uninorm/nfd (License): Likewise.
20931         * modules/uninorm/u32-normalize (License): Likewise.
20932         * modules/unistr/base (License): Likewise.
20933         * modules/unistr/u32-cpy (License): Likewise.
20934         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
20935         * modules/unistr/u32-to-u8 (License): Likewise.
20936         * modules/unistr/u32-uctomb (License): Likewise.
20937         * modules/unistr/u8-check (License): Likewise.
20938         * modules/unistr/u8-mblen (License): Likewise.
20939         * modules/unistr/u8-mbtouc (License): Likewise.
20940         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
20941         * modules/unistr/u8-mbtoucr (License): Likewise.
20942         * modules/unistr/u8-prev (License): Likewise.
20943         * modules/unistr/u8-strlen (License): Likewise.
20944         * modules/unistr/u8-to-u32 (License): Likewise.
20945         * modules/unistr/u8-uctomb (License): Likewise.
20946         * modules/unitypes (License): Likewise.
20947         Requested by Simon Josefsson.
20948
20949 2011-03-29  Simon Josefsson  <simon@josefsson.org>
20950
20951         lib-symbol-visibility: Add a notice.
20952         * modules/lib-symbol-visibility (Notice): New field.
20953
20954 2011-03-29  Bruno Haible  <bruno@clisp.org>
20955
20956         getaddrinfo: Doc fix.
20957         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
20958         section "fixed in Gnulib".
20959
20960 2011-03-28  Simon Josefsson  <simon@josefsson.org>
20961
20962         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
20963         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
20964
20965 2011-03-26  Bruno Haible  <bruno@clisp.org>
20966
20967         unictype/property-byname: Reduce the number of load-time relocations.
20968         * lib/unictype/pr_byname.c: Include <stdlib.h>.
20969         (UC_PROPERTY_INDEX_*): New enumeration values.
20970         (uc_property_byname): Convert an index from the lookup table to an
20971         uc_property_t.
20972         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
20973         values.
20974
20975 2011-03-26  Bruno Haible  <bruno@clisp.org>
20976
20977         unictype/property-byname: Allow omitted word separators and aliases.
20978         * lib/unictype/pr_byname.gperf: Add property names without word
20979         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20980         for 'space'.
20981
20982 2011-03-26  Bruno Haible  <bruno@clisp.org>
20983
20984         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20985         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20986         also hyphens to space.
20987         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20988         without spaces.
20989         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20990
20991 2011-03-26  Bruno Haible  <bruno@clisp.org>
20992
20993         unictype/joiningtype-byname: Recognize long names as well.
20994         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20995         a long name.
20996         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20997         unictype/joiningtype_byname.h.
20998         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20999         * lib/unictype/joiningtype_byname.gperf: New file.
21000         * modules/unictype/joiningtype-byname (Files): Add
21001         lib/unictype/joiningtype_byname.gperf.
21002         (Depends-on): Add gperf.
21003         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21004         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21005         long names.
21006
21007         Tests for module 'unictype/joiningtype-longname'.
21008         * modules/unictype/joiningtype-longname-tests: New file.
21009         * tests/unictype/test-joiningtype_longname.c: New file.
21010
21011         New module 'unictype/joiningtype-longname'.
21012         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21013         * lib/unictype/joiningtype_longname.c: New file.
21014         * modules/unictype/joiningtype-longname: New file.
21015         * modules/unictype/joiningtype-all (Depends-on): Add
21016         unictype/joiningtype-longname.
21017
21018 2011-03-26  Bruno Haible  <bruno@clisp.org>
21019
21020         unictype/bidiclass-byname: Recognize long names as well.
21021         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21022         name.
21023         * lib/unictype/bidi_byname.c: Include <string.h>,
21024         unictype/bidi_byname.h.
21025         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21026         * lib/unictype/bidi_byname.gperf: New file.
21027         * modules/unictype/bidiclass-byname (Files): Add
21028         lib/unictype/bidi_byname.gperf.
21029         (Depends-on): Add gperf.
21030         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21031         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21032         long names.
21033
21034         Tests for module 'unictype/bidiclass-longname'.
21035         * modules/unictype/bidiclass-longname-tests: New file.
21036         * tests/unictype/test-bidi_longname.c: New file.
21037
21038         New module 'unictype/bidiclass-longname'.
21039         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21040         * lib/unictype/bidi_longname.c: New file.
21041         * modules/unictype/bidiclass-longname: New file.
21042         * modules/unictype/bidiclass-all (Depends-on): Add
21043         unictype/bidiclass-longname.
21044
21045 2011-03-26  Bruno Haible  <bruno@clisp.org>
21046
21047         unictype/bidi*: Rename modules.
21048         * modules/unictype/bidiclass-all: Renamed from
21049         modules/unictype/bidicategory-all.
21050         * modules/unictype/bidiclass-name: Renamed from
21051         modules/unictype/bidiclass-name.
21052         (Description): Update.
21053         * modules/unictype/bidiclass-name-tests: Renamed from
21054         modules/unictype/bidicategory-name-tests.
21055         * modules/unictype/bidiclass-byname: Renamed from
21056         modules/unictype/bidicategory-byname.
21057         (Description): Update.
21058         * modules/unictype/bidiclass-byname-tests: Renamed from
21059         modules/unictype/bidicategory-byname-tests.
21060         * modules/unictype/bidiclass-of: Renamed from
21061         modules/unictype/bidicategory-of.
21062         (Description): Update.
21063         * modules/unictype/bidiclass-of-tests: Renamed from
21064         modules/unictype/bidicategory-of-tests.
21065         * modules/unictype/bidiclass-test: Renamed from
21066         modules/unictype/bidicategory-test.
21067         (Description): Update.
21068         * modules/unictype/bidiclass-test-tests: Renamed from
21069         modules/unictype/bidicategory-test-tests.
21070         * modules/unictype/bidicategory-all: New file, a simple redirection.
21071         * modules/unictype/bidicategory-name: Likewise.
21072         * modules/unictype/bidicategory-byname: Likewise.
21073         * modules/unictype/bidicategory-of: Likewise.
21074         * modules/unictype/bidicategory-test: Likewise.
21075         * modules/unictype/property-bidi-* (Dependencies): Update.
21076         * lib/unictype/bidi_*.c: Update comment.
21077
21078 2011-03-26  Bruno Haible  <bruno@clisp.org>
21079
21080         unictype/bidi*: Rename functions, part 2.
21081         * modules/unictype/bidicategory-name (configure.ac): Update required
21082         libunistring version.
21083         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21084
21085 2011-03-25  Bruno Haible  <bruno@clisp.org>
21086
21087         New module 'unictype/combining-class-all'.
21088         * modules/unictype/combining-class-all: New file.
21089
21090         Tests for module 'unictype/combining-class-byname'.
21091         * modules/unictype/combining-class-byname-tests: New file.
21092         * tests/unictype/test-combiningclass_byname.c: New file.
21093
21094         New module 'unictype/combining-class-byname'.
21095         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21096         * lib/unictype/combiningclass_byname.c: New file.
21097         * lib/unictype/combiningclass_byname.gperf: New file.
21098         * modules/unictype/combining-class-byname: New file.
21099
21100         Tests for module 'unictype/combining-class-longname'.
21101         * modules/unictype/combining-class-longname-tests: New file.
21102         * tests/unictype/test-combiningclass_longname.c: New file.
21103
21104         New module 'unictype/combining-class-longname'.
21105         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21106         * lib/unictype/combiningclass_longname.c: New file.
21107         * modules/unictype/combining-class-longname: New file.
21108
21109         Tests for module 'unictype/combining-class-name'.
21110         * modules/unictype/combining-class-name-tests: New file.
21111         * tests/unictype/test-combiningclass_name.c: New file.
21112
21113         New module 'unictype/combining-class-name'.
21114         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21115         * lib/unictype/combiningclass_name.c: New file.
21116         * modules/unictype/combining-class-name: New file.
21117
21118 2011-03-25  Bruno Haible  <bruno@clisp.org>
21119
21120         unictype/combining-class: Rename source files.
21121         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21122         of unictype/combining.h.
21123         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21124         Update.
21125         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21126         * modules/unictype/combining-class (Description): Fix.
21127         (Files, Makefile.am): Update.
21128         * tests/unictype/test-combiningclass.c: Renamed from
21129         tests/unictype/test-combining.c.
21130         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21131
21132 2011-03-25  Bruno Haible  <bruno@clisp.org>
21133
21134         unictype: Update list of canonical combining classes.
21135         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21136
21137 2011-03-25  Bruno Haible  <bruno@clisp.org>
21138
21139         unictype/category-byname: Recognize long names as well.
21140         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21141         a long name.
21142         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21143         unictype/categ_byname.h.
21144         (UC_CATEGORY_INDEX_*): New enumeration values.
21145         (uc_general_category_byname): Use uc_general_category_lookup and
21146         convert from index to value.
21147         * lib/unictype/categ_byname.gperf: New file.
21148         * modules/unictype/category-byname (Files): Add
21149         lib/unictype/categ_byname.gperf.
21150         (Depends-on): Add gperf.
21151         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21152         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21153         long names.
21154
21155         Tests for module 'unictype/category-longname'.
21156         * modules/unictype/category-longname-tests: New file.
21157         * tests/unictype/test-categ_longname.c: New file.
21158
21159         New module 'unictype/category-longname'.
21160         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21161         * lib/unictype/categ_longname.c: New file.
21162         * modules/unictype/category-longname: New file.
21163         * modules/unictype/category-all (Depends-on): Add it.
21164
21165 2011-03-25  Bruno Haible  <bruno@clisp.org>
21166
21167         Tests for module 'unictype/category-LC'.
21168         * modules/unictype/category-LC-tests: New file.
21169         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21170
21171         New module 'unictype/category-LC'.
21172         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21173         (UC_CATEGORY_LC): New declaration.
21174         (UC_CASED_LETTER): New macro.
21175         * lib/gen-uni-tables.c (is_category_LC): New function.
21176         (output_categories): Also handle category LC.
21177         (UC_CATEGORY_MASK_LC): New enumeration value.
21178         (general_category_byname): Also handle category LC.
21179         * lib/unictype/categ_LC.c: New file.
21180         * lib/unictype/categ_LC.h: New file, automatically generated.
21181         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21182         category LC.
21183         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21184         * modules/unictype/category-LC: New file.
21185         * modules/unictype/category-byname (Depends-on): Add
21186         unictype/category-LC.
21187         * modules/unictype/category-all (Depends-on): Likewise.
21188
21189 2011-03-25  Eric Blake  <eblake@redhat.com>
21190
21191         xmalloc: revert yesterday's regression
21192         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21193         realloc's underlying behavior (allowing allocation of zero-size
21194         objects, especially if malloc-gnu is also in use).
21195
21196 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21197
21198         maint.mk: add missing version to VC-tag
21199         * top/maint.mk: git tag was missing actual tag name; add it.
21200
21201         valgrind: do leak checking, and exit with code 1 on error (not 0)
21202         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21203         to VALGRIND.
21204
21205 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21206
21207         posix-modules: say what it does.
21208         * posix-modules: Add a line to the --help output saying what it does.
21209
21210 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21211
21212         xmalloc: Do not leak if underlying realloc is C99 compatible.
21213         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21214         This avoids a leak on C99-based systems.  See
21215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21216
21217 2011-03-24  Eric Blake  <eblake@redhat.com>
21218
21219         realloc: document portability problem
21220         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21221         passing 0 size to realloc.
21222
21223 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21224
21225         doc: update users.txt
21226         * users.txt: Add cvsps, tmpwatch
21227
21228 2011-03-23  Matt Rice  <ratmice@gmail.com>
21229
21230         doc: update users.txt
21231         * users.txt: Add gdb.
21232
21233 2011-03-23  Jim Meyering  <meyering@redhat.com>
21234
21235         doc: update users.txt
21236         Looking through matches up to the following URL (there are still
21237         several more pages), I found several projects that use gnulib:
21238         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21239         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21240         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21241
21242 2011-03-22  Bruno Haible  <bruno@clisp.org>
21243
21244         unictype/bidi*: Rename functions.
21245         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21246         uc_bidi_class, uc_is_bidi_class): New declarations.
21247         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21248         uc_bidi_category_byname.
21249         (uc_bidi_category_byname): New function.
21250         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21251         u_bidi_category_name.
21252         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21253         (uc_bidi_category_name): New function.
21254         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21255         uc_bidi_category.
21256         (uc_bidi_category): New function.
21257         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21258         uc_is_bidi_category. Invoke uc_bidi_class.
21259         (uc_is_bidi_category): New function.
21260         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21261         instead of uc_bidi_category_byname.
21262         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21263         instead of uc_bidi_category_name.
21264         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21265         uc_bidi_category.
21266         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21267         instead of uc_is_bidi_category.
21268
21269 2011-03-21  Bruno Haible  <bruno@clisp.org>
21270
21271         New module 'unictype/joininggroup-all'.
21272         * modules/unictype/joininggroup-all: New file.
21273
21274         Tests for module 'unictype/joininggroup-of'.
21275         * modules/unictype/joininggroup-of-tests: New file.
21276         * tests/unictype/test-joininggroup_of.c: New file.
21277         * tests/unictype/test-joininggroup_of.h: New file, automatically
21278         generated by gen-uni-tables.
21279
21280         New module 'unictype/joininggroup-of'.
21281         * modules/unictype/joininggroup-of: New file.
21282         * lib/unictype/joininggroup_of.c: New file.
21283         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21284         gen-uni-tables.
21285
21286         Tests for module 'unictype/joininggroup-byname'.
21287         * modules/unictype/joininggroup-byname-tests: New file.
21288         * tests/unictype/test-joininggroup_byname.c: New file.
21289
21290         New module 'unictype/joininggroup-byname'.
21291         * modules/unictype/joininggroup-byname: New file.
21292         * lib/unictype/joininggroup_byname.c: New file.
21293         * lib/unictype/joininggroup_byname.gperf: New file.
21294
21295         Tests for module 'unictype/joininggroup-name'.
21296         * modules/unictype/joininggroup-name-tests: New file.
21297         * tests/unictype/test-joininggroup_name.c: New file.
21298
21299         New module 'unictype/joininggroup-name'.
21300         * modules/unictype/joininggroup-name: New file.
21301         * lib/unictype/joininggroup_name.c: New file.
21302         * lib/unictype/joininggroup_name.h: New file.
21303
21304         New module 'unictype/joiningtype-all'.
21305         * modules/unictype/joiningtype-all: New file.
21306
21307         Tests for module 'unictype/joiningtype-of'.
21308         * modules/unictype/joiningtype-of-tests: New file.
21309         * tests/unictype/test-joiningtype_of.c: New file.
21310         * tests/unictype/test-joiningtype_of.h: New file, automatically
21311         generated by gen-uni-tables.
21312
21313         New module 'unictype/joiningtype-of'.
21314         * modules/unictype/joiningtype-of: New file.
21315         * lib/unictype/joiningtype_of.c: New file.
21316         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21317         gen-uni-tables.
21318
21319         Tests for module 'unictype/joiningtype-byname'.
21320         * modules/unictype/joiningtype-byname-tests: New file.
21321         * tests/unictype/test-joiningtype_byname.c: New file.
21322
21323         New module 'unictype/joiningtype-byname'.
21324         * modules/unictype/joiningtype-byname: New file.
21325         * lib/unictype/joiningtype_byname.c: New file.
21326
21327         Tests for module 'unictype/joiningtype-name'.
21328         * modules/unictype/joiningtype-name-tests: New file.
21329         * tests/unictype/test-joiningtype_name.c: New file.
21330
21331         New module 'unictype/joiningtype-name'.
21332         * modules/unictype/joiningtype-name: New file.
21333         * lib/unictype/joiningtype_name.c: New file.
21334
21335         unictype: Add support for Arabic shaping properties.
21336         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21337         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21338         declarations.
21339         (UC_JOINING_GROUP_*): New enumeration values.
21340         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21341         declarations.
21342         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21343         (unicode_joining_type): New variable.
21344         (UC_JOINING_GROUP_*): New enumeration values.
21345         (unicode_joining_group): New variable.
21346         (fill_arabicshaping, joining_type_as_c_identifier,
21347         output_joining_type_test, output_joining_type,
21348         joining_group_as_c_identifier, output_joining_group_test,
21349         output_joining_group): New functions.
21350         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21351         fill_arabicshaping and output_joining_type_test, output_joining_type,
21352         output_joining_group_test, output_joining_group.
21353         Reported by Simon Josefsson.
21354
21355 2011-03-21  Jim Meyering  <meyering@redhat.com>
21356
21357         strftime: fix a bug in yesterday's change
21358         * lib/strftime.c (add): Accommodate width's initial value of -1.
21359         Otherwise, nstrftime would copy uninitialized data into
21360         the result buffer.
21361
21362 2011-03-21  Jim Meyering  <meyering@redhat.com>
21363
21364         tests: add strftime-tests module
21365         * tests/test-strftime.c: New file.
21366         * modules/strftime-tests: New module.
21367
21368 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21369
21370         strftime: don't assume a byte count fits in 'int'
21371         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21372         found this problem by static analysis, using gcc -Wstrict-overflow
21373         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21374         on an integer overflow having undefined behavior, but it turns out
21375         that the argument is a size, which might not fit in 'int' anyway,
21376
21377 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21378
21379         stdio: don't require ignore_value around fwrite
21380
21381         This patch works around libc bug 11959
21382         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21383         Without this patch, applications must often write
21384         ignore_value (fwrite (...)) even though the ignore_value is
21385         not helpful here.  It's common to write many objects, using
21386         fwrite/printf/etc., and then use ferror to detect output error.
21387
21388         I considered making this patch optional, but decided against it,
21389         because libc is obviously being inconsistent here: there is no
21390         reason libc should insist that user code must inspect fwrite
21391         return's value without also insisting that it inspect printf's,
21392         putchar's, etc.  If user code wants to have a strict style where
21393         all these functions' values are checked (so that ferror need not
21394         be checked), we could add support for that style in a new gnulib
21395         module, but in the meantime it's better to be consistent and to
21396         support common usage.
21397
21398         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21399         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21400         that we are compiling in checking mode, and if not C++, and
21401         if not already wrapping fwrite for some other reason.
21402         (fwrite): #define to rpl_fwrite if the latter is defined.
21403
21404 2011-03-20  Bruno Haible  <bruno@clisp.org>
21405
21406         verror: Fix compilation error introduced on 2011-02-13.
21407         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21408         instead of __attribute__.
21409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21410
21411 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21412             Bruno Haible  <bruno@clisp.org>
21413
21414         socklen: do not depend on sys_socket
21415         While trying to modify Emacs to use gnulib's socklen module,
21416         I discovered a circular dependency: socklen depends on sys_socket
21417         and vice versa.  Emacs can use socklen, but it does not need
21418         sys_socket because it has its own substitute for sys/socket.h.
21419         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21420         gl_TYPE_SOCKLEN_T.
21421         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21422         gl_PREREQ_SYS_H_SOCKET.
21423         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21424         gl_PREREQ_SYS_H_SOCKET.
21425         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21426         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21427         * modules/socklen (Depends-on): Do not depend on sys_socket.
21428         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21429
21430 2011-03-20  Jim Meyering  <meyering@redhat.com>
21431
21432         maint.mk: sort file names *after* new transformation
21433         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21434         prefix would have led to an unwarranted failure in GNU parted.
21435         Sort after that transformation.
21436
21437 2011-03-19  Jim Meyering  <meyering@redhat.com>
21438
21439         maint.mk: fix po-file syntax-check rule
21440         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21441         Patch by Bruno Haible.
21442
21443 2011-03-19  Bruno Haible  <bruno@clisp.org>
21444
21445         socklen: Update comment.
21446         * m4/socklen.m4: Update comment about platforms.
21447
21448 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21449             Bruno Haible  <bruno@clisp.org>
21450
21451         inet_ntop, inet_pton: Simplify.
21452         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21453         documented to provide socklen_t and we already depend on sys_socket.
21454         * modules/inet_pton (Depends-on): Likewise.
21455         * lib/arpa_inet.in.h: Adjust comment.
21456
21457 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21458             Bruno Haible  <bruno@clisp.org>
21459
21460         netdb: Simplify.
21461         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21462         documented to provide socklen_t and we already depend on sys_socket.
21463         * lib/netdb.in.h: Adjust comment.
21464
21465 2011-03-19  Bruno Haible  <bruno@clisp.org>
21466
21467         sys_socket, netdb: Document problem with socklen_t.
21468         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21469         platforms.
21470         * doc/posix-headers/netdb.texi: Likewise.
21471
21472 2011-03-18  Eric Blake  <eblake@redhat.com>
21473
21474         maint.mk: let po check work in VPATH build
21475         * top/maint.mk (po_file): Allow cfg.mk override.
21476         (sc_po_check): Allow VPATH use.
21477         Reported by Jiri Denemark.
21478
21479 2011-03-16  Jim Meyering  <meyering@redhat.com>
21480
21481         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21482         Before, you would have had to create one .x-sc_ file per rule in order
21483         to exempt offending files.  Now, you may instead use a Make variable --
21484         usually defined in cfg.mk -- whose name identifies the affected rule.
21485         * top/maint.mk (_sc_excl): Define.
21486         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21487         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21488
21489 2011-03-13  Bruno Haible  <bruno@clisp.org>
21490
21491         ignore-value tests: Avoid warnings.
21492         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21493         empty for gcc < 3.4.
21494
21495 2011-03-13  Bruno Haible  <bruno@clisp.org>
21496
21497         passfd: Fix link error on Solaris.
21498         * modules/passfd (Description): Correct.
21499         (Depends-on): Add socketlib.
21500         (Link): New section.
21501         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21502
21503 2011-03-13  Bruno Haible  <bruno@clisp.org>
21504
21505         passfd: Fix link error on AIX 5.2.
21506         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21507
21508 2011-03-13  Bruno Haible  <bruno@clisp.org>
21509
21510         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21511         * lib/sys_socket.in.h: Include <stddef.h>.
21512         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21513         CMSG_FIRSTHDR. Remove unused variable.
21514
21515 2011-03-13  Bruno Haible  <bruno@clisp.org>
21516
21517         passfd: Fix compilation error on OpenBSD.
21518         * lib/passfd.c: Include <sys/uio.h>.
21519
21520 2011-03-13  Bruno Haible  <bruno@clisp.org>
21521
21522         passfd test: Fix warnings.
21523         * tests/test-passfd.c: Include <sys/wait.h>.
21524         (main): Fix typo.
21525
21526 2011-03-13  Bruno Haible  <bruno@clisp.org>
21527
21528         passfd module, part 4, tweaks.
21529         * tests/test-passfd.c: Reorder includes.
21530         (main): Fix perror and printf calls.
21531
21532 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21533
21534         passfd module, part 4.
21535         * modules/passfd-tests: New file.
21536         * tests/test-passfd.c: New file.
21537
21538 2011-03-13  Jim Meyering  <meyering@redhat.com>
21539
21540         Makefile: rely on GNU make; derive syntax-check rule names
21541         Rather than requiring that each sc_ rule be listed as a dependent
21542         of "check", use features of GNU make to derive the list.
21543         * Makefile (syntax-check-rules): Define.
21544         (check): Depend on the new variable, not the hard-coded list.
21545
21546 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21547             Bruno Haible  <bruno@clisp.org>
21548
21549         passfd module, part 3.
21550         * lib/passfd.h (recvfd): Add a flags argument.
21551         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21552         (recvfd): Add a flags argument.
21553         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21554         exists.
21555         * modules/passfd (Depends-on): Add cloexec.
21556         Suggested by Eric Blake.
21557
21558 2011-03-13  Bruno Haible  <bruno@clisp.org>
21559
21560         passfd module, part 2, tweaks.
21561         * modules/passfd (Files): Reorder.
21562         (Depends-on): Remove errno.
21563         (Include): Remove <sys/socket.h>, <sys/un.h>.
21564         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21565         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21566         specification header. Include <sys/socket.h> always. Don't include
21567         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21568         (sendfd): Clarify that it sets errno when it fails.
21569         (recvfd): Fix specification.
21570
21571 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21572
21573         passfd module, part 2.
21574         * modules/passfd: New file.
21575         * lib/passfd.h: New file.
21576         * lib/passfd.c: New file.
21577
21578 2011-03-12  Bruno Haible  <bruno@clisp.org>
21579
21580         wcswidth, mbswidth: Avoid integer overflow.
21581         * lib/wcswidth.c: Include <limits.h>.
21582         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21583         * lib/mbswidth.c: Include <limits.h>.
21584         (mbsnwidth): Avoid 'int' overflow.
21585         Reported by Jim Meyering.
21586
21587 2011-03-12  Bruno Haible  <bruno@clisp.org>
21588
21589         futimens, utimensat: Avoid endless recursion on Solaris 10.
21590         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21591         Solaris.
21592         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21593         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21594
21595 2011-03-11  Jim Meyering  <meyering@redhat.com>
21596
21597         maint.mk: relax a regexp to accommodate other formatting styles
21598         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21599         between "ngettext" and the following "(".
21600
21601 2011-03-11  Pádraig Brady <P@draigBrady.com>
21602
21603         maint.mk: suppress a false positive warning
21604         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21605         diagnostics are marked with ngettext.
21606
21607 2011-03-10  Eric Blake  <eblake@redhat.com>
21608
21609         wchar: add explicit dependencies, for Tru64
21610         * modules/mbmemcasecoll (Depends-on): Add wchar.
21611         * modules/mbtowc (Depends-on): Likewise.
21612         * modules/vasnprintf (Depends-on): Likewise.
21613         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21614         * modules/wctomb (Depends-on): Likewise.
21615         Reported by Peter O'Gorman.
21616
21617 2011-03-08  Bruno Haible  <bruno@clisp.org>
21618
21619         passfd module, part 1, tweaks.
21620         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21621         Improve indentation. Improve AC_MSG_CHECKING messages.
21622         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21623         gl_SOCKET_FAMILIES.
21624
21625 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21626
21627         passfd module, part 1.
21628         * m4/afunix.m4: New file.
21629         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21630         sockets.
21631
21632 2011-03-08  Bruno Haible  <bruno@clisp.org>
21633
21634         regex-quote: New API.
21635         * lib/regex-quote.h: Include <stdbool.h>.
21636         (struct regex_quote_spec): New type.
21637         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21638         New declarations.
21639         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21640         'const struct regex_quote_spec *' argument.
21641         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21642         (pcre_special): New constant.
21643         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21644         New functions.
21645         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21646         'const struct regex_quote_spec *' argument.
21647         * modules/regex-quote (Depends-on): Add stdbool.
21648         * tests/test-regex-quote.c (check): Update for new API. Add test for
21649         anchored results.
21650         * NEWS: Mention the API change.
21651         Reported by Reuben Thomas and Eric Blake.
21652
21653 2011-03-06  Bruno Haible  <bruno@clisp.org>
21654
21655         regex-quote: Fix creation of POSIX extended regular expressions.
21656         * lib/regex-quote.c (ere_special): Add grouping and alternation
21657         operators.
21658
21659 2011-03-05  Bruno Haible  <bruno@clisp.org>
21660
21661         doc: Improve doc regarding autopoint vs. gnulib.
21662         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21663         disable autopoint while running autoreconf.
21664         Suggested by Ralf Wildenhues.
21665
21666 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21667
21668         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21669         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21670
21671 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21672
21673         parse-duration: remove xalloc.h dependency
21674         * lib/parse-duration.c (parse_period): handle NULL return from
21675         strdup instead of calling xstrdup().
21676         * modules/parse-duration: remove "xalloc" dependency
21677
21678 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21679
21680         bootstrap: honor m4_base when running aclocal
21681         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21682
21683 2011-03-02  Jim Meyering  <meyering@redhat.com>
21684
21685         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21686         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21687         on request from Matt Booth.
21688
21689 2011-03-01  Eric Blake  <eblake@redhat.com>
21690
21691         test-link: work on Hurd
21692         * tests/test-link.h (test_link): Hurd rejects linking directories
21693         with EISDIR instead of the POSIX-mandated EPERM.
21694
21695 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21696
21697         stdio: simplify by moving files to printf-posix, sigpipe
21698         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21699         since this symbol is needed only if printf is replaced.
21700         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21701         Require gl_ASM_SYMBOL_PREFIX.
21702         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21703         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21704         (Depends-on): Add 'raise'.
21705         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21706         * modules/stdio (Files): Remove lib/stdio-write.c,
21707         m4/asm-underscore.m4.
21708         (Depends-on): Remove 'raise'.
21709
21710         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21711         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21712         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21713         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21714
21715 2011-02-28  Bruno Haible  <bruno@clisp.org>
21716
21717         localcharset: Assume ANSI C behaviour of free().
21718         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21719         calling free().
21720         Suggested by Simon Josefsson <simon@josefsson.org>.
21721
21722 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21723             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21724             Bruno Haible  <bruno@clisp.org>  (tiny change)
21725
21726         On Cygwin, use /proc file system instead of win32 API.
21727         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21728         Win32 file names.
21729         (DllMain): Simplify by removing Cygwin specific code.
21730         (find_shared_library_fullname): Use Linux specific implementation also
21731         for Cygwin.
21732         (get_shared_library_fullname): Update accordingly.
21733         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21734         Win32 file names.
21735         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21736         Cygwin specific code.
21737
21738 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21739             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21740
21741         Fix OpenMP flag detection for various Fortran compilers.
21742         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21743         OpenMP-conditional compilation construct, to force compile
21744         failure with missing OpenMP flag.
21745         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21746
21747 2011-02-25  Eric Blake  <eblake@redhat.com>
21748
21749         strstr: expand test coverage
21750         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21751         compilation.
21752         * tests/test-memmem.c (main): Duplicate tests.
21753         * tests/test-strcasestr.c (main): Likewise.
21754         * tests/test-c-strcasestr.c (main): Likewise.
21755
21756 2011-02-25  Jim Meyering  <meyering@redhat.com>
21757
21758         maint.mk: detect missing-NL-at-EOF, too
21759         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21760         it also detects when a file lacks a newline at EOF.
21761         (require_exactly_one_NL_at_EOF_): Renamed from
21762         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21763         since people may well have .x-sc_... file names tied to the
21764         existing name.  Suggested by Eric Blake.
21765
21766 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21767
21768         dirname: move m4/dos.m4 functionality into lib/dosname.h
21769
21770         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21771         extracts symbols from it, puts them into config.h; but it's much
21772         easier to use the symbols directly.  filename.h already does this,
21773         but it disagrees with dos.m4 in some respects.  This patch
21774         introduces a different include file dosname.h that packages up
21775         dos.m4, and then later we can work on merging filename.h and
21776         dosname.h.  Applications that need only the easy-to-configure
21777         symbols should consider including dosname.h rather than dirname.h.
21778         * NEWS: Mention incompatible changes.
21779         * m4/dos.m4: Remove.
21780         * lib/dosname.h, modules/dosname: New files.
21781         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21782         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21783         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21784         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21785         Include dosname.h, not dirname.h.
21786         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21787         Include dosname.h, for definitions of symbols like ISSLASH
21788         that used to be in config.h.
21789         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21790         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21791         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21792         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21793         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21794         * modules/rmdir (Files): Likewise.
21795         * modules/stat (Files): Likewise.
21796         * modules/unlink (Files): Likewise.
21797         * modules/dirname-lgpl (Depends-on): Add dosname.
21798         * modules/lstat (Depends-on): Likewise.
21799         * modules/openat (Depends-on): Likewise.
21800         * modules/rmdir (Depends-on): Likewise.
21801         * modules/savewd (Depends-on): Likewise.
21802         * modules/stat (Depends-on): Likewise.
21803         * modules/unlink (Depends-on): Likewise.
21804         * modules/openat (Depends-on): Remove dirname-lgpl.
21805         * modules/savewd (Depends-on): Likewise.
21806         * tests/test-dirname.c: Do not use removed symbols like
21807         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21808         the remaining symbols, e.g., ISSLASH ('\\').
21809
21810 2011-02-25  Eric Blake  <eblake@redhat.com>
21811
21812         strstr: revert patches that introduced bug and pessimization
21813         * lib/str-two-way.h: Add another reference.
21814         (two_way_short_needle, two_way_long_needle): Revert changes from
21815         2011-02-24; they pessimize search speed.
21816         (critical_factorization): Partially revert changes from
21817         2010-06-22; they violate the requirement that the left half of the
21818         needle be smaller than the period of the needle.
21819
21820 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21821
21822         filenamecat: remove unnecessary dependency on dirname-lgpl
21823         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21824         is no direct dependency, just an indirect one via filenamecat-lgpl.
21825
21826         remove: remove unnecessary use of m4/dos.m4
21827         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21828         * modules/remove (FILES): Remove m4/dos.m4.
21829
21830         * lib/openat-proc.c: Don't include dirname.h; not needed.
21831
21832         backupfile: remove unnecessary use of m4/dos.m4
21833         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
21834         of its symbols are used by the backupfile code.  backupfile.c does
21835         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
21836         for the rare case of programs that want all their backup file
21837         names to live within 8+3 limits, and dos.m4 doesn't address that.
21838         * modules/backupfile (Files): Remove m4/dos.m4.
21839
21840 2011-02-24  Jim Meyering  <meyering@redhat.com>
21841
21842         strstr: fix a bug whereby strstr would mistakenly return NULL
21843         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
21844         in period calculation.
21845         (two_way_long_needle): Likewise.
21846         The original problem was reported by Mike Stump in
21847         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
21848         Ralf Wildenhues provided the short needle and haystack.
21849         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
21850         Add a more involved test to trigger the bug in two_way_long_needle.
21851
21852 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21853
21854         gnulib-tool: remove use of bold display in help screen
21855         * gnulib-tool (func_usage): Do not use bold display anymore in the
21856         help screen.  That was just meant to be a temporary emphasis for a
21857         backward-incompatible change.
21858
21859 2011-02-23  Bruno Haible  <bruno@clisp.org>
21860
21861         Fix misindentation of preprocessor directives.
21862         * lib/argp-namefrob.h: Reindent preprocessor directives.
21863         * lib/getopt_int.h (struct _getopt_data): Likewise.
21864         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
21865         * lib/vasnprintf.c (decode_long_double): Likewise.
21866         * tests/test-argmatch.c: Insert blank lines, for clarity.
21867         * tests/test-exclude.c: Likewise.
21868
21869 2011-02-22  Bruno Haible  <bruno@clisp.org>
21870
21871         ioctl: Fix for MacOS X in 64-bit mode.
21872         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
21873         value.
21874         Suggested by Eric Blake.
21875         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
21876
21877 2011-02-22  Jim Meyering  <meyering@redhat.com>
21878
21879         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
21880         * Makefile (sc_cpp_indent_check): Don't limit the check to files
21881         in lib/.
21882
21883 2011-02-22  Eric Blake  <eblake@redhat.com>
21884
21885         maint: avoid any CDPATH issue
21886         * Makefile (sc_cpp_indent_check): Anchor cd argument.
21887
21888         maint: adjust cpp indentation for my modules, as well
21889         * Makefile (sc_cpp_indent_check): Add my name.
21890         * lib/fbufmode.c: Filter through cppi.
21891         * lib/fpurge.c: Likewise.
21892         * lib/freadable.c: Likewise.
21893         * lib/freading.c: Likewise.
21894         * lib/fwritable.c: Likewise.
21895         * lib/fwriting.c: Likewise.
21896         * lib/sigaction.c: Likewise.
21897
21898 2011-02-22  Jim Meyering  <meyering@redhat.com>
21899
21900         maint: adjust cpp indentation to reflect nesting depth
21901         I.e., in a block of code that begins with an unnested "#if",
21902         put one space between the "#" in column 1 and following token.
21903         For example,
21904         -#include <sys/vfs.h>
21905         +# include <sys/vfs.h>
21906         Do this only in .c files that are part of a module I maintain.
21907         * lib/linkat.c: Filter through cppi.
21908         * lib/nanosleep.c: Likewise.
21909         * lib/openat.c: Likewise.
21910         * lib/openat-die.c: Likewise.
21911         * lib/dup3.c: Likewise.
21912         * lib/fchownat.c: Likewise.
21913         * lib/flock.c: Likewise.
21914         * lib/fsync.c: Likewise.
21915         * lib/fts.c: Likewise.
21916         * lib/getpass.c: Likewise.
21917         * lib/gettimeofday.c: Likewise.
21918         * lib/userspec.c: Likewise.
21919         * Makefile (sc_cpp_indent_check): New rule, to check this.
21920
21921 2011-02-22  Bruno Haible  <bruno@clisp.org>
21922
21923         New module 'wctomb'.
21924         * lib/stdlib.in.h (wctomb): New declaration.
21925         * lib/wctomb.c: New file.
21926         * lib/wctomb-impl.h: New file.
21927         * m4/wctomb.m4: New file.
21928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
21929         REPLACE_WCTOMB.
21930         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
21931         REPLACE_WCTOMB.
21932         * modules/wctomb: New file.
21933         * tests/test-stdlib-c++.cc: Test signature of wctomb.
21934         * doc/posix-functions/wctomb.texi: Mention the new module.
21935         * modules/wctob (Depends-on): Add wctomb.
21936
21937 2011-02-22  Bruno Haible  <bruno@clisp.org>
21938
21939         New module 'mbtowc'.
21940         * lib/stdlib.in.h (mbtowc): New declaration.
21941         * lib/mbtowc.c: New file.
21942         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
21943         * m4/mbtowc.m4: New file.
21944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
21945         REPLACE_MBTOWC.
21946         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
21947         REPLACE_MBTOWC.
21948         * modules/mbtowc: New file.
21949         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
21950         * doc/posix-functions/mbtowc.texi: Mention the new module.
21951         * modules/btowc (Depends-on): Add mbtowc.
21952
21953 2011-02-22  Bruno Haible  <bruno@clisp.org>
21954
21955         wcrtomb: Add more tests for native Windows platforms.
21956         * tests/test-wcrtomb-w32-1.sh: New file.
21957         * tests/test-wcrtomb-w32-2.sh: New file.
21958         * tests/test-wcrtomb-w32-3.sh: New file.
21959         * tests/test-wcrtomb-w32-4.sh: New file.
21960         * tests/test-wcrtomb-w32-5.sh: New file.
21961         * tests/test-wcrtomb-w32.c: New file.
21962         * modules/wcrtomb-tests (Files): Add them.
21963         (Makefile.am): Arrange to run these tests.
21964         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
21965         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
21966
21967 2011-02-20  Bruno Haible  <bruno@clisp.org>
21968
21969         wcrtomb: Enhance test.
21970         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
21971
21972 2011-02-20  Bruno Haible  <bruno@clisp.org>
21973
21974         mbrtowc: Tiny optimization.
21975         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
21976
21977 2011-02-20  Jim Meyering  <meyering@redhat.com>
21978
21979         test-exclude.c: remove unmatched #endif
21980         * tests/test-exclude.c: Remove stray #endif, left over from
21981         the change of a week ago.
21982
21983 2011-02-19  Jim Meyering  <meyering@redhat.com>
21984
21985         git-version-gen: skip "-dirty" check when appropriate
21986         * build-aux/git-version-gen: Don't run any git commands when the
21987         version string comes from .tarball-version.  Prior to this, we
21988         would run git update-index --refresh even from a just-unpacked
21989         tarball directory, and that could affect a .git/ directory in a
21990         parent of the build directory.  Reported by Mike Frysinger.
21991
21992 2011-02-19  Bruno Haible  <bruno@clisp.org>
21993
21994         unictype/property-byname: Reduce the size of the 'data' segment.
21995         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21996
21997 2011-02-19  Bruno Haible  <bruno@clisp.org>
21998
21999         unictype/scripts: Reduce the size of the 'data' segment.
22000         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22001         '%pic'.
22002         * lib/unictype/scripts_byname.gperf: Regenerated.
22003
22004 2011-02-19  Bruno Haible  <bruno@clisp.org>
22005
22006         stdint: Update documentation.
22007         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22008
22009 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22010
22011         stdint: omit redundant check for wchar.h
22012         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22013         always tests whether wchar.h exists, so remove the now-redundant test.
22014
22015 2011-02-18  Bruno Haible  <bruno@clisp.org>
22016
22017         stdint: Cut dependency to module 'wchar'.
22018         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22019         include the necessary prerequisites.
22020         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22021         * modules/stdint (Depends-on): Remove wchar.
22022         (Makefile.am): Substitute HAVE_WCHAR_H.
22023         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22024
22025 2011-02-18  Eric Blake  <eblake@redhat.com>
22026
22027         longlong: skip, rather than fail, on cross-compilation
22028         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22029         when cross-compiling; regression from 2011-02-16.
22030
22031 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22032
22033         * NEWS: Mention 2011-02-08 change to stdlib.
22034
22035 2011-02-17  Bruno Haible  <bruno@clisp.org>
22036
22037         getloadavg: Add comments about platforms.
22038         * m4/getloadavg.m4: Add comment.
22039         * lib/getloadavg.c: Likewise.
22040
22041 2011-02-17  Bruno Haible  <bruno@clisp.org>
22042
22043         getloadavg: Fix link error on Solaris 2.6.
22044         * modules/getloadavg (Link): New section.
22045         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22046         linking test-getloadavg.
22047         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22048         getloadavg.
22049
22050 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22051
22052         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22053         It was 'int', but this doesn't match the IRIX 6.5 manual.
22054         Suggested by Bruno Haible in
22055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22056
22057 2011-02-17  Bruno Haible  <bruno@clisp.org>
22058
22059         havelib: Fix comments.
22060         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22061         change.
22062
22063 2011-02-17  Bruno Haible  <bruno@clisp.org>
22064
22065         havelib: Update config.rpath.
22066         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22067
22068 2011-02-17  Bruno Haible  <bruno@clisp.org>
22069
22070         getloadavg test: Add some plausibility checks.
22071         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22072         is improbable.
22073
22074 2011-02-16  Eric Blake  <eblake@redhat.com>
22075
22076         maintainer-makefile: make syntax-check a no-op from tarballs
22077         * top/maint.mk (no-vc-detected): New rule.
22078         (local-checks-available): Use it to avoid hanging if someone tries
22079         'make syntax-check' from a tarball.  Also append to any non-syntax
22080         checks already defined in cfg.mk.
22081
22082 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22083
22084         longlong: tune, particularly for common case of c99
22085
22086         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22087         or running anything if c99, or if unsigned long long int does not
22088         work.  In either case, we know the answer without further tests.
22089         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22090         it at most once, and use its results for both long long int and
22091         unsigned long long int.  This is more likely to be efficient in
22092         the common case where the program wants to check for both long
22093         long int and unsigned long long int.
22094         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22095         since the answer is already known.
22096
22097 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22098
22099         getloadavg: set errno
22100         * lib/getloadavg.c: Set errno when returning -1.  If no other
22101         error number looks appropriate, set it to ENOSYS if the getloadavg
22102         looks like it can't possibly ever work, ENOTSUP otherwise.
22103         Suggested by Bruno Haible in
22104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22105
22106         getloadavg: trim unused parts and speed up 'configure'
22107         * NEWS: Document this.
22108         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22109         always compiled if getloadavg is absent.
22110         Move test code to ...
22111         * tests/test-getloadavg.c: New file, containing previous
22112         contents of test from lib/getloadavg.c.  It also contains
22113         suggestions by Bruno Haible in
22114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22115         * modules/getloadavg-tests: New file.
22116         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22117         Do tests in the same order as they're needed for getloadavg.c.
22118         Omit setgid-related tests that generate symbols KMEM_GROUP,
22119         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22120         Do only the tests that are needed to see whether the system has
22121         getloadavg, moving the other tests into ...
22122         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22123         NLIST_NAME_UNION; nobody should be using it.  Do not define
22124         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22125         relevant, as the user of this module shouldn't care how getloadavg
22126         is implemented.
22127
22128         getloadavg: omit unused var
22129         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22130
22131 2011-02-15  Jim Meyering  <meyering@redhat.com>
22132
22133         doc: update users.txt
22134         * users.txt: Update iwhd's URL.
22135
22136 2011-02-13  Bruno Haible  <bruno@clisp.org>
22137
22138         Consistent macro naming for macros that use GCC __attribute__.
22139         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22140         _ATTRIBUTE_NONNULL_.
22141         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22142         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22143         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22144         ATTRIBUTE_DEPRECATED.
22145         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22146         ATTRIBUTE_NORETURN.
22147         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22148         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22149         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22150         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22151         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22152         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22153         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22154         ATTRIBUTE_SENTINEL.
22155         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22156         ATTRIBUTE_RETURN_CHECK.
22157         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22158         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22159         ATTRIBUTE_NORETURN.
22160         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22161         Reported by Paul Eggert.
22162
22163 2011-02-13  Bruno Haible  <bruno@clisp.org>
22164
22165         Don't interfere with a program's definition of __attribute__.
22166         * lib/argp.h (__attribute__): Remove definition.
22167         (_GL_ATTRIBUTE_FORMAT): New macro.
22168         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22169         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22170         (_GL_ATTRIBUTE_FORMAT): New macro.
22171         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22172         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22173         GCC 3 or newer.
22174         * lib/error.h (__attribute__): Remove definition.
22175         (_GL_ATTRIBUTE_FORMAT): New macro.
22176         (error, error_at_line): Use it.
22177         * lib/hash.h (__attribute__): Remove definition.
22178         (ATTRIBUTE_WUR): Update definition. Define always.
22179         * lib/openat.h (__attribute__): Remove definition.
22180         (ATTRIBUTE_NORETURN): Update definition. Define always.
22181         * lib/sigpipe-die.h (__attribute__): Remove definition.
22182         (ATTRIBUTE_NORETURN): Update definition. Define always.
22183         * lib/vasnprintf.h (__attribute__): Remove definition.
22184         (_GL_ATTRIBUTE_FORMAT): New macro.
22185         (asnprintf, vasnprintf): Use it.
22186         * lib/xalloc.h (__attribute__): Remove definition.
22187         (ATTRIBUTE_NORETURN): Update definition. Define always.
22188         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22189         * lib/xmemdup0.h (__attribute__): Remove definition.
22190         (ATTRIBUTE_NORETURN): Update definition. Define always.
22191         * lib/xprintf.h (__attribute__): Remove definition.
22192         (_GL_ATTRIBUTE_FORMAT): New macro.
22193         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22194         * lib/xstrtol.h (__attribute__): Remove definition.
22195         (ATTRIBUTE_NORETURN): Update definition. Define always.
22196         * lib/xvasprintf.h (__attribute__): Remove definition.
22197         (_GL_ATTRIBUTE_FORMAT): New macro.
22198         (xasprintf, xvasprintf): Use it.
22199         * tests/test-argmatch.c (__attribute__): Remove definition.
22200         (ATTRIBUTE_NORETURN): Update definition. Define always.
22201         * tests/test-exclude.c (__attribute__): Remove definition.
22202         (ATTRIBUTE_NORETURN): Update definition. Define always.
22203         Reported by Paul Eggert.
22204
22205 2011-02-13  Bruno Haible  <bruno@clisp.org>
22206
22207         mbrtowc: Add more tests for native Windows platforms.
22208         * tests/test-mbrtowc-w32-1.sh: New file.
22209         * tests/test-mbrtowc-w32-2.sh: New file.
22210         * tests/test-mbrtowc-w32-3.sh: New file.
22211         * tests/test-mbrtowc-w32-4.sh: New file.
22212         * tests/test-mbrtowc-w32-5.sh: New file.
22213         * tests/test-mbrtowc-w32.c: New file.
22214         * modules/mbrtowc-tests (Files): Add them.
22215         (Makefile.am): Arrange to run these tests.
22216         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22217         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22218
22219 2011-02-13  Bruno Haible  <bruno@clisp.org>
22220
22221         mbrtowc: Work around native Windows bug.
22222         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22223         guess when no suitable locale for testing was found.
22224         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22225
22226 2011-02-13  Bruno Haible  <bruno@clisp.org>
22227
22228         mbsinit: Work around mingw bug.
22229         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22230         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22231         Windows.
22232         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22233
22234 2011-02-13  Bruno Haible  <bruno@clisp.org>
22235
22236         mbsinit: Don't crash for a NULL argument.
22237         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22238         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22239
22240 2011-02-13  Bruno Haible  <bruno@clisp.org>
22241
22242         Don't interfere with a program's definition of __attribute__.
22243         * lib/stdio.in.h (__attribute__): Remove definition.
22244         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22245         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22246         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22247         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22248         * lib/string.in.h (__attribute__): Remove definition.
22249         Reported by Paul Eggert.
22250
22251 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22252
22253         stdlib: don't get in the way of non-GCC __attribute__
22254         See thread starting at
22255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22256         Revert previous stdlib change, installing the following instead:
22257         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22258         to get in the way of a non-GCC compiler that supports __attribute__.
22259         (_GL_ATTRIBUTE_RETURN): New macro.
22260         (_Exit): Use it instead of __attribute__.
22261
22262 2011-02-12  Bruno Haible  <bruno@clisp.org>
22263
22264         quotearg test: Avoid test failure on mingw.
22265         * tests/test-quotearg.sh: Convert the locale identifier from native
22266         Windows syntax to Unix syntax.
22267
22268 2011-02-12  Bruno Haible  <bruno@clisp.org>
22269
22270         setlocale: Prefer gnulib's override over libintl's override.
22271         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22272         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22273         GNULIB_defined_setlocale is set.
22274
22275 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22276
22277         stdlib: support non-GCC __attribute__
22278
22279         Fix a serious and tricky problem encountered when attempting to
22280         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22281         5.5, but it crashed due to memory corruption on Solaris 10 with
22282         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22283         bits that are otherwise zero.  This tagging is optional inside
22284         Emacs but is preferred and is used when __attribute__ ((__aligned
22285         (8))) works, as it does with both recent-enough GCC and with Sun C
22286         5.11.  However, Sun C 5.11 is not GCC and does not #define
22287         __GNUC__ and __GNUC_MINOR__.
22288
22289         When I added the getloadavg module to Emacs, it brought in
22290         stdlib.in.h, which contained this fragment:
22291
22292            #ifndef __attribute__
22293            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22294            #  define __attribute__(Spec)   /* empty */
22295            # endif
22296            #endif
22297
22298         When files that include <stdlib.h> were compiled with Sun C 5.11,
22299         the above code disabled __attribute__ ((__aligned (8))), which
22300         caused variables to not be properly aligned, which eventually led
22301         to the pointer corruption mentioned above.  (This was a bit hard
22302         to diagnose, unfortunately.)
22303
22304         Several "#define __attribute__(X) /* empty */" code snippets need
22305         to be eradicated from Gnulib to work with non-GCC compilers that
22306         support __attribute__.  The Autoconf way to do this is to test for
22307         each kind of attribute that we want support for, and selectively
22308         enable that in source code.
22309
22310         Fix this problem just for stdlib.h, by adding a test for the
22311         __noreturn__ attribute, and change stdlib.in.h to use that test
22312         when needed.  This technique can be easily generalized to the
22313         other *.in.h files and attributes, and a similar technique can be
22314         used for *.h and *.c files.  This patch is enough to solve the
22315         problem for Emacs + getloadavg, and I thought I'd publish it for
22316         feedback before undertaking further, similar fixes in other
22317         modules.
22318
22319         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22320         because it's not needed for stdlib.h.  It merely substitutes the
22321         value directly into stdlib.h.  We may well need to #define it, or
22322         similar symbols, for other modules, but it's nice to also have an
22323         option to not #define it for applications like Emacs that do not
22324         need it.
22325
22326         * lib/stdlib.in.h (__attribute__): Do not #define.
22327         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22328         be defined only if the _Exit module is also used.
22329         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22331         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22332         platforms.
22333         * modules/_Exit (Files): Add m4/attribute.m4.
22334         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22335         * m4/attribute.m4: New file.
22336
22337 2011-02-12  Bruno Haible  <bruno@clisp.org>
22338
22339         wcsrtombs: Work around bug on native Windows.
22340         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22341         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22342         instead of len.
22343         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22344
22345 2011-02-12  Bruno Haible  <bruno@clisp.org>
22346
22347         mbsrtowcs: Work around bug on native Windows.
22348         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22349         against mingw bug.
22350         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22351
22352 2011-02-12  Bruno Haible  <bruno@clisp.org>
22353
22354         Avoid setlocale bugs in tests.
22355         * modules/btowc (Dependencies): Add setlocale.
22356         * modules/c-strcase (Dependencies): Likewise.
22357         * modules/mbmemcasecmp (Dependencies): Likewise.
22358         * modules/mbmemcasecoll (Dependencies): Likewise.
22359         * modules/mbrtowc (Dependencies): Likewise.
22360         * modules/mbscasecmp (Dependencies): Likewise.
22361         * modules/mbscasestr (Dependencies): Likewise.
22362         * modules/mbschr (Dependencies): Likewise.
22363         * modules/mbscspn (Dependencies): Likewise.
22364         * modules/mbsinit (Dependencies): Likewise.
22365         * modules/mbsncasecmp (Dependencies): Likewise.
22366         * modules/mbsnrtowcs (Dependencies): Likewise.
22367         * modules/mbspbrk (Dependencies): Likewise.
22368         * modules/mbspcasecmp (Dependencies): Likewise.
22369         * modules/mbsrchr (Dependencies): Likewise.
22370         * modules/mbsrtowcs (Dependencies): Likewise.
22371         * modules/mbsspn (Dependencies): Likewise.
22372         * modules/mbsstr (Dependencies): Likewise.
22373         * modules/nl_langinfo (Dependencies): Likewise.
22374         * modules/quotearg (Dependencies): Likewise.
22375         * modules/unicase/locale-language (Dependencies): Likewise.
22376         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22377         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22378         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22379         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22380         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22381         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22382         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22383         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22384         * modules/vasnprintf-posix (Dependencies): Likewise.
22385         * modules/wcrtomb (Dependencies): Likewise.
22386         * modules/wcsnrtombs (Dependencies): Likewise.
22387         * modules/wcsrtombs (Dependencies): Likewise.
22388
22389 2011-02-12  Bruno Haible  <bruno@clisp.org>
22390
22391         setlocale: Workaround native Windows bug.
22392         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22393         succeeds but sets LC_CTYPE to "C", report a failure.
22394         * tests/test-setlocale2.sh: New file.
22395         * tests/test-setlocale2.c: New file.
22396         * modules/setlocale-tests (Files): Add the new files.
22397         (Makefile.am): Enable test-setlocale2.sh test.
22398         * doc/posix-functions/setlocale.texi: Mention workaround.
22399
22400 2011-02-11  Bruno Haible  <bruno@clisp.org>
22401
22402         Tests for module 'setlocale'.
22403         * modules/setlocale-tests: New file.
22404         * tests/test-setlocale1.sh: New file.
22405         * tests/test-setlocale1.c: New file.
22406
22407         New module 'setlocale'.
22408         * lib/locale.in.h (setlocale): New declaration.
22409         * lib/setlocale.c: New file, based on
22410         gettext/gettext-runtime/intl/setlocale.c.
22411         * m4/setlocale.m4: New file.
22412         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22413         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22414         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22415         REPLACE_SETLOCALE.
22416         * modules/setlocale: New file.
22417         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22418         * doc/posix-functions/setlocale.texi: Mention the new module.
22419
22420 2011-02-11  Bruno Haible  <bruno@clisp.org>
22421
22422         Prepare for locale dependent tests on mingw.
22423         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22424         because it has the wrong locale encoding.
22425         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22426         French_France.1252 instead of "fr".
22427         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22428         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22429         because it has the wrong locale encoding.
22430         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22431         native Windows, try Turkish_Turkey.65001.
22432         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22433         Chinese_China.54936.
22434
22435         Prepare for locale dependent tests on mingw.
22436         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22437         differently.
22438         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22439         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22440         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22441         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22442
22443 2011-02-11  Eric Blake  <eblake@redhat.com>
22444
22445         strptime: avoid compiler warnings
22446         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22447         compiler warnings about dead code.
22448         Reported by Daniel P. Berrange.
22449
22450 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22451
22452         doc: update users.txt
22453         * users.txt: Add rcs.
22454
22455 2011-02-10  John W. Eaton  <jwe@gnu.org>
22456
22457         doc: update users.txt
22458         * users.txt: Add octave.
22459
22460 2011-02-10  Jim Meyering  <meyering@redhat.com>
22461
22462         doc: update users.txt
22463         * users.txt: Add iwhd.
22464
22465 2011-02-09  Bruno Haible  <bruno@clisp.org>
22466
22467         gnulib-tool: Make copyright notice adjustment more robust.
22468         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22469         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22470         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22471         License".
22472         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22473
22474 2011-02-06  Bruno Haible  <bruno@clisp.org>
22475
22476         New module 'towctrans'.
22477         * modules/towctrans: New file.
22478         * lib/wctype.in.h (towctrans): New declaration.
22479         * lib/towctrans.c: New file.
22480         * lib/towctrans-impl.h: New file.
22481         * m4/towctrans.m4: New file.
22482         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22483         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22484         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22485         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22486         * doc/posix-functions/towctrans.texi: Mention the new module.
22487
22488 2011-02-06  Bruno Haible  <bruno@clisp.org>
22489
22490         New module 'wctrans'.
22491         * modules/wctrans: New file.
22492         * lib/wctype.in.h (wctrans): New declaration.
22493         * lib/wctrans.c: New file.
22494         * lib/wctrans-impl.h: New file.
22495         * m4/wctrans.m4: New file.
22496         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22497         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22498         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22499         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22500         * doc/posix-functions/wctrans.texi: Mention the new module.
22501
22502 2011-02-06  Bruno Haible  <bruno@clisp.org>
22503
22504         New module 'iswctype'.
22505         * modules/iswctype: New file.
22506         * lib/wctype.in.h (iswctype): New declaration.
22507         * lib/iswctype.c: New file.
22508         * lib/iswctype-impl.h: New file.
22509         * m4/iswctype.m4: New file.
22510         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22511         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22512         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22513         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22514         * doc/posix-functions/iswctype.texi: Mention the new module and the
22515         HP-UX 11.00 problem.
22516
22517 2011-02-06  Bruno Haible  <bruno@clisp.org>
22518
22519         New module 'wctype'.
22520         * modules/wctype: Change to represent the wctype() substitute.
22521         * lib/wctype.in.h (wctype): New declaration.
22522         * lib/wctype.c: New file.
22523         * lib/wctype-impl.h: New file.
22524         * m4/wctype.m4: New file.
22525         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22526         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22527         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22528         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22529         * doc/posix-functions/wctype.texi: Mention the new module and the
22530         HP-UX 11.00 problem.
22531
22532 2011-02-06  Bruno Haible  <bruno@clisp.org>
22533
22534         wctype-h: Ensure wctype_t and wctrans_t are defined.
22535         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22536         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22537         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22538         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22539         HAVE_WCTRANS_T.
22540         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22541
22542 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22543
22544         flock: fix license typo
22545
22546         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22547         omitted.
22548
22549 2011-02-08  Bruno Haible  <bruno@clisp.org>
22550
22551         Split large sed scripts, for HP-UX sed.
22552         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22553         to avoid HP-UX limit of 99 commands, in the near future.
22554         * modules/stdlib (Makefile.am): Likewise.
22555         * modules/unistd (Makefile.am): Likewise.
22556         * modules/wchar (Makefile.am): Likewise.
22557         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22558         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22559         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22560
22561 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22562             Bruno Haible  <bruno@clisp.org>
22563
22564         stdlib: improve random_r modularization
22565         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22566         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22567         you also need the random_r module to get this material right.
22568         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22569         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22570         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22571
22572 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22573
22574         stdlib: don't depend on stdint
22575         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22576         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22577         be independent of whether stdint.h is needed.
22578         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22579         here, instead of ...
22580         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22581         struct random_data should be using the random_r module, not just
22582         the stdlib module (which wouldn't make sense: what package needs
22583         just struct random_data without also needing random_r?).
22584         * modules/stdlib (Depends-on): Remove stdint.
22585
22586         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22587         See the thread rooted at
22588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22589         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22590         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22591         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22592         __VMS)); previously it was always included (via fcntl--.h).
22593         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22594         hand; this is good enough for load averages.  Also, do not use
22595         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22596         flags directly if available and don't bother otherwise.  (Packages
22597         that need the extra reliability should use the modules that define
22598         these flags on older platforms that lack them.)
22599         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22600         fcntl-safer.
22601
22602 2011-02-08  Jim Meyering  <meyering@redhat.com>
22603
22604         di-set.h, ino-map.h: add multiple-inclusion guard
22605         Technically, the guard is required only for ino-map.h, due to its
22606         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22607         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22608         * lib/ino-map.h: Likewise.
22609
22610 2011-02-06  Bruno Haible  <bruno@clisp.org>
22611
22612         iswblank: Ensure declaration on glibc systems.
22613         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22614         * modules/iswblank (Dependencies): Add 'extensions'.
22615         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22616
22617 2011-02-06  Bruno Haible  <bruno@clisp.org>
22618
22619         New module 'iswblank'.
22620         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22621         * modules/iswblank: New file.
22622         * modules/wctype-h (Files): Remove lib/iswblank.c.
22623         (Makefile.am): Substitute GNULIB_ISWBLANK.
22624         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22625         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22626         (gl_WCTYPE_H_DEFAULTS): New macro.
22627         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22628         * modules/iswblank-tests: New file.
22629         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22630         * tests/test-wctype-h.c (main): Remove iswblank tests.
22631         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22632         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22633         of 'wctype-h'.
22634         * NEWS: Mention the change.
22635         * modules/mbchar (Depends-on): Add iswblank.
22636
22637 2011-02-08  Bruno Haible  <bruno@clisp.org>
22638
22639         di-set tests: Refactor.
22640         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22641         unnecessary includes.
22642         (ASSERT): Remove macro.
22643         (main): Make C90 compliant by avoiding variable declaration after
22644         statement.
22645         * modules/di-set-tests (Files): Add tests/macros.h.
22646
22647 2011-02-08  Bruno Haible  <bruno@clisp.org>
22648
22649         ino-map tests: Refactor.
22650         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22651         unnecessary includes.
22652         (ASSERT): Remove macro.
22653         (main): Make C90 compliant by avoiding variable declaration after
22654         statement.
22655         * modules/ino-map-tests (Files): Add tests/macros.h.
22656
22657 2011-02-08  Jim Meyering  <meyering@redhat.com>
22658
22659         di-set: add "const" to a cast
22660         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22661         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22662
22663 2011-02-06  Bruno Haible  <bruno@clisp.org>
22664
22665         Rename module 'wctype' to 'wctype-h'.
22666         * modules/wctype-h: Renamed from modules/wctype.
22667         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22668         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22669         (Files, Depends-on, Makefile.am): Update.
22670         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22671         (Files, Makefile.am): Update.
22672         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22673         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22674         * doc/posix-headers/wctype.texi: Update.
22675         * doc/posix-functions/iswalnum.texi: Update.
22676         * doc/posix-functions/iswalpha.texi: Update.
22677         * doc/posix-functions/iswblank.texi: Update.
22678         * doc/posix-functions/iswcntrl.texi: Update.
22679         * doc/posix-functions/iswdigit.texi: Update.
22680         * doc/posix-functions/iswgraph.texi: Update.
22681         * doc/posix-functions/iswlower.texi: Update.
22682         * doc/posix-functions/iswprint.texi: Update.
22683         * doc/posix-functions/iswpunct.texi: Update.
22684         * doc/posix-functions/iswspace.texi: Update.
22685         * doc/posix-functions/iswupper.texi: Update.
22686         * doc/posix-functions/iswxdigit.texi: Update.
22687         * doc/posix-functions/towlower.texi: Update.
22688         * doc/posix-functions/towupper.texi: Update.
22689         * NEWS: Mention the change.
22690         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22691         * modules/mbchar (Dependencies): Likewise.
22692         * modules/mbswidth (Dependencies): Likewise.
22693         * modules/quotearg (Dependencies): Likewise.
22694         * modules/regex (Dependencies): Likewise.
22695         * modules/wcscasecmp (Dependencies): Likewise.
22696         * modules/wcsncasecmp (Dependencies): Likewise.
22697         * modules/wcwidth (Dependencies): Likewise.
22698
22699 2011-02-06  Bruno Haible  <bruno@clisp.org>
22700
22701         New module 'wcswidth'.
22702         * modules/wcswidth: New file.
22703         * lib/wchar.in.h (wcswidth): New declaration.
22704         * lib/wcswidth.c: New file.
22705         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22706         * m4/wcswidth.m4: New file.
22707         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22708         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22709         REPLACE_WCSWIDTH.
22710         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22711         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22712         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22713         * doc/posix-functions/wcswidth.texi: Mention the new module.
22714
22715 2011-02-06  Bruno Haible  <bruno@clisp.org>
22716
22717         New module 'wcstok'.
22718         * modules/wcstok: New file.
22719         * lib/wchar.in.h (wcstok): New declaration.
22720         * lib/wcstok.c: New file.
22721         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22722         * m4/wcstok.m4: New file.
22723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22725         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22726         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22727         * doc/posix-functions/wcstok.texi: Mention the new module.
22728
22729 2011-02-06  Bruno Haible  <bruno@clisp.org>
22730
22731         New module 'wcsstr'.
22732         * modules/wcsstr: New file.
22733         * lib/wchar.in.h (wcsstr): New declaration.
22734         * lib/wcsstr.c: New file.
22735         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22736         * m4/wcsstr.m4: New file.
22737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22739         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22740         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22741         * doc/posix-functions/wcsstr.texi: Mention the new module.
22742
22743 2011-02-06  Bruno Haible  <bruno@clisp.org>
22744
22745         New module 'wcspbrk'.
22746         * modules/wcspbrk: New file.
22747         * lib/wchar.in.h (wcspbrk): New declaration.
22748         * lib/wcspbrk.c: New file.
22749         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22750         * m4/wcspbrk.m4: New file.
22751         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22752         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22753         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22754         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22755         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22756
22757 2011-02-06  Bruno Haible  <bruno@clisp.org>
22758
22759         New module 'wcsspn'.
22760         * modules/wcsspn: New file.
22761         * lib/wchar.in.h (wcsspn): New declaration.
22762         * lib/wcsspn.c: New file.
22763         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22764         * m4/wcsspn.m4: New file.
22765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22768         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22769         * doc/posix-functions/wcsspn.texi: Mention the new module.
22770
22771 2011-02-06  Bruno Haible  <bruno@clisp.org>
22772
22773         New module 'wcscspn'.
22774         * modules/wcscspn: New file.
22775         * lib/wchar.in.h (wcscspn): New declaration.
22776         * lib/wcscspn.c: New file.
22777         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22778         * m4/wcscspn.m4: New file.
22779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22781         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22782         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22783         * doc/posix-functions/wcscspn.texi: Mention the new module.
22784
22785 2011-02-06  Bruno Haible  <bruno@clisp.org>
22786
22787         New module 'wcsrchr'.
22788         * modules/wcsrchr: New file.
22789         * lib/wchar.in.h (wcsrchr): New declaration.
22790         * lib/wcsrchr.c: New file.
22791         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22792         * m4/wcsrchr.m4: New file.
22793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22796         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22797         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22798
22799 2011-02-06  Bruno Haible  <bruno@clisp.org>
22800
22801         New module 'wcschr'.
22802         * modules/wcschr: New file.
22803         * lib/wchar.in.h (wcschr): New declaration.
22804         * lib/wcschr.c: New file.
22805         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22806         * m4/wcschr.m4: New file.
22807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22809         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22810         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22811         * doc/posix-functions/wcschr.texi: Mention the new module.
22812
22813 2011-02-06  Bruno Haible  <bruno@clisp.org>
22814
22815         New module 'wcsdup'.
22816         * modules/wcsdup: New file.
22817         * lib/wchar.in.h (wcsdup): New declaration.
22818         * lib/wcsdup.c: New file.
22819         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22820         * m4/wcsdup.m4: New file.
22821         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22822         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22823         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22824         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22825         * doc/posix-functions/wcsdup.texi: Mention the new module.
22826
22827 2011-02-06  Bruno Haible  <bruno@clisp.org>
22828
22829         New module 'wcsxfrm'.
22830         * modules/wcsxfrm: New file.
22831         * lib/wchar.in.h (wcsxfrm): New declaration.
22832         * lib/wcsxfrm.c: New file.
22833         * lib/wcsxfrm-impl.h: New file.
22834         * m4/wcsxfrm.m4: New file.
22835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
22836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
22837         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
22838         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
22839         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
22840
22841 2011-02-06  Bruno Haible  <bruno@clisp.org>
22842
22843         New module 'wcscoll'.
22844         * modules/wcscoll: New file.
22845         * lib/wchar.in.h (wcscoll): New declaration.
22846         * lib/wcscoll.c: New file.
22847         * lib/wcscoll-impl.h: New file.
22848         * m4/wcscoll.m4: New file.
22849         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
22850         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
22851         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
22852         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
22853         * doc/posix-functions/wcscoll.texi: Mention the new module.
22854
22855 2011-02-06  Bruno Haible  <bruno@clisp.org>
22856
22857         New module 'wcsncasecmp'.
22858         * modules/wcsncasecmp: New file.
22859         * lib/wchar.in.h (wcsncasecmp): New declaration.
22860         * lib/wcsncasecmp.c: New file.
22861         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
22862         * m4/wcsncasecmp.m4: New file.
22863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
22864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
22865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
22866         HAVE_WCSNCASECMP.
22867         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
22868         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
22869
22870 2011-02-06  Bruno Haible  <bruno@clisp.org>
22871
22872         New module 'wcscasecmp'.
22873         * modules/wcscasecmp: New file.
22874         * lib/wchar.in.h (wcscasecmp): New declaration.
22875         * lib/wcscasecmp.c: New file.
22876         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
22877         * m4/wcscasecmp.m4: New file.
22878         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
22879         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
22880         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
22881         HAVE_WCSCASECMP.
22882         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
22883         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
22884
22885 2011-02-05  Bruno Haible  <bruno@clisp.org>
22886
22887         New module 'wcsncmp'.
22888         * modules/wcsncmp: New file.
22889         * lib/wchar.in.h (wcsncmp): New declaration.
22890         * lib/wcsncmp.c: New file.
22891         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
22892         * m4/wcsncmp.m4: New file.
22893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
22894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
22895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
22896         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
22897         * doc/posix-functions/wcsncmp.texi: Mention the new module.
22898
22899 2011-02-05  Bruno Haible  <bruno@clisp.org>
22900
22901         New module 'wcscmp'.
22902         * modules/wcscmp: New file.
22903         * lib/wchar.in.h (wcscmp): New declaration.
22904         * lib/wcscmp.c: New file.
22905         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
22906         * m4/wcscmp.m4: New file.
22907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
22908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
22909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
22910         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
22911         * doc/posix-functions/wcscmp.texi: Mention the new module.
22912
22913 2011-02-05  Bruno Haible  <bruno@clisp.org>
22914
22915         New module 'wcsncat'.
22916         * modules/wcsncat: New file.
22917         * lib/wchar.in.h (wcsncat): New declaration.
22918         * lib/wcsncat.c: New file.
22919         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
22920         * m4/wcsncat.m4: New file.
22921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
22922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
22923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
22924         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
22925         * doc/posix-functions/wcsncat.texi: Mention the new module.
22926
22927 2011-02-05  Bruno Haible  <bruno@clisp.org>
22928
22929         New module 'wcscat'.
22930         * modules/wcscat: New file.
22931         * lib/wchar.in.h (wcscat): New declaration.
22932         * lib/wcscat.c: New file.
22933         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
22934         * m4/wcscat.m4: New file.
22935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
22936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
22937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
22938         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
22939         * doc/posix-functions/wcscat.texi: Mention the new module.
22940
22941 2011-02-05  Bruno Haible  <bruno@clisp.org>
22942
22943         New module 'wcpncpy'.
22944         * modules/wcpncpy: New file.
22945         * lib/wchar.in.h (wcpncpy): New declaration.
22946         * lib/wcpncpy.c: New file.
22947         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
22948         * m4/wcpncpy.m4: New file.
22949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
22950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
22951         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
22952         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
22953         * doc/posix-functions/wcpncpy.texi: Mention the new module.
22954
22955 2011-02-05  Bruno Haible  <bruno@clisp.org>
22956
22957         New module 'wcsncpy'.
22958         * modules/wcsncpy: New file.
22959         * lib/wchar.in.h (wcsncpy): New declaration.
22960         * lib/wcsncpy.c: New file.
22961         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
22962         * m4/wcsncpy.m4: New file.
22963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
22964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
22965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
22966         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
22967         * doc/posix-functions/wcsncpy.texi: Mention the new module.
22968
22969 2011-02-05  Bruno Haible  <bruno@clisp.org>
22970
22971         New module 'wcpcpy'.
22972         * modules/wcpcpy: New file.
22973         * lib/wchar.in.h (wcpcpy): New declaration.
22974         * lib/wcpcpy.c: New file.
22975         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
22976         * m4/wcpcpy.m4: New file.
22977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22979         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22980         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22981         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22982
22983 2011-02-05  Bruno Haible  <bruno@clisp.org>
22984
22985         New module 'wcscpy'.
22986         * modules/wcscpy: New file.
22987         * lib/wchar.in.h (wcscpy): New declaration.
22988         * lib/wcscpy.c: New file.
22989         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22990         * m4/wcscpy.m4: New file.
22991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22994         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22995         * doc/posix-functions/wcscpy.texi: Mention the new module.
22996
22997 2011-02-05  Bruno Haible  <bruno@clisp.org>
22998
22999         New module 'wcsnlen'.
23000         * modules/wcsnlen: New file.
23001         * lib/wchar.in.h (wcsnlen): New declaration.
23002         * lib/wcsnlen.c: New file.
23003         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23004         * m4/wcsnlen.m4: New file.
23005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23008         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23009         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23010
23011 2011-02-05  Bruno Haible  <bruno@clisp.org>
23012
23013         New module 'wcslen'.
23014         * modules/wcslen: New file.
23015         * lib/wchar.in.h (wcslen): New declaration.
23016         * lib/wcslen.c: New file.
23017         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23018         * m4/wcslen.m4: New file.
23019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23021         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23022         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23023         * doc/posix-functions/wcslen.texi: Mention the new module.
23024
23025 2011-02-05  Bruno Haible  <bruno@clisp.org>
23026
23027         New module 'wmemset'.
23028         * modules/wmemset: New file.
23029         * lib/wchar.in.h (wmemset): New declaration.
23030         * lib/wmemset.c: New file.
23031         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23032         * m4/wmemset.m4: New file.
23033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23035         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23036         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23037         * doc/posix-functions/wmemset.texi: Mention the new module.
23038
23039 2011-02-05  Bruno Haible  <bruno@clisp.org>
23040
23041         New module 'wmemmove'.
23042         * modules/wmemmove: New file.
23043         * lib/wchar.in.h (wmemmove): New declaration.
23044         * lib/wmemmove.c: New file.
23045         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23046         * m4/wmemmove.m4: New file.
23047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23049         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23050         HAVE_WMEMMOVE.
23051         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23052         * doc/posix-functions/wmemmove.texi: Mention the new module.
23053
23054 2011-02-05  Bruno Haible  <bruno@clisp.org>
23055
23056         New module 'wmemcpy'.
23057         * modules/wmemcpy: New file.
23058         * lib/wchar.in.h (wmemcpy): New declaration.
23059         * lib/wmemcpy.c: New file.
23060         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23061         * m4/wmemcpy.m4: New file.
23062         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23063         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23064         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23065         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23066         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23067
23068 2011-02-05  Bruno Haible  <bruno@clisp.org>
23069
23070         New module 'wmemcmp'.
23071         * modules/wmemcmp: New file.
23072         * lib/wchar.in.h (wmemcmp): New declaration.
23073         * lib/wmemcmp.c: New file.
23074         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23075         * m4/wmemcmp.m4: New file.
23076         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23077         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23078         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23079         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23080         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23081
23082 2011-02-07  Jim Meyering  <meyering@redhat.com>
23083
23084         di-set, ino-map: new modules, from coreutils
23085         * lib/di-set.c: New file.
23086         * lib/di-set.h: Likewise.
23087         * lib/ino-map.c: Likewise.
23088         * lib/ino-map.h: Likewise.
23089         * modules/di-set: Likewise.
23090         * modules/di-set-tests: Likewise.
23091         * modules/ino-map: Likewise.
23092         * modules/ino-map-tests: Likewise.
23093         * tests/test-di-set.c: Likewise.
23094         * tests/test-ino-map.c: Likewise.
23095
23096 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23097
23098         getloadavg: merge minor changes from Emacs
23099
23100         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23101         (getloadavg): Use memset, not bzero.
23102
23103         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23104         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23105         clash (bug#86).
23106
23107 2010-11-14  Bruno Haible  <bruno@clisp.org>
23108
23109         Allow multiple gnulib generated replacements to coexist.
23110         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23111         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23112         * lib/langinfo.in.h (nl_item): Likewise.
23113         * lib/math.in.h (_NaN, NAN): Likewise.
23114         * lib/netdb.in.h (struct addrinfo): Likewise.
23115         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23116         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23117         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23118         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23119         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23120         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23121         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23122         pthread_mutexattr_init, pthread_mutexattr_settype,
23123         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23124         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23125         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23126         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23127         * lib/sched.in.h (struct sched_param): Likewise.
23128         * lib/se-selinux.in.h (security_class_t, security_context_t,
23129         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23130         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23131         lsetfilecon, fsetfilecon, security_check_context,
23132         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23133         Likewise.
23134         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23135         Likewise.
23136         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23137         _gl_function_taking_int_returning_void_t, union sigval,
23138         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23139         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23140         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23141         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23142         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23143         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23144         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23145         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23146         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23147         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23148         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23149         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23150         socklen_t, rpl_fd_isset): Likewise.
23151         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23152         * lib/sys_time.in.h (struct timeval): Likewise.
23153         * lib/sys_times.in.h (struct tms): Likewise.
23154         * lib/sys_utsname.in.h (struct utsname):
23155         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23156         * lib/unistd.in.h (getpagesize): Likewise.
23157         * lib/wchar.in.h (mbstate_t): Likewise.
23158         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23159         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23160         towlower, towupper): Likewise.
23161         Reported by Sam Steingold <sds@gnu.org>.
23162
23163 2011-02-05  Eric Blake  <eblake@redhat.com>
23164
23165         unsetenv: work around Haiku issues
23166         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23167         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23168
23169 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23170
23171         libposix: avoid calling error() within libposix
23172         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23173         is defined.
23174
23175 2011-02-05  Eric Blake  <eblake@redhat.com>
23176
23177         strerror_r-posix: port to cygwin
23178         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23179         implementation.
23180         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23181         * tests/test-strerror_r.c (main): Fix test.
23182         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23183         issue.
23184
23185 2011-02-05  Bruno Haible  <bruno@clisp.org>
23186
23187         New module 'wmemchr'.
23188         * modules/wmemchr: New file.
23189         * lib/wchar.in.h (wmemchr): New declaration.
23190         * lib/wmemchr.c: New file.
23191         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23192         * m4/wmemchr.m4: New file.
23193         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23194         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23195         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23196         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23197         * doc/posix-functions/wmemchr.texi: Mention the new module.
23198
23199 2011-02-04  Eric Blake  <eblake@redhat.com>
23200
23201         fdopendir: detect FreeBSD bug
23202         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23203         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23204
23205 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23206
23207         stdbool: do not define HAVE_STDBOOL_H
23208         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23209         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23210         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23211         imported from the latest Autoconf git.  It was motivated by Emacs,
23212         which uses gnulib but does not need HAVE_STDBOOL_H.
23213
23214 2011-02-04  Bruno Haible  <bruno@clisp.org>
23215
23216         wcsnrtombs: Prepare for new module wwcsnrtombs.
23217         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23218         * lib/wcsnrtombs.c: Include it.
23219         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23220
23221         wcsrtombs: Prepare for new module wwcsrtombs.
23222         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23223         * lib/wcsrtombs.c: Include it.
23224         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23225
23226         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23227         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23228         * lib/mbsnrtowcs.c: Include it.
23229         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23230
23231         mbsrtowcs: Prepare for new module mbsrtowwcs.
23232         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23233         * lib/mbsrtowcs.c: Include it.
23234         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23235
23236 2011-02-04  Bruno Haible  <bruno@clisp.org>
23237
23238         vasnprintf: Reduce use of malloc for small format strings.
23239         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23240         (arguments): Add room for the first 7 arguments.
23241         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23242         (char_directives, u8_directives, u16_directives, u32_directives): Add
23243         room for the first 7 directives.
23244         * lib/printf-parse.c: Include <string.h>.
23245         (PRINTF_PARSE): Change memory handling code so that it uses the first
23246         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23247         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23248         Reported by Pádraig Brady <P@draigbrady.com>.
23249
23250 2011-01-31  Eric Blake  <eblake@redhat.com>
23251
23252         dup2: work around Haiku bug
23253         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23254         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23255         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23256         * tests/test-dup2.c (main): Enhance test.
23257
23258 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23259
23260         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23261         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23262         declared by eglibc 2.11.2.
23263         * lib/stdio.in.h: Likewise.
23264
23265 2011-01-31  Eric Blake  <eblake@redhat.com>
23266
23267         ignore-value: add missing test dependency
23268         * tests/test-ignore-value.c: Revert previous change; stdio.h
23269         provides off_t.
23270         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23271
23272 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23273
23274         mktime: clarify long_int width checking
23275         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23276         the top level, to make it clearer that the assumption about
23277         long_int width is being checked.  See
23278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23279
23280 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23281
23282         ignore-value: Fix self-test.
23283         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23284
23285 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23286
23287         TYPE_MAXIMUM: avoid theoretically undefined behavior
23288         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23289         negative number, which the C Standard says has undefined behavior.
23290         In practice this is not a problem, but might as well do it by the book.
23291         Reported by Rich Felker and Eric Blake; see
23292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23293         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23294         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23295         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23296         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23297         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23298         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23299
23300         mktime: #undef mktime before #defining it
23301         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23302
23303         mktime: systematically normalize tm_isdst comparisons
23304         * lib/mktime.c (isdst_differ): New function.
23305         (__mktime_internal): Use it systematically for all isdst comparisons.
23306         This completes the fix for libc BZ #6723, and removes the need for
23307         normalizing tm_isdst.  See
23308         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23309         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23310
23311         mktime: fix some integer overflow issues and sidestep the rest
23312
23313         This was prompted by a bug report by Benjamin Lindner for MinGW
23314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23315         His bug is due to signed integer overflow (0 - INT_MIN), and I
23316         I scanned through mktime.c looking for other integer overflow
23317         problems, fixing all the bugs I found.
23318
23319         Although the C Standard says the resulting code is still not safe
23320         in the presence of integer overflow, in practice it should be good
23321         enough for all real-world two's-complement implementations, except
23322         for debugging environments that deliberately trap on integer
23323         overflow (e.g., gcc -ftrapv).
23324
23325         * lib/mktime.c (WRAPV): New macro.
23326         (SHR): Also check that long_int and time_t shift right in the
23327         usual way, before using the fast-but-unportable method.
23328         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23329         used.  The code already assumed two's complement, so there's
23330         no need to test for alternatives.  All uses removed.
23331         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23332         the C standard.  Problem reported by Rich Felker in
23333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23334         (twos_complement_arithmetic): Also check long_int and time_t.
23335         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23336         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23337         (__mktime_internal): Avoid integer overflow with unary subtraction
23338         in two instances where -1 - X is an adequate replacement for -X,
23339         since the calculations are approximate.
23340
23341 2011-01-29  Eric Blake  <eblake@redhat.com>
23342
23343         mktime: avoid infinite loop
23344         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23345         type; behavior is still undefined but portable to all known targets.
23346         Reported by Rich Felker.
23347
23348 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23349
23350         rename, unlink, same-inode: Relicense.
23351         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23352         * modules/unlink (License): Likewise.
23353         * modules/same-inode (License): Likewise.
23354
23355 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23356
23357         mktime: avoid problems on NetBSD 5 / i386
23358         * lib/mktime.c (long_int): New type.  This works around a problem
23359         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23360         but time_t is 64 bits, and where I expect the existing code is
23361         wrong in some cases.
23362         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23363         (ydhms_diff): Bring back the compile-time check for wide-enough
23364         year and yday.
23365
23366         mktime: fix misspelling in comment
23367         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23368         This merges all recent glibc changes of importance.
23369
23370 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23371
23372         move-if-change: cope with concurrent mv of identical file.
23373         * build-aux/move-if-change (CMPPROG): Accept environment
23374         variable as an override for `cmp'.
23375         (usage): Document CMPPROG.
23376         Adjust comparison to drop stdout.  Cope with failure of mv if
23377         the target file exists and is identical to the source, for
23378         parallel builds.
23379         Report from H.J. Lu against binutils in PR binutils/12283.
23380
23381 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23382
23383         * users.txt: Mention sharutils.
23384
23385 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23386
23387         * users.txt: Mention OATH Toolkit.
23388
23389 2011-01-27  Bruno Haible  <bruno@clisp.org>
23390
23391         Prepare for supporting FreeBSD 10.
23392         * build-aux/config.libpath: Remove handling of freebsd1*.
23393
23394 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23395
23396         Prepare for supporting FreeBSD 10.
23397         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23398         match FreeBSD 10.0.
23399
23400 2011-01-27  Bruno Haible  <bruno@clisp.org>
23401
23402         vma-iter, get-rusage-as: Add OpenBSD support.
23403         * modules/vma-iter (configure.ac): Test for mquery.
23404         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23405         * lib/vma-iter.c: Include <sys/mman.h>.
23406         (vma_iterate): Add an implementation based on mquery().
23407         * lib/resource-ext.h (get_rusage_as): Update comments.
23408         * lib/get-rusage-as.c: Likewise.
23409         * lib/get-rusage-data.c: Likewise.
23410
23411 2011-01-26  Karl Berry  <karl@gnu.org>
23412
23413         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23414         variables to make it easier to override the makeinfo program used.
23415
23416 2011-01-26  Eric Blake  <eblake@redhat.com>
23417
23418         fcntl: work around Haiku F_DUPFD bugs
23419         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23420         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23421         cloexec bit on duplication.
23422         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23423
23424 2011-01-26  Bruno Haible  <bruno@clisp.org>
23425
23426         Enable memory leak tests on AIX.
23427         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23428         * tests/test-fprintf-posix3.c (main): Likewise.
23429
23430 2011-01-26  Bruno Haible  <bruno@clisp.org>
23431
23432         Tests for module 'get-rusage-data'.
23433         * modules/get-rusage-data-tests: New file.
23434         * tests/test-get-rusage-data.c: New file.
23435
23436         New module 'get-rusage-data'.
23437         * lib/resource-ext.h (get_rusage_data): New declaration.
23438         * lib/get-rusage-data.c: New file.
23439         * modules/get-rusage-data: New file.
23440
23441 2011-01-25  Bruno Haible  <bruno@clisp.org>
23442
23443         get-rusage-as: Allow for easier testing.
23444         * lib/resource-ext.h (get_rusage_as): Add comment.
23445         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23446         (main): New function for interactive testing.
23447
23448 2011-01-25  Bruno Haible  <bruno@clisp.org>
23449
23450         vma-iter: Treat Haiku like BeOS.
23451         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23452         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23453
23454 2011-01-25  Eric Blake  <eblake@redhat.com>
23455
23456         c-stack: fix regression on cygwin when libsigsegv is present
23457         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23458
23459 2011-01-24  Bruno Haible  <bruno@clisp.org>
23460
23461         vma-iter: Avoid empty intervals.
23462         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23463         on an empty interval.
23464
23465 2011-01-24  Jim Meyering  <meyering@redhat.com>
23466
23467         u64: remove unnecessary #include
23468         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23469
23470 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23471
23472         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23473         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23474
23475 2011-01-23  Bruno Haible  <bruno@clisp.org>
23476
23477         New module 'vma-iter'.
23478         * lib/vma-iter.h: New file.
23479         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23480         * modules/vma-iter: New file.
23481         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23482         for get_rusage_as_via_iterator.
23483         (vma_iterate_callback): New function.
23484         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23485         * modules/get-rusage-as (Depends-on): Add vma-iter.
23486
23487 2011-01-23  Bruno Haible  <bruno@clisp.org>
23488
23489         uninorm: Tweak includes.
23490         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23491         Reported by Jim Meyering.
23492
23493 2011-01-23  Bruno Haible  <bruno@clisp.org>
23494
23495         get-rusage-as: Improve on NetBSD.
23496         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23497         /proc, like on FreeBSD.
23498
23499 2011-01-23  Jim Meyering  <meyering@redhat.com>
23500
23501         xreadlink.h: remove unnecessary #include
23502         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23503
23504         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23505         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23506
23507 2011-01-23  Bruno Haible  <bruno@clisp.org>
23508
23509         get-rusage-as: Fix bug.
23510         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23511         original limit when aborting the first loop.
23512
23513 2011-01-23  Bruno Haible  <bruno@clisp.org>
23514
23515         wctype: Ensure valid C syntax.
23516         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23517         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23518
23519 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23520
23521         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23523         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23524         as they are needed only for configure's test case.
23525         This removes two unnecessary symbols from config.h.
23526
23527         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23528         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23529         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23530         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23531         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23532         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23533         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23534         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23535         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23536         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23537         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23538         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23539         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23540         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23541         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23542         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23543         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23544         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23545
23546 2011-01-21  Eric Blake  <eblake@redhat.com>
23547
23548         maintainer-makefile: work with older git for submodule check
23549         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23550         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23551         Reported by Matthias Bolte.
23552
23553         bootstrap: minor portability fixes
23554         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23555         (usage): Omit leading capital and trailing . on help phrases, per
23556         GNU Coding Standards.
23557         (check_versions, top level): Prefix messages with script name.
23558
23559 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23560
23561         bootstrap: support --no-git option
23562         * build-aux/bootstrap: Add --no-git option, to be used when
23563         --gnulib-srcdir points to the exact desired checkout.
23564
23565 2011-01-21  Eric Blake  <eblake@redhat.com>
23566
23567         strerror_r-posix: work with glibc 2.13
23568         * lib/strerror_r.c (strerror_r): Fix return type.
23569
23570 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23571             Bruno Haible  <bruno@clisp.org>
23572
23573         uN_strstr: New unit tests.
23574         * modules/unistr/u8-strstr-tests: New file.
23575         * modules/unistr/u16-strstr-tests: New file.
23576         * modules/unistr/u32-strstr-tests: New file.
23577         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23578         * tests/unistr/test-u8-strstr.c: New file.
23579         * tests/unistr/test-u16-strstr.c: New file.
23580         * tests/unistr/test-u32-strstr.c: New file.
23581
23582 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23583             Bruno Haible  <bruno@clisp.org>
23584
23585         Make uN_strstr functions O(n) worst-case.
23586         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23587         16-bit and 32-bit unit cases, use the unibyte algorithm from
23588         lib/mbsstr.c.
23589         * lib/unistr/u8-strstr.c: Include <string.h>.
23590         (UNIT_IS_UINT8_T): New macro.
23591         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23592         (U_STRLEN, U_STRNLEN): New macros.
23593         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23594         (U_STRLEN, U_STRNLEN): New macros.
23595         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23596         (configure.ac): Update required libunistring version.
23597         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23598         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23599         malloca.
23600         (configure.ac): Update required libunistring version.
23601         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23602         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23603         malloca.
23604         (configure.ac): Update required libunistring version.
23605
23606 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23607             Bruno Haible  <bruno@clisp.org>
23608
23609         Prepare for faster uN_strstr functions.
23610         * lib/str-kmp.h: Support definable UNITs.
23611         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23612         needle_len argument.
23613         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23614         * lib/mbscasestr.c (mbscasestr): Likewise.
23615
23616 2011-01-21  Pádraig Brady <P@draigBrady.com>
23617
23618         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23619         * tests/test-malloca.c (main): Unset the environment variable
23620         to greatly speed up the test.
23621         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23622         * modules/malloca-tests: Depend on unsetenv.
23623
23624 2011-01-21  Pádraig Brady <P@draigBrady.com>
23625
23626         ignore-value: remove stdint dependency
23627         * lib/ignore-value.h: Remove <stdint.h>
23628         * modules/ignore-value: Remove stdint dependency.
23629
23630 2011-01-21  Jim Meyering  <meyering@redhat.com>
23631
23632         maint.mk: adjust variable name to be consistent with other gl_ vars
23633         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23634         to be lower case.
23635
23636 2011-01-20  Jim Meyering  <meyering@redhat.com>
23637
23638         maint.mk: make "check" depend on public-submodule-commit by default
23639         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23640
23641 2011-01-20  Bruno Haible  <bruno@clisp.org>
23642
23643         mbfile, mbiter: Complete change from 2008-12-21.
23644         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23645         * m4/mbiter.m4 (gl_MBITER): Likewise.
23646
23647 2011-01-20  Jim Meyering  <meyering@redhat.com>
23648
23649         init.sh: insert space between each function name and "()"
23650         * tests/init.sh: Make it a little easier to see that a function's
23651         name is "warn_", and not "warn" when looking at the first part of
23652         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23653
23654 2011-01-20  Jim Meyering  <meyering@redhat.com>
23655
23656         mountlist: clean up code formatting
23657         * lib/mountlist.c (read_file_system_list): Split a long line,
23658         correct bracing style, use NULL in place of "(struct statfs *)0",
23659         don't parenthesize return value, add spaces around "=" and after
23660         ";-in-for-stmt".
23661
23662 2011-01-14  Markus Duft <mduft@gentoo.org>
23663
23664         mountlist: add support for Interix
23665         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23666         Apply statvfs to all entries of /dev/fs.
23667         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23668         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23669
23670 2011-01-20  Jim Meyering  <meyering@redhat.com>
23671
23672         maint.mk: improve the public-submodule-commit rule
23673         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23674         to suppress printing of its commands... unless V=1.
23675         Add git submodule's --quiet option to suppress printing of e.g.,
23676         "Entering gnulib" output.
23677         "cd" into $(srcdir) before running git submodule.
23678
23679 2011-01-20  Bruno Haible  <bruno@clisp.org>
23680
23681         include_next: Fix bug introduced on 2011-01-18.
23682         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23683         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23684         ac_cv_header_... variable if the second argument is not 'check'.
23685         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23686         gl_NEXT_HEADERS_INTERNAL.
23687
23688 2011-01-20  Bruno Haible  <bruno@clisp.org>
23689
23690         Allow the user to avoid the GNULIB_TEST_* macros.
23691         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23692         Suggested by Paul Eggert.
23693
23694 2011-01-14  Jim Meyering  <meyering@redhat.com>
23695
23696         bootstrap: avoid failure when there is no .gitmodules file
23697         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23698         has been assigned to, even when its value is the empty string.
23699         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23700         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23701         Reported by John W. Eaton <jwe@gnu.org>.
23702
23703 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23704
23705         assume <ctype.h>, ..., <time.h> exist
23706         For years gnulib has been assuming the existence of the headers
23707         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23708         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23709         them, since they don't appear to be needed.
23710         * README (Portability guidelines): Document this.
23711         * lib/flock.c: Assume <fcntl.h> exists.
23712         * lib/regex_internal.h: Assume <locale.h> exists.
23713         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23714         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23715         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23716         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23717         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23718         * m4/regex.m4 (gl_REGEX): Likewise.
23719         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23720         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23721         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23722         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23723         * tests/test-argp.c: Likewise.
23724         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23725
23726         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23727         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23728         AA_APPLE_UNIVERSAL_BUILD.  See
23729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23730         * NEWS: Document this.
23731
23732 2011-01-19  Eric Blake  <eblake@redhat.com>
23733
23734         c-stack: assume stack overflow if SA_SIGINFO unsupported
23735         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23736         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23737         sigaction will work.
23738         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23739         behavior match Linux.
23740         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23741
23742         stdbool-tests: accommodate Haiku
23743         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23744
23745         binary-io: fix O_TEXT on Haiku
23746         * modules/binary-io (Depends-on): Add fcntl-h.
23747         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23748         than blindly undefining O_TEXT.
23749         Reported by Scott McCreary.
23750
23751 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23752
23753         include_next: do not check for standard headers like stddef.h
23754
23755         I found this problem when modifying Emacs to use gnulib.
23756         I noticed that it added HAVE_STDDEF_H to config.h, even though
23757         gnulib always assumes <stddef.h> exists as per README and this
23758         symbol is unnecessary.
23759         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23760         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23761         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23762         faster for headers like stddef.h that are known to exist.
23763         (gl_CHECK_NEXT_HEADERS): Use it.
23764         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23765         rather than gl_CHECK_NEXT_HEADERS.
23766         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23767         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23768
23769 2011-01-18  Eric Blake  <eblake@redhat.com>
23770
23771         ansi-c++-opt: skip C++ dependency style if C++ is unused
23772         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23773         tests when we know C++ compilation is not desired.
23774         Reported by Scott McCreary.
23775
23776 2011-01-18  Bruno Haible  <bruno@clisp.org>
23777
23778         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23779         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23780         (main): Perform test also when getrlimit and setrlimit don't exist or
23781         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23782         limiting the address space size using setrlimit, compare the address
23783         space size before and after the the test.
23784         * tests/test-dprintf-posix2.c: Likewise.
23785         * tests/test-fprintf-posix3.sh: Update skip messages.
23786         * tests/test-dprintf-posix2.sh: Likewise.
23787         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23788         * modules/dprintf-posix-tests (Depends-on): Likewise.
23789         Reported by Bruce Korb <bkorb@gnu.org> and
23790         Gary V. Vaughan <gary@gnu.org>.
23791
23792 2011-01-18  Bruno Haible  <bruno@clisp.org>
23793
23794         get-rusage-as: Improvement for Cygwin.
23795         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23796         areas that are merely reserved.
23797
23798 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23799
23800         strftime: remove dependencies on multibyte modules
23801
23802         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23803         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23804         only if __osf__ is defined, and I suspect OSF doesn't need these
23805         other modules.  If my guess is wrong, we'll need to come up with a
23806         variant of strftime that doesn't need the multibyte modules.
23807
23808         I discovered this problem when attempting modify Emacs to use the
23809         strftime module.  With the previous gnulib, this caused Emacs to
23810         need 31 new files, ranging from lib/config.charset to
23811         m4/wint_t.m4.  This was overkill and I expect would be offputting
23812         to the Emacs maintainers.  After this change, only 6 new files are
23813         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23814         stdbool.m4, and tm_gmtoff.m4.
23815
23816         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23817         Suggested by Bruno Haible in
23818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23819         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23820         and do not check for wchar.h.
23821         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23822         (Depends-on): Remove mbrlen, mbsinit, wchar.
23823
23824 2011-01-18  Bruno Haible  <bruno@clisp.org>
23825
23826         Tests for module 'get-rusage-as'.
23827         * modules/get-rusage-as-tests: New file.
23828         * tests/test-get-rusage-as.c: New file.
23829
23830         New module 'get-rusage-as'.
23831         * modules/get-rusage-as: New file.
23832         * lib/resource-ext.h: New file.
23833         * lib/get-rusage-as.c: New file.
23834
23835 2011-01-17  Eric Blake  <eblake@redhat.com>
23836
23837         sigaction: relax license from LGPLv3+ to LGPLv2+
23838         * modules/sigaction (License): Relax to LGPLv2+.
23839
23840 2011-01-14  Bruno Haible  <bruno@clisp.org>
23841
23842         filemode: Make function declarations usable in C++ mode.
23843         * lib/filemode.h: Enclose function declarations in extern "C" block.
23844         Reported by John W. Eaton <jwe@gnu.org>.
23845
23846 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
23847
23848         save-cwd: no longer include "xgetcwd.h"
23849         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
23850         This avoids a compilation failure in projects that use save-cwd
23851         without also using the xgetcwd module.
23852
23853 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23854
23855         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
23856         This is so that a program like Emacs, which needs only dtoastr,
23857         does not have to bother with distributing and compiling ftoastr
23858         and ldtoastr.
23859         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
23860         * modules/dtoastr, modules/ldtoastr: New files.
23861         * modules/ftoastr: Now works just for 'float'.
23862         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
23863         (Makefile.am): Remove ftoastr.h (not needed and no effect),
23864         dtoastr.c, ldtoastr.c.
23865
23866 2011-01-11  Jim Meyering  <meyering@redhat.com>
23867
23868         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
23869         There is no need to work around the lack of the fchdir function,
23870         since gnulib can now provide a replacement when required.
23871         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
23872         * modules/save-cwd (Depends-on): Add fchdir.
23873
23874 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23875
23876         openat, save-cwd: avoid xmalloc
23877
23878         This removes a direct (but undocumented) dependency of openat on
23879         xalloc, along with an indirect dependency via save-cwd.  It also
23880         removes a dependency of save-cwd on xgetcwd, and thereby
23881         indirectly on xalloc.  This change causes the openat substitute
23882         to fall back on save_cwd when memory is tight, and for save_cwd to
23883         fail instead of dying when memory is tight, but that's good enough.
23884         Problem and initial idea for fix reported by Bastien Roucaries in
23885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
23886
23887         * lib/openat-proc.c: Include stdlib.h (for malloc), not
23888         xalloc.h (for xmalloc).
23889         (openat_proc_name): Use malloc, not xmalloc.
23890         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
23891         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
23892
23893         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
23894         This avoids heap allocation for file names whose lengths are in
23895         the range 512..1023, with the upper bound increasing to at most
23896         4031 depending on the platform's PATH_MAX.  (We do not want
23897         pathmax.h here as it might supply a non-constant PATH_MAX.)
23898         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
23899         Perhaps they should be moved to malloca.h?
23900         (OPENAT_BUFFER_SIZE): Use them.
23901
23902 2011-01-10  Bruno Haible  <bruno@clisp.org>
23903
23904         doc: Update users.txt.
23905         * users.txt: Add recutils.
23906
23907 2011-01-09  Karl Berry  <karl@gnu.org>
23908
23909         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
23910
23911         * doc/configmake.texi: New file.
23912         * doc/gnulib.texi: Include it.
23913         * modules/configmake: Move documentation from here.
23914
23915 2011-01-09  Bruno Haible  <bruno@clisp.org>
23916
23917         Update to Unicode 6.0.0.
23918         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
23919         (get_lbp): Update for Unicode 6.0.0.
23920         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
23921         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
23922         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
23923         U+11001, U+11038..U+11046. Remove U+06DE.
23924         (uc_width): Fix bounds of planes.
23925         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23926         lib/uniwidth/width.c.
23927         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
23928         trailing whitespace removed.
23929         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
23930         without comments, but with the original copyright notice.
23931         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
23932         * lib/unicase/ignorable.h: Likewise.
23933         * lib/unicase/tocasefold.h: Likewise.
23934         * lib/unicase/tolower.h: Likewise.
23935         * lib/unicase/totitle.h: Likewise.
23936         * lib/unicase/toupper.h: Likewise.
23937         * lib/unictype/bidi_of.h: Likewise.
23938         * lib/unictype/blocks.h: Likewise.
23939         * lib/unictype/categ_C.h: Likewise.
23940         * lib/unictype/categ_Cn.h: Likewise.
23941         * lib/unictype/categ_L.h: Likewise.
23942         * lib/unictype/categ_Ll.h: Likewise.
23943         * lib/unictype/categ_Lm.h: Likewise.
23944         * lib/unictype/categ_Lo.h: Likewise.
23945         * lib/unictype/categ_Lu.h: Likewise.
23946         * lib/unictype/categ_M.h: Likewise.
23947         * lib/unictype/categ_Mc.h: Likewise.
23948         * lib/unictype/categ_Me.h: Likewise.
23949         * lib/unictype/categ_Mn.h: Likewise.
23950         * lib/unictype/categ_N.h: Likewise.
23951         * lib/unictype/categ_Nd.h: Likewise.
23952         * lib/unictype/categ_No.h: Likewise.
23953         * lib/unictype/categ_P.h: Likewise.
23954         * lib/unictype/categ_Po.h: Likewise.
23955         * lib/unictype/categ_S.h: Likewise.
23956         * lib/unictype/categ_Sc.h: Likewise.
23957         * lib/unictype/categ_Sk.h: Likewise.
23958         * lib/unictype/categ_Sm.h: Likewise.
23959         * lib/unictype/categ_So.h: Likewise.
23960         * lib/unictype/categ_of.h: Likewise.
23961         * lib/unictype/combining.h: Likewise.
23962         * lib/unictype/ctype_alnum.h: Likewise.
23963         * lib/unictype/ctype_alpha.h: Likewise.
23964         * lib/unictype/ctype_graph.h: Likewise.
23965         * lib/unictype/ctype_lower.h: Likewise.
23966         * lib/unictype/ctype_print.h: Likewise.
23967         * lib/unictype/ctype_punct.h: Likewise.
23968         * lib/unictype/ctype_upper.h: Likewise.
23969         * lib/unictype/decdigit.h: Likewise.
23970         * lib/unictype/digit.h: Likewise.
23971         * lib/unictype/numeric.h: Likewise.
23972         * lib/unictype/pr_alphabetic.h: Likewise.
23973         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23974         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23975         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23976         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23977         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23978         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23979         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23980         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23981         * lib/unictype/pr_case_ignorable.h: Likewise.
23982         * lib/unictype/pr_cased.h: Likewise.
23983         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23984         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23985         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23986         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23987         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23988         * lib/unictype/pr_combining.h: Likewise.
23989         * lib/unictype/pr_composite.h: Likewise.
23990         * lib/unictype/pr_currency_symbol.h: Likewise.
23991         * lib/unictype/pr_decimal_digit.h: Likewise.
23992         * lib/unictype/pr_deprecated.h: Likewise.
23993         * lib/unictype/pr_format_control.h: Likewise.
23994         * lib/unictype/pr_grapheme_base.h: Likewise.
23995         * lib/unictype/pr_grapheme_extend.h: Likewise.
23996         * lib/unictype/pr_grapheme_link.h: Likewise.
23997         * lib/unictype/pr_id_continue.h: Likewise.
23998         * lib/unictype/pr_id_start.h: Likewise.
23999         * lib/unictype/pr_ideographic.h: Likewise.
24000         * lib/unictype/pr_lowercase.h: Likewise.
24001         * lib/unictype/pr_math.h: Likewise.
24002         * lib/unictype/pr_numeric.h: Likewise.
24003         * lib/unictype/pr_other_alphabetic.h: Likewise.
24004         * lib/unictype/pr_other_id_continue.h: Likewise.
24005         * lib/unictype/pr_other_math.h: Likewise.
24006         * lib/unictype/pr_punctuation.h: Likewise.
24007         * lib/unictype/pr_sentence_terminal.h: Likewise.
24008         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24009         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24010         * lib/unictype/pr_unified_ideograph.h: Likewise.
24011         * lib/unictype/pr_uppercase.h: Likewise.
24012         * lib/unictype/pr_xid_continue.h: Likewise.
24013         * lib/unictype/pr_xid_start.h: Likewise.
24014         * lib/unictype/scripts.h: Likewise.
24015         * lib/unictype/scripts_byname.gperf: Likewise.
24016         * lib/unictype/sy_java_ident.h: Likewise.
24017         * lib/unigbrk/gbrkprop.h: Likewise.
24018         * lib/unilbrk/lbrkprop1.h: Likewise.
24019         * lib/unilbrk/lbrkprop2.h: Likewise.
24020         * lib/uninorm/decomposition-table2.h: Likewise.
24021         * lib/uniwbrk/wbrkprop.h: Likewise.
24022         * tests/unicase/test-cased.c: Likewise.
24023         * tests/unicase/test-ignorable.c: Likewise.
24024         * tests/unicase/test-uc_tolower.c: Likewise.
24025         * tests/unicase/test-uc_totitle.c: Likewise.
24026         * tests/unicase/test-uc_toupper.c: Likewise.
24027         * tests/unictype/test-categ_C.c: Likewise.
24028         * tests/unictype/test-categ_Cn.c: Likewise.
24029         * tests/unictype/test-categ_L.c: Likewise.
24030         * tests/unictype/test-categ_Ll.c: Likewise.
24031         * tests/unictype/test-categ_Lm.c: Likewise.
24032         * tests/unictype/test-categ_Lo.c: Likewise.
24033         * tests/unictype/test-categ_Lu.c: Likewise.
24034         * tests/unictype/test-categ_M.c: Likewise.
24035         * tests/unictype/test-categ_Mc.c: Likewise.
24036         * tests/unictype/test-categ_Me.c: Likewise.
24037         * tests/unictype/test-categ_Mn.c: Likewise.
24038         * tests/unictype/test-categ_N.c: Likewise.
24039         * tests/unictype/test-categ_Nd.c: Likewise.
24040         * tests/unictype/test-categ_No.c: Likewise.
24041         * tests/unictype/test-categ_P.c: Likewise.
24042         * tests/unictype/test-categ_Po.c: Likewise.
24043         * tests/unictype/test-categ_S.c: Likewise.
24044         * tests/unictype/test-categ_Sc.c: Likewise.
24045         * tests/unictype/test-categ_Sk.c: Likewise.
24046         * tests/unictype/test-categ_Sm.c: Likewise.
24047         * tests/unictype/test-categ_So.c: Likewise.
24048         * tests/unictype/test-ctype_alnum.c: Likewise.
24049         * tests/unictype/test-ctype_alpha.c: Likewise.
24050         * tests/unictype/test-ctype_graph.c: Likewise.
24051         * tests/unictype/test-ctype_lower.c: Likewise.
24052         * tests/unictype/test-ctype_print.c: Likewise.
24053         * tests/unictype/test-ctype_punct.c: Likewise.
24054         * tests/unictype/test-ctype_upper.c: Likewise.
24055         * tests/unictype/test-decdigit.h: Likewise.
24056         * tests/unictype/test-digit.h: Likewise.
24057         * tests/unictype/test-numeric.h: Likewise.
24058         * tests/unictype/test-pr_alphabetic.c: Likewise.
24059         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24060         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24061         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24062         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24063         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24064         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24065         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24066         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24067         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24068         * tests/unictype/test-pr_cased.c: Likewise.
24069         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24070         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24071         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24072         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24073         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24074         * tests/unictype/test-pr_combining.c: Likewise.
24075         * tests/unictype/test-pr_composite.c: Likewise.
24076         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24077         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24078         * tests/unictype/test-pr_deprecated.c: Likewise.
24079         * tests/unictype/test-pr_format_control.c: Likewise.
24080         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24081         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24082         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24083         * tests/unictype/test-pr_id_continue.c: Likewise.
24084         * tests/unictype/test-pr_id_start.c: Likewise.
24085         * tests/unictype/test-pr_ideographic.c: Likewise.
24086         * tests/unictype/test-pr_lowercase.c: Likewise.
24087         * tests/unictype/test-pr_math.c: Likewise.
24088         * tests/unictype/test-pr_numeric.c: Likewise.
24089         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24090         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24091         * tests/unictype/test-pr_other_math.c: Likewise.
24092         * tests/unictype/test-pr_punctuation.c: Likewise.
24093         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24094         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24095         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24096         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24097         * tests/unictype/test-pr_uppercase.c: Likewise.
24098         * tests/unictype/test-pr_xid_continue.c: Likewise.
24099         * tests/unictype/test-pr_xid_start.c: Likewise.
24100         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24101         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24102         changes.
24103         * lib/unictype/categ_Cc.h: Likewise.
24104         * lib/unictype/categ_Cf.h: Likewise.
24105         * lib/unictype/categ_Co.h: Likewise.
24106         * lib/unictype/categ_Cs.h: Likewise.
24107         * lib/unictype/categ_Lt.h: Likewise.
24108         * lib/unictype/categ_Nl.h: Likewise.
24109         * lib/unictype/categ_Pc.h: Likewise.
24110         * lib/unictype/categ_Pd.h: Likewise.
24111         * lib/unictype/categ_Pe.h: Likewise.
24112         * lib/unictype/categ_Pf.h: Likewise.
24113         * lib/unictype/categ_Pi.h: Likewise.
24114         * lib/unictype/categ_Ps.h: Likewise.
24115         * lib/unictype/categ_Z.h: Likewise.
24116         * lib/unictype/categ_Zl.h: Likewise.
24117         * lib/unictype/categ_Zp.h: Likewise.
24118         * lib/unictype/categ_Zs.h: Likewise.
24119         * lib/unictype/ctype_blank.h: Likewise.
24120         * lib/unictype/ctype_cntrl.h: Likewise.
24121         * lib/unictype/ctype_digit.h: Likewise.
24122         * lib/unictype/ctype_space.h: Likewise.
24123         * lib/unictype/ctype_xdigit.h: Likewise.
24124         * lib/unictype/mirror.h: Likewise.
24125         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24126         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24127         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24128         * lib/unictype/pr_bidi_control.h: Likewise.
24129         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24130         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24131         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24132         * lib/unictype/pr_bidi_pdf.h: Likewise.
24133         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24134         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24135         * lib/unictype/pr_dash.h: Likewise.
24136         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24137         * lib/unictype/pr_diacritic.h: Likewise.
24138         * lib/unictype/pr_extender.h: Likewise.
24139         * lib/unictype/pr_hex_digit.h: Likewise.
24140         * lib/unictype/pr_hyphen.h: Likewise.
24141         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24142         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24143         * lib/unictype/pr_ignorable_control.h: Likewise.
24144         * lib/unictype/pr_iso_control.h: Likewise.
24145         * lib/unictype/pr_join_control.h: Likewise.
24146         * lib/unictype/pr_left_of_pair.h: Likewise.
24147         * lib/unictype/pr_line_separator.h: Likewise.
24148         * lib/unictype/pr_logical_order_exception.h: Likewise.
24149         * lib/unictype/pr_non_break.h: Likewise.
24150         * lib/unictype/pr_not_a_character.h: Likewise.
24151         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24152         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24153         * lib/unictype/pr_other_id_start.h: Likewise.
24154         * lib/unictype/pr_other_lowercase.h: Likewise.
24155         * lib/unictype/pr_other_uppercase.h: Likewise.
24156         * lib/unictype/pr_paired_punctuation.h: Likewise.
24157         * lib/unictype/pr_paragraph_separator.h: Likewise.
24158         * lib/unictype/pr_pattern_syntax.h: Likewise.
24159         * lib/unictype/pr_pattern_white_space.h: Likewise.
24160         * lib/unictype/pr_private_use.h: Likewise.
24161         * lib/unictype/pr_quotation_mark.h: Likewise.
24162         * lib/unictype/pr_radical.h: Likewise.
24163         * lib/unictype/pr_soft_dotted.h: Likewise.
24164         * lib/unictype/pr_space.h: Likewise.
24165         * lib/unictype/pr_titlecase.h: Likewise.
24166         * lib/unictype/pr_variation_selector.h: Likewise.
24167         * lib/unictype/pr_white_space.h: Likewise.
24168         * lib/unictype/pr_zero_width.h: Likewise.
24169         * lib/unictype/sy_c_ident.h: Likewise.
24170         * lib/unictype/sy_c_whitespace.h: Likewise.
24171         * lib/unictype/sy_java_whitespace.h: Likewise.
24172         * lib/uninorm/composition-table.gperf: Likewise.
24173         * lib/uninorm/decomposition-table1.h: Likewise.
24174         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24175         LB8.
24176         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24177         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24178         * modules/unictype/*: Bump version number of expected libunistring
24179         version.
24180
24181 2011-01-09  Bruno Haible  <bruno@clisp.org>
24182
24183         Update to Unicode 5.2.0.
24184         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24185         trailing whitespace removed.
24186
24187 2011-01-09  Bruno Haible  <bruno@clisp.org>
24188
24189         New Unicode character properties, from Unicode 5.2.0.
24190         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24191         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24192         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24193         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24194         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24195         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24196         uc_is_property_cased, uc_is_property_case_ignorable,
24197         uc_is_property_changes_when_lowercased,
24198         uc_is_property_changes_when_uppercased,
24199         uc_is_property_changes_when_titlecased,
24200         uc_is_property_changes_when_casefolded,
24201         uc_is_property_changes_when_casemapped): New declarations.
24202         * lib/unictype/pr_byname.gperf: Add the new properties.
24203         * modules/unictype/property-byname (Depends-on): Depend on the new
24204         properties modules.
24205         * modules/unictype/property-all (Depends-on): Likewise.
24206         * MODULES.html.sh (Unicode string functions): Add
24207         unictype/property-case-ignorable, unictype/property-cased,
24208         unictype/property-changes-when-casefolded,
24209         unictype/property-changes-when-casemapped,
24210         unictype/property-changes-when-lowercased,
24211         unictype/property-changes-when-titlecased,
24212         unictype/property-changes-when-uppercased.
24213
24214         New module 'unictype/property-changes-when-casemapped'.
24215         * modules/unictype/property-changes-when-casemapped: New file.
24216         * lib/unictype/pr_changes_when_casemapped.c: New file.
24217         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24218         generated by gen-uni-tables.
24219         * modules/unictype/property-changes-when-casemapped-tests: New file.
24220         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24221         automatically generated by gen-uni-tables.
24222
24223         New module 'unictype/property-changes-when-casefolded'.
24224         * modules/unictype/property-changes-when-casefolded: New file.
24225         * lib/unictype/pr_changes_when_casefolded.c: New file.
24226         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24227         generated by gen-uni-tables.
24228         * modules/unictype/property-changes-when-casefolded-tests: New file.
24229         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24230         automatically generated by gen-uni-tables.
24231
24232         New module 'unictype/property-changes-when-titlecased'.
24233         * modules/unictype/property-changes-when-titlecased: New file.
24234         * lib/unictype/pr_changes_when_titlecased.c: New file.
24235         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24236         generated by gen-uni-tables.
24237         * modules/unictype/property-changes-when-titlecased-tests: New file.
24238         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24239         automatically generated by gen-uni-tables.
24240
24241         New module 'unictype/property-changes-when-uppercased'.
24242         * modules/unictype/property-changes-when-uppercased: New file.
24243         * lib/unictype/pr_changes_when_uppercased.c: New file.
24244         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24245         generated by gen-uni-tables.
24246         * modules/unictype/property-changes-when-uppercased-tests: New file.
24247         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24248         automatically generated by gen-uni-tables.
24249
24250         New module 'unictype/property-changes-when-lowercased'.
24251         * modules/unictype/property-changes-when-lowercased: New file.
24252         * lib/unictype/pr_changes_when_lowercased.c: New file.
24253         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24254         generated by gen-uni-tables.
24255         * modules/unictype/property-changes-when-lowercased-tests: New file.
24256         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24257         automatically generated by gen-uni-tables.
24258
24259         New module 'unictype/property-case-ignorable'.
24260         * modules/unictype/property-case-ignorable: New file.
24261         * lib/unictype/pr_case_ignorable.c: New file.
24262         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24263         by gen-uni-tables.
24264         * modules/unictype/property-case-ignorable-tests: New file.
24265         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24266         generated by gen-uni-tables.
24267
24268         New module 'unictype/property-cased'.
24269         * modules/unictype/property-cased: New file.
24270         * lib/unictype/pr_cased.c: New file.
24271         * lib/unictype/pr_cased.h: New file, automatically generated by
24272         gen-uni-tables.
24273         * modules/unictype/property-cased-tests: New file.
24274         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24275         gen-uni-tables.
24276
24277 2011-01-09  Bruno Haible  <bruno@clisp.org>
24278
24279         Update to Unicode 5.2.0.
24280         * lib/gen-uni-tables.c (output_predicate, output_category,
24281         output_combclass, output_bidi_category, output_decimal_digit_test,
24282         output_decimal_digit, output_digit_test, output_digit,
24283         output_numeric_test, output_numeric, output_mirror, output_scripts,
24284         output_scripts_byname, output_blocks, output_ident_category): Fix
24285         comment header.
24286         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24287         get_wbp.
24288         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24289         items.
24290         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24291         Changes_When_Lowercased, Changes_When_Uppercased,
24292         Changes_When_Titlecased, Changes_When_Casefolded,
24293         Changes_When_Casemapped.
24294         (is_property_alphabetic, is_property_default_ignorable_code_point):
24295         Update for Unicode 5.2.0.
24296         (is_property_cased, is_property_case_ignorable,
24297         is_property_changes_when_lowercased,
24298         is_property_changes_when_uppercased,
24299         is_property_changes_when_titlecased,
24300         is_property_changes_when_casefolded,
24301         is_property_changes_when_casemapped): New functions.
24302         (output_properties): Output also the properties cased, case_ignorable,
24303         changes_when_lowercased, changes_when_uppercased,
24304         changes_when_titlecased, changes_when_casefolded,
24305         changes_when_casemapped.
24306         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24307         Unicode TR#11 revision 17 -> 19.
24308         (LBP_CP): New enumeration value.
24309         (LBP_*): Adjust values accordingly.
24310         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24311         TR#14 revision 22 -> 24.
24312         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24313         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24314         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24315         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24316         is_WBP_MIDLETTER.
24317         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24318         the code1 and code2 of each composition rule.
24319         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24320         * lib/unicase/ignorable.h: Likewise.
24321         * lib/unicase/tocasefold.h: Likewise.
24322         * lib/unicase/tolower.h: Likewise.
24323         * lib/unicase/totitle.h: Likewise.
24324         * lib/unicase/toupper.h: Likewise.
24325         * lib/unictype/bidi_of.h: Likewise.
24326         * lib/unictype/blocks.h: Likewise.
24327         * lib/unictype/categ_C.h: Likewise.
24328         * lib/unictype/categ_Cf.h: Likewise.
24329         * lib/unictype/categ_Cn.h: Likewise.
24330         * lib/unictype/categ_L.h: Likewise.
24331         * lib/unictype/categ_Ll.h: Likewise.
24332         * lib/unictype/categ_Lm.h: Likewise.
24333         * lib/unictype/categ_Lo.h: Likewise.
24334         * lib/unictype/categ_Lu.h: Likewise.
24335         * lib/unictype/categ_M.h: Likewise.
24336         * lib/unictype/categ_Mc.h: Likewise.
24337         * lib/unictype/categ_Mn.h: Likewise.
24338         * lib/unictype/categ_N.h: Likewise.
24339         * lib/unictype/categ_Nd.h: Likewise.
24340         * lib/unictype/categ_Nl.h: Likewise.
24341         * lib/unictype/categ_No.h: Likewise.
24342         * lib/unictype/categ_P.h: Likewise.
24343         * lib/unictype/categ_Pd.h: Likewise.
24344         * lib/unictype/categ_Po.h: Likewise.
24345         * lib/unictype/categ_S.h: Likewise.
24346         * lib/unictype/categ_Sc.h: Likewise.
24347         * lib/unictype/categ_So.h: Likewise.
24348         * lib/unictype/categ_of.h: Likewise.
24349         * lib/unictype/combining.h: Likewise.
24350         * lib/unictype/ctype_alnum.h: Likewise.
24351         * lib/unictype/ctype_alpha.h: Likewise.
24352         * lib/unictype/ctype_graph.h: Likewise.
24353         * lib/unictype/ctype_lower.h: Likewise.
24354         * lib/unictype/ctype_print.h: Likewise.
24355         * lib/unictype/ctype_punct.h: Likewise.
24356         * lib/unictype/ctype_upper.h: Likewise.
24357         * lib/unictype/decdigit.h: Likewise.
24358         * lib/unictype/digit.h: Likewise.
24359         * lib/unictype/numeric.h: Likewise.
24360         * lib/unictype/pr_alphabetic.h: Likewise.
24361         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24362         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24363         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24364         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24365         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24366         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24367         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24368         * lib/unictype/pr_combining.h: Likewise.
24369         * lib/unictype/pr_composite.h: Likewise.
24370         * lib/unictype/pr_currency_symbol.h: Likewise.
24371         * lib/unictype/pr_dash.h: Likewise.
24372         * lib/unictype/pr_decimal_digit.h: Likewise.
24373         * lib/unictype/pr_deprecated.h: Likewise.
24374         * lib/unictype/pr_diacritic.h: Likewise.
24375         * lib/unictype/pr_extender.h: Likewise.
24376         * lib/unictype/pr_grapheme_base.h: Likewise.
24377         * lib/unictype/pr_grapheme_extend.h: Likewise.
24378         * lib/unictype/pr_grapheme_link.h: Likewise.
24379         * lib/unictype/pr_id_continue.h: Likewise.
24380         * lib/unictype/pr_id_start.h: Likewise.
24381         * lib/unictype/pr_ideographic.h: Likewise.
24382         * lib/unictype/pr_ignorable_control.h: Likewise.
24383         * lib/unictype/pr_logical_order_exception.h: Likewise.
24384         * lib/unictype/pr_lowercase.h: Likewise.
24385         * lib/unictype/pr_numeric.h: Likewise.
24386         * lib/unictype/pr_other_alphabetic.h: Likewise.
24387         * lib/unictype/pr_punctuation.h: Likewise.
24388         * lib/unictype/pr_sentence_terminal.h: Likewise.
24389         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24390         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24391         * lib/unictype/pr_unified_ideograph.h: Likewise.
24392         * lib/unictype/pr_uppercase.h: Likewise.
24393         * lib/unictype/pr_xid_continue.h: Likewise.
24394         * lib/unictype/pr_xid_start.h: Likewise.
24395         * lib/unictype/pr_zero_width.h: Likewise.
24396         * lib/unictype/scripts.h: Likewise.
24397         * lib/unictype/scripts_byname.gperf: Likewise.
24398         * lib/unictype/sy_java_ident.h: Likewise.
24399         * lib/unigbrk/gbrkprop.h: Likewise.
24400         * lib/unilbrk/lbrkprop1.h: Likewise.
24401         * lib/unilbrk/lbrkprop2.h: Likewise.
24402         * lib/unilbrk/lbrktables.h: Likewise.
24403         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24404         LBP_CP. Implement rule LB30.
24405         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24406         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24407         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24408         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24409         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24410         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24411         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24412         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24413         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24414         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24415         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24416         bits instead of 16 bits in the code1 and code2 of each composition
24417         rule.
24418         (uc_composition): Update for Unicode 5.2.0.
24419         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24420         * lib/uninorm/decomposition-table2.h: Likewise.
24421         * lib/uniwbrk/wbrkprop.h: Likewise.
24422         * tests/unicase/test-cased.c: Likewise.
24423         * tests/unicase/test-ignorable.c: Likewise.
24424         * tests/unicase/test-uc_tolower.c: Likewise.
24425         * tests/unicase/test-uc_totitle.c: Likewise.
24426         * tests/unicase/test-uc_toupper.c: Likewise.
24427         * tests/unictype/test-categ_C.c: Likewise.
24428         * tests/unictype/test-categ_Cf.c: Likewise.
24429         * tests/unictype/test-categ_Cn.c: Likewise.
24430         * tests/unictype/test-categ_L.c: Likewise.
24431         * tests/unictype/test-categ_Ll.c: Likewise.
24432         * tests/unictype/test-categ_Lm.c: Likewise.
24433         * tests/unictype/test-categ_Lo.c: Likewise.
24434         * tests/unictype/test-categ_Lu.c: Likewise.
24435         * tests/unictype/test-categ_M.c: Likewise.
24436         * tests/unictype/test-categ_Mc.c: Likewise.
24437         * tests/unictype/test-categ_Mn.c: Likewise.
24438         * tests/unictype/test-categ_N.c: Likewise.
24439         * tests/unictype/test-categ_Nd.c: Likewise.
24440         * tests/unictype/test-categ_Nl.c: Likewise.
24441         * tests/unictype/test-categ_No.c: Likewise.
24442         * tests/unictype/test-categ_P.c: Likewise.
24443         * tests/unictype/test-categ_Pd.c: Likewise.
24444         * tests/unictype/test-categ_Po.c: Likewise.
24445         * tests/unictype/test-categ_S.c: Likewise.
24446         * tests/unictype/test-categ_Sc.c: Likewise.
24447         * tests/unictype/test-categ_So.c: Likewise.
24448         * tests/unictype/test-ctype_alnum.c: Likewise.
24449         * tests/unictype/test-ctype_alpha.c: Likewise.
24450         * tests/unictype/test-ctype_graph.c: Likewise.
24451         * tests/unictype/test-ctype_lower.c: Likewise.
24452         * tests/unictype/test-ctype_print.c: Likewise.
24453         * tests/unictype/test-ctype_punct.c: Likewise.
24454         * tests/unictype/test-ctype_upper.c: Likewise.
24455         * tests/unictype/test-decdigit.h: Likewise.
24456         * tests/unictype/test-digit.h: Likewise.
24457         * tests/unictype/test-numeric.h: Likewise.
24458         * tests/unictype/test-pr_alphabetic.c: Likewise.
24459         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24460         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24461         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24462         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24463         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24464         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24465         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24466         * tests/unictype/test-pr_combining.c: Likewise.
24467         * tests/unictype/test-pr_composite.c: Likewise.
24468         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24469         * tests/unictype/test-pr_dash.c: Likewise.
24470         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24471         * tests/unictype/test-pr_deprecated.c: Likewise.
24472         * tests/unictype/test-pr_diacritic.c: Likewise.
24473         * tests/unictype/test-pr_extender.c: Likewise.
24474         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24475         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24476         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24477         * tests/unictype/test-pr_id_continue.c: Likewise.
24478         * tests/unictype/test-pr_id_start.c: Likewise.
24479         * tests/unictype/test-pr_ideographic.c: Likewise.
24480         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24481         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24482         * tests/unictype/test-pr_lowercase.c: Likewise.
24483         * tests/unictype/test-pr_numeric.c: Likewise.
24484         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24485         * tests/unictype/test-pr_punctuation.c: Likewise.
24486         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24487         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24488         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24489         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24490         * tests/unictype/test-pr_uppercase.c: Likewise.
24491         * tests/unictype/test-pr_xid_continue.c: Likewise.
24492         * tests/unictype/test-pr_xid_start.c: Likewise.
24493         * tests/unictype/test-pr_zero_width.c: Likewise.
24494         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24495         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24496         changed behaviour: line breaking is now disallowed between a letter
24497         or '=' and '('.
24498         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24499         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24500         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24501         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24502         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24503         lib/uniwidth/width.c.
24504         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24505         without comments, but with the original copyright notice.
24506         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24507         changes.
24508         * lib/unictype/categ_Cc.h: Likewise.
24509         * lib/unictype/categ_Co.h: Likewise.
24510         * lib/unictype/categ_Cs.h: Likewise.
24511         * lib/unictype/categ_Lt.h: Likewise.
24512         * lib/unictype/categ_Me.h: Likewise.
24513         * lib/unictype/categ_Pc.h: Likewise.
24514         * lib/unictype/categ_Pe.h: Likewise.
24515         * lib/unictype/categ_Pf.h: Likewise.
24516         * lib/unictype/categ_Pi.h: Likewise.
24517         * lib/unictype/categ_Ps.h: Likewise.
24518         * lib/unictype/categ_Sk.h: Likewise.
24519         * lib/unictype/categ_Sm.h: Likewise.
24520         * lib/unictype/categ_Z.h: Likewise.
24521         * lib/unictype/categ_Zl.h: Likewise.
24522         * lib/unictype/categ_Zp.h: Likewise.
24523         * lib/unictype/categ_Zs.h: Likewise.
24524         * lib/unictype/ctype_blank.h: Likewise.
24525         * lib/unictype/ctype_cntrl.h: Likewise.
24526         * lib/unictype/ctype_digit.h: Likewise.
24527         * lib/unictype/ctype_space.h: Likewise.
24528         * lib/unictype/ctype_xdigit.h: Likewise.
24529         * lib/unictype/mirror.h: Likewise.
24530         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24531         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24532         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24533         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24534         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24535         * lib/unictype/pr_bidi_control.h: Likewise.
24536         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24537         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24538         * lib/unictype/pr_bidi_pdf.h: Likewise.
24539         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24540         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24541         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24542         * lib/unictype/pr_format_control.h: Likewise.
24543         * lib/unictype/pr_hex_digit.h: Likewise.
24544         * lib/unictype/pr_hyphen.h: Likewise.
24545         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24546         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24547         * lib/unictype/pr_iso_control.h: Likewise.
24548         * lib/unictype/pr_join_control.h: Likewise.
24549         * lib/unictype/pr_left_of_pair.h: Likewise.
24550         * lib/unictype/pr_line_separator.h: Likewise.
24551         * lib/unictype/pr_math.h: Likewise.
24552         * lib/unictype/pr_non_break.h: Likewise.
24553         * lib/unictype/pr_not_a_character.h: Likewise.
24554         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24555         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24556         * lib/unictype/pr_other_id_continue.h: Likewise.
24557         * lib/unictype/pr_other_id_start.h: Likewise.
24558         * lib/unictype/pr_other_lowercase.h: Likewise.
24559         * lib/unictype/pr_other_math.h: Likewise.
24560         * lib/unictype/pr_other_uppercase.h: Likewise.
24561         * lib/unictype/pr_paired_punctuation.h: Likewise.
24562         * lib/unictype/pr_paragraph_separator.h: Likewise.
24563         * lib/unictype/pr_pattern_syntax.h: Likewise.
24564         * lib/unictype/pr_pattern_white_space.h: Likewise.
24565         * lib/unictype/pr_private_use.h: Likewise.
24566         * lib/unictype/pr_quotation_mark.h: Likewise.
24567         * lib/unictype/pr_radical.h: Likewise.
24568         * lib/unictype/pr_soft_dotted.h: Likewise.
24569         * lib/unictype/pr_space.h: Likewise.
24570         * lib/unictype/pr_titlecase.h: Likewise.
24571         * lib/unictype/pr_variation_selector.h: Likewise.
24572         * lib/unictype/pr_white_space.h: Likewise.
24573         * lib/unictype/sy_c_ident.h: Likewise.
24574         * lib/unictype/sy_c_whitespace.h: Likewise.
24575         * lib/unictype/sy_java_whitespace.h: Likewise.
24576         * modules/uni*/*: Bump version number of expected libunistring version.
24577         Reported by Simon Josefsson.
24578
24579 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24580
24581         useless-if-before-free: fix typo in --help and make the internal,
24582         automatic version date update process work once again.
24583         --help output contained a NUL character instead of the
24584         backslash-zero that was intended.  Also, the "must lie within
24585         the first 8 lines" line is on line 9, and hence not getting
24586         automatically updated.
24587         * build-aux/useless-if-before-free: Fix the former by adding a
24588         backslash, and the latter by condensing the three lines of what-it-does
24589         to a single line, leaving one line of slack for the future.
24590
24591 2011-01-09  Bruno Haible  <bruno@clisp.org>
24592
24593         uniwidth/width: Fix width of U+1D173..U+1D17A.
24594         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24595         symbolic_width, output_width_property_test): New functions.
24596         (main): Invoke output_nonspacing_property, output_width_property_test.
24597         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24598         U+1D173..U+1D17A.
24599         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24600         1.
24601         * modules/uniwidth/*: Bump version number of expected libunistring
24602         version.
24603         * modules/unilbrk/*: Likewise.
24604
24605 2011-01-08  Bruno Haible  <bruno@clisp.org>
24606
24607         uninorm tests: Preserve copyright of Unicode data file.
24608         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24609         Mention modifications.
24610
24611 2011-01-08  Bruno Haible  <bruno@clisp.org>
24612
24613         gen-uni-tables: Prepare for Unicode 5.2.0.
24614         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24615         (debug_output_lbp, output_lbp): Update.
24616
24617 2011-01-08  Bruno Haible  <bruno@clisp.org>
24618
24619         unilbrk: Clarify gen-uni-tables.c code.
24620         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24621         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24622         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24623
24624 2011-01-07  Bruno Haible  <bruno@clisp.org>
24625
24626         strtod: Restore errno when successfully parsing Infinity or NaN.
24627         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24628         restore the original errno.
24629
24630 2011-01-07  Bruno Haible  <bruno@clisp.org>
24631
24632         remove test: Avoid failure on HP-UX 11.
24633         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24634
24635 2011-01-07  Bruno Haible  <bruno@clisp.org>
24636
24637         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24638         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24639         error code.
24640
24641 2011-01-07  Pádraig Brady <P@draigBrady.com>
24642
24643         ignore-value: fixup comments, and add Eric Blake
24644         as an author since he rewrote the macros.
24645         * lib/ignore-value.h (ignore_value):  State that
24646         we now support aggregates.  Also specify exactly
24647         when the GCC warn_unused_result feature was added.
24648
24649 2011-01-06  Eric Blake  <eblake@redhat.com>
24650
24651         ignore-value: support aggregate types
24652         * lib/ignore-value.h (ignore_value): Provide separate gcc
24653         definition.
24654         * modules/ignore-value-tests: New test module.
24655         * tests/test-ignore-value.c: New test.
24656
24657         maint.mk: improve sc_prohibit_strcmp regex
24658         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24659         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24660         definition of STRNEQ.
24661
24662         signal: work around Haiku issue with SIGBUS
24663         * lib/siglist.h: Add comment.
24664         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24665         strsignal's favoring of SIGSEGV.
24666         * tests/test-signal.c (main): Avoid test failure.
24667         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24668         Reported by Scott McCreary.
24669
24670         maint.mk: add pre-release check to ensure submodule commits are public
24671         * top/maint.mk (public-submodule-commit): New rule.
24672         (submodule-checks): New variable.
24673         (alpha beta stable): Depend on the variable.
24674
24675 2011-01-05  Pádraig Brady <P@draigBrady.com>
24676         and Jim Meyering  <meyering@redhat.com>
24677
24678         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24679         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24680         (ATTRIBUTE_DEPRECATED): Define.
24681         (_ignore_case): New function.
24682         (ignore_value): New macro, to replace the old function.
24683         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24684         * modules/ignore-value (Depends-on): Add stdint.
24685
24686 2011-01-04  Eric Blake  <eblake@redhat.com>
24687
24688         doc: regenerate INSTALL
24689         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24690         @firstparagraphindent support, now that autoconf dropped it.
24691         (INSTALL_PRELUDE): Reinstate old macro.
24692         * doc/install.texi: Resync from autoconf.
24693         * doc/INSTALL: Reflect recent autoconf update.
24694         * doc/INSTALL.ISO: Likewise.
24695         * doc/INSTALL.UTF-8: Likewise.
24696         Reported by Karl Berry.
24697
24698 2011-01-04  Bruce Korb  <address@hidden>
24699
24700         git-version-gen: avoid a sub-shell
24701         * build-aux/git-version-gen: Redirect stderr in `...` via
24702         "exec 2>...", rather than via an added sub-shell.
24703
24704 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24705
24706         git-version-gen: use (...) rather than sh -c '...'
24707         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24708         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24709
24710 2011-01-03  Jim Meyering  <meyering@redhat.com>
24711
24712         git-version-gen: convert leading TABs to spaces
24713         * build-aux/git-version-gen: Expand leading TABs.
24714
24715         git-version-gen: handle failed "git rev-list"
24716         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24717         from git and proceeding as if it had succeeded but printed no SHA1
24718         checksums, suppress the diagnostic and handle the failure.
24719         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24720
24721         git-version-gen: include command name in one more diagnostic
24722         * build-aux/git-version-gen: When the required .tarball-version file
24723         was missing or unreadable, you might see the diagnostic from "cat",
24724         but no trace of the name of the invoking script.  Now, you still see
24725         the diagnostic from cat, but also get one from "git-version-gen: ".
24726         Inspired by a patch from Bruce Korb.
24727
24728         update-copyright: adjust test to match changed code
24729         * tests/test-update-copyright.sh: Change test's expected output
24730         to match new actual output.
24731
24732 2011-01-02  Bruno Haible  <bruno@clisp.org>
24733
24734         getlogin_r: Avoid test failure on HP-UX 11.
24735         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24736         ERANGE when the second argument is zero.
24737         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24738         portability problem.
24739
24740 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24741
24742         * build-aux/update-copyright: doc Simon's changes
24743
24744 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24745
24746         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24747         environment variable.
24748
24749 2011-01-02  Bruno Haible  <bruno@clisp.org>
24750
24751         unigbrk: Avoid gcc warnings.
24752         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24753         unused variable.
24754         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24755         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24756         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24757         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24758         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24759         Change type of first argument to 'const char *'.
24760         (main): Remove unused variable.
24761         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24762         type of first argument to 'const char *'.
24763         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24764         Likewise.
24765         (main): Change type of variable 's'.
24766         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24767         to 'int'.
24768
24769 2011-01-02  Bruno Haible  <bruno@clisp.org>
24770
24771         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24772         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24773         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24774         bug.
24775         * lib/pwrite.c: Undo 2010-12-31 patch.
24776         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24777
24778 2011-01-02  Bruno Haible  <bruno@clisp.org>
24779
24780         pread: Fix test whether it works.
24781         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24782
24783 2011-01-02  Bruno Haible  <bruno@clisp.org>
24784
24785         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24786         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24787         ends in "6". Don't require a specific month name. Try also the locale
24788         names found on HP-UX 11 and Solaris 7.
24789
24790 2011-01-02  Bruno Haible  <bruno@clisp.org>
24791
24792         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24793         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24794         C linkage.
24795         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24796
24797 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24798
24799         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24800         for consistency, since the "cluster" term is not used elsewhere.
24801         * lib/unigbrk.in.h: Update name.
24802         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24803         * lib/unigbrk/u16-grapheme-next.c: Update name.
24804         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24805         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24806         * lib/unigbrk/u32-grapheme-next.c: Update name.
24807         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24808         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24809         * lib/unigbrk/u8-grapheme-next.c: Update name.
24810         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24811         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24812         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24813         Suggested by Bruno Haible.
24814
24815 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24816
24817         Remove module 'u8-grapheme-len' as too redundant with
24818         'u8-grapheme-next'.
24819         * modules/unigbrk/u8-grapheme-len: Delete file.
24820         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24821         * lib/unigbrk.in.h: Remove prototype for deleted function.
24822         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24823         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24824
24825         Remove module 'u16-grapheme-len' as too redundant with
24826         'u16-grapheme-next'.
24827         * modules/unigbrk/u16-grapheme-len: Delete file.
24828         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24829         * lib/unigbrk.in.h: Remove prototype for deleted function.
24830         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24831         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
24832
24833         Remove module 'u32-grapheme-len' as too redundant with
24834         'u32-grapheme-next'.
24835         * modules/unigbrk/u32-grapheme-len: Delete file.
24836         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
24837         * lib/unigbrk.in.h: Remove prototype for deleted function.
24838         * lib/unigbrk/u32-grapheme-len.c: Delete file.
24839         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
24840
24841         Suggested by Bruno Haible.
24842
24843 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24844
24845         * unigbrk.in.h: Fix typo: "ben" => "been".
24846         Reported by Bruno Haible.
24847
24848 2011-01-01  Jim Meyering  <meyering@redhat.com>
24849
24850         maint: update almost all copyright ranges to include 2011
24851         Run the new "make update-copyright" rule.
24852
24853 2011-01-01  Jim Meyering  <meyering@redhat.com>
24854
24855         maint: update-copyright: exempt doc/INSTALL*
24856         * Makefile (update-copyright): Also exclude doc/INSTALL*,
24857         since they are generated.  Suggested by Bruno Haible.
24858
24859 2011-01-01  Jim Meyering  <meyering@redhat.com>
24860
24861         maint: refine the update-copyright rule
24862         * Makefile (update-copyright): Also exclude any file that includes
24863         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
24864         code that merely generates the comment.
24865
24866 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24867
24868         New module 'u8-grapheme-len'.
24869         * modules/unigbrk/u8-grapheme-len: New file.
24870         * modules/unigbrk/u8-grapheme-len-tests: New file.
24871         * lib/unigbrk.in.h: Add prototype for new function.
24872         * lib/unigbrk/u8-grapheme-len.c: New file.
24873         * tests/unigbrk/test-u8-grapheme-len.c: New file.
24874
24875         New module 'u16-grapheme-len'.
24876         * modules/unigbrk/u16-grapheme-len: New file.
24877         * modules/unigbrk/u16-grapheme-len-tests: New file.
24878         * lib/unigbrk.in.h: Add prototype for new function.
24879         * lib/unigbrk/u16-grapheme-len.c: New file.
24880         * tests/unigbrk/test-u16-grapheme-len.c: New file.
24881
24882         New module 'u32-grapheme-len'.
24883         * modules/unigbrk/u32-grapheme-len: New file.
24884         * modules/unigbrk/u32-grapheme-len-tests: New file.
24885         * lib/unigbrk.in.h: Add prototype for new function.
24886         * lib/unigbrk/u32-grapheme-len.c: New file.
24887         * tests/unigbrk/test-u32-grapheme-len.c: New file.
24888
24889         New module 'u8-grapheme-next'.
24890         * modules/unigbrk/u8-grapheme-next: New file.
24891         * modules/unigbrk/u8-grapheme-next-tests: New file.
24892         * lib/unigbrk.in.h: Add prototype for new function.
24893         * lib/unigbrk/u8-grapheme-next.c: New file.
24894         * tests/unigbrk/test-u8-grapheme-next.c: New file.
24895
24896         New module 'u16-grapheme-next'.
24897         * modules/unigbrk/u16-grapheme-next: New file.
24898         * modules/unigbrk/u16-grapheme-next-tests: New file.
24899         * lib/unigbrk.in.h: Add prototype for new function.
24900         * lib/unigbrk/u16-grapheme-next.c: New file.
24901         * tests/unigbrk/test-u16-grapheme-next.c: New file.
24902
24903         New module 'u32-grapheme-next'.
24904         * modules/unigbrk/u32-grapheme-next: New file.
24905         * modules/unigbrk/u32-grapheme-next-tests: New file.
24906         * lib/unigbrk.in.h: Add prototype for new function.
24907         * lib/unigbrk/u32-grapheme-next.c: New file.
24908         * tests/unigbrk/test-u32-grapheme-next.c: New file.
24909
24910         New module 'u8-grapheme-prev'.
24911         * modules/unigbrk/u8-grapheme-prev: New file.
24912         * modules/unigbrk/u8-grapheme-prev-tests: New file.
24913         * lib/unigbrk.in.h: Add prototype for new function.
24914         * lib/unigbrk/u8-grapheme-prev.c: New file.
24915         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
24916
24917         New module 'u16-grapheme-prev'.
24918         * modules/unigbrk/u16-grapheme-prev: New file.
24919         * modules/unigbrk/u16-grapheme-prev-tests: New file.
24920         * lib/unigbrk.in.h: Add prototype for new function.
24921         * lib/unigbrk/u16-grapheme-prev.c: New file.
24922         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
24923
24924         New module 'u32-grapheme-prev'.
24925         * modules/unigbrk/u32-grapheme-prev: New file.
24926         * modules/unigbrk/u32-grapheme-prev-tests: New file.
24927         * lib/unigbrk.in.h: Add prototype for new function.
24928         * lib/unigbrk/u32-grapheme-prev.c: New file.
24929         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
24930
24931         New module 'u8-grapheme-breaks'.
24932         * modules/unigbrk/u8-grapheme-breaks: New file.
24933         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
24934         * lib/unigbrk.in.h: Add prototype for new function.
24935         * lib/unigbrk/u8-grapheme-breaks.c: New file.
24936         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
24937
24938         New module 'u16-grapheme-breaks'.
24939         * modules/unigbrk/u16-grapheme-breaks: New file.
24940         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
24941         * lib/unigbrk.in.h: Add prototype for new function.
24942         * lib/unigbrk/u16-grapheme-breaks.c: New file.
24943         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
24944
24945         New module 'u32-grapheme-breaks'.
24946         * modules/unigbrk/u32-grapheme-breaks: New file.
24947         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
24948         * lib/unigbrk.in.h: Add prototype for new function.
24949         * lib/unigbrk/u32-grapheme-breaks.c: New file.
24950         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
24951
24952         New module 'ulc-grapheme-breaks'.
24953         * modules/unigbrk/ulc-grapheme-breaks: New file.
24954         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
24955         * m4/locale-ar.m4: New file.
24956         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
24957         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
24958         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
24959
24960 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24961
24962         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
24963         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
24964         modified how this file was generated before I initially submitted
24965         the module, but failed to regenerate it.  This meant that several
24966         of the level2 entries were wrong.
24967         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
24968         Remove the division-by-2 that is folded into the table now that
24969         gbrkprop.h has been regenerated properly.  Now -1 entries are
24970         handled correctly.
24971
24972         New module 'unigbrk/uc-gbrk-prop-tests'.
24973         * modules/unigbrk/uc-gbrk-prop-tests: New file.
24974         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
24975         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
24976         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24977
24978 2011-01-01  Bruno Haible  <bruno@clisp.org>
24979
24980         Avoid use of hexadecimal escapes.
24981         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24982         instead of hexadecimal escapes.
24983
24984 2011-01-01  Jim Meyering  <meyering@redhat.com>
24985
24986         maint: new rule to update copyright year ranges
24987         * Makefile (update-copyright): New rule.
24988
24989         maint: indent with TABs in Makefile
24990         * Makefile: Expand leading sequences of spaces to TABs
24991
24992         version-etc: update the copyright year it reports
24993         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24994
24995 2010-12-31  Bruno Haible  <bruno@clisp.org>
24996
24997         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24998         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24999         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25000         zero.
25001
25002 2010-12-31  Bruno Haible  <bruno@clisp.org>
25003
25004         pwrite: Work around HP-UX 11.11 bug.
25005         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25006         works and set REPLACE_PWRITE if not.
25007         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25008         function.
25009         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25010
25011 2010-12-31  Bruno Haible  <bruno@clisp.org>
25012
25013         pread: Work around HP-UX 11 bugs.
25014         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25015         and set REPLACE_PREAD if not.
25016         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25017
25018 2010-12-31  Eric Blake  <eblake@redhat.com>
25019
25020         nl_langinfo: fix YESEXPR on Irix 6.5
25021         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25022         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25023         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25024         it.
25025
25026 2010-12-31  Bruno Haible  <bruno@clisp.org>
25027
25028         iconv: Document HP-UX 11 bug.
25029         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25030
25031 2010-12-31  Bruno Haible  <bruno@clisp.org>
25032
25033         ldexpl: Fix link error on HP-UX 11.
25034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25035         LDEXPL_LIBM, using $ISNANL_LIBM.
25036
25037 2010-12-31  Eric Blake  <eblake@redhat.com>
25038
25039         ftello: avoid compilation failure with SunStudio c89
25040         * lib/ftello.c (ftello): Use lseek, not llseek.
25041
25042         tests: avoid failing coreutils tests on cygwin
25043         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25044         (create_exe_shims_): Return 0 when skipping.
25045
25046 2010-12-31  Bruno Haible  <bruno@clisp.org>
25047
25048         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25049         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25050
25051 2010-12-31  Bruno Haible  <bruno@clisp.org>
25052
25053         waitpid: Fix link error in C++ mode.
25054         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25055
25056 2010-12-31  Bruno Haible  <bruno@clisp.org>
25057
25058         isnan: Use GCC built-ins when possible.
25059         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25060         __builtin_isnan.
25061         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25062         (isnan): Define using GCC built-ins for GCC >= 4.0.
25063
25064 2010-12-31  Bruno Haible  <bruno@clisp.org>
25065
25066         isnand: Fix mistake.
25067         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25068         __builtin_isnand.
25069
25070 2010-12-31  Bruno Haible  <bruno@clisp.org>
25071
25072         open: Avoid C++ error on HP-UX 11.
25073         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25074
25075 2010-12-31  Bruno Haible  <bruno@clisp.org>
25076
25077         time_r: Add missing declarations on HP-UX 11.
25078         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25079         instead of HAVE_LOCALTIME_R.
25080         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25081         HAVE_LOCALTIME_R always.
25082         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25083         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25084         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25085         HAVE_LOCALTIME_R.
25086         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25087         * doc/posix-functions/localtime_r.texi: Likewise.
25088
25089 2010-12-29  Eric Blake  <eblake@redhat.com>
25090
25091         mountlist: tweak previous commit
25092         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25093         Reported by Paul Eggert.
25094
25095         mountlist: fix local drive detection on cygwin
25096         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25097         that works for cygwin.
25098
25099 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25100
25101         ftoastr, snprintf: ftoastr + snprintf module
25102         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25103         since the snprintf module now should be good enough here.
25104         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25105         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25106         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25107         GNULIB_SNPRINTF only for the test directory, and the latter
25108         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25109         seems to suffice by itself.
25110
25111 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25112
25113         alloca: one step towards thread-safety
25114         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25115         need for a static variable.  All callers changed.  This does not
25116         make the alloca replacement thread-safe, but it's one step.
25117
25118         tests: minor indenting change
25119         * tests/init.sh: Sync from coreutils housekeeping patch
25120         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25121         to keep lines within 80 columns.
25122
25123 2010-12-28  Jim Meyering  <meyering@redhat.com>
25124
25125         regex: don't infloop on persistent failing calloc
25126         * lib/regexec.c (build_trtable): Return failure indication upon
25127         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25128         In glibc, this was fixed for version 2.13:
25129         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25130
25131 2010-12-28  Bruno Haible  <bruno@clisp.org>
25132             Paul Eggert <eggert@cs.ucla.edu>
25133
25134         linkat: Make implementation robust against system behaviour variations.
25135         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25136         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25137         way, and to -2 if it needs a generic runtime test.
25138         * lib/linkat.c (solaris_optimized_link_immediate,
25139         solaris_optimized_link_follow): New functions.
25140         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25141         (check_same_link): Use it.
25142
25143 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25144
25145         New module 'unigbrk/base'.
25146         * modules/unigbrk/base: New file.
25147         * lib/unigbrk.in.h: New file.
25148
25149         New module 'unigbrk/uc-gbrk-prop'.
25150         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25151         * modules/unigbrk/uc-gbrk-prop: New file.
25152         * lib/unigbrk/gbrkprop.h: New file.
25153         * lib/unigbrk/uc-gbrk-prop.c: New file.
25154
25155         New module 'unigbrk/uc-is-grapheme-break'.
25156         * modules/unigbrk/uc-is-grapheme-break: New file.
25157         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25158         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25159         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25160         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25161         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25162
25163         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25164
25165 2010-12-27  Bruno Haible  <bruno@clisp.org>
25166
25167         linkat test: Avoid failure on Solaris 11 2010-11.
25168         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25169
25170 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25171
25172         utimens: work around glibc rounding bug on more platforms
25173         * lib/utimens.c (fdutimens): Work around rounding bug even if
25174         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25175         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25176
25177 2010-12-27  Bruno Haible  <bruno@clisp.org>
25178
25179         select tests: Improve comments.
25180         * tests/test-select.c (do_select): Add comments.
25181
25182 2010-12-27  Bruno Haible  <bruno@clisp.org>
25183
25184         select tests: Safer way of handling timeout.
25185         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25186         at every invocation.
25187
25188 2010-12-27  Bruno Haible  <bruno@clisp.org>
25189
25190         select tests: Use 'bool' where appropriate.
25191         * tests/test-select.c (connect_to_socket): Change argument type to
25192         'bool'.
25193
25194 2010-12-27  Bruno Haible  <bruno@clisp.org>
25195
25196         select tests: Use existing modules.
25197         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25198         (configure.ac): Don't test for unistd.h.
25199         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25200         declared in <unistd.h>.
25201
25202 2010-12-27  Bruno Haible  <bruno@clisp.org>
25203
25204         mbrtowc: Work around a Solaris 7 bug.
25205         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25206         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25207         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25208         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25209         MBRTOWC_NULL_ARG1_BUG.
25210         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25211         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25212         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25213         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25214
25215 2010-12-27  Jim Meyering  <meyering@redhat.com>
25216
25217         read-file.c: tweak syntax
25218         * lib/read-file.c (fread_file): Remove space after "*" in function
25219         definitions.
25220
25221 2010-12-27  Bruno Haible  <bruno@clisp.org>
25222
25223         times test: Avoid gcc warnings on OSF/1.
25224         * tests/test-times.c (main): Cast printf arguments from clock_t to
25225         'long int'.
25226
25227 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25228
25229         utimens: work around glibc rounding bug on older Linux kernels
25230         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25231         on Linux with a glibc whose utimes might not work, then work
25232         around a longstanding glibc bug involving rounding rather than
25233         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25234         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25235
25236 2010-12-26  Bruno Haible  <bruno@clisp.org>
25237
25238         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25239         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25240         _GL_CXXALIAS_SYS.
25241         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25242
25243 2010-12-26  Bruno Haible  <bruno@clisp.org>
25244
25245         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25246         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25247         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25248         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25249         looking for the declaration.
25250         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25251         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25252         problem.
25253         * doc/posix-functions/inet_pton.texi: Likewise.
25254
25255 2010-12-26  Bruno Haible  <bruno@clisp.org>
25256
25257         arpa_inet: Use the common idioms with C++ support.
25258         * lib/arpa_inet.in.h: Include c++defs.h.
25259         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25260         support.
25261         * modules/arpa_inet (Depends-on): Add c++defs.
25262         (Makefile.am): Substitute the contents of c++defs.h.
25263         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25264         * modules/arpa_inet-c++-tests: New file.
25265         * tests/test-arpa_inet-c++.cc: New file.
25266
25267 2010-12-25  Bruno Haible  <bruno@clisp.org>
25268
25269         Fix more C++ link errors on Solaris 8.
25270         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25271         $(LIB_EACCESS).
25272         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25273         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25274         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25275         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25276         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25277
25278 2010-12-25  Bruno Haible  <bruno@clisp.org>
25279
25280         printf-posix: Fix link error when a non-GCC compiler is used.
25281         * lib/stdio.in.h (printf): When not using GCC, override printf
25282         correctly.
25283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25284
25285 2010-12-25  Bruno Haible  <bruno@clisp.org>
25286
25287         strerror_r-posix: Update doc.
25288         * doc/posix-functions/strerror_r.texi: Update doc about the return
25289         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25290
25291 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25292
25293         utimens: simplify the logic of the previous change
25294         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25295         This should not affect whether the test succeeds or fails.
25296
25297         utimens: configure better on hosts with NFS clock skew
25298         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25299         uses the clock of the local host.  It might use the clock of the
25300         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25301         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25302
25303 2010-12-25  Bruno Haible  <bruno@clisp.org>
25304
25305         ptsname test: Avoid failure on Solaris.
25306         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25307         open a pseudo-terminal; don't use BSD-style ptys.
25308         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25309
25310 2010-12-25  Bruno Haible  <bruno@clisp.org>
25311
25312         ptsname: Avoid ERANGE failure on some systems.
25313         * lib/ptsname.c (buffer): Increase size.
25314
25315 2010-12-25  Bruno Haible  <bruno@clisp.org>
25316
25317         rename, renameat: Avoid test failures at NFS mounted locations.
25318         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25319         so that subsequent mkdir calls succeed.
25320
25321 2010-12-25  Bruno Haible  <bruno@clisp.org>
25322
25323         iswblank: Fix C++ link error on Solaris 8.
25324         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25325         _GL_FUNCDECL_SYS.
25326
25327 2010-12-25  Bruno Haible  <bruno@clisp.org>
25328
25329         unistd: Fix C++ link error on Solaris 8.
25330         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25331
25332 2010-12-25  Bruno Haible  <bruno@clisp.org>
25333
25334         readlink doc: Mention an old glibc bug.
25335         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25336
25337 2010-12-25  Bruno Haible  <bruno@clisp.org>
25338
25339         fcntl-h: Fix for use of C++ on glibc systems.
25340         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25341         also on glibc systems in C++ mode.
25342         Reported by Gary V. Vaughan <gary@gnu.org>.
25343
25344 2010-12-25  Bruno Haible  <bruno@clisp.org>
25345
25346         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25347         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25348
25349 2010-12-25  Bruno Haible  <bruno@clisp.org>
25350
25351         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25352         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25353         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25354         test whether truncl works according to ISO C 99 with IEC 60559.
25355         * m4/truncl-ieee.m4: New file.
25356         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25357         m4/signbit.m4.
25358         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25359
25360 2010-12-25  Bruno Haible  <bruno@clisp.org>
25361
25362         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25363         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25364         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25365         test whether ceill works according to ISO C 99 with IEC 60559.
25366         * m4/ceill-ieee.m4: New file.
25367         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25368         m4/signbit.m4.
25369         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25370
25371 2010-12-25  Bruno Haible  <bruno@clisp.org>
25372
25373         Ensure all prerequisites of <wchar.h> are included.
25374         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25375         before <wchar.h>.
25376         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25377         gl_MBRLEN_NUL_RETVAL): Likewise.
25378         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25379         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25380         AC_FUNC_MBRTOWC): Likewise.
25381         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25382         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25383         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25384         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25385         Likewise.
25386         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25387         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25388         (gl_WCHAR_H): Improve comments.
25389         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25390
25391 2010-12-25  Bruno Haible  <bruno@clisp.org>
25392
25393         strtok_r: Fix C syntax error in autoconf macro.
25394         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25395         characters in test program.
25396
25397 2010-12-24  Bruno Haible  <bruno@clisp.org>
25398
25399         ceil, trunc, round: Fix gcc warnings.
25400         * lib/ceil.c (MIN): Undefine before redefining.
25401         * lib/trunc.c (MIN): Likewise.
25402         * lib/round.c (MIN): Likewise.
25403         Include <math.h> first.
25404
25405 2010-12-24  Bruno Haible  <bruno@clisp.org>
25406
25407         select tests: Avoid failures on OSF/1 5.1.
25408         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25409         failure of closing the last socket; it may fail with ECONNRESET.
25410
25411 2010-12-24  Eric Blake  <eblake@redhat.com>
25412
25413         stdint: avoid HP-UX 10.20 preprocessor bug
25414         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25415         than #if.
25416         * tests/test-floor2.c (main): Likewise.
25417         Reported by Peter O'Gorman.
25418
25419         pipe: make obsoletion transition easier
25420         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25421         * modules/pipe (Files): Include revived file.
25422         (Include): Drop reference, to mirror getdate's behavior.
25423
25424 2010-12-24  Bruno Haible  <bruno@clisp.org>
25425
25426         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25427         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25428         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25429         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25430
25431 2010-12-24  Bruno Haible  <bruno@clisp.org>
25432
25433         gethostname: Ensure declaration on NonStop Kernel.
25434         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25435         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25436
25437 2010-12-24  Bruno Haible  <bruno@clisp.org>
25438
25439         sys_select: Ensure all necessary types on NonStop Kernel.
25440         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25441         include <sys/time.h>.
25442         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25443         NonStop Kernel.
25444         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25445
25446 2010-12-24  Bruno Haible  <bruno@clisp.org>
25447
25448         sys_select: Remove unneeded include.
25449         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25450         have <sys/select.h>.
25451
25452 2010-12-24  Bruno Haible  <bruno@clisp.org>
25453
25454         gethostname: Provide a fallback for HOST_NAME_MAX.
25455         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25456         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25457         instead.
25458         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25459
25460 2010-12-24  Bruno Haible  <bruno@clisp.org>
25461
25462         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25463         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25464         (SA_RESTART): Likewise.
25465         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25466
25467 2010-12-24  Bruno Haible  <bruno@clisp.org>
25468
25469         signal: Define NSIG.
25470         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25471         * tests/test-signal.c (nsig): New variable.
25472         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25473
25474 2010-12-24  Bruno Haible  <bruno@clisp.org>
25475
25476         rename, renameat: Avoid test failures on OSF/1 5.1.
25477         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25478         alternative error codes.
25479         * tests/test-renameat.c (main): Likewise.
25480
25481 2010-12-24  Bruno Haible  <bruno@clisp.org>
25482
25483         *printf: Detect large precisions bug on Solaris 10/SPARC.
25484         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25485         by Paul Eggert.
25486         * tests/test-snprintf-posix.h (test_function): Add this test code here
25487         too.
25488         * tests/test-sprintf-posix.h (test_function): Likewise.
25489         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25490         * tests/test-vasprintf-posix.c (test_function): Likewise.
25491         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25492         around by gnulib.
25493         * doc/posix-functions/printf.texi: Likewise.
25494         * doc/posix-functions/snprintf.texi: Likewise.
25495         * doc/posix-functions/sprintf.texi: Likewise.
25496         * doc/posix-functions/vfprintf.texi: Likewise.
25497         * doc/posix-functions/vprintf.texi: Likewise.
25498         * doc/posix-functions/vsnprintf.texi: Likewise.
25499         * doc/posix-functions/vsprintf.texi: Likewise.
25500         * doc/posix-functions/dprintf.texi: Undo last commit.
25501         * doc/posix-functions/vdprintf.texi: Likewise.
25502
25503 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25504
25505         tests: port test-fdutimensat.c to Solaris 8
25506         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25507         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25508         On Solaris 8, it fails with errno == ENOSYS, because there is no
25509         futimens (so it can't use the fd), and there is no lutimens (so it
25510         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25511
25512         vsnprintf: make more consistent with snprintf; doc fixes
25513
25514         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25515         the byte count return problem was promoted from the snprintf-posix
25516         to the snprintf module.
25517         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25518         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25519         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25520         * tests/test-snprintf.c (main): Check the byte count returned.
25521         * tests/test-vsnprintf.c (main): Likewise.
25522
25523 2010-12-23  Eric Blake  <eblake@redhat.com>
25524
25525         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25526         * modules/sigpipe (License): Relax license.
25527
25528 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25529
25530         doc: document Solaris printf bug with large float precisions
25531         * doc/posix-functions/dprintf.texi (dprintf):
25532         * doc/posix-functions/fprintf.texi (fprintf):
25533         * doc/posix-functions/printf.texi (printf):
25534         * doc/posix-functions/snprintf.texi (snprintf):
25535         * doc/posix-functions/sprintf.texi (sprintf):
25536         * doc/posix-functions/vdprintf.texi (vdprintf):
25537         * doc/posix-functions/vfprintf.texi (vfprintf):
25538         * doc/posix-functions/vprintf.texi (vprintf):
25539         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25540         * doc/posix-functions/vsprintf.texi (vsprintf):
25541         Mention that these functions mishandle large floating point
25542         precisions on Solaris 10.  The same bug is also present in Solaris
25543         8, and I assume earlier.  This causes "cd gnulib-tests; make
25544         check" to fail on Solaris 8 (and I assume, later) when building
25545         the latest coreutils, in test-vasprintf-posix's call to
25546         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25547         the wide flavors (e.g., wprintf) so this patch just updates the
25548         documentation for the narrow ones.
25549
25550         test-posixtm.c: add two tests
25551         * tests/test-posixtm.c: Add two tests, to highlight the
25552         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25553         around this bug; this is merely to document it.
25554
25555 2010-12-22  Bruno Haible  <bruno@clisp.org>
25556
25557         getlogin_r: Work around portability problem on OSF/1.
25558         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25559         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25560         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25561         test for a truncated result.
25562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25563         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25564         * modules/getlogin_r (Depends-on): Add memchr.
25565         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25566
25567 2010-12-22  Bruno Haible  <bruno@clisp.org>
25568
25569         ptsname: Avoid test failure on OSF/1 5.1.
25570         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25571         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25572         (same_slave): New function.
25573         (main): Use it to compare ptsname's result with the expected file name.
25574
25575 2010-12-22  Bruno Haible  <bruno@clisp.org>
25576
25577         Port extended stdio modules to HP NonStop Kernel.
25578         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25579         macros.
25580         * lib/fbufmode.c: Update comments.
25581         * lib/fflush.c: Likewise.
25582         * lib/fpurge.c: Likewise.
25583         * lib/freadable.c: Likewise.
25584         * lib/freadahead.c: Likewise.
25585         * lib/freading.c: Likewise.
25586         * lib/freadptr.c: Likewise.
25587         * lib/freadseek.c: Likewise.
25588         * lib/fseeko.c: Likewise.
25589         * lib/fseterr.c: Likewise.
25590         * lib/fwritable.c: Likewise.
25591         * lib/fwriting.c: Likewise.
25592         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25593
25594 2010-12-22  Bruno Haible  <bruno@clisp.org>
25595
25596         ttyname_r: Work around bug on OSF/1 5.1.
25597         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25598         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25599         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25600         present.
25601         * lib/ttyname_r.c (ttyname_r): Update comments.
25602
25603 2010-12-22  Bruno Haible  <bruno@clisp.org>
25604
25605         round: Implement result sign according to IEEE 754.
25606         * lib/round.c (MIN, MINUS_ZERO): New macros.
25607         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25608         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25609         * tests/test-round-ieee.c (main): Likewise.
25610         * tests/test-roundl-ieee.c (main): Likewise.
25611
25612         trunc: Implement result sign according to IEEE 754.
25613         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25614         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25615         * tests/test-trunc2.c: Include minus-zero.h.
25616         (MINUS_ZERO): New macro.
25617         (trunc_reference): Keep in sync with lib/trunc.c.
25618         * tests/test-truncf2.c: Include minus-zero.h.
25619         (MINUS_ZERO): New macro.
25620         (truncf_reference): Keep in sync with lib/trunc.c.
25621         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25622         * tests/test-trunc-ieee.c (main): Likewise.
25623         * tests/test-truncl-ieee.c (main): Likewise.
25624
25625         ceil: Implement result sign according to IEEE 754.
25626         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25627         (FUNC): Return -0.0 for -1 < x < 0.
25628         * tests/test-ceil2.c: Include minus-zero.h.
25629         (MINUS_ZERO): New macro.
25630         (ceil_reference): Keep in sync with lib/ceil.c.
25631         * tests/test-ceilf2.c: Include minus-zero.h.
25632         (MINUS_ZERO): New macro.
25633         (ceilf_reference): Keep in sync with lib/ceil.c.
25634         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25635         * tests/test-ceil-ieee.c (main): Likewise.
25636         * tests/test-ceill-ieee.c (main): Likewise.
25637
25638         floor: Implement result sign according to IEEE 754.
25639         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25640         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25641         * tests/test-floorf2.c (floorf_reference): Likewise.
25642         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25643         * tests/test-floor-ieee.c (main): Likewise.
25644         * tests/test-floorl-ieee.c (main): Likewise.
25645
25646 2010-12-22  Bruno Haible  <bruno@clisp.org>
25647
25648         getaddrinfo: Update doc.
25649         * doc/posix-functions/gai_strerror.texi: Return type is also different
25650         on AIX and HP-UX.
25651
25652 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25653
25654         getaddrinfo, inet_ntop: Update doc for Solaris.
25655         * doc/posix-functions/gai_strerror.texi: Return type is also an
25656         issue on Solaris 9 and earlier.
25657         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25658         on Solaris 10 and earlier.
25659
25660 2010-12-21  Bruno Haible  <bruno@clisp.org>
25661
25662         New module 'roundl-ieee'.
25663         * modules/roundl-ieee: New file.
25664         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25665         test whether roundl works according to ISO C 99 with IEC 60559.
25666         * m4/roundl-ieee.m4: New file.
25667         * modules/roundl-ieee-tests: New file.
25668         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25669         * tests/test-roundl.c (main): Remove signbit tests.
25670         * modules/roundl-tests (Depends-on): Remove signbit.
25671         * doc/posix-functions/roundl.texi: Mention the new module.
25672
25673 2010-12-21  Bruno Haible  <bruno@clisp.org>
25674
25675         New module 'truncl-ieee'.
25676         * modules/truncl-ieee: New file.
25677         * modules/truncl-ieee-tests: New file.
25678         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25679         * tests/test-truncl.c (main): Remove signbit tests.
25680         * modules/truncl-tests (Depends-on): Remove signbit.
25681         * doc/posix-functions/truncl.texi: Mention the new module.
25682
25683 2010-12-21  Bruno Haible  <bruno@clisp.org>
25684
25685         New module 'ceill-ieee'.
25686         * modules/ceill-ieee: New file.
25687         * modules/ceill-ieee-tests: New file.
25688         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25689         * tests/test-ceill.c (main): Remove signbit tests.
25690         * modules/ceill-tests (Depends-on): Remove signbit.
25691         * doc/posix-functions/ceill.texi: Mention the new module.
25692
25693 2010-12-21  Bruno Haible  <bruno@clisp.org>
25694
25695         New module 'floorl-ieee'.
25696         * modules/floorl-ieee: New file.
25697         * modules/floorl-ieee-tests: New file.
25698         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25699         * tests/test-floorl.c (main): Remove signbit tests.
25700         * modules/floorl-tests (Depends-on): Remove signbit.
25701         * doc/posix-functions/floorl.texi: Mention the new module.
25702
25703 2010-12-21  Bruno Haible  <bruno@clisp.org>
25704
25705         New module 'round-ieee'.
25706         * modules/round-ieee: New file.
25707         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25708         whether round works according to ISO C 99 with IEC 60559.
25709         * m4/round-ieee.m4: New file.
25710         * modules/round-ieee-tests: New file.
25711         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25712         * tests/test-round1.c (main): Remove signbit tests.
25713         * modules/round-tests (Depends-on): Remove 'signbit'.
25714         * doc/posix-functions/round.texi: Mention the new module.
25715
25716 2010-12-21  Bruno Haible  <bruno@clisp.org>
25717
25718         New module 'trunc-ieee'.
25719         * modules/trunc-ieee: New file.
25720         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25721         whether trunc works according to ISO C 99 with IEC 60559.
25722         * m4/trunc-ieee.m4: New file.
25723         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25725         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25726         * modules/trunc-ieee-tests: New file.
25727         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25728         * tests/test-trunc1.c (main): Remove signbit tests.
25729         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25730         * doc/posix-functions/trunc.texi: Mention the new module.
25731
25732 2010-12-21  Bruno Haible  <bruno@clisp.org>
25733
25734         New module 'ceil-ieee'.
25735         * modules/ceil-ieee: New file.
25736         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25737         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25738         ISO C 99 with IEC 60559.
25739         * m4/ceil-ieee.m4: New file.
25740         * modules/ceil (Files): Add lib/ceil.c.
25741         (Depends-on): Add 'float'.
25742         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25743         * lib/math.in.h (ceil): New declaration.
25744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25745         REPLACE_CEIL.
25746         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25747         * modules/ceil-ieee-tests: New file.
25748         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25749         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25750         * doc/posix-functions/ceil.texi: Mention the new module.
25751
25752 2010-12-21  Bruno Haible  <bruno@clisp.org>
25753
25754         New module 'floor-ieee'.
25755         * modules/floor-ieee: New file.
25756         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25757         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25758         ISO C 99 with IEC 60559.
25759         * m4/floor-ieee.m4: New file.
25760         * modules/floor (Files): Add lib/floor.c.
25761         (Depends-on): Add 'float'.
25762         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25763         * lib/math.in.h (floor): New declaration.
25764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25765         REPLACE_FLOOR.
25766         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25767         * modules/floor-ieee-tests: New file.
25768         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25769         * tests/test-math-c++.cc: Check the signature of 'floor'.
25770         * doc/posix-functions/floor.texi: Mention the new module.
25771
25772 2010-12-21  Bruno Haible  <bruno@clisp.org>
25773
25774         New module 'roundf-ieee'.
25775         * modules/roundf-ieee: New file.
25776         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25777         test whether roundf works according to ISO C 99 with IEC 60559.
25778         * m4/roundf-ieee.m4: New file.
25779         * modules/roundf-ieee-tests: New file.
25780         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25781         * tests/test-roundf1.c (main): Remove signbit tests.
25782         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25783         * doc/posix-functions/roundf.texi: Mention the new module.
25784
25785 2010-12-21  Bruno Haible  <bruno@clisp.org>
25786
25787         New module 'truncf-ieee'.
25788         * modules/truncf-ieee: New file.
25789         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25790         test whether truncf works according to ISO C 99 with IEC 60559.
25791         * m4/truncf-ieee.m4: New file.
25792         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25794         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25795         * modules/truncf-ieee-tests: New file.
25796         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25797         * tests/test-truncf1.c (main): Remove signbit tests.
25798         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25799         * doc/posix-functions/truncf.texi: Mention the new module.
25800
25801 2010-12-21  Bruno Haible  <bruno@clisp.org>
25802
25803         New module 'ceilf-ieee'.
25804         * modules/ceilf-ieee: New file.
25805         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25806         test whether ceilf works according to ISO C 99 with IEC 60559.
25807         * m4/ceilf-ieee.m4: New file.
25808         * modules/ceilf-ieee-tests: New file.
25809         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25810         * tests/test-ceilf1.c (main): Remove signbit tests.
25811         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25812         * doc/posix-functions/ceilf.texi: Mention the new module.
25813
25814 2010-12-21  Bruno Haible  <bruno@clisp.org>
25815
25816         New module 'floorf-ieee'.
25817         * modules/floorf-ieee: New file.
25818         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25819         test whether floorf works according to ISO C 99 with IEC 60559.
25820         * m4/floorf-ieee.m4: New file.
25821         * modules/floorf-ieee-tests: New file.
25822         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25823         * tests/test-floorf1.c (main): Remove signbit tests.
25824         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25825         * doc/posix-functions/floorf.texi: Mention the new module.
25826
25827 2010-12-21  Bruno Haible  <bruno@clisp.org>
25828
25829         Support for minus zero in autoconf macros.
25830         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25831         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
25832         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
25833         * tests/minus-zero.h: Update comments.
25834
25835 2010-12-21  Bruno Haible  <bruno@clisp.org>
25836
25837         Tests for module 'ceil'.
25838         * modules/ceil-tests: New file.
25839         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
25840         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
25841
25842 2010-12-21  Bruno Haible  <bruno@clisp.org>
25843
25844         Tests for module 'floor'.
25845         * modules/floor-tests: New file.
25846         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
25847         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
25848
25849 2010-12-21  Bruno Haible  <bruno@clisp.org>
25850
25851         math: Fix indentation.
25852         * lib/math.in.h (floorf): Fix indentation.
25853
25854 2010-12-21  Bruno Haible  <bruno@clisp.org>
25855
25856         Fix cross-compilation guesses on Solaris.
25857         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
25858         not match "solaris2.10".
25859         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25860         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
25861         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
25862
25863 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25864
25865         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
25866         This fixes a problem observed with the latest coreutils snapshot
25867         that caused a test to fail on Solaris 8.  src/csplit.c's call
25868         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
25869         earlier, instead of returning the number of bytes that would have
25870         been generated; this causes csplit to incorrectly report memory
25871         exhaustion.
25872         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
25873         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
25874         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
25875         comments to match.
25876         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
25877         Fix typo in matching older versions of Solaris: "solaris2.10"
25878         is matched by the shell pattern "solaris2.[0-9]*".  This matters
25879         only for guessing while cross-compiling.
25880         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
25881
25882 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25883
25884         ftoastr: fix comment again
25885         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25886         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
25887         Also, simplify example a bit by using flags = 0.
25888
25889 2010-12-20  Bruno Haible  <bruno@clisp.org>
25890
25891         round*, trunc*: Update documentation regarding glibc.
25892         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
25893         * doc/posix-functions/round.texi: Likewise.
25894         * doc/posix-functions/roundl.texi: Likewise.
25895         * doc/posix-functions/truncf.texi: Likewise.
25896         * doc/posix-functions/trunc.texi: Likewise.
25897         * doc/posix-functions/truncl.texi: Likewise.
25898
25899 2010-12-20  Bruno Haible  <bruno@clisp.org>
25900
25901         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
25902         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
25903         * doc/posix-functions/round.texi: Likewise.
25904         * doc/posix-functions/roundl.texi: Likewise.
25905
25906 2010-12-20  Bruno Haible  <bruno@clisp.org>
25907
25908         ttyname_r: Add missing declaration on HP-UX 11.
25909         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
25910         HAVE_TTYNAME_R.
25911         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
25912         declared. Set HAVE_TTYNAME_R always.
25913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25914         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
25915         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
25916         HAVE_TTYNAME_R.
25917         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
25918
25919 2010-12-20  Bruno Haible  <bruno@clisp.org>
25920
25921         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
25922         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
25923         * doc/posix-functions/getlogin_r.texi: Likewise.
25924         * tests/test-getlogin.c: Include <errno.h>.
25925         (main): Avoid test failure on HP-UX 11.11.
25926         * tests/test-getlogin_r.c (main): Likewise.
25927
25928 2010-12-20  Bruno Haible  <bruno@clisp.org>
25929
25930         getlogin_r: Add missing declaration on HP-UX 11.
25931         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
25932         declared also when it exists as a function.
25933         * doc/posix-functions/getlogin_r.texi: Document this workaround.
25934
25935 2010-12-20  Bruno Haible  <bruno@clisp.org>
25936
25937         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
25938         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
25939         through wcrtomb.
25940
25941 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25942
25943         ftoastr: fix comment
25944         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25945         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
25946
25947 2010-12-19  Bruno Haible  <bruno@clisp.org>
25948
25949         isnan: Ensure it is a macro.
25950         * lib/math.in.h (isnan): Define as a macro if not already a macro.
25951         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
25952         Solaris.
25953
25954 2010-12-19  Bruno Haible  <bruno@clisp.org>
25955
25956         ldexpl test: Fix link error on OSF/1 5.1.
25957         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
25958
25959 2010-12-19  Bruno Haible  <bruno@clisp.org>
25960
25961         wctype: Make it work in C++ mode on OSF/1 5.1.
25962         * lib/wctype.in.h (iswblank): Declare but not define here.
25963         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
25964         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
25965         * modules/wctype (Files): Add lib/iswblank.c.
25966
25967 2010-12-19  Bruno Haible  <bruno@clisp.org>
25968
25969         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
25970         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
25971         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
25972
25973 2010-12-19  Bruno Haible  <bruno@clisp.org>
25974
25975         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
25976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25977         _POSIX_PII_SOCKET.
25978         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25979         * doc/posix-functions/recvfrom.texi: Likewise.
25980         * doc/posix-functions/send.texi: Likewise.
25981         * doc/posix-functions/sendto.texi: Likewise.
25982
25983 2010-12-19  Bruno Haible  <bruno@clisp.org>
25984
25985         tcgetsid: Add missing declaration on OSF/1 5.1.
25986         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25987         HAVE_TCGETSID.
25988         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25989         Don't set HAVE_TCGETSID.
25990         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25991         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25992         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25993         HAVE_TCGETSID.
25994         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25995
25996 2010-12-19  Bruno Haible  <bruno@clisp.org>
25997
25998         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25999         * lib/stdio.in.h: During the include_next statement, let recursive
26000         includes of this file include only the system header file.
26001
26002 2010-12-19  Bruno Haible  <bruno@clisp.org>
26003
26004         iconv_open: Fix regression from 2010-12-04.
26005         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26006         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26007
26008 2010-12-19  Bruno Haible  <bruno@clisp.org>
26009
26010         stdbool test: Avoid a gcc warning.
26011         * tests/test-stdbool.c (main): Fail if e1 is false.
26012         Reported by Jim Meyering.
26013
26014 2010-12-19  Jim Meyering  <meyering@redhat.com>
26015
26016         setenv: restore to working order
26017         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26018         mistakenly removed.
26019         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26020         HAVE_SETENV.
26021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26022         HAVE_SETENV.
26023
26024 2010-12-19  Bruno Haible  <bruno@clisp.org>
26025
26026         Document some different function declarations on OSF/1 5.1.
26027         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26028         * doc/posix-functions/inet_ntop.texi: Likewise.
26029         * doc/posix-functions/gethostname.texi: Likewise.
26030         * lib/unistd.in.h (gethostname): Update comment.
26031
26032 2010-12-19  Bruno Haible  <bruno@clisp.org>
26033
26034         doc: Mention vasprintf-posix module.
26035         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26036         the 'vasprintf-posix' module.
26037         * doc/glibc-functions/vasprintf.texi: Likewise.
26038
26039 2010-12-19  Bruno Haible  <bruno@clisp.org>
26040
26041         unsetenv: Add missing declaration on OSF/1 5.1.
26042         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26043         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26044         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26046         not HAVE_UNSETENV.
26047         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26048         HAVE_UNSETENV.
26049         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26050
26051 2010-12-19  Bruno Haible  <bruno@clisp.org>
26052
26053         setenv: Add missing declaration on OSF/1 5.1.
26054         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26055         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26056         declared. Don't set HAVE_SETENV.
26057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26058         not HAVE_SETENV.
26059         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26060         HAVE_SETENV.
26061         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26062
26063 2010-12-19  Bruno Haible  <bruno@clisp.org>
26064
26065         nl_langinfo tests: Avoid gcc warning.
26066         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26067
26068 2010-12-19  Bruno Haible  <bruno@clisp.org>
26069
26070         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26071         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26072         _GL_CXXALIAS_SYS.
26073
26074 2010-12-19  Bruno Haible  <bruno@clisp.org>
26075
26076         stdbool: Relax test.
26077         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26078         address to 'bool' work in static initializer, for compilers other than
26079         GCC.
26080
26081 2010-12-19  Bruno Haible  <bruno@clisp.org>
26082
26083         ftello: Add missing declaration on OSF/1 5.1.
26084         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26085         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26087         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26088         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26089
26090 2010-12-19  Bruno Haible  <bruno@clisp.org>
26091
26092         fseeko: Add missing declaration on OSF/1 5.1.
26093         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26094         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26096         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26097         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26098
26099 2010-12-19  Bruno Haible  <bruno@clisp.org>
26100
26101         fchdir: Add missing declaration on OSF/1 5.1.
26102         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26105         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26106         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26107
26108 2010-12-19  Bruno Haible  <bruno@clisp.org>
26109
26110         relocatable-prog-wrapper: Separate from relocatable-prog.
26111         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26112         uninstall-relocwrapper rule here.
26113         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26114         Reported by Ian Beckwith <ianb@erislabs.net>.
26115
26116 2010-12-19  Bruno Haible  <bruno@clisp.org>
26117
26118         unistr/u8-mbsnlen: Add missing dependency.
26119         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26120         Reported by Ian Beckwith <ianb@erislabs.net>.
26121
26122 2010-12-19  Bruno Haible  <bruno@clisp.org>
26123
26124         iconv: Make it possible again to use this module without 'iconv-h'.
26125         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26126         if it is not defined.
26127         Reported by Ian Beckwith <ianb@erislabs.net>.
26128
26129 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26130
26131         acl: port to Solaris 8 when copying from tmpfs to ufs
26132         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26133         error number.  Problem observed on Solaris 8 with latest
26134         coreutils, with "mv A B", where A is on a tmpfs file system and B
26135         is on a ufs file system.  This caused coreutils' mv/part-symlink
26136         test to fail.
26137
26138         tests: set fail=0 at start
26139         * tests/init.sh (setup_): Move fail=0 initialization here ...
26140         (mktempd_): ... from here, so that tests can rely on fail being
26141         set to 0 initially.  This fixes a problem in coreutils; see:
26142         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26143
26144 2010-12-18  Bruno Haible  <bruno@clisp.org>
26145
26146         memmem-simple: Stylistic changes.
26147         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26148         Fix preprocessor directive indentation.
26149
26150 2010-12-15  Pádraig Brady <P@draigBrady.com>
26151
26152         memmem, memmem-simple: reorganize and expand empty needle check
26153         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26154         functional checks to memmem-simple so that one has a fully functional
26155         memmem by using just this module.
26156         Restrict the performance only check to the memmem module.
26157         Also expand the empty needle check to ensure the correct
26158         pointer is returned, not just a non NULL pointer.
26159         * doc/glibc-functions/memmem.texi: Rearrange the portability
26160         documentation to correlate with the rearranged checks.
26161         Clarify exactly how the memmem and memmem-simple modules
26162         relate to each other.
26163
26164 2010-12-15  Pádraig Brady <P@draigBrady.com>
26165             Bruno Haible  <bruno@clisp.org>
26166
26167         Improve cross-compilation guesses for uClibc.
26168         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26169         that uClibc does not have the glibc bug.
26170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26171         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26172
26173 2010-12-14  Eric Blake  <eblake@redhat.com>
26174
26175         configmake: provide fallbacks for oldest supported autotools
26176         * m4/configmake.m4: New file.
26177         * modules/configmake (Files): Ship it.
26178         (configure.ac): Use it to guarantee fallbacks.
26179
26180 2010-12-13  Pádraig Brady <P@draigBrady.com>
26181
26182         read-file: Improve handling of large files
26183         * lib/read-file.c (fread_file): Minimize realloc()s
26184         for regular files, and better manage sizes around SIZE_MAX.
26185
26186 2010-12-13  Eric Blake  <eblake@redhat.com>
26187
26188         cloexec, fcntl: relax license
26189         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26190         consent from all contributors.
26191         * modules/fcntl (License): Likewise.
26192
26193 2010-12-10  Bruno Haible  <bruno@clisp.org>
26194
26195         Tests for module 'pipe-posix'.
26196         * modules/pipe-posix-tests: New file.
26197         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26198
26199 2010-12-10  Bruno Haible  <bruno@clisp.org>
26200
26201         pipe-posix: Make it work in C++ mode.
26202         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26203         (pipe): Use common idiom, not a macro definition.
26204         * lib/pipe.c: New file.
26205         * m4/pipe.m4: New file.
26206         * modules/pipe-posix (Description): Enhance.
26207         (Files): Add lib/pipe.c, m4/pipe.m4.
26208         (configure.ac): Invoke gl_FUNC_PIPE.
26209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26210         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26211         * tests/test-unistd-c++.cc: Check the signature of pipe.
26212
26213 2010-12-10  Bruno Haible  <bruno@clisp.org>
26214
26215         Rename module 'pipe' to 'spawn-pipe'.
26216         * modules/spawn-pipe: New file, renamed from modules/pipe.
26217         (Files, configure.ac, Makefile.am): Update.
26218         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26219         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26220         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26221         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26222         "spawn-pipe.h" instead of "pipe.h".
26223         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26224         to gl_SPAWN_PIPE.
26225         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26226         (Files, Makefile.am): Update.
26227         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26228         Update.
26229         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26230         Include "spawn-pipe.h" instead of "pipe.h".
26231         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26232         * lib/javacomp.c: Likewise.
26233         * lib/javaversion.c: Likewise.
26234         * lib/pipe-filter-gi.c: Likewise.
26235         * lib/pipe-filter-ii.c: Likewise.
26236         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26237         * modules/javacomp (Depends-on): Likewise.
26238         * modules/javaversion (Depends-on): Likewise.
26239         * modules/pipe-filter-gi (Depends-on): Likewise.
26240         * modules/pipe-filter-ii (Depends-on): Likewise.
26241         * MODULES.html.sh (Executing programs): Update.
26242         * NEWS: Mention the change.
26243
26244 2010-12-10  Eric Blake  <eblake@redhat.com>
26245
26246         pipe-posix: new module
26247         * modules/pipe-posix: New file.
26248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26249         (gl_UNISTD_H): Check for declaration.
26250         * modules/unistd (Makefile.am): Substitute it.
26251         * lib/unistd.in.h (pipe): Provide it for mingw.
26252         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26253         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26254
26255 2010-12-07  Bruno Haible  <bruno@clisp.org>
26256
26257         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26258         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26259         u8_strcmp_gnu.
26260         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26261
26262 2010-12-06  Bruno Haible  <bruno@clisp.org>
26263
26264         Update internal documentation.
26265         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26266
26267 2010-12-04  Bruno Haible  <bruno@clisp.org>
26268
26269         Put more information about failed tests into the test return codes.
26270         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26271         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26272         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26273         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26274         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26275         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26276         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26277         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26278         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26279         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26280         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26281         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26282         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26283         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26284         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26285         returns a bit mask.
26286         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26287         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26288         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26289         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26290         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26291         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26292         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26293         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26294         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26295         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26296         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26297         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26298         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26299         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26300         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26301         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26302         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26303         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26304         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26305         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26306         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26307         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26309         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26310         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26311         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26312         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26313         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26314         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26315         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26316         gl_PRINTF_PRECISION): Likewise.
26317         * m4/regex.m4 (gl_REGEX): Likewise.
26318         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26319         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26320         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26321         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26322         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26324         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26325         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26326         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26327         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26328         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26329         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26330         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26331         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26332         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26333         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26334         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26335         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26336         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26337         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26338         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26339         enumerated value.
26340         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26341
26342 2010-12-04  Bruno Haible  <bruno@clisp.org>
26343
26344         Update for Solaris 11 2010-11.
26345         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26346         Express, released in November 2010.
26347
26348 2010-12-04  Bruno Haible  <bruno@clisp.org>
26349
26350         nproc: Relax license.
26351         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26352         and Paul Eggert.
26353         Requested by Ludovic Courtès <ludo@gnu.org>.
26354
26355 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26356
26357         utimecmp: fine-grained src to nearby coarse-grained dest
26358
26359         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26360         and the source is on a file system with higher-resolution time
26361         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26362         not work, and the time stamps are close together, the algorithm to
26363         determine the exact resolution from the read-back mtime was buggy:
26364         it had a "!=" where it should have had an "==".  This bug has been
26365         in the code ever since it was introduced to gnulib.
26366         Problem reported by Dan Jacobson in
26367         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26368
26369 2010-11-30  Bruno Haible  <bruno@clisp.org>
26370
26371         strerror_r-posix: Fix autoconf test.
26372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26373
26374 2010-11-28  Bruno Haible  <bruno@clisp.org>
26375             Paul Eggert  <eggert@cs.ucla.edu>
26376
26377         Tests for module 'getdomainname'.
26378         * modules/getdomainname-tests: New file.
26379         * tests/test-getdomainname.c: New file, based on
26380         tests/test-gethostname.c.
26381
26382 2010-11-28  Bruno Haible  <bruno@clisp.org>
26383             Paul Eggert  <eggert@cs.ucla.edu>
26384
26385         getdomainname: Use the system function when possible.
26386         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26387         (getdomainname): Replace if needed. Provide the declaration if it is
26388         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26389         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26390         (getdomainname): When the system has getdomainname, call the system
26391         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26392         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26393         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26394         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26395         the function if its second argument is of type 'int' or if it is found
26396         in libnsl.
26397         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26398         <sys/systeminfo.h> and sysinfo().
26399         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26401         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26402         HAVE_GETDOMAINNAME.
26403         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26404         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26405         * doc/glibc-functions/getdomainname.texi: Document the problems with
26406         the getdomainname declaration.
26407
26408 2010-11-28  Bruno Haible  <bruno@clisp.org>
26409
26410         sys_socket: Ensure ss_family field on AIX.
26411         * lib/sys_socket.in.h (ss_family): New macro definition.
26412         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26413         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26414         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26415         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26416         * modules/sys_socket (Makefile.am): Substitute
26417         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26418         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26419
26420 2010-11-27  Bruno Haible  <bruno@clisp.org>
26421
26422         readline: Improve configure output.
26423         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26424         "checking for readline..." result understandable.
26425
26426 2010-11-27  Bruno Haible  <bruno@clisp.org>
26427
26428         *printf-posix: Detect a bug on Solaris 10/x86.
26429         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26430         for floating-point output.
26431         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26432         directive.
26433         * tests/test-snprintf-posix.h (test_function): Likewise.
26434         * tests/test-sprintf-posix.h (test_function): Likewise.
26435         * tests/test-vasprintf-posix.c (test_function): Likewise.
26436         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26437         * doc/posix-functions/printf.texi: Likewise.
26438         * doc/posix-functions/snprintf.texi: Likewise.
26439         * doc/posix-functions/sprintf.texi: Likewise.
26440         * doc/posix-functions/vfprintf.texi: Likewise.
26441         * doc/posix-functions/vprintf.texi: Likewise.
26442         * doc/posix-functions/vsnprintf.texi: Likewise.
26443         * doc/posix-functions/vsprintf.texi: Likewise.
26444         * doc/glibc-functions/obstack_printf.texi: Likewise.
26445         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26446
26447 2010-11-27  Bruno Haible  <bruno@clisp.org>
26448
26449         Fix link error when module libunistring-optional is in use.
26450         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26451         * modules/striconveha-tests (Makefile.am): Likewise.
26452
26453 2010-11-27  Bruno Haible  <bruno@clisp.org>
26454
26455         regex: Mention link dependencies.
26456         * modules/regex (Link): New section.
26457         * modules/rpmatch (Link): Likewise.
26458         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26459
26460 2010-11-27  Bruno Haible  <bruno@clisp.org>
26461
26462         ftoastr: Fix compilation error on Solaris.
26463         * lib/ftoastr.c: Include <config.h>.
26464
26465 2010-11-27  Bruno Haible  <bruno@clisp.org>
26466
26467         getloadavg: Update documentation.
26468         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26469
26470 2010-11-27  Bruno Haible  <bruno@clisp.org>
26471
26472         sys_socket: Fix test whether the functions are declared.
26473         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26474         not <sys/select.h>.
26475
26476 2010-11-27  Bruno Haible  <bruno@clisp.org>
26477
26478         getpass: Make sure to get system declaration on some platforms.
26479         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26480         gl_USE_SYSTEM_EXTENSIONS.
26481         * modules/getpass (Depends-on): Add extensions.
26482
26483 2010-11-26  Bruno Haible  <bruno@clisp.org>
26484
26485         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26486         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26487         'iconv' module is present.
26488         (ICONV_CONST): New macro.
26489         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26490         ICONV_CONST.
26491         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26492         set ICONV_CONST.
26493         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26494         here.
26495         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26496         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26497         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26498         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26499         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26500         present.
26501
26502 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26503
26504         ftoastr: comment fix
26505         * lib/ftoastr.c: "little" -> "little or no" in comment
26506
26507 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26508
26509         stdint: port to GCC 4.3 + OSX + Octave
26510         On this platform, stdint.h is buggy and defines int64_t to long
26511         long int.  The replacement defined it to long int, causing
26512         problems with C++ style name mangling.  Instead, trust the system
26513         definition if INT64_MAX is defined, and likewise for the unsigned
26514         variant.   Problem reported by Jarno Rajahalme in
26515         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26516         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26517         and don't mess with int64_t and INT64_MAX in this case.
26518         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26519
26520 2010-11-24  Bruno Haible  <bruno@clisp.org>
26521
26522         doc: Corrections regarding MacOS X 10.4 and 10.5.
26523         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26524         MacOS X.
26525         Reported by Simon Josefsson.
26526
26527 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26528
26529         Uninstall ".bin" files installed by relocwrapper.
26530         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26531         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26532         unless it is already there.
26533
26534 2010-11-21  Bruno Haible  <bruno@clisp.org>
26535
26536         Update for NetBSD 5.0.
26537         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26538         NetBSD; the test fails on NetBSD 5.0.
26539         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26540         about NetBSD.
26541
26542 2010-11-21  Bruno Haible  <bruno@clisp.org>
26543
26544         Update for HP-UX 11.23 and HP-UX 11.31.
26545         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26546         HP-UX.
26547
26548 2010-11-21  Bruno Haible  <bruno@clisp.org>
26549
26550         Update for MacOS X 10.5.
26551         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26552         MacOS X; the test fails on MacOS X 10.5.8.
26553         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26554         about MacOS X.
26555
26556 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26557
26558         bootstrap: add bootstrap_sync option.
26559         See discussion at
26560         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26561         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26562         * build-aux/bootstrap: Accept --bootstrap-sync to update
26563         bootstrap if it is not identical to the local gnulib's
26564         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26565         enable this by default.  Accept --no-bootstrap-sync to disable
26566         it.
26567
26568 2010-11-20  Bruno Haible  <bruno@clisp.org>
26569
26570         Ensure that <features.h> is included before __GLIBC__ is tested.
26571         * lib/printf-parse.h: Include <features.h>.
26572         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26573         Reported by Mike Frysinger <vapier@gentoo.org>.
26574
26575         Ensure that <features.h> is included before __GLIBC__ is tested.
26576         * lib/wchar.in.h: Include <features.h>.
26577         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26578         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26579         Reported by Mike Frysinger <vapier@gentoo.org>.
26580
26581         Ensure that <features.h> is included before __GLIBC__ is tested.
26582         * lib/arpa_inet.in.h: Include <features.h>.
26583         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26584         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26585         Reported by Mike Frysinger <vapier@gentoo.org>.
26586
26587         Ensure that <features.h> is included before __GLIBC__ is tested.
26588         * build-aux/link-warning.h: Include <features.h>.
26589         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26590         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26591         Reported by Mike Frysinger <vapier@gentoo.org>.
26592
26593         Ensure that <features.h> is included before __GLIBC__ is tested.
26594         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26595         Reported by Mike Frysinger <vapier@gentoo.org>.
26596
26597 2010-11-20  Bruno Haible  <bruno@clisp.org>
26598
26599         memmem: Fix autoconf test.
26600         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26601
26602 2010-11-20  Bruno Haible  <bruno@clisp.org>
26603
26604         Port to uClibc.
26605         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26606         * lib/fcntl.in.h: Likewise.
26607         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26608         * lib/mbrtowc.c (mbrtowc): Likewise.
26609         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26610         * lib/strerror_r.c: Likewise.
26611         * lib/unistr/u8-strnlen.c: Likewise.
26612         * lib/vasnprintf.c (decimal_point_char): Likewise.
26613         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26614         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26615         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26616         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26617         * tests/test-sigaction.c (handler, main): Likewise.
26618         * lib/freading.h: Treat uClibc like a non-glibc platform.
26619         * lib/freading.c: Likewise.
26620         * lib/gettext.h: Likewise.
26621         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26622         Likewise.
26623         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26624         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26625         * lib/propername.c (proper_name_utf8): Likewise.
26626         * lib/spawn.in.h: Likewise.
26627         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26628         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26629         mem_cd_iconveh_internal): Likewise.
26630         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26631         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26632         strstr, strcasestr): Likewise.
26633         * lib/unicodeio.c (unicode_to_mb): Likewise.
26634         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26635         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26636         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26637         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26638         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26639         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26640         * lib/unistr/u8-stpncpy.c: Likewise.
26641         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26642         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26643         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26644         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26645         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26646         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26647         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26648         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26650         Likewise.
26651         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26652         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26653         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26655         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26656         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26657         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26658         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26659         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26660         * tests/test-striconveha.c (main): Likewise.
26661         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26662         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26663         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26664         * doc/posix-functions/getline.texi: Likewise.
26665         Reported by Mike Frysinger <vapier@gentoo.org>.
26666
26667 2010-11-20  Bruno Haible  <bruno@clisp.org>
26668
26669         nproc: Fix condition.
26670         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26671         HAVE_PTHREAD_AFFINITY_NP.
26672
26673 2010-11-20  Bruno Haible  <bruno@clisp.org>
26674
26675         Fix a comment.
26676         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26677
26678 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26679
26680         ftoastr: don't assume snprintf
26681         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26682         Implement a subset of snprintf here, by using sprintf safely.
26683         * modules/ftoastr (Depends-on): Remove snprintf.
26684
26685 2010-11-19  Jim Meyering  <meyering@redhat.com>
26686
26687         test-rename.h: fix compilation failure
26688         * tests/test-rename.h (test_rename): Add omitted "}".
26689
26690 2010-11-17  Jim Meyering  <meyering@redhat.com>
26691
26692         maint.mk: add a URL discussing the no-@acronym policy
26693         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26694
26695 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26696
26697         ftoastr: depend on snprintf, improve comments
26698         * lib/ftoastr.c: Also mention Loitsch's draft.
26699         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26700         needed in the current implementation, but it might simplify
26701         speeding up the code later.
26702         * modules/ftoastr: Depend on snprintf; this improves portability.
26703         Suggested by Bruno Haible in the same email.
26704
26705         ftoastr: port to hosts lacking strtof and strtold
26706         Problem reported by Bruno Haible in
26707         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26708         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26709         environment and strtold (and presumably strtof) are not available.
26710         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26711         (configure.ac): Require gl_C99_STRTOLD.
26712
26713 2010-11-18  Bruno Haible  <bruno@clisp.org>
26714
26715         c-strtold: Avoid link error on AIX 7.
26716         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26717         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26718         (gl_C_STRTOLD): Test whether strtold_l exists.
26719         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26720
26721 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26722
26723         intprops: new macro INT_BITS_STRLEN_BOUND
26724         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26725         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26726         not exposed.  Also, it uses a slightly tighter bound than before;
26727         though this makes no practical difference, we might as well be as
26728         tight as we easily can.
26729
26730         ftoastr: new module, for lossless conversion of floats to short strings
26731         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26732         * modules/ftoastr: New files.
26733
26734 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26735
26736         bootstrap: port to Solaris sed
26737         * build-aux/bootstrap (get_version): Port to Solaris sed.
26738         See Ralf Wildenhues's note in
26739         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26740
26741 2010-11-14  Jim Meyering  <meyering@redhat.com>
26742
26743         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26744         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26745         and move definition closer to sole use.
26746
26747 2010-11-13  Jim Meyering  <meyering@redhat.com>
26748
26749         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26750         Now we require at least autoconf-2.59, which means the work-around
26751         is no longer needed.
26752         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26753         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26754         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26755         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26756         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26757
26758 2010-11-13  Bruno Haible  <bruno@clisp.org>
26759
26760         rename, renameat: Avoid test failures at NFS mounted locations.
26761         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26762         functions.
26763         (test_rename): Use assert_nonexistent.
26764         * tests/test-rename.c: Include <dirent.h>.
26765         * tests/test-renameat.c: Likewise.
26766         Reported by Gary V. Vaughan <gary@gnu.org>.
26767
26768         rename, renameat: Document Linux bug with NFS
26769         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26770         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26771         * doc/posix-functions/renameat.texi: Likewise.
26772         Suggested by Eric Blake.
26773
26774 2010-11-13  Bruno Haible  <bruno@clisp.org>
26775
26776         rename test: Add comments.
26777         * tests/test-rename.h (test_rename): Add structure and comments.
26778
26779 2010-11-13  Eric Blake  <eblake@redhat.com>
26780
26781         maintainer-makefile: cover a few more files
26782         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26783         scripts generated within C files, for libvirt.
26784
26785 2010-11-13  Bruno Haible  <bruno@clisp.org>
26786
26787         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26788         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26789         character, return the number of bytes that belong together, not always
26790         1.
26791         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26792         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26793         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26794         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26795         number of bytes of an invalid character.
26796         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26797         (main): Invoke it.
26798         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26799         results.
26800         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26801         malformed byte sequences.
26802         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26803         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26804         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26805         Reported by Ben Pfaff and Paolo Bonzini.
26806
26807 2010-11-13  Bruno Haible  <bruno@clisp.org>
26808
26809         openat: Work around glibc bug with fchownat() and empty file names.
26810         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26811         (gl_FUNC_FCHOWNAT): Invoke it.
26812         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26813         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26814         Reported by Gary V. Vaughan <gary@gnu.org>.
26815
26816 2010-11-13  Bruno Haible  <bruno@clisp.org>
26817
26818         openat: Ensure autoconf macro ordering.
26819         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26820         gl_USE_SYSTEM_EXTENSIONS.
26821         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26822
26823 2010-11-13  Bruno Haible  <bruno@clisp.org>
26824
26825         Update comments.
26826         * lib/unistr/u8-check.c: Update file name in comments.
26827         * lib/unistr/u8-mblen.c: Likewise.
26828         * lib/unistr/u8-prev.c: Likewise.
26829         * lib/unistr/u8-strmblen.c: Likewise.
26830         * lib/unistr/u8-strmbtouc.c: Likewise.
26831
26832 2010-11-13  Jim Meyering  <meyering@redhat.com>
26833
26834         tests: avoid test failure on Solaris 10 due to lack of PATH export
26835         * tests/test-update-copyright.sh: Don't forget to export PATH.
26836
26837         init.sh: ensure that IFS is defined, just in case...
26838         * tests/init.sh (setup_): Ensure that IFS is defined,
26839         so that saving and restoring it works as expected.  This
26840         appears to be useful at least for an old version of dash
26841         from a long time ago (RH 6).  See here for details:
26842         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
26843
26844         maint.mk: tighten "test a == b" check
26845         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
26846         test to files that contain something like #!/bin/sh.
26847         Without this, coreutils would get two false positives in
26848         the comments of C source files.
26849
26850 2010-11-12  Eric Blake  <eblake@redhat.com>
26851
26852         bootstrap: fix typo in previous attempt
26853         * build-aux/bootstrap (buildreq): Correct the grouping.
26854         Reported by Paul Eggert.
26855
26856         maintainer-makefile: prohibit test x == x
26857         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
26858         Based on a report by Matthias Bolte.
26859
26860         bootstrap: allow FreeBSD gzip
26861         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
26862         which has no '.' and goes to stderr.
26863         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
26864         Reported by Matthias Bolte.
26865
26866         maintainer-makefile: check for i18n setup
26867         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
26868         will likely work.
26869
26870 2010-11-12  Bruno Haible  <bruno@clisp.org>
26871
26872         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
26873         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
26874         * lib/nanosleep.c (nanosleep): Likewise.
26875
26876 2010-11-11  Bruno Haible  <bruno@clisp.org>
26877
26878         fcntl-h: Fix for use of C++ on glibc systems.
26879         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26880         also on glibc systems in C++ mode.
26881         Reported by Gary V. Vaughan <gary@gnu.org>.
26882
26883 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26884
26885         mknod: avoid false failure with dash
26886         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
26887
26888 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26889
26890         unlink: Fix "is it should" typo in diagnostic.
26891         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
26892         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
26893
26894 2010-11-11  Bruno Haible  <bruno@clisp.org>
26895
26896         Tests for module 'strerror_r-posix'.
26897         * modules/strerror_r-posix-tests: New file.
26898         * tests/test-strerror_r.c: New file.
26899         * tests/test-string-c++.cc: Check the signature of strerror_r.
26900
26901         New module 'strerror_r-posix'.
26902         * lib/string.in.h (strerror_r): New declaration.
26903         * lib/strerror_r.c: New file.
26904         * m4/strerror_r.m4: New file.
26905         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
26906         of strerror_r.
26907         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
26908         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26909         * modules/strerror_r-posix: New file.
26910         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
26911         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26912         * doc/posix-functions/strerror_r.texi: Mention the new module and the
26913         portability problems.
26914
26915 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
26916
26917         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
26918         line is also considered for output. Quoted function name in shell
26919         command, so temporary files for functions like MyClass::operator()
26920         are removed correctly without errors.
26921
26922 2010-11-09  Bruno Haible  <bruno@clisp.org>
26923
26924         * doc/posix-functions/strerror.texi: List more failing platforms.
26925
26926         * doc/posix-functions/strerror.texi: Add a comment.
26927
26928 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26929
26930         fdopendir: fix bug on MacOS X when low on file descriptors
26931
26932         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
26933         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
26934         All callers changed.
26935         (fdopendir): Invoke save_cwd at the top level, not after using
26936         multiple dup() calls to use up file descriptors.  Then retry
26937         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
26938         less than the maximum number of open file descriptors, because
26939         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
26940         on Mac OS X 10.6.4 for tar 1.24
26941         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
26942         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
26943         and for tar 1.25
26944         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
26945
26946 2010-11-07  Bruno Haible  <bruno@clisp.org>
26947
26948         vasnprintf: Support I flag on glibc systems.
26949         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
26950         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
26951         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
26952         snprintf function.
26953         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
26954         glibc systems.
26955         * tests/test-vasnprintf-posix3.c: New file.
26956         * modules/vasnprintf-posix-tests (Files): Add it.
26957         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
26958
26959 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26960
26961         [html] Fix copy/paste bug: Use unique name for compiler warnings.
26962         * MODULES.html.sh: For compiler warnings, use name
26963         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
26964
26965 2010-11-05  Eric Blake  <eblake@redhat.com>
26966
26967         ceil, floor: avoid spurious failure with icc
26968         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
26969         [denormals-as-zero] when optimizing without -mieee-fp option.
26970         * tests/test-floorf2.c (floorf_reference): Likewise.
26971         * tests/test-ceilf1.c (dummy): New function.
26972         (main): Use it to outsmart icc's optimization.
26973         * tests/test-floorf1.c (dummy, main): Likewise.
26974
26975         tests: require working signbit
26976         * modules/ceilf-tests (Depends-on): Add signbit.
26977         * modules/ceill-tests (Depends-on): Likewise.
26978         * modules/floorf-tests (Depends-on): Likewise.
26979         * modules/floorl-tests (Depends-on): Likewise.
26980         * modules/round-tests (Depends-on): Likewise.
26981         * modules/roundf-tests (Depends-on): Likewise.
26982         * modules/roundl-tests (Depends-on): Likewise.
26983         * modules/trunc-tests (Depends-on): Likewise.
26984         * modules/truncf-tests (Depends-on): Likewise.
26985         * modules/truncl-tests (Depends-on): Likewise.
26986
26987         strtod: work around icc bug
26988         * lib/strtod.c (minus_zero): Define to working value.
26989         (strtod): Use it to avoid icc bug.
26990
26991         copysign: enhance tests
26992         * modules/copysign-tests (Files): Add minus-zero.h.
26993         * tests/test-copysign.c (main): Also test zeros.
26994
26995 2010-11-04  Eric Blake  <eblake@redhat.com>
26996
26997         ceil, floor, round, trunc: enhance tests of -0
26998         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26999         * tests/test-ceill.c (main): Likewise.
27000         * tests/test-floorf1.c (main): Likewise.
27001         * tests/test-floorl.c (main): Likewise.
27002         * tests/test-round1.c (main): Likewise.
27003         * tests/test-roundf1.c (main): Likewise.
27004         * tests/test-roundl.c (main): Likewise.
27005         * tests/test-trunc1.c (main): Likewise.
27006         * tests/test-truncf1.c (main): Likewise.
27007         * tests/test-truncl.c (main): Likewise.
27008
27009 2010-11-04  Eric Blake  <eblake@redhat.com>
27010
27011         frexp, tests: work around ICC bug with -zero
27012         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27013         works with more compilers.
27014         * tests/minus-zero.h: New file.
27015         * modules/ceilf-tests (Files): Include it.
27016         * modules/ceill-tests (Files): Likewise.
27017         * modules/floorf-tests (Files): Likewise.
27018         * modules/floorl-tests (Files): Likewise.
27019         * modules/frexp-nolibm-tests (Files): Likewise.
27020         * modules/frexp-tests (Files): Likewise.
27021         * modules/frexpl-nolibm-tests (Files): Likewise.
27022         * modules/frexpl-tests (Files): Likewise.
27023         * modules/isnan-tests (Files): Likewise.
27024         * modules/isnand-nolibm-tests (Files): Likewise.
27025         * modules/isnand-tests (Files): Likewise.
27026         * modules/isnanf-nolibm-tests (Files): Likewise.
27027         * modules/isnanf-tests (Files): Likewise.
27028         * modules/isnanl-nolibm-tests (Files): Likewise.
27029         * modules/isnanl-tests (Files): Likewise.
27030         * modules/round-tests (Files): Likewise.
27031         * modules/roundf-tests (Files): Likewise.
27032         * modules/roundl-tests (Files): Likewise.
27033         * modules/ldexpl-tests (Files): Likewise.
27034         * modules/signbit-tests (Files): Likewise.
27035         * modules/snprintf-posix-tests (Files): Likewise.
27036         * modules/sprintf-posix-tests (Files): Likewise.
27037         * modules/strtod-tests (Files): Likewise.
27038         * modules/trunc-tests (Files): Likewise.
27039         * modules/truncf-tests (Files): Likewise.
27040         * modules/truncl-tests (Files): Likewise.
27041         * modules/vsnprintf-posix-tests (Files): Likewise.
27042         * modules/vsprintf-posix-tests (Files): Likewise.
27043         * modules/vasnprintf-posix-tests (Files): Likewise.
27044         * modules/vasprintf-posix-tests (Files): Likewise.
27045         * tests/test-ceilf1.c (main): Use it.
27046         * tests/test-ceill.c (main): Likewise.
27047         * tests/test-floorf1.c (main): Likewise.
27048         * tests/test-floorl.c (main): Likewise.
27049         * tests/test-frexp.c (main): Likewise.
27050         * tests/test-frexpl.c (main): Likewise.
27051         * tests/test-isnan.c (main): Likewise.
27052         * tests/test-isnand.h (main): Likewise.
27053         * tests/test-isnanf.h (main): Likewise.
27054         * tests/test-isnanl.h (main): Likewise.
27055         * tests/test-ldexpl.c (main): Likewise.
27056         * tests/test-round.c (main): Likewise.
27057         * tests/test-roundf.c (main): Likewise.
27058         * tests/test-roundl.c (main): Likewise.
27059         * tests/test-signbit.c (test_signbitf, test_signbitd)
27060         (test_signbitl): Likewise.
27061         * tests/test-snprintf-posix.h (test_function): Likewise.
27062         * tests/test-sprintf-posix.h (test_function): Likewise.
27063         * tests/test-strtod.c (main): Likewise.
27064         * tests/test-trunc1.c (main): Likewise.
27065         * tests/test-truncf1.c (main): Likewise.
27066         * tests/test-truncl.c (main): Likewise.
27067
27068         isnanl: work around icc bug
27069         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27070
27071 2010-11-03  Eric Blake  <eblake@redhat.com>
27072
27073         tests: fix compiler warnings
27074         * tests/test-getopt.h (test_getopt): Fix condition.
27075         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27076         * tests/test-pipe2.c (main): Likewise.
27077         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27078
27079         utimens: fix broken m4 test
27080         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27081
27082 2010-10-28  Bruno Haible  <bruno@clisp.org>
27083
27084         posix_spawn*, getdtablesize: Relax license.
27085         * modules/posix_spawn (License): Change to LGPLv2+.
27086         * modules/posix_spawnp (License): Likewise.
27087         * modules/posix_spawn-internal (License): Likewise.
27088         * modules/posix_spawnattr_init (License): Likewise.
27089         * modules/posix_spawnattr_getflags (License): Likewise.
27090         * modules/posix_spawnattr_setflags (License): Likewise.
27091         * modules/posix_spawnattr_getpgroup (License): Likewise.
27092         * modules/posix_spawnattr_setpgroup (License): Likewise.
27093         * modules/posix_spawnattr_getschedparam (License): Likewise.
27094         * modules/posix_spawnattr_setschedparam (License): Likewise.
27095         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27096         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27097         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27098         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27099         * modules/posix_spawnattr_getsigmask (License): Likewise.
27100         * modules/posix_spawnattr_setsigmask (License): Likewise.
27101         * modules/posix_spawnattr_destroy (License): Likewise.
27102         * modules/posix_spawn_file_actions_init (License): Likewise.
27103         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27104         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27105         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27106         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27107         * modules/getdtablesize (License): Likewise.
27108         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27109
27110 2010-10-26  Bruno Haible  <bruno@clisp.org>
27111
27112         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27113         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27114         Cygwin and mingw.
27115         Suggested by Eric Blake.
27116
27117 2010-10-26  Bruno Haible  <bruno@clisp.org>
27118
27119         stdio: Work around compilation error due to renameat() on Solaris 10.
27120         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27121         * lib/renameat.c: Don't include <unistd.h> here.
27122         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27123         Reported by Paul Eggert and Eric Blake.
27124
27125 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27126
27127         renameat: port to Solaris 10, which declares renameat in unistd.h
27128
27129         * lib/renameat.c: Include unistd.h before stdio.h, because
27130         Solaris 10 declares renameat in unistd.h.  Problem encountered
27131         when building GNU tar 1.24 on Solaris 10.
27132
27133 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27134
27135         fdopendir: fix C89 compilation
27136         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27137         compilers.
27138
27139 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27140
27141         inttostr: simplify by removing unnecessary redundancy
27142         * lib/anytostr.c: Don't include verify.h.
27143         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27144         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27145         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27146         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27147         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27148         Likewise.
27149         * modules/inttostr (Depends-on): Remove 'verify'.
27150
27151 2010-10-23  Bruno Haible  <bruno@clisp.org>
27152
27153         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27154         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27155         Reported by Eric Blake.
27156
27157 2010-10-23  Bruno Haible  <bruno@clisp.org>
27158
27159         Tests: Fix LOCALE_JA on MirBSD 10.
27160         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27161         to an UTF-8 locale.
27162         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27163         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27164         Reported by Eric Blake.
27165
27166 2010-10-21  Bruno Haible  <bruno@clisp.org>
27167
27168         nl_langinfo test: Avoid test failure on NetBSD 5.
27169         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27170         Reported by Eric Blake.
27171
27172 2010-10-21  Eric Blake  <eblake@redhat.com>
27173
27174         c-stack: work around libsigsegv 2.8 bug
27175         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27176         overflow on at least PowerPC64.
27177
27178 2010-10-17  Bruno Haible  <bruno@clisp.org>
27179
27180         userspec: Drop redundant file.
27181         * modules/userspec (Files): Remove lib/inttostr.h.
27182
27183 2010-10-17  Bruno Haible  <bruno@clisp.org>
27184
27185         nl_langinfo tests: Silence some warnings.
27186         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27187         Reported by Jim Meyering.
27188
27189 2010-10-17  Bruno Haible  <bruno@clisp.org>
27190
27191         Make use of GCC's attribute __alloc_size__.
27192         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27193         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27194         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27195         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27196         __alloc_size__.
27197         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27198         Suggested by Jim Meyering.
27199
27200 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27201
27202         bootstrap: anchor .gitignore entries.
27203         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27204         with...
27205         (insert_vc_ignore): ... this new function, which prepends `/' to
27206         all .gitignore entries before passing them to
27207         insert_sorted_if_absent.
27208
27209 2010-10-16  Bruno Haible  <bruno@clisp.org>
27210
27211         nextafter: Fix configure check.
27212         * modules/nextafter (configure.ac): Correct expected prototype.
27213
27214 2010-10-16  Bruno Haible  <bruno@clisp.org>
27215
27216         termios: Update documentation.
27217         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27218
27219 2010-10-16  Bruno Haible  <bruno@clisp.org>
27220
27221         tests: Make them compile with TinyCC.
27222         * tests/test-strstr.c (main): Remove parentheses around array
27223         initializer.
27224
27225 2010-10-15  Eric Blake  <eblake@redhat.com>
27226
27227         ignore-value: make header idempotent
27228         * lib/ignore-value.h: Add double-inclusion guards.
27229         Reported by Stefan Berger.
27230
27231 2010-10-15  Jim Meyering  <meyering@redhat.com>
27232
27233         GNUmakefile: handle "stable" target, not "major"
27234         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27235         lists in maint.mk and announce-gen.  Without this, "make stable"
27236         would fail to ensure that $(VERSION) is up to date.
27237
27238 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27239
27240         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27241         & co.
27242
27243 2010-10-14  Bruno Haible  <bruno@clisp.org>
27244
27245         vasnprintf: Don't set errno to 0.
27246         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27247         block that sets it to 0.
27248         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27249
27250 2010-10-14  Bruno Haible  <bruno@clisp.org>
27251
27252         socketlib: Fix.
27253         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27254         gl_PREREQ_SYS_H_WINSOCK2.
27255         Reported by Ian Beckwith <ianb@erislabs.net>.
27256
27257 2010-10-13  Jim Meyering  <meyering@redhat.com>
27258
27259         test-select-stdin.c: avoid warn_unused_result warnings
27260         * tests/test-select-stdin.c: Include "macros.h".
27261         ASSERT that read and fflush succeed.
27262
27263 2010-10-13  Jim Meyering  <meyering@redhat.com>
27264
27265         git-version-gen: do require git-VC'd files in cwd
27266         * build-aux/git-version-gen: Reject a git version string
27267         if there are no commits associated with the current directory.
27268         This avoids an unlikely false-positive (unrelated dir whose parent
27269         repository also contains a tag matching v*), as pointed out
27270         by Giuseppe Scrivano in
27271         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27272
27273 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27274
27275         argv-iter: omit nonconforming declaration
27276         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27277         enum arg_iter_err declaration, which doesn't conform to C99.
27278         Solaris 10 cc warns about this.
27279
27280 2010-10-13  Eric Blake  <eblake@redhat.com>
27281
27282         termios: fix compilation on mingw
27283         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27284         (gl_TERMIOS_H): Adjust it on mingw.
27285         * modules/termios (Makefile.am): Substitute new key.
27286         * lib/termios.in.h (includes): Make include_next conditional.
27287         * doc/posix-headers/termios.texi (termios.h): Update
27288         documentation.
27289         Reported by Daniel P. Berrange.
27290
27291 2010-10-13  Jim Meyering  <meyering@redhat.com>
27292
27293         git-version-gen: don't require that .git/ be in the current dir
27294         * build-aux/git-version-gen: Adjust this script so that it works
27295         when run from any working directory beneath the top-level .git/-
27296         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27297         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27298
27299         test-select: avoid warn_unused_result warnings
27300         * tests/test-select.c: Include "macros.h".
27301         ASSERT that each call to read, write, and pipe succeeds.
27302         While not technically required, also check each "close".
27303         * modules/select-tests (Files): Add tests/macros.h.
27304
27305         test-symlinkat: remove declaration of unused local
27306         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27307
27308         test-inttostr: avoid shadowing warnings
27309         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27310         and use malloc rather than the stack for the same reason as
27311         mentioned in the comment justifying the other allocation.
27312
27313 2010-10-11  Bruno Haible  <bruno@clisp.org>
27314
27315         stdlib: Allow multiple gnulib generated replacements to coexist.
27316         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27317         Reported by Sam Steingold <sds@gnu.org>.
27318
27319 2010-10-11  Jim Meyering  <meyering@redhat.com>
27320
27321         fix a documentation typo
27322         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27323
27324 2010-10-11  Eric Blake  <eblake@redhat.com>
27325
27326         futimens: work around Solaris 11 bug
27327         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27328         * tests/test-futimens.h (test_futimens): Enhance, rather than
27329         weaken test.
27330         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27331
27332 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27333
27334         Indentation.
27335         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27336         higher-level operators more to the left.
27337
27338 2010-10-11  Jim Meyering  <meyering@redhat.com>
27339
27340         test-futimens: avoid unwarranted test failure on Solaris 5.11
27341         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27342         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27343         because it tries to dereference the NULL name argument.
27344
27345 2010-10-11  Bruno Haible  <bruno@clisp.org>
27346
27347         Indentation.
27348         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27349         indentation.
27350
27351 2010-10-11  Jim Meyering  <meyering@redhat.com>
27352
27353         spawn.in.h: make indentation consistent with parentheses
27354         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27355         Make indentation consistent with parentheses.
27356
27357 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27358
27359         Fix mismatched parens in previous commit
27360         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27361         parens.
27362
27363 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27364
27365         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27366
27367         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27368         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27369         * lib/malloca.c: Include "verify.h".
27370         (verify1): Remove, replacing with a verify call.
27371         * lib/relocwrapper.c (verify1): Likewise.
27372         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27373         Likewise.
27374         * modules/malloca (Depends-on): Add 'verify'.
27375         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27376         * modules/vasnprintf (Depends-on): Add 'verify'.
27377         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27378         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27379         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27380         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27381         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27382         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27383         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27384
27385         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27386
27387         Formerly the style was sometimes 2*X - 1, because the C standard
27388         was wrongly thought to disallow ?: in integral constant expressions.
27389         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27390         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27391         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27392         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27393         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27394         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27395         verify that time_t cannot be floating.
27396
27397 2010-10-08  Eric Blake  <eblake@redhat.com>
27398
27399         time: enforce recent POSIX ruling that time_t is integral
27400         * lib/time.in.h (__time_t_must_be_integral): Detect any
27401         problematic systems, allowing the rest of gnulib to assume POSIX.
27402
27403 2010-10-08  Jim Meyering  <meyering@redhat.com>
27404
27405         fdopendir: fix a bug on systems lacking openat and /proc support
27406         OpenBSD 4.7 is one such system.  The most noticeable effect was
27407         failure of any application making nontrivial use of fts: rm, du,
27408         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27409           ./rm: traversal failed: `a': Bad file descriptor
27410         Debugging that, you see that even though FD 6 was closed just
27411         prior to the opendir call in fd_clone_opendir, its resulting
27412         dir->dd_fd was 8, rather than the expected value of 6:
27413
27414         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27415         93                close (fd);
27416         (gdb) n
27417         94                dir = fd_clone_opendir (dupfd);
27418         (gdb) n
27419         95                saved_errno = errno;
27420         (gdb) p dir->dd_fd
27421         $11 = 8
27422
27423         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27424         The problem is that on OpenBSD, fd_clone_opendir has to resort
27425         to using the old-style save/restore CWD mechanism, due to its
27426         lack of openat/proc support, and *that* would steal the FD (6)
27427         that opendir was supposed to use.
27428
27429         The fix is to squirrel away the desired FD so that save_cwd uses a
27430         different one, and then free the dest FD right before calling opendir.
27431         That guarantees opendir will use the required file descriptor.
27432
27433         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27434
27435 2010-10-08  Bruno Haible  <bruno@clisp.org>
27436
27437         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27438         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27439
27440 2010-10-08  Bruno Haible  <bruno@clisp.org>
27441
27442         nanosleep: Make replacement POSIX compliant.
27443         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27444         is out of range.
27445         Reported by Jim Meyering.
27446
27447 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27448
27449         bootstrap: add hook for altering gnulib.mk, for Bison
27450         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27451         the Bison bootstrapping process can rewrite file names and variables
27452         in this file before later parts of 'bootstrap' use the file.
27453         Bison wants to include lib/gnulib.mk from the top-level makefile,
27454         so it needs the file names in this file to be relative to the top
27455         level, not relative to lib; plus it needs variable names to be
27456         rewritten.
27457         (slurp): Use the new function.
27458
27459         bootstrap: reformat for readability
27460         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27461
27462 2010-10-08  Eric Blake  <eblake@redhat.com>
27463
27464         docs: update cygwin progress
27465         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27466         1.7.7.
27467         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27468         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27469         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27470         * doc/posix-functions/carg.texi (carg): Likewise.
27471         * doc/posix-functions/cargf.texi (cargf): Likewise.
27472         * doc/posix-functions/casin.texi (casin): Likewise.
27473         * doc/posix-functions/casinf.texi (casinf): Likewise.
27474         * doc/posix-functions/casinh.texi (casinh): Likewise.
27475         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27476         * doc/posix-functions/catan.texi (catan): Likewise.
27477         * doc/posix-functions/catanf.texi (catanf): Likewise.
27478         * doc/posix-functions/catanh.texi (catanh): Likewise.
27479         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27480         * doc/posix-functions/ccos.texi (ccos): Likewise.
27481         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27482         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27483         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27484         * doc/posix-functions/cexp.texi (cexp): Likewise.
27485         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27486         * doc/posix-functions/cimag.texi (cimag): Likewise.
27487         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27488         * doc/posix-functions/clog.texi (clog): Likewise.
27489         * doc/posix-functions/clogf.texi (clogf): Likewise.
27490         * doc/posix-functions/conj.texi (conj): Likewise.
27491         * doc/posix-functions/conjf.texi (conjf): Likewise.
27492         * doc/posix-functions/cpow.texi (cpow): Likewise.
27493         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27494         * doc/posix-functions/cproj.texi (cproj): Likewise.
27495         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27496         * doc/posix-functions/creal.texi (creal): Likewise.
27497         * doc/posix-functions/crealf.texi (crealf): Likewise.
27498         * doc/posix-functions/csin.texi (csin): Likewise.
27499         * doc/posix-functions/csinf.texi (csinf): Likewise.
27500         * doc/posix-functions/csinh.texi (csinh): Likewise.
27501         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27502         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27503         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27504         * doc/posix-functions/ctan.texi (ctan): Likewise.
27505         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27506         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27507         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27508         * doc/posix-headers/complex.texi (complex.h): Likewise.
27509
27510 2010-10-07  Jim Meyering  <meyering@redhat.com>
27511
27512         parse-datetime: avoid compilation failure on OpenBSD 4.7
27513         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27514         This works around a compilation failure on OpenBSD 4.7:
27515         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27516
27517 2010-10-07  Eric Blake  <eblake@redhat.com>
27518
27519         docs: update cygwin progress
27520         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27521         1.7.6.
27522         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27523         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27524         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27525         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27526         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27527         Likewise.
27528         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27529         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27530         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27531         Likewise.
27532         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27533         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27534         Likewise.
27535         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27536         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27537         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27538         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27539         Likewise.
27540         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27541         Likewise.
27542         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27543
27544         docs: update parse-datetime history
27545         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27546         documentation of this function's history and alternatives.
27547
27548         cygwin: use more robust version check
27549         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27550         exclude an eventual cygwin 1.9.1.
27551         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27552         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27553         (gl_FUNC_STRCASESTR): Likewise.
27554         Reported by Bruno Haible.
27555
27556 2010-10-06  Bruno Haible  <bruno@clisp.org>
27557
27558         string, sys_select: Avoid #including large headers unless necessary.
27559         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27560         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27561         OSF/1, BeOS, Haiku.
27562         Reported by Jim Meyering.
27563
27564 2010-10-05  Eric Blake  <eblake@redhat.com>
27565
27566         memmem, strstr, strcasestr: fix bug with long periodic needle
27567         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27568         periodic needle having false positive.
27569         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27570         and cygwin 1.7.7.
27571         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27573         (gl_FUNC_STRCASESTR): Likewise.
27574         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27575         * tests/test-memmem.c (main): Expose the bug.
27576         * tests/test-strcasestr.c (main): Likewise.
27577         * tests/test-strstr.c (main): Likewise.
27578         * tests/test-c-strcasestr.c (main): Likewise.
27579         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27580         * doc/posix-functions/strstr.texi (strstr): Likewise.
27581         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27582         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27583
27584 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27585
27586         parse-datetime: do some more renaming
27587         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27588         parse_datetime, not get_date.  Mention the renaming.
27589         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27590         in comments.
27591         * m4/bison.m4: Likewise.
27592
27593 2010-10-05  Eric Blake  <eblake@redhat.com>
27594
27595         parse-datetime: better name than get_date
27596         * NEWS: Reword the deprecation notice.
27597         * modules/get_date: Rename to modules/parse-datetime.
27598         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27599         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27600         * lib/get_date.y: Rename to lib/parse-datetime.y.
27601         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27602         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27603         * doc/getdate.texi: Provide fallback wrapper.
27604         * lib/getdate.h: Move guts, and wrap...
27605         * lib/parse-datetime.h: ...new file.
27606         * lib/parse-datetime.y (get_date): Rename...
27607         (parse_datetime): ...to this.
27608         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27609         (gl_PARSE_DATETIME): ...to this.
27610         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27611         documentation.
27612         * modules/getdate (Files): Provide fallback docs and header.
27613         (Notice, Depends-on): Update references.
27614         * tests/test-parse-datetime.c: Likewise.
27615         * DEPENDENCIES: Likewise.
27616         * MODULES.html.sh (Date and time <time.h>): Likewise.
27617         * doc/parse-datetime.texi (Date input formats)
27618         (Authors of parse_datetime): Likewise.
27619         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27620         (Include): Likewise.
27621         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27622         * gnulib-tool: Likewise.
27623         * m4/bison.m4 (gl_BISON): Likewise.
27624         Suggested by Bruno Haible.
27625
27626 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27627
27628         more ports to Solaris tr, which needs [] around ranges
27629         * gnulib-tool: Solaris tr needs [] around ranges.
27630         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27631         * tests/test-pipe-filter-gi1.c (main): Likewise.
27632         * tests/test-pipe-filter-ii1.c (main): Likewise.
27633
27634 2010-10-05  Eric Blake  <eblake@redhat.com>
27635
27636         bootstrap: fix Solaris regression
27637         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27638         around ranges.
27639         Reported by Pádraig Brady.
27640
27641         bootstrap: work with pkg-config
27642         * build-aux/bootstrap (check_versions): Also transliterate - in
27643         prerequisite name.
27644         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27645         prerequisites that were already found, to avoid confusion.
27646         Reported by Justin Clift.
27647
27648         faccessat: remove unused wrappers
27649         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27650         presence of these wrappers dragged in -lgen on Solaris.
27651         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27652
27653 2010-10-05  Jim Meyering  <meyering@redhat.com>
27654
27655         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27656         * Makefile (sc_pragma_columns): New syntax-check rule.
27657
27658 2010-10-04  Bruno Haible  <bruno@clisp.org>
27659
27660         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27661         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27662         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27663         Reported by Bruce Korb and Eric Blake.
27664
27665 2010-10-04  Bruno Haible  <bruno@clisp.org>
27666
27667         threadlib: Make option --with-libpth-prefix work.
27668         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27669         use $LIBPTH, not just -lpth.
27670
27671 2010-10-04  Bruno Haible  <bruno@clisp.org>
27672
27673         Avoid line length limitation from HP NonStop system header files.
27674         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27675         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27676         * lib/ctype.in.h: Likewise.
27677         * lib/dirent.in.h: Likewise.
27678         * lib/errno.in.h: Likewise.
27679         * lib/fcntl.in.h: Likewise.
27680         * lib/float.in.h: Likewise.
27681         * lib/getopt.in.h: Likewise.
27682         * lib/iconv.in.h: Likewise.
27683         * lib/inttypes.in.h: Likewise.
27684         * lib/langinfo.in.h: Likewise.
27685         * lib/locale.in.h: Likewise.
27686         * lib/math.in.h: Likewise.
27687         * lib/netdb.in.h: Likewise.
27688         * lib/netinet_in.in.h: Likewise.
27689         * lib/poll.in.h: Likewise.
27690         * lib/pthread.in.h: Likewise.
27691         * lib/pty.in.h: Likewise.
27692         * lib/sched.in.h: Likewise.
27693         * lib/se-selinux.in.h: Likewise.
27694         * lib/search.in.h: Likewise.
27695         * lib/signal.in.h: Likewise.
27696         * lib/spawn.in.h: Likewise.
27697         * lib/stdarg.in.h: Likewise.
27698         * lib/stddef.in.h: Likewise.
27699         * lib/stdint.in.h: Likewise.
27700         * lib/stdio.in.h: Likewise.
27701         * lib/stdlib.in.h: Likewise.
27702         * lib/string.in.h: Likewise.
27703         * lib/strings.in.h: Likewise.
27704         * lib/sys_file.in.h: Likewise.
27705         * lib/sys_ioctl.in.h: Likewise.
27706         * lib/sys_select.in.h: Likewise.
27707         * lib/sys_socket.in.h: Likewise.
27708         * lib/sys_stat.in.h: Likewise.
27709         * lib/sys_time.in.h: Likewise.
27710         * lib/sys_times.in.h: Likewise.
27711         * lib/sys_utsname.in.h: Likewise.
27712         * lib/sys_wait.in.h: Likewise.
27713         * lib/sysexits.in.h: Likewise.
27714         * lib/termios.in.h: Likewise.
27715         * lib/time.in.h: Likewise.
27716         * lib/unistd.in.h: Likewise.
27717         * lib/wchar.in.h: Likewise.
27718         * lib/wctype.in.h: Likewise.
27719         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27720         * modules/ctype (Makefile.am): Likewise.
27721         * modules/dirent (Makefile.am): Likewise.
27722         * modules/errno (Makefile.am): Likewise.
27723         * modules/fcntl-h (Makefile.am): Likewise.
27724         * modules/float (Makefile.am): Likewise.
27725         * modules/getopt-posix (Makefile.am): Likewise.
27726         * modules/iconv-h (Makefile.am): Likewise.
27727         * modules/inttypes (Makefile.am): Likewise.
27728         * modules/langinfo (Makefile.am): Likewise.
27729         * modules/locale (Makefile.am): Likewise.
27730         * modules/math (Makefile.am): Likewise.
27731         * modules/netdb (Makefile.am): Likewise.
27732         * modules/netinet_in (Makefile.am): Likewise.
27733         * modules/poll-h (Makefile.am): Likewise.
27734         * modules/pthread (Makefile.am): Likewise.
27735         * modules/pty (Makefile.am): Likewise.
27736         * modules/sched (Makefile.am): Likewise.
27737         * modules/search (Makefile.am): Likewise.
27738         * modules/selinux-h (Makefile.am): Likewise.
27739         * modules/signal (Makefile.am): Likewise.
27740         * modules/spawn (Makefile.am): Likewise.
27741         * modules/stdarg (Makefile.am): Likewise.
27742         * modules/stddef (Makefile.am): Likewise.
27743         * modules/stdint (Makefile.am): Likewise.
27744         * modules/stdio (Makefile.am): Likewise.
27745         * modules/stdlib (Makefile.am): Likewise.
27746         * modules/string (Makefile.am): Likewise.
27747         * modules/strings (Makefile.am): Likewise.
27748         * modules/sys_file (Makefile.am): Likewise.
27749         * modules/sys_ioctl (Makefile.am): Likewise.
27750         * modules/sys_select (Makefile.am): Likewise.
27751         * modules/sys_socket (Makefile.am): Likewise.
27752         * modules/sys_stat (Makefile.am): Likewise.
27753         * modules/sys_time (Makefile.am): Likewise.
27754         * modules/sys_times (Makefile.am): Likewise.
27755         * modules/sys_utsname (Makefile.am): Likewise.
27756         * modules/sys_wait (Makefile.am): Likewise.
27757         * modules/sysexits (Makefile.am): Likewise.
27758         * modules/termios (Makefile.am): Likewise.
27759         * modules/time (Makefile.am): Likewise.
27760         * modules/unistd (Makefile.am): Likewise.
27761         * modules/wchar (Makefile.am): Likewise.
27762         * modules/wctype (Makefile.am): Likewise.
27763
27764 2010-10-04  Bruno Haible  <bruno@clisp.org>
27765
27766         read-file tests: Avoid a test failure on NonStop Kernel.
27767         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27768         a regular file.
27769         Reported by Joachim Schmitz <schmitz@hp.com>.
27770
27771 2010-10-03  Bruno Haible  <bruno@clisp.org>
27772
27773         gnulib-tool: Fixes for --create-testdir with --libtool.
27774         * gnulib-tool (func_get_automake_snippet): Don't augment
27775         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27776         an executable.
27777         (func_create_testdir): Handle module 'alloca' like func_import.
27778         Reported by Bruce Korb <bruce.korb@gmail.com>.
27779
27780 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27781
27782         Avoid some lines longer than 80 characters.
27783         * lib/stdint.in.h: Break long comment lines.
27784         * lib/math.in.h: Likewise.
27785         (_GL_NUM_UINT_WORDS): New macro, for readability.
27786         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27787         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27788         * lib/stdlib.in.h: Likewise.
27789         * lib/spawn.in.h: Likewise.
27790         * lib/sys_socket.in.h: Update an URL.
27791         * lib/sys_stat.in.h: Break long line.
27792
27793 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27794
27795         Improve pmccabe2html.
27796         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27797         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27798         when the sources change. Remove the line in the HTML about "Used
27799         ranges" (which implied that there might be other unused ranges),
27800         rename "Resume" to "Summary" (easier to understand for more users).
27801         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27802         styles, and some unnecessary blank lines.
27803
27804 2010-10-03  Bruno Haible  <bruno@clisp.org>
27805             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27806
27807         acl: Add support for ACLs on NonStop Kernel.
27808         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27809         Check whether the function aclsort() exists.
27810         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27811         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27812         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27813         (acl_nontrivial [HAVE_ACLSORT]: New function.
27814         (file_has_acl): Implement for NonStop Kernel.
27815         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27816         (qset_acl): Implement for NonStop Kernel.
27817         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27818         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27819         (main): Implement for NonStop Kernel.
27820         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27821         Kernel. Handle this flavor.
27822         * tests/test-set-mode-acl.sh: Likewise.
27823         * tests/test-copy-acl.sh: Likewise.
27824         * tests/test-copy-file.sh: Likewise.
27825
27826 2010-10-03  Bruno Haible  <bruno@clisp.org>
27827
27828         Info about ACLs on NonStop Kernel.
27829         * doc/acl-resources.txt: Add info about NonStop Kernel.
27830         References by Joachim Schmitz <schmitz@hp.com>.
27831
27832 2010-10-02  Bruno Haible  <bruno@clisp.org>
27833
27834         Define missing EDQUOT on NonStop Kernel.
27835         * lib/errno.in.h (EDQUOT): Assign a value if missing.
27836         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
27837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
27838         missing.
27839         * doc/posix-headers/errno.texi: Mention the NSK bug.
27840         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
27841         Reported by Joachim Schmitz <schmitz@hp.com>.
27842
27843 2010-10-02  Bruno Haible  <bruno@clisp.org>
27844
27845         Update doc for POSIX:2008.
27846         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
27847         Update URL of POSIX specification.
27848
27849 2010-10-02  Bruno Haible  <bruno@clisp.org>
27850
27851         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
27852         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
27853         from gnulib, not from Automake.
27854
27855 2010-10-02  Bruno Haible  <bruno@clisp.org>
27856
27857         New module 'system-posix'.
27858         * modules/system-posix: New file.
27859         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
27860         module is present.
27861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27862         GNULIB_SYSTEM_POSIX.
27863         * modules/stdlib (Depends-on): Remove sys_wait.
27864         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
27865         * doc/posix-functions/system.texi: Mention the new module.
27866         * doc/posix-headers/stdlib.texi: Likewise.
27867         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
27868         define test_sys_wait_macros to a no-op.
27869         Reported by Sam Steingold <sds@gnu.org>.
27870
27871 2010-09-30  Bruno Haible  <bruno@clisp.org>
27872
27873         More renaming from 'getdate' to 'get_date'.
27874         * doc/get_date.texi: Renamed from doc/getdate.texi.
27875         * modules/get_date (Files): Update.
27876         * MODULES.html.sh (Date and time <time.h>): Update.
27877         * DEPENDENCIES: Update.
27878         * gnulib-tool: Update comment.
27879         * m4/bison.m4 (gl_BISON): Likewise.
27880         * m4/get_date.m4 (gl_GET_DATE): Likewise.
27881
27882 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
27883
27884         bootstrap: support ACLOCAL_FLAGS during aclocal
27885         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
27886         can add additional -I dir for third-party .m4 files.
27887
27888 2010-09-30  Eric Blake  <eblake@redhat.com>
27889
27890         bootstrap: use glibtoolize on MacOS
27891         * build-aux/bootstrap (check_versions): Convert libtool into
27892         libtoolize.
27893         (tool search): Move libtool check earlier, and look for
27894         glibtoolize for MacOS.
27895         (gnulib_tool_options): Auto-add --libtool when appropriate.
27896         Reported by Justin Clift.
27897
27898         poll: fix typo that broke test on MacOS
27899         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
27900         Reported by Justin Clift.
27901
27902         getdate: rename to get_date
27903         Note: getdate.h is not renamed, to minimize client impact.
27904         * modules/getdate: Mark obsolete.  Move old contents...
27905         * modules/get_date: ...to new module name.
27906         * modules/getdate-tests: Move...
27907         * modules/get_date-tests: ...here.
27908         * m4/getdate.m4: Move...
27909         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
27910         * lib/getdate.y: Move...
27911         * lib/get_date.y: ...here.
27912         * tests/test-getdate.c: Move...
27913         * tests/test-get_date.c: ...here.
27914         * doc/posix-functions/getdate.texi (getdate): Update name.
27915         * NEWS: Mention the change.
27916
27917 2010-09-29  Bruno Haible  <bruno@clisp.org>
27918
27919         Separate the module 'waitpid' from the module 'sys_wait'.
27920         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
27921         present.
27922         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
27923         gl_MODULE_INDICATOR_FOR_TESTS.
27924         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
27925         * modules/sys_wait (Depends-on): Remove waitpid.
27926         (Makefile.am): Substitute GNULIB_WAITPID.
27927         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
27928         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
27929         signature only if the 'waitpid' module is present.
27930         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
27931         * NEWS: Mention the change.
27932         * modules/grantpt (Depends-on): Add waitpid.
27933         * modules/wait-process (Depends-on): Likewise.
27934
27935 2010-09-29  Bruno Haible  <bruno@clisp.org>
27936
27937         More tests for module 'sys_wait'.
27938         * modules/sys_wait-c++-tests: New file.
27939         * tests/test-sys_wait-c++.cc: New file.
27940         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
27941         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27942
27943 2010-09-29  Bruno Haible  <bruno@clisp.org>
27944
27945         New module 'waitpid'.
27946         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
27947         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
27948         Don't include <process.h>.
27949         (waitpid): Declare only, using modern idiom.
27950         * m4/waitpid.m4: New file.
27951         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
27952         * modules/waitpid: New file.
27953         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
27954         (Makefile.am): Update.
27955         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27956
27957 2010-09-28  Bruno Haible  <bruno@clisp.org>
27958
27959         poll: Assume ANSI C.
27960         * lib/poll.c (poll): Use an ANSI C declaration.
27961
27962 2010-09-28  Bruno Haible  <bruno@clisp.org>
27963
27964         poll-h: Create poll.h on all platforms.
27965         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
27966         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
27967         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
27968         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
27969         (gl_REPLACE_POLL_H): Don't set POLL_H.
27970         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
27971         * modules/poll-h (Depends-on): Add include_next.
27972         (Makefile.am): Create poll.h unconditionally. Substitute also
27973         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
27974
27975 2010-09-28  Bruno Haible  <bruno@clisp.org>
27976
27977         Tests for module 'poll-h'.
27978         * modules/poll-h-c++-tests: New file.
27979         * tests/test-poll-h-c++.cc: New file.
27980
27981         Tests for module 'poll-h'.
27982         * modules/poll-h-tests: New file.
27983         * tests/test-poll-h.c: New file.
27984
27985 2010-09-28  Bruno Haible  <bruno@clisp.org>
27986
27987         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27988         * modules/poll-h (Depends-on): Add 'extensions'.
27989
27990 2010-09-28  Bruno Haible  <bruno@clisp.org>
27991
27992         New module 'poll-h'.
27993         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27994         (poll): Use modern idiom.
27995         * modules/poll-h: New file.
27996         * modules/poll (Files): Remove lib/poll.in.h.
27997         (Depends-on): Add poll-h.
27998         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27999         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28000         * m4/poll_h.m4: New file.
28001         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28002         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28003         and invoke gl_REPLACE_POLL_H.
28004         * lib/poll.c: Use common idiom.
28005         * tests/test-poll.c: Likewise.
28006         * doc/posix-headers/poll.texi: Mention the poll-h module.
28007         Suggested by Eric Blake.
28008
28009 2010-09-26  Bruno Haible  <bruno@clisp.org>
28010
28011         sys_wait: Implement WSTOPSIG.
28012         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28013         Reported by Simon Josefsson.
28014
28015 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28016
28017         stdlib, sys_wait: Avoid compilation error on mingw.
28018         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28019
28020 2010-09-26  Bruno Haible  <bruno@clisp.org>
28021
28022         stdlib tests: Avoid code duplication.
28023         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28024         * modules/sys_wait-tests (Files): Likewise.
28025         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28026         * tests/test-stdlib.c: Include test-sys_wait.h.
28027         (main): Invoke test_sys_wait_macros.
28028         * tests/test-sys_wait.c: Include test-sys_wait.h.
28029         (main): Invoke test_sys_wait_macros.
28030
28031 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28032
28033         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28034         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28035         sure Windows sockets are working before calling getaddrinfo.
28036         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28037         * doc/gnulib.texi (Windows sockets): Fix typo.
28038
28039 2010-09-25  Bruno Haible  <bruno@clisp.org>
28040
28041         Tests for module 'regex-quote'.
28042         * modules/regex-quote-tests: New file.
28043         * tests/test-regex-quote.c: New file.
28044
28045         New module 'regex-quote'.
28046         * lib/regex-quote.h: New file.
28047         * lib/regex-quote.c: New file.
28048         * modules/regex-quote: New file.
28049         Suggested by Reuben Thomas <rrt@sc3d.org>.
28050
28051 2010-09-24  Bruno Haible  <bruno@clisp.org>
28052
28053         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28054         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28055
28056 2010-09-23  Bruno Haible  <bruno@clisp.org>
28057
28058         setenv: Relax license.
28059         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28060         Blake.
28061         Requested by Eric Blake.
28062
28063 2010-09-22  Bruno Haible  <bruno@clisp.org>
28064
28065         termios: Relax license.
28066         * modules/termios (License): Change to LGPLv2+.
28067         Requested by Eric Blake.
28068
28069 2010-09-22  Bruno Haible  <bruno@clisp.org>
28070
28071         threadlib: Allow the package to change the default to 'no'.
28072         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28073         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28074         Reported by Paul Eggert.
28075
28076 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28077             Bruno Haible  <bruno@clisp.org>
28078
28079         Fix endless loop in mbmemcasecoll.
28080         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28081         byte.
28082         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28083
28084 2010-09-22  Bruno Haible  <bruno@clisp.org>
28085
28086         Tests for module 'memcoll'.
28087         * modules/memcoll-tests: New file.
28088         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28089
28090         memcoll, xmemcoll: Clarify size vs. length.
28091         * modules/memcoll.c (memcoll0): Clarify specification.
28092         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28093         passed to collate_error.
28094
28095 2010-09-22  Bruno Haible  <bruno@clisp.org>
28096
28097         Tests for module 'memcasecmp'.
28098         * modules/memcasecmp-tests: New file.
28099         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28100
28101 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28102
28103         * lib/pthread.in.h: Add split double-inclusion guard, and include
28104         system <pthread.h> if there is one.  Use @@-style as in other
28105         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28106         pthread.h doesn't.
28107         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28108         (pthread_mutexattr_settype, pthread_mutex_trylock):
28109         New static inline functions, if there's no system <pthread.h>.
28110         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28111         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28112         Approximate with mutexes if the system lacks spinlocks, as in
28113         MacOS.
28114         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28115         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28116         @@-style.  Check for spinlocks separately.
28117         (gl_PTHREAD_DEFAULTS): New macro.
28118         * modules/pthread: Redo to use a more typical style for in.h files.
28119
28120 2010-09-21  Eric Blake  <eblake@redhat.com>
28121
28122         net_if: enhance tests
28123         * tests/test-net_if.c (main): Move signature checks earlier.
28124         Print failures to stderr.
28125         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28126         Document the bug that we do not yet fix.
28127
28128 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28129
28130         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28131         about gnulib, not GSS.
28132
28133 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28134
28135         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28136         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28137         for Emacs.
28138         * build-aux/pmccabe2html: Make Makefile.am example code more
28139         cut-and-paste friendly.
28140
28141 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28142
28143         * tests/test-net_if.c: New file.
28144         * modules/net_if-tests: New file.
28145
28146 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28147
28148         pthread: add pthread_spin_destroy
28149         * lib/pthread.in.h (pthread_spin_destroy): New function.
28150
28151 2010-09-19  Bruno Haible  <bruno@clisp.org>
28152
28153         gnulib-tool: Fix --help output.
28154         * gnulib-tool (func_usage): Fix help message.
28155         Reported by Reuben Thomas <rrt@sc3d.org>.
28156
28157 2010-09-18  Jim Meyering  <meyering@redhat.com>
28158
28159         maint.mk: avoid unexpanded \n in two diagnostics
28160         * top/maint.mk (sc_prohibit_always_true_header_tests):
28161         Don't use a literal \n in a halt=... assignment.  It would not be
28162         expanded, and the two \n bytes would appear in the diagnostic output
28163         rather than the desired newline.  Use halt=$$(printf ... instead.
28164         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28165
28166 2010-09-18  Bruno Haible  <bruno@clisp.org>
28167
28168         netinet_in: Doc tweak.
28169         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28170         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28171
28172 2010-09-18  Jim Meyering  <meyering@redhat.com>
28173
28174         init.sh: correct an outdated comment
28175         * tests/init.sh (create_exe_shims_):  s/function/alias/
28176
28177         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28178         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28179         a file named "*.exe" is removed between the glob expansion and the
28180         processing of that oddly named file.
28181
28182 2010-09-17  Eric Blake  <eblake@redhat.com>
28183
28184         mirbsd: add some more support
28185         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28186         in BSD family.
28187         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28188         devices as OpenBSD.
28189         * m4/host-os.m4 (mirbsd): Add MirBSD.
28190
28191         tests: fix unportable assumption on sys/wait.h
28192         * tests/test-sys_wait.c (main): Relax test.
28193         * tests/test-stdlib.c (main): Likewise.
28194
28195         init.sh: accommodate directory with no .exes
28196         * tests/init.sh: Accomodate directory containing only scripts.
28197
28198         tests: avoid compiler warning
28199         * tests/test-stdlib.c (main): Use the variable.
28200
28201         fdutimens, fdutimensat: update signature, again
28202         * lib/utimens.h (gl_futimens): Delete, and move signature...
28203         (fdutimens): ...here.
28204         (fdutimensat): Rearrange signature.
28205         (lutimensat): Rename variable for clarity.
28206         * lib/fdutimensat.c (fdutimensat): Update signature.
28207         * lib/utimens.c (fdutimens): Likewise.
28208         (gl_futimens): Delete.
28209         (utimens, lutimens): Update callers.
28210         * lib/futimens.c (futimens): Likewise.
28211         * tests/test-fdutimensat.c: Likewise.
28212         * tests/test-utimens.c: Likewise.
28213         * tests/test-futimens.h: Update comment.
28214         * NEWS: Mention this.
28215         Suggested by Paul Eggert.
28216
28217 2010-09-17  Bruno Haible  <bruno@clisp.org>
28218
28219         Take over the maintenance of some older macros from Autoconf.
28220         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28221         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28222         GNU Autoconf.
28223         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28224         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28225
28226 2010-09-17  Eric Blake  <eblake@redhat.com>
28227
28228         fdutimensat: drop atflag validation
28229         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28230         with valid fd, to close a race scenario where futimens is
28231         unsupported and FILE was replaced by a symlink.
28232         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28233         accordingly.
28234         Suggested by Paul Eggert.
28235
28236 2010-09-16  Bruno Haible  <bruno@clisp.org>
28237
28238         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28239         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28240
28241 2010-09-16  Bruno Haible  <bruno@clisp.org>
28242
28243         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28244         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28245         login_tty exists.
28246         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28247
28248 2010-09-16  Bruno Haible  <bruno@clisp.org>
28249
28250         login_tty: Make the replacement code work on BSD systems.
28251         * lib/login_tty.c: Include <sys/ioctl.h>.
28252         (login_tty): Use ioctl TIOCSCTTY when available.
28253         * modules/login_tty (Depends-on): Add sys_ioctl.
28254         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28255
28256 2010-09-16  Bruno Haible  <bruno@clisp.org>
28257
28258         login_tty: Stricter unit test.
28259         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28260         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28261         and tcgetsid() after login_tty.
28262         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28263
28264 2010-09-16  Bruno Haible  <bruno@clisp.org>
28265
28266         New module 'tcgetsid'.
28267         * lib/tcgetsid.c: New file.
28268         * m4/tcgetsid.m4: New file.
28269         * modules/tcgetsid: New file.
28270         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28271         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28272         GNULIB_TCGETSID, HAVE_TCGETSID.
28273         * lib/termios.in.h: Include <sys/types.h>.
28274         (tcgetsid): New declaration.
28275         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28276         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28277         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28278         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28279
28280 2010-09-16  Bruno Haible  <bruno@clisp.org>
28281
28282         Tests for module 'termios'.
28283         * modules/termios-c++-tests: New file.
28284         * modules/termios-tests: New file.
28285         * tests/test-termios-c++.cc: New file.
28286         * tests/test-termios.c: New file.
28287
28288         New module 'termios'.
28289         * modules/termios: New file.
28290         * lib/termios.in.h: New file.
28291         * m4/termios_h.m4: New file.
28292         * doc/posix-headers/termios.texi: Mention the new module.
28293
28294 2010-09-16  Eric Blake  <eblake@redhat.com>
28295
28296         fdutimensat: add an atflag parameter
28297         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28298         * lib/utimens.h (fdutimensat): Update prototype.
28299         * tests/test-fdutimensat.c: Adjust test to match.
28300         * NEWS: Document the change.
28301         Suggested by Paul Eggert.
28302
28303 2010-09-16  Bruno Haible  <bruno@clisp.org>
28304
28305         Fix typos in comments.
28306         * lib/striconveh.h: Fix typo in comment.
28307         * lib/login_tty.c (login_tty): Likewise.
28308
28309 2010-09-15  Bruno Haible  <bruno@clisp.org>
28310
28311         stdlib: clarify MirBSD WEXITSTATUS bug
28312         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28313         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28314
28315 2010-09-15  Eric Blake  <eblake@redhat.com>
28316
28317         stdlib: work around MirBSD WEXITSTATUS bug
28318         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28319         * modules/stdlib (Depends-on): Add sys_wait.
28320         * tests/test-sys_wait.c (main): Enhance test.
28321         * tests/test-stdlib.c (main): Likewise.
28322         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28323
28324         docs: mention MacOS issue with WEXITSTATUS(constant)
28325         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28326         issue.
28327         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28328
28329         strnlen: add tests
28330         * modules/strnlen-tests: New file.
28331         * tests/test-strnlen.c: Likewise.
28332
28333 2010-09-14  Bruno Haible  <bruno@clisp.org>
28334
28335         unistr/base: Avoid link errors when module 'libunistring' is also used.
28336         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28337         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28338         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28339         Declare also when HAVE_LIBUNISTRING is set.
28340         Reported by Pádraig Brady <P@draigbrady.com>.
28341
28342 2010-09-14  Eric Blake  <eblake@redhat.com>
28343
28344         test-rawmemchr: make more robust
28345         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28346         (Depends-on, configure.ac): Add needed prerequisites to use it.
28347         * modules/memchr-tests (Files, Depends-on, configure.ac):
28348         Likewise, to avoid implicit reliance on memchr module prereqs.
28349         * tests/test-memchr.c (main): Ensure proper masking.
28350         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28351         reads.
28352
28353         memchr: detect glibc Alpha bug
28354         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28355         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28356         Alpha.
28357         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28358         * tests/test-memchr.c (main): Enhance test.
28359         Reported by Nelson H. F. Beebe.
28360
28361 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28362
28363         fts, getcwd, glob: audit for dirfd returning -1
28364         * lib/fts.c (opendir): Remove #define; no longer used.
28365         (opendirat): New arg PDIR_FD.  All callers changed.
28366         (fts_build, _opendir2): Use new opendirat to avoid the need for
28367         dirfd, or for checking whether dirfd returns a negative value.
28368         Don't use opendir; always use openat followed by fdopendir.
28369         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28370         it.
28371         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28372         returns -1 here.
28373         * modules/fts (Depends-on): Remove dirfd.
28374         * modules/getcwd (Depends-on): Likewise.
28375
28376 2010-09-13  Eric Blake  <eblake@redhat.com>
28377
28378         float: fix broken MirBSD header
28379         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28380         * doc/posix-headers/float.texi (float.h): Document it.
28381
28382 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28383
28384         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28385         * lib/fts.c (opendirat): New arg extra_flags.
28386         (__opendir2): Use it to avoid following symlinks when opening
28387         a directory, if symlinks are not supposed to be followed.  See
28388         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28389
28390         fdopendir: preserve argument fd before returning
28391         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28392         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28393         (fdopendir): Use them, arranging for FD to be open to the same
28394         directory that it was when it started.  (It might be temporarily
28395         closed while fdopendir is running, so this not thread- or
28396         signal-safe.)  Be careful to do the right thing even when file
28397         descriptors are scarce and dup fails with errno == EMFILE.  See
28398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28399
28400 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28401
28402         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28403         * NEWS: Document change.
28404         * m4/regex.m4: Disable test for regoff_t size.
28405
28406 2010-09-13  Jim Meyering  <meyering@redhat.com>
28407
28408         fts: don't operate on an invalid file descriptor after failed dup
28409         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28410         negative file descriptor.
28411
28412 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28413
28414         savedir: add streamsavedir, deprecate fdsavedir
28415         * NEWS: Mention deprecation of fdsavedir.
28416         * lib/savedir.c (streamsavedir): New extern function, whose name
28417         ends in "savedir" to be consistent with the others.  This differs
28418         from savedirstream in that it doesn't close its argument.  The
28419         next version of GNU tar will use this instead of fdsavedir, to
28420         avoid some race conditions and conserve file descriptors.
28421         (savedirstream): Reimplement as a wrapper around streamsavedir.
28422         (fdsavedir): Add a comment deprecating this function.  As far as
28423         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28424         * lib/savedir.h (streamsavedir): New decl.
28425         (fdsavedir): Add a comment deprecating this.
28426
28427 2010-09-10  Bruno Haible  <bruno@clisp.org>
28428
28429         langinfo: Fix last commit.
28430         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28431         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28433
28434 2010-09-10  Bruno Haible  <bruno@clisp.org>
28435
28436         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28437         * lib/progreloc.c (O_EXEC): Define fallback.
28438
28439 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28440
28441         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28442         * NEWS: Document recent changes to fcntl-h.
28443         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28444         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28445         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28446         Similarly for O_SEARCH; this last was already true, but not documented.
28447         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28448         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28449         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28450         Likewise.
28451         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28452         is zero, not whether it is defined.
28453         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28454         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28455         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28456
28457 2010-09-10  Bruno Haible  <bruno@clisp.org>
28458
28459         langinfo, nl_langinfo: Fix for IRIX 5.3.
28460         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28461         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28462         HAVE_LANGINFO_YESEXPR.
28463         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28464         HAVE_LANGINFO_YESEXPR.
28465         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28466         HAVE_LANGINFO_T_FMT_AMPM is 0.
28467         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28468         HAVE_LANGINFO_YESEXPR is 0.
28469         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28470         NOEXPR.
28471         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28472         * doc/posix-functions/nl_langinfo.texi: Likewise.
28473         Reported by Eric Blake.
28474
28475 2010-09-10  Bruno Haible  <bruno@clisp.org>
28476
28477         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28478         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28479         on FreeBSD 8.0 and OpenBSD 4.6.
28480         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28481         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28482         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28483         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28484         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28485         ac_includes_default.
28486         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28487
28488 2010-09-09  Eric Blake  <eblake@redhat.com>
28489
28490         strsignal: work around NetBSD bug
28491         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28492         * lib/string.in.h (includes): Likewise.
28493         * doc/posix-functions/strsignal.texi (strsignal): Document the
28494         bug.
28495         Reported by Nelson H. F. Beebe.
28496
28497         gnulib-tool: work with NetBSD /bin/sh
28498         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28499         (func_get_description, func_get_comment, func_get_status)
28500         (func_get_notice, func_get_applicability, func_get_filelist)
28501         (func_get_dependencies, func_get_autoconf_early_snippet)
28502         (func_get_autoconf_snippet, func_get_automake_snippet)
28503         (func_get_include_directive, func_get_link_directive)
28504         (func_get_license, func_get_maintainer, func_import): Avoid
28505         shell syntax errors from parsing syntax extensions.
28506
28507 2010-09-09  Bruno Haible  <bruno@clisp.org>
28508
28509         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28510         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28511         a reliable way to determine whether the 'alias' command works.
28512
28513 2010-09-08  Jim Meyering  <meyering@redhat.com>
28514
28515         init.sh: penalize a set-x-impaired shell; don't disqualify it
28516         * tests/init.sh: Too many shells corrupt application stderr when
28517         you set -x, so we can't afford to disqualify them, since at least
28518         on Irix-6.5, that would disqualify all bourne shells.
28519         Instead, use a two-pass approach.
28520         On the first pass, try to find a shell that meets the stricter
28521         condition that set -x does not corrupt stderr.
28522         If no shell meets the stricter condition, retest each candidate
28523         shell, but without that extra condition.  Finally, when
28524         VERBOSE=yes is requested and set -x might cause trouble, simply
28525         issue a warning and refrain from enabling debug output.
28526
28527 2010-09-08  Eric Blake  <eblake@redhat.com>
28528
28529         unsetenv: fix OpenBSD bug
28530         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28531         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28532         documentation.
28533         Reported by Jim Meyering.
28534
28535         strtod: work around IRIX 6.5 bug
28536         * lib/strtod.c (strtod): Reparse number on shorter string if
28537         exponent parse was invalid.
28538         * tests/test-strtod.c (main): Add check for "0x1p 2".
28539         Reported by Tom G. Christensen.
28540
28541         getopt: optimize previous patch
28542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28543         empty variable.  Speed up awk script.
28544         Reported by Paolo Bonzini.
28545
28546 2010-09-08  Jim Meyering  <meyering@redhat.com>
28547
28548         test.sh: disqualify shells for which set -x corrupts stderr
28549         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28550         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28551         appear in stderr output.  For example, this command:
28552             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28553         prints "P=1" on those two systems:
28554
28555 2010-09-08  Bruno Haible  <bruno@clisp.org>
28556
28557         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28558         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28559         commands, because some shells ignore redirections when there is an
28560         error in the command lookup.
28561         Reported by Eric Blake.
28562
28563 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28564
28565         * lib/regex.h: Fix a mention of `regex_compile' (should be
28566         `re_compile_pattern').
28567         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28568         (re_set_registers): Correct name of parameter in comment.
28569
28570         * doc/regex.texi: Add documentation for missing syntax flags.
28571         Remove commented-out documentation of defunct syntax option
28572         RE_NO_EMPTY_ALTS.
28573         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28574         Add documentation of re_set_registers.
28575         Document trick to re-use a pattern buffer by setting fastmap manually.
28576         Update documentation of struct re_pattern_buffer per public members.
28577         Uncomment documentation of equivalence class operators and
28578         collating symbol operators, since they are now implemented,
28579         Explain leftmost-longest matching in relation to alternatives.
28580         Tidy documentation of substring matching.
28581         Remove POSIX documentation, which is done better in
28582         glibc, and refer the reader there. Keep BSD API documentation, as
28583         that is not readily available elsewhere.
28584
28585 2010-09-07  Eric Blake  <eblake@redhat.com>
28586
28587         getopt: handle POSIXLY_CORRECT set but not exported
28588         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28589         export state of POSIXLY_CORRECT, due to bash set -o posix.
28590         Reported by Dustin J. Mitchell.
28591
28592 2010-09-05  Bruno Haible  <bruno@clisp.org>
28593
28594         gnulib-tool: Highlight the changed options.
28595         * gnulib-tool (func_usage): Display the --import, --add-import,
28596         --remove-import explanations in bold font.
28597
28598 2010-09-06  Karl Berry  <karl@gnu.org>
28599
28600         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28601
28602 2010-09-05  Bruno Haible  <bruno@clisp.org>
28603
28604         uniwidth/width: Update comment.
28605         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28606         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28607
28608 2010-09-05  Bruno Haible  <bruno@clisp.org>
28609
28610         isinf, isnan: Relax license.
28611         * modules/isinf (License): Change from GPL to LGPL, with consent from
28612         Ben Pfaff.
28613         * modules/isnan (License): Likewise.
28614         Requested by Ludovic Courtès.
28615
28616 2010-09-04  Bruno Haible  <bruno@clisp.org>
28617
28618         gnulib-tool: Help migration from --import to --add-import or --update.
28619         * gnulib-tool: Emit a verbose error message when --import is used
28620         without any module name.
28621
28622 2010-09-04  Bruno Haible  <bruno@clisp.org>
28623
28624         Update doc about gnulib-tool.
28625         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28626         'gnulib-tool --update' in more detail.
28627         Reported by Eric Blake.
28628
28629 2010-09-04  Bruno Haible  <bruno@clisp.org>
28630
28631         gnulib-tool: Change --import. New options --add/remove-import.
28632         * gnulib-tool: New options --add-import, --remove-import.
28633         (func_usage): Document them.
28634         (have_associative): Define always.
28635         (func_import): In import mode, don't merge the specified settings with
28636         the cached settings. Implement remove-import mode.
28637         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28638         Explain when to use them versus --import.
28639         (Simple update): Use --add-import instead of --import.
28640         * NEWS: Mention the change.
28641
28642 2010-09-04  Bruno Haible  <bruno@clisp.org>
28643
28644         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28645         separate gnulib.mk.
28646
28647 2010-09-04  Bruno Haible  <bruno@clisp.org>
28648
28649         gnulib-tool: Don't talk about CVS any more.
28650         * gnulib-tool (func_usage, func_import): Write "version control"
28651         instead of CVS.
28652
28653 2010-09-04  Jim Meyering  <meyering@redhat.com>
28654
28655         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28656         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28657         false positives (whose names may be ill-chosen) when searching
28658         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28659         would cause a false-positive.
28660
28661         avoid coreutils "make distcheck" failure
28662         Coreutils tests with an absolute build directory name that contains
28663         a space.  Not quoting this directory name caused a failure.
28664         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28665         * tests/test-vc-list-files-cvs.sh: Likewise.
28666
28667 2010-09-04  Bruno Haible  <bruno@clisp.org>
28668
28669         gnulib-tool: Avoid error when run in a package without Makefile.am.
28670         * gnulib-tool: When collecting the m4dirs in a package that does not
28671         have a Makefile.am, eliminate those directories that contain no
28672         gnulib-cache.m4. Fix expression that counts these directories.
28673
28674 2010-09-04  Bruno Haible  <bruno@clisp.org>
28675
28676         update-copyright test: Improve output when perl is missing or too old.
28677         * tests/test-update-copyright.sh: Move test of Perl version down after
28678         the test whether Perl exists. Provide an explanation relating Perl's
28679         error message to Automake's SKIP: message.
28680
28681 2010-09-04  Bruno Haible  <bruno@clisp.org>
28682
28683         Don't augment PATH in TESTS_ENVIRONMENT.
28684         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28685         set abs_aux_dir instead of augmenting PATH.
28686         * modules/vc-list-files-tests (Makefile.am): Likewise.
28687         * tests/test-update-copyright.sh: Augment PATH here.
28688         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28689         path_prepend_.
28690         * tests/test-vc-list-files-git.sh: Likewise.
28691
28692 2010-09-04  Jim Meyering  <meyering@redhat.com>
28693
28694         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28695         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28696
28697 2010-09-04  Bruno Haible  <bruno@clisp.org>
28698
28699         strdup: Fix compilation error in C++ mode.
28700         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28701         the macro.
28702
28703 2010-09-04  Bruno Haible  <bruno@clisp.org>
28704
28705         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28706         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28707         macro into a function.
28708         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28709
28710 2010-09-04  Bruno Haible  <bruno@clisp.org>
28711
28712         Set PATH_SEPARATOR the same way autoconf does.
28713         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28714         the value of PATH_SEPARATOR the same way autoconf-generated configure
28715         scripts do.
28716         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28717         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28718
28719 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28720
28721         Set PATH_SEPARATOR the same way autoconf does.
28722         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28723         the same way autoconf-generated configure scripts do.
28724         * posix-modules: Likewise.
28725
28726 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28727
28728         hash: fix safe_hasher const typo
28729         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28730         const; otherwise, there is a type error later.
28731
28732 2010-09-02  Jim Meyering  <meyering@redhat.com>
28733
28734         test-update-copyright.sh: require perl 5.8.0
28735         * tests/test-update-copyright.sh: Require 5.8.0,
28736         which Tom G. Christensen has confirmed is adequate,
28737         while 5.6.1 is not.
28738
28739 2010-09-02  Eric Blake  <eblake@redhat.com>
28740
28741         tests: init.sh improvements for re-exec'ing with zsh
28742         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28743         -vx through shell re-exec.
28744         Reported by Tom G. Christensen.
28745
28746         wctype: fix typo in previous commit
28747         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28748         Reported by Ludovic Courtès.
28749
28750 2010-09-02  Jim Meyering  <meyering@redhat.com>
28751
28752         test-update-copyright.sh: skip test if Perl is too old
28753         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28754         Reported by Tom G. Christensen.
28755
28756 2010-09-02  Bruno Haible  <bruno@clisp.org>
28757
28758         wctype: Avoid compilation error on IRIX 6.5.30.
28759         * lib/wctype.in.h (iswblank): Declare with a replacement if
28760         REPLACE_ISWBLANK is set.
28761         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28762         declared. Set REPLACE_ISWBLANK.
28763         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28764         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28765         * doc/posix-headers/wctype.texi: Likewise.
28766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28767
28768 2010-09-01  Bruno Haible  <bruno@clisp.org>
28769
28770         New module 'socketlib'.
28771         * modules/socketlib: New file.
28772         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28773         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28774         * modules/sockets (Depends-on): Add socketlib.
28775         Suggested by Sam Steingold <sds@gnu.org>.
28776
28777 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28778
28779         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28780
28781         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28782         when one needs search access to a directory but not read access.
28783         On systems where it is available, it works in some cases where
28784         O_RDONLY does not, namely on directories that are searchable but
28785         not readable, and which need only to be searchable.  If O_SEARCH
28786         is not available, fall back to the traditional method of using
28787         O_RDONLY.
28788
28789         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28790         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28791         when opening a directory that needs only to be searchable.
28792         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28793         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28794         * lib/openat-proc.c (openat_proc_name): Likewise.
28795         * lib/openat.c (openat_needs_fchdir): Likewise.
28796         * lib/save-cwd.c (save_cwd): Likewise.
28797         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28798
28799 2010-08-28  Bruno Haible  <bruno@clisp.org>
28800
28801         New module 'host-cpu-c-abi'.
28802         * modules/host-cpu-c-abi: New file.
28803         * m4/host-cpu-c-abi.m4: New file, based on part of
28804         clisp/src/m4/general.m4.
28805         Requested by Sam Steingold <sds@gnu.org>.
28806
28807 2010-08-31  Eric Blake  <eblake@redhat.com>
28808         and Jim Meyering  <meyering@redhat.com>
28809
28810         hash: factor, and guard against misbehaving hasher function
28811         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28812         of table->hasher's return value.  Also protect against a hash value
28813         so large that adding it to table->bucket results in a NULL pointer.
28814         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28815         Use it in place of open-coded check-and-abort.
28816
28817 2010-08-30  Bruno Haible  <bruno@clisp.org>
28818
28819         hash: silence spurious clang warning
28820         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28821         Reported by Eric Blake.
28822
28823 2010-08-30  Eric Blake  <eblake@redhat.com>
28824
28825         strstr, memmem, strcasestr: avoid leaked shell message
28826         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28827         FreeBSD.
28828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28829         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28830
28831         tests: silence clang warning
28832         * tests/test-malloca.c (do_allocation): Avoid dead store.
28833
28834 2010-08-29  Bruno Haible  <bruno@clisp.org>
28835
28836         gettext: Fix recent mistake.
28837         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
28838
28839 2010-08-29  Bruno Haible  <bruno@clisp.org>
28840
28841         selinux-h: Offer a --without-selinux option.
28842         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
28843         --without-selinux was specified, skip all tests and define
28844         HAVE_SELINUX_SELINUX_H to 0.
28845         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
28846         set LIB_SELINUX to empty.
28847         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
28848         gl_LIBSELINUX. If --without-selinux was specified, replace
28849         selinux/context.h.
28850         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
28851
28852 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28853             Bruno Haible  <bruno@clisp.org>
28854
28855         Make the module 'realloc-gnu' work again on AIX and OSF/1.
28856         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
28857         of HAVE_REALLOC.
28858         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
28859         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
28860         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
28861         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28862
28863 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28864             Bruno Haible  <bruno@clisp.org>
28865
28866         Make the module 'calloc-gnu' work again on AIX and OSF/1.
28867         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
28868         HAVE_CALLOC.
28869         * lib/xmalloc.c: Update accordingly.
28870         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
28871         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
28872         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
28873
28874 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28875             Bruno Haible  <bruno@clisp.org>
28876
28877         Make the module 'malloc-gnu' work again on AIX and OSF/1.
28878         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
28879         HAVE_MALLOC.
28880         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
28881         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
28882         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28883
28884 2010-08-29  Bruno Haible  <bruno@clisp.org>
28885
28886         Update modules list.
28887         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28888         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
28889         (String handling <string.h>): Add astrxfrm.
28890         (File system functions): Add readlinkat.
28891
28892 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28893
28894         Tests for module 'realloc-gnu'.
28895         * modules/realloc-gnu-tests: New file.
28896         * tests/test-realloc-gnu.c: New file.
28897
28898         Tests for module 'calloc-gnu'.
28899         * modules/calloc-gnu-tests: New file.
28900         * tests/test-calloc-gnu.c: New file.
28901
28902         Tests for module 'malloc-gnu'.
28903         * modules/malloc-gnu-tests: New file.
28904         * tests/test-malloc-gnu.c: New file.
28905
28906 2010-08-28  Bruno Haible  <bruno@clisp.org>
28907
28908         Rename module 'realloc' -> 'realloc-gnu'.
28909         * modules/realloc-gnu: New file, copied from modules/realloc.
28910         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
28911         obsolete.
28912         * modules/mgetgroups (Depends-on): Update.
28913         * doc/posix-functions/realloc.texi: Update.
28914         * NEWS: Mention the change.
28915
28916         Rename module 'calloc' -> 'calloc-gnu'.
28917         * modules/calloc-gnu: New file, copied from modules/calloc.
28918         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
28919         obsolete.
28920         * doc/posix-functions/calloc.texi: Update.
28921         * NEWS: Mention the change.
28922
28923         Rename module 'malloc' -> 'malloc-gnu'.
28924         * modules/malloc-gnu: New file, copied from modules/malloc.
28925         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
28926         obsolete.
28927         * modules/argp (Depends-on): Update.
28928         * modules/regex (Depends-on): Update.
28929         * doc/posix-functions/malloc.texi: Update.
28930         * NEWS: Mention the change.
28931
28932 2010-08-28  Eric Blake  <eblake@redhat.com>
28933
28934         pread, pwrite: add missing dependency
28935         * modules/pread (Depends-on): Add extensions.
28936         * modules/pwrite (Depends-on): Likewise.
28937
28938 2010-08-28  Bruno Haible  <bruno@clisp.org>
28939
28940         unistr/u*-strchr: Fix tests dependencies.
28941         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
28942         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
28943         Reported by Ian Beckwith <ianb@erislabs.net>.
28944
28945 2010-08-28  Bruno Haible  <bruno@clisp.org>
28946
28947         read-file: Don't occupy too much unused memory.
28948         * lib/read-file.c (fread_file): Shrink the buffer at the end.
28949
28950 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
28951             Eric Blake  <eblake@redhat.com>
28952             Bruno Haible  <bruno@clisp.org>
28953
28954         read-file: Avoid memory reallocations with regular files.
28955         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
28956         (fread_file): With regular files, use the remaining length as the
28957         initial buffer size.  Check against overflow.
28958         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
28959         sys_stat.
28960
28961 2010-08-28  Bruno Haible  <bruno@clisp.org>
28962
28963         ftello: Relax license.
28964         * modules/ftello (License): Relax to LGPLv2+.
28965         Reported by Eric Blake.
28966
28967 2010-08-28  Bruno Haible  <bruno@clisp.org>
28968
28969         Avoid relocwrapper link errors due to gnulib replacement functions.
28970         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
28971         function.
28972         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28973
28974 2010-08-28  Bruno Haible  <bruno@clisp.org>
28975
28976         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28977         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28978         defined.
28979         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28980         Suggested by Eric Blake.
28981
28982 2010-08-28  Bruno Haible  <bruno@clisp.org>
28983
28984         sys_socket, netdb: Ensure socklen_t gets defined.
28985         * modules/sys_socket (Depends-on): Add socklen.
28986         * modules/netdb (Depends-on): Likewise.
28987         * modules/getaddrinfo (Depends-on): Remove socklen.
28988         * modules/getsockopt (Depends-on): Likewise.
28989         * modules/setsockopt (Depends-on): Likewise.
28990         * tests/test-sys_socket.c: Check that socklen_t is defined.
28991         * tests/test-netdb.c: Likewise.
28992         * m4/socklen.m4: Update comments.
28993         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28994
28995 2010-08-27  Eric Blake  <eblake@redhat.com>
28996
28997         login_tty: add missing dependency
28998         * modules/login_tty (Depends-on): Add pty.
28999
29000 2010-08-26  Eric Blake  <eblake@redhat.com>
29001
29002         lib-symbol-versions: fix m4 quoting
29003         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29004         format for AC_LINK_IFELSE.
29005
29006         glob: fix compile test
29007         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29008
29009         btowc: fix missing file
29010         * modules/btowc (Files): Also ship locale-fr.m4.
29011
29012         lseek: fix link test
29013         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29014         AC_LINK_IFELSE.
29015
29016         include_next: silence autoconf 2.68 warning
29017         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29018         AC_COMPILE_IFELSE as special.
29019         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29020         autoconf < 2.68.
29021
29022         acl: fix compilation test
29023         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29024         AC_COMPILE_IFELSE.
29025
29026 2010-08-26  Bruno Haible  <bruno@clisp.org>
29027
29028         Modernize AC_TRY_RUN invocations.
29029         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29030         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29031         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29032         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29033         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29034         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29037         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29038         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29039         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29040         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29041         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29042         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29043         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29044         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29045         gl_MBRLEN_NUL_RETVAL): Likewise.
29046         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29047         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29048         Likewise.
29049         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29050         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29051         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29052         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29053         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29054         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29055         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29056         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29057         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29058         Likewise.
29059         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29060         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29061         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29062         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29063         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29064         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29065         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29066         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29067         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29068         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29069
29070 2010-08-26  Bruno Haible  <bruno@clisp.org>
29071
29072         Modernize AC_TRY_LINK invocations.
29073         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29074         AC_TRY_LINK.
29075         * m4/argp.m4 (gl_ARGP): Likewise.
29076         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29077         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29078         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29079         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29080         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29081         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29082         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29083         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29084         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29085         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29086         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29087         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29088         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29089         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29090         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29091         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29092         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29093         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29094         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29095         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29096         Likewise.
29097         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29098         Likewise.
29099         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29100         Likewise.
29101         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29102         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29103         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29104         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29105         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29106         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29107         * m4/servent.m4 (gl_SERVENT): Likewise.
29108         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29109         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29110         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29111         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29112         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29113         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29114         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29115         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29116         * modules/tsearch-tests (configure.ac): Likewise.
29117
29118 2010-08-26  Bruno Haible  <bruno@clisp.org>
29119
29120         Modernize AC_TRY_COMPILE invocations.
29121         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29122         AC_TRY_COMPILE.
29123         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29124         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29125         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29126         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29127         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29128         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29129         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29130         * m4/lock.m4 (gl_LOCK): Likewise.
29131         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29132         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29133         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29134         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29135         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29136         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29137         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29138         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29139         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29140         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29141         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29142         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29143         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29144         extraneous semicolon.
29145
29146 2010-08-26  Jim Meyering  <meyering@redhat.com>
29147
29148         stat-time: relax license LGPL
29149         * modules/stat-time (License): Change from GPL to LGPL,
29150         with consent from all contributors, for use in libguile.
29151         Requested by Ludovic Courtès.
29152
29153 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29154
29155         poll: return immediately on POLLHUP.
29156         * lib/poll.c (poll): Always set timeout before wait_timeout is
29157         computed.
29158
29159 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29160
29161         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29162         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29163         rmdir ("dir/.//"), unlinkat.
29164
29165 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29166
29167         stdbool: avoid spurious failure with modern xlc
29168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29169
29170 2010-08-24  Bruno Haible  <bruno@clisp.org>
29171
29172         getloadavg: simplify code
29173         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29174         gl_have_func. Update comments.
29175
29176 2010-08-24  Eric Blake  <eblake@redhat.com>
29177
29178         getloadavg: don't define SVR4 on cygwin
29179         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29180         only define SVR4 when -lkvm is required.
29181         Reported by Yaakov Selkowitz.
29182
29183 2010-08-24  Bruno Haible  <bruno@clisp.org>
29184
29185         priv-set: fix comment
29186         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29187
29188 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29189
29190         priv-set: fix comments
29191         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29192         to match code, as suggested by David Bartley in:
29193         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29194
29195 2010-08-23  Eric Blake  <eblake@redhat.com>
29196
29197         stdbool: avoid rejecting clang
29198         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29199         * tests/test-stdbool.c: Enable more tests if using the system
29200         <stdbool.h> instead of the gnulib replacement.
29201         (main): Move xlc bug test to a runtime test for all compilers.
29202         Reported by Anders Kaseorg.
29203
29204         argz: fix shell quoting issue
29205         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29206         Reported by Charles Wilson.
29207
29208 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29209             Erik Faye-Lund <kusmabite@gmail.com>
29210
29211         poll, select: handle ERROR_BROKEN_PIPE.
29212         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29213         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29214         * lib/select.c (win32_compute_revents): Do not mark a pipe
29215         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29216
29217 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29218
29219         fts: allow compilation with C++
29220         * lib/fts_.h: Specify extern "C" linkage with C++.
29221
29222 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29223
29224         Fix gnulib-tool sed script de-commentation for AIX sed.
29225         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29226         sed.
29227
29228 2010-08-17  Eric Blake  <eblake@redhat.com>
29229
29230         test-stddef: test for (some) offsetof bugs
29231         * tests/test-stddef.c: Enhance test to ensure correct type of
29232         offsetof.
29233         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29234         that we are not fixing at this time.
29235
29236 2010-08-15  Bruno Haible  <bruno@clisp.org>
29237
29238         stpncpy: Allow stpncpy to be defined as a macro.
29239         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29240         if it's already correctly declared.
29241         * lib/string.in.h (stpncpy): Undefine before redefining.
29242         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29243
29244 2010-08-14  Bruno Haible  <bruno@clisp.org>
29245
29246         Rename module 'memxfrm' to 'amemxfrm'.
29247         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29248         (amemxfrm): Renamed from memxfrm.
29249         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29250         (amemxfrm): Renamed from memxfrm.
29251         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29252         * NEWS: Mention the change.
29253         * MODULES.html.sh (String handling <string.h>): Update.
29254         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29255         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29256         * lib/unicase/u16-casexfrm.c: Likewise.
29257         * lib/unicase/u32-casexfrm.c: Likewise.
29258         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29259         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29260         * lib/uninorm/u16-normxfrm.c: Likewise.
29261         * lib/uninorm/u32-normxfrm.c: Likewise.
29262         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29263         memxfrm.
29264         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29265         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29266         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29267         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29268         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29269         Suggested by Paul Eggert.
29270
29271 2010-08-14  Bruno Haible  <bruno@clisp.org>
29272
29273         Tests for module 'astrxfrm'.
29274         * modules/astrxfrm-tests: New file.
29275         * tests/test-astrxfrm.c: New file.
29276
29277         New module 'astrxfrm'.
29278         * lib/astrxfrm.h: New file.
29279         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29280         * modules/astrxfrm: New file.
29281
29282 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29283
29284         regex: Tweak doc.
29285         * doc/regex.texi (Overview): Don't mention regex.c.
29286         (GNU Regular Expression Compiling): Likewise.
29287         (Match-end-of-line Operator): Mention 'not_eol'.
29288
29289 2010-08-14  Brian Gough  <bjg@gnu.org>
29290             Bruno Haible  <bruno@clisp.org>
29291
29292         git-merge-changelog: add doc relating to use with bzr and hg.
29293         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29294
29295 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29296
29297         pthread: fix pthread.h creation for srcdir != builddir
29298         * modules/pthread (Makefile.am): Fix the rule to work also in a
29299         non-srcdir build.
29300
29301 2010-08-13  Karl Berry  <karl@gnu.org>
29302
29303         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29304         * doc/posix-*/*: force line break before @url of POSIX
29305         specifications.
29306         Suggested by Werner Lemberg.
29307
29308 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29309
29310         strtod: fix const diagnostic
29311         * lib/strtod.c (strtod): Don't assign const char * to char *,
29312         as this elicits a warning from GCC when warnings are enabled.
29313
29314 2010-08-10  Pádraig Brady <P@draigbrady.com>
29315         and Eric Blake  <eblake@redhat.com>
29316
29317         copy-acl: ignore ENOTSUP on HP-UX
29318         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29319         so that it is available for HP-UX.
29320         * lib/copy-acl.c (qcopy_acl): Use it.
29321         Reported by Patrick M. Callahan.
29322
29323 2010-08-10  Eric Blake  <eblake@redhat.com>
29324
29325         open, chown: relax license
29326         * modules/open (License): Change to LGPLv2+, with consent by all
29327         authors, for use in augeas.
29328         * modules/chown (License): Likewise.
29329         * modules/lchown (Likewise): Likewise.
29330         Requested by Adam Stokes.
29331
29332 2010-08-09  Karl Berry  <karl@gnu.org>
29333
29334         * build-aux/ar-lib: new file, import from Automake.
29335         * config/srclist.txt: autocheck for updates.
29336
29337 2010-08-09  Eric Blake  <eblake@redhat.com>
29338
29339         readlinkat: adjust client modules
29340         * modules/areadlinkat (Depends-on): Use readlinkat, not
29341         symlinkat.
29342         * modules/areadlinkat-with-size (Depends-on): Likewise.
29343
29344         mknod: be more vocal about danger of running tests as root
29345         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29346         root, since that is just asking for problems.
29347         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29348
29349         readlinkat: split into its own module
29350         * modules/symlinkat: Split readlinkat...
29351         * modules/readlinkat: ...into separate module.
29352         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29353         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29354         * lib/symlinkat.c (readlinkat): Move...
29355         * lib/readlinkat.c: ...into new file.
29356         * modules/symlinkat-tests: Split readlinkat test...
29357         * modules/readlinkat-tests: ...into separate module.
29358         * tests/test-symlinkat.c: Split...
29359         * tests/test-readlinkat.c: ...into new file.
29360         * NEWS: Document the split.
29361         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29362         * lib/unistd.in.h (readlinkat): Likewise.
29363         Suggested by Bruno Haible.
29364
29365 2010-08-08  Bruno Haible  <bruno@clisp.org>
29366
29367         memxfrm: Speed up.
29368         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29369         that usually only one call to strxfrm is necessary for each string
29370         part.
29371         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29372
29373 2010-08-07  Karl Berry  <karl@gnu.org>
29374
29375         * doc/posix-headers/limits.texi,
29376         * doc/posix-functions/malloc.texi,
29377         * doc/posix-functions/strsignal.texi: missing @item.
29378         * doc/ld-version-script.texi: spurious leading i.
29379         * doc/regex.texi (Interval Operators): no commas inside @var.
29380
29381 2010-08-01  Bruno Haible  <bruno@clisp.org>
29382
29383         Integrate the regex documentation.
29384         * doc/gnulib.texi: Define 'cn' index.
29385         (Regular expressions): New a chapter that includes regex.texi and
29386         regexprops-generic.texi.
29387         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29388         syntax.
29389
29390         Whitespace cleanup.
29391         * doc/regex.texi: Remove trailing spaces.
29392
29393         Add regex documentation.
29394         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29395         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29396         Written by Kathy A. Hargreaves and Karl Berry.
29397
29398 2010-08-01  Bruno Haible  <bruno@clisp.org>
29399
29400         link: Update documentation.
29401         * doc/posix-functions/link.texi: Update regarding Solaris.
29402
29403 2010-07-31  Bruno Haible  <bruno@clisp.org>
29404
29405         Update modules list.
29406         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29407         (String handling <string.h>): Add memcmp2, memxfrm.
29408         (Container data structures): Add xlist, xsublist, xoset.
29409         (Core language properties): Add alignof, unused-parameter.
29410         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29411         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29412         (Unibyte characters <ctype.h>): New section.
29413         (String handling <string.h>): New section.
29414         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29415         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29416         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29417         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29418         tan, tanh, tanl, y0, y1, yn.
29419         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29420         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29421         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29422         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29423         unlockpt, vdprintf, vdprintf-posix.
29424         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29425         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29426         xconcat-filename.
29427         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29428         getdtablesize, pipe2, pipe2-safer.
29429         (Security): New section.
29430         (Networking functions): Add accept4.
29431         (Signal handling): Add sigpipe.
29432         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29433         mbmemcasecoll.
29434         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29435         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29436         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29437         pipe-filter-ii.
29438         (Misc): Add argp-version-etc, login_tty, parse-duration.
29439
29440 2010-07-31  Bruno Haible  <bruno@clisp.org>
29441
29442         Improve doc in MODULES.html.
29443         * modules/linkat (Description): Add the word "function".
29444         * modules/mkfifo (Description): Likewise.
29445         * modules/mknod (Description): Likewise.
29446         * modules/remove (Description): Likewise.
29447         * modules/renameat (Description): Likewise.
29448         * modules/stat (Description): Likewise.
29449         * modules/symlink (Description): Likewise.
29450         * modules/unlink (Description): Likewise.
29451
29452 2010-07-31  Bruno Haible  <bruno@clisp.org>
29453
29454         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29455         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29456         option --enable/disable-c++ instead of --enable/disable-cxx.
29457         * NEWS: Mention the change.
29458
29459 2010-07-31  Bruno Haible  <bruno@clisp.org>
29460
29461         readlink, areadlink: Relax test a bit.
29462         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29463         alternative to ENOTDIR.
29464         * tests/test-areadlink.h (test_areadlink): Likewise.
29465         Reported by Rainer Tammer.
29466
29467 2010-07-31  Bruno Haible  <bruno@clisp.org>
29468
29469         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29470         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29471         character, perform the search using U_STRCHR.
29472         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29473         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29474         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29475         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29476         Suggested by Paolo Bonzini.
29477
29478 2010-07-31  Bruno Haible  <bruno@clisp.org>
29479
29480         unistr/u*-strstr: Fix dependencies.
29481         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29482         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29483         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29484
29485 2010-07-31  Bruno Haible  <bruno@clisp.org>
29486
29487         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29488         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29489         the beginning of the loop.
29490         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29491         cases in 'switch' statement.
29492
29493         unistr/u8-strchr: Fix several bugs.
29494         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29495         the string. When not found, return NULL, not a pointer near the end.
29496
29497         More tests for unistr/u8-strchr.
29498         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29499         that the function does not read past the first occurrence of the byte
29500         being searched.
29501         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29502         * tests/unistr/test-u16-strchr.c (main): New function.
29503         * tests/unistr/test-u32-strchr.c (main): New function.
29504
29505 2010-07-31  Bruno Haible  <bruno@clisp.org>
29506
29507         posix-modules: Ignore backup files of documentation files.
29508         * posix-modules: grep only through files named *.texi.
29509
29510 2010-07-31  Bruno Haible  <bruno@clisp.org>
29511
29512         symlinkat: Fix documentation.
29513         * doc/posix-functions/readlinkat.texi: Fix module name.
29514
29515 2010-07-31  Bruno Haible  <bruno@clisp.org>
29516
29517         fchownat: Replace also when chown has the trailing slash bug.
29518         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29519         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29520         introduced on 2010-04-10.
29521         Reported by Rainer Tammer.
29522
29523 2010-07-31  Bruno Haible  <bruno@clisp.org>
29524
29525         linkat: Work around AIX 7.1 bug.
29526         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29527         whether linkat handles trailing slash correctly. If not, replace linkat
29528         and define LINKAT_TRAILING_SLASH_BUG.
29529         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29530         check whether (fd1,file1) points to a directory if file1 or file2 ends
29531         in a slash. Code taken from lib/link.c.
29532         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29533         Reported by Rainer Tammer.
29534
29535 2010-07-31  Bruno Haible  <bruno@clisp.org>
29536
29537         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29538         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29539         This disables an xlc optimization that was causing wrong test results.
29540         Reported by Rainer Tammer.
29541
29542 2010-07-31  Bruno Haible  <bruno@clisp.org>
29543
29544         iconv: Work around AIX 6.1..7.1 bug.
29545         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29546         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29547         cross-compiling, guess no on all versions of AIX.
29548         Reported by Rainer Tammer.
29549
29550 2010-07-31  Bruno Haible  <bruno@clisp.org>
29551
29552         readlink: Relax test a bit.
29553         * tests/test-readlink.h (test_readlink): Allow different errno value
29554         when readlink is called with a file name that ends in / and refers to
29555         a file.
29556         Suggested by Eric Blake.
29557         Reported by Rainer Tammer.
29558
29559 2010-07-31  Bruno Haible  <bruno@clisp.org>
29560
29561         copysign: Does not require -lm on glibc systems.
29562         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29563         gl_COMMON_DOUBLE_MATHFUNC.
29564         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29565
29566 2010-07-31  Bruno Haible  <bruno@clisp.org>
29567
29568         duplocale: Work around AIX 7.1 bug.
29569         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29570         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29571         * lib/duplocale.c (rpl_duplocale): Update comment.
29572         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29573         Reported by Rainer Tammer.
29574
29575 2010-07-30  Bruno Haible  <bruno@clisp.org>
29576
29577         dirfd: Avoid link error on AIX 7.1.
29578         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29579         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29580         exist, set REPLACE_DIRFD.
29581         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29582         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29583         * doc/posix-functions/dirfd.texi: Update.
29584         Reported by Rainer Tammer.
29585
29586 2010-07-30  Eric Blake  <eblake@redhat.com>
29587
29588         strtod: next round of AIX fixes
29589         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29590         exponent.
29591         * tests/test-strtod.c (main): Enhance tests.
29592         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29593         Reported by Rainer Tammer.
29594
29595         futimens: fix configure check
29596         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29597         Reported by Bruno Haible.
29598
29599 2010-07-30  Bruno Haible  <bruno@clisp.org>
29600
29601         getline: Update regarding AIX.
29602         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29603         Reported by Rainer Tammer.
29604
29605 2010-07-30  Bruno Haible  <bruno@clisp.org>
29606
29607         wcwidth: Drop replacement on AIX 7.
29608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29609         AIX 7.
29610         Reported by Rainer Tammer.
29611
29612 2010-07-30  Bruno Haible  <bruno@clisp.org>
29613
29614         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29615         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29616         a 'char *'.
29617         Reported by Rainer Tammer.
29618
29619 2010-07-30  Bruno Haible  <bruno@clisp.org>
29620
29621         unlink: Update regarding AIX.
29622         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29623         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29624         Reported by Rainer Tammer.
29625
29626 2010-07-30  Bruno Haible  <bruno@clisp.org>
29627
29628         symlink: Update regarding AIX.
29629         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29630         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29631         Reported by Rainer Tammer.
29632
29633 2010-07-30  Bruno Haible  <bruno@clisp.org>
29634
29635         strndup: Update regarding AIX.
29636         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29637         AIX 7.
29638         Reported by Rainer Tammer.
29639
29640 2010-07-30  Bruno Haible  <bruno@clisp.org>
29641
29642         stat: Update regarding AIX.
29643         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29644         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29645         Reported by Rainer Tammer.
29646
29647 2010-07-30  Bruno Haible  <bruno@clisp.org>
29648
29649         truncl: Fix autoconf test.
29650         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29651         whether truncl works.
29652         Reported by Rainer Tammer.
29653
29654 2010-07-30  Bruno Haible  <bruno@clisp.org>
29655
29656         round: Update regarding AIX.
29657         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29658         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29659         Reported by Rainer Tammer.
29660
29661 2010-07-30  Bruno Haible  <bruno@clisp.org>
29662
29663         rename: Update regarding AIX.
29664         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29665         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29666         Reported by Rainer Tammer.
29667
29668 2010-07-30  Bruno Haible  <bruno@clisp.org>
29669
29670         printf.m4: Update regarding AIX.
29671         * m4/printf.m4: Update comments regarding AIX.
29672         Reported by Rainer Tammer.
29673
29674 2010-07-30  Bruno Haible  <bruno@clisp.org>
29675
29676         iconv: Update regarding AIX.
29677         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29678         AIX 7.
29679         Reported by Rainer Tammer.
29680
29681 2010-07-30  Bruno Haible  <bruno@clisp.org>
29682
29683         getopt: Update regarding AIX.
29684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29685         no on AIX.
29686         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29687         Reported by Rainer Tammer.
29688
29689 2010-07-30  Bruno Haible  <bruno@clisp.org>
29690
29691         ldexpl; Update regarding AIX.
29692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29693         on AIX 7.
29694         Reported by Rainer Tammer.
29695
29696 2010-07-30  Bruno Haible  <bruno@clisp.org>
29697
29698         frexpl: Update regarding AIX.
29699         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29700         on AIX 7.
29701         Reported by Rainer Tammer.
29702
29703 2010-07-30  Bruno Haible  <bruno@clisp.org>
29704
29705         open, fopen: Update regarding AIX.
29706         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29707         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29708         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29709         * doc/posix-functions/fopen.texi: Likewise.
29710         Reported by Rainer Tammer.
29711
29712 2010-07-30  Bruno Haible  <bruno@clisp.org>
29713
29714         chown: Update doc regarding AIX.
29715         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29716         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29717         Reported by Rainer Tammer.
29718
29719 2010-07-30  Eric Blake  <eblake@redhat.com>
29720
29721         strtod: fix bug in replacement function on AIX
29722         * lib/strtod.c (strtod): Special case broken "0x" parse in
29723         underlying strtod.
29724         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29725         * doc/posix-functions/strtod.texi (strtod): Likewise.
29726         Reported by Rainer Tammer.
29727
29728 2010-07-30  Bruno Haible  <bruno@clisp.org>
29729
29730         mbrlen: Fix cross-compilation guess for AIX.
29731         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29732         guess. Leftover from 2008-12-22.
29733
29734 2010-07-30  Bruno Haible  <bruno@clisp.org>
29735
29736         mbrtowc: Fix cross-compilation guess for AIX.
29737         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29738         guess. Leftover from 2008-12-21.
29739
29740 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29741
29742         init.sh: work around trap limitation of some shells
29743         * tests/init.sh (setup_): Move exit trap outside of shell function.
29744
29745 2010-07-29  Eric Blake  <eblake@redhat.com>
29746
29747         strtod: aid debugging
29748         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29749         understanding why strtod is rejected.
29750
29751 2010-07-28  Bruno Haible  <bruno@clisp.org>
29752
29753         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29754         * lib/unistr/u8-chr.c: Include <string.h>.
29755         * tests/unistr/test-u8-chr.c: Likewise.
29756         * tests/unistr/test-u16-chr.c: Likewise.
29757         * tests/unistr/test-u32-chr.c: Likewise.
29758         * tests/unistr/test-u8-strchr.c: Likewise.
29759         * tests/unistr/test-u16-strchr.c: Likewise.
29760         * tests/unistr/test-u32-strchr.c: Likewise.
29761         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29762         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29763         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29764         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29765
29766 2010-07-28  Bruno Haible  <bruno@clisp.org>
29767
29768         Use spaces for indentation, not tabs.
29769         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29770
29771 2010-07-27  Bruno Haible  <bruno@clisp.org>
29772
29773         mbspcasecmp: Fix function specification.
29774         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29775         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29776         Reported by Eric Blake <eblake@redhat.com>.
29777
29778 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29779
29780         timespec: use cast and not conditional, as truncation isn't possible
29781         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29782         instead of a conditional.  Comment about the situation in more detail.
29783         This undoes most of the 2009-10-29 patch.
29784
29785 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29786
29787         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29788         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29789         * lib/unistr/u8-strchr.c: Likewise.
29790         * modules/unistr/u8-chr: Depend on memchr.
29791
29792         unistr/u*-strchr: add tests
29793         * modules/unistr/u8-strchr-tests: New file.
29794         * modules/unistr/u16-strchr-tests: New file.
29795         * modules/unistr/u32-strchr-tests: New file.
29796         * tests/unistr/test-strchr.h: New file.
29797         * tests/unistr/test-u8-strchr.c: New file.
29798         * tests/unistr/test-u16-strchr.c: New file.
29799         * tests/unistr/test-u32-strchr.c: New file.
29800
29801         unistr/u*-chr: test multibyte sequences more
29802         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29803         test vector.
29804         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29805         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29806         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29807
29808         unistr/u*-chr: test multibyte sequences
29809         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29810
29811         unistr/u*-chr: prepare for multibyte tests
29812         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29813         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29814         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29815         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29816         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29817         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29818
29819 2010-07-18  Bruno Haible  <bruno@clisp.org>
29820
29821         unistr/u8-strchr: Optimize non-ASCII argument case.
29822         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29823         because the first byte often matches anyway.
29824         Reported by Pádraig Brady <P@draigbrady.com>.
29825
29826 2010-07-15  Karl Berry  <karl@gnu.org>
29827
29828         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29829
29830 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29831
29832         getcwd: on Solaris, work better if ancestors are inaccessible
29833         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
29834         buffer and size, try again with a large buffer.  This works better
29835         on Solaris, since its getcwd succeeds even if the path to the root
29836         is inaccessible, and this is helpful in common cases such as .zfs
29837         hidden directories.  Problem reported by J Chapman Flack in
29838         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
29839         Use system getcwd if it's declared, not merely if it's partly
29840         working; use the partly-working test only to avoid needless effort
29841         if the system getcwd fails.
29842         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
29843         comment that was already obsolete and is now even more obsolete.
29844         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
29845         now might call strdup.
29846
29847 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
29848
29849         pthread: Add enough so that coreutils/src/sort.c compiles.
29850         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
29851         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
29852         gnulib. Include <sched.h> and <time.h>, as per POSIX.
29853         Include <sys/types.h>, in case it defines pthread_t.
29854         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
29855         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
29856         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
29857         (pthread_rwlockattr_t, pthread_spinlock_t):
29858         New typedefs, if HAVE_PTHREAD_T is not defined.
29859         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
29860         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
29861         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
29862         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
29863         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
29864         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
29865         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
29866         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
29867         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
29868         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
29869         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
29870         New macros.
29871         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
29872         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
29873         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
29874         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
29875         (pthread_spin_unlock): New dummy functions.
29876         (pthread_create): Return EAGAIN; don't set errno.
29877         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
29878         require AC_C_INLINE.
29879         * modules/pthread (Depends-on): Add sched, time.
29880         (pthread.h): Use AM_V_GEN.
29881
29882 2010-07-13  Bruno Haible  <bruno@clisp.org>
29883
29884         striconveh: Don't malloc memory if the result buffer is sufficient.
29885         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
29886         buffer if its size is sufficient.
29887         Reported by Ludovic Courtès <ludo@gnu.org>.
29888
29889 2010-07-13  Bruno Haible  <bruno@clisp.org>
29890
29891         strtod: Add safety check.
29892         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
29893
29894 2010-07-12  Bruno Haible  <bruno@clisp.org>
29895
29896         Unify tests that set gl_cv_func_ldexpl_no_libm.
29897         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
29898         gl_FUNC_LDEXPL.
29899         (gl_FUNC_LDEXPL): Invoke it.
29900         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29901
29902 2010-07-12  Bruno Haible  <bruno@clisp.org>
29903
29904         Unify tests that set gl_cv_func_ldexp_no_libm.
29905         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
29906         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
29907         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
29908         (configure.ac): Simply invoke gl_FUNC_LDEXP.
29909         * modules/strtod (Files): Add m4/ldexp.m4.
29910
29911 2010-07-12  Bruno Haible  <bruno@clisp.org>
29912
29913         Unify tests that set gl_cv_func_frexpl_no_libm.
29914         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
29915         gl_FUNC_FREXPL_NO_LIBM.
29916         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
29917         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29918
29919 2010-07-12  Bruno Haible  <bruno@clisp.org>
29920
29921         Unify tests that set gl_cv_func_frexp_no_libm.
29922         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
29923         gl_FUNC_FREXP_NO_LIBM.
29924         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
29925         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29926
29927 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29928
29929         memcoll: clarify sizes versus lengths, document better, and tweak perf
29930         * lib/memcoll.c (strcoll_loop, memcoll0):
29931         Improve quality of descriptive comments.  Name variables
29932         consistently as to whether they are lengths (which do not include
29933         terminating null) versus sizes (which do).
29934         * lib/xmemcoll.c (xmemcoll0): Likewise.
29935         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
29936         returned when s1size == 0; this is easier to compile and saves
29937         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
29938
29939 2010-07-12  Bruno Haible  <bruno@clisp.org>
29940
29941         Tests for module '_Exit'.
29942         * modules/_Exit-tests: New file.
29943         * tests/test-_Exit.sh: New file.
29944         * tests/test-_Exit.c: New file.
29945
29946         New module '_Exit'.
29947         * lib/stdlib.in.h (__attribute__): New macro.
29948         (_Exit): New declaration.
29949         * lib/_Exit.c: New file.
29950         * m4/_Exit.m4: New file.
29951         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
29952         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
29953         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
29954         * modules/_Exit: New file.
29955         * tests/test-stdlib-c++.cc (_Exit): Check signature.
29956         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
29957
29958 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29959
29960         strtod: make it more-accurate typically, and don't require libm
29961         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
29962         Include limits.h.  Don't include string.h.
29963         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
29964         (locale_isspace): New function, so that no casts are needed to
29965         check whether *s is a space.
29966         (ldexp): Provide an unused dummy if not available.
29967         (scale_radix_exp, parse_number, underlying_strtod): New functions.
29968         (strtod): Use them.  This implementation prefers to use the
29969         underlying strtod if available, falling back on our own code
29970         only to fix known bugs.  This is more likely to produce an
29971         accurate result.  Also, it avoids the use of libm functions.
29972         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
29973         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
29974         was absent, but it caused a test failure with coreutils.
29975         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
29976         with libm.
29977         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29978         * modules/strtod-tests (Makefile.am): Likewise.
29979
29980 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29981             Bruno Haible  <bruno@clisp.org>
29982
29983         unistr/u8-strchr: Optimize ASCII argument case.
29984         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29985
29986 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29987
29988         (x)memcoll: minor tweaks
29989         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29990         is after the type that it qualifies.
29991         (memcoll0): Likewise.
29992         * lib/memcoll.h (memcoll0): Likewise.
29993         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29994         * lib/xmemcoll.h (xmemcoll0): Likewise.
29995         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29996         differs from memcoll in that the NUL byte is part of the argument.
29997         Omit the abort-checks, as performance is a real issue here.  Plus,
29998         the checks were wrong anyway (an off-by-one error).  Omit local
29999         variable 'diff', as it's a bit clearer that way.
30000         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30001         no longer needed.
30002
30003 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30004
30005         (x)memcoll: speedup when input is known to be NUL delimited
30006         * lib/memcoll.c: Include stdlib.
30007         (memcoll0): New function.
30008         (strcoll_loop): New function, refactored for use in both memcoll
30009         and memcoll0.
30010         * lib/memcoll.h (memcoll0): Add prototype.
30011         * lib/xmemcoll.c (xmemcoll0): New function.
30012         (collate_error): New function, refactored for use in both xmemcoll
30013         and xmemcoll0.
30014         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30015         * m4/memcoll.m4: add inline invocation.
30016
30017 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30018
30019         * build-aux/bootstrap: Remove any local translations
30020         from the translation project synchronization directory,
30021         so that local only translations are not distributed.
30022
30023 2010-07-04  Bruno Haible  <bruno@clisp.org>
30024
30025         fsusage: Clarify which code applies to which platforms.
30026         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30027         platform.
30028         * lib/fsusage.c (get_fs_usage): Likewise.
30029
30030 2010-07-04  Bruno Haible  <bruno@clisp.org>
30031
30032         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30033         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30034         Reported by Martin Lambers <marlam@marlam.de>.
30035
30036 2010-07-04  Jim Meyering  <meyering@redhat.com>
30037
30038         hash: once again explicitly disallow insertion of NULL
30039         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30040         inserting a NULL pointer cannot work with these functions.
30041         Add a comment with details.
30042         This reverts part of the 2010-07-01 commit, 5bef1a35
30043         "hash: extend module to deal with non-pointer keys".
30044
30045 2010-07-01  Bruno Haible  <bruno@clisp.org>
30046
30047         stdbool: Update doc.
30048         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30049         Info from Christian Weisgerber <naddy@mips.inka.de>.
30050
30051 2010-07-01  Jim Meyering  <meyering@redhat.com>
30052
30053         hash: extend module to deal with non-pointer keys
30054         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30055         but that allows insertion of non-pointer entries.
30056         Do not disallow an ENTRY value of NULL.
30057         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30058         * lib/hash.h (hash_insert0): Declare.
30059
30060 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30061
30062         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30063         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30064         not present (i.e. with autoconf 2.59 and when using gettextize, not
30065         gnulib), require AC_GNU_SOURCE instead.
30066
30067 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30068
30069         idpriv-drop: Fix tests.
30070         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30071         not to the test-idpriv-droptemp program.
30072
30073 2010-06-29  Bruno Haible  <bruno@clisp.org>
30074
30075         string: Fix syntax error with g++ 2.96.
30076         * lib/string.in.h (__pure__): Remove definition.
30077         (_GL_ATTRIBUTE_PURE): New macro.
30078         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30079         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30080         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30081
30082 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30083
30084         unitypes: Fix bug introduced on 2010-05-18.
30085         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30086
30087 2010-06-22  Eric Blake  <eblake@redhat.com>
30088
30089         memmem: slight optimization
30090         * lib/str-two-way.h (critical_factorization): Update comments.
30091         Reduce work during factorization phase.
30092         Reported by Carlos Bueno <carlos@bueno.org>.
30093
30094 2010-06-21  Bruno Haible  <bruno@clisp.org>
30095
30096         Fix HAVE_CALLOC_POSIX misnomer.
30097         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30098         !HAVE_CALLOC_POSIX.
30099         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30100         HAVE_CALLOC_POSIX.
30101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30102         instead of HAVE_CALLOC_POSIX.
30103         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30104         HAVE_CALLOC_POSIX.
30105
30106         Use modern idiom for calloc() replacement.
30107         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30108         AC_FUNC_CALLOC.
30109         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30110         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30111         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30112         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30113         (gl_REPLACE_CALLOC): New macro.
30114
30115 2010-06-21  Bruno Haible  <bruno@clisp.org>
30116
30117         Fix HAVE_REALLOC_POSIX misnomer.
30118         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30119         !HAVE_REALLOC_POSIX.
30120         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30121         HAVE_REALLOC_POSIX.
30122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30123         instead of HAVE_REALLOC_POSIX.
30124         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30125         HAVE_REALLOC_POSIX.
30126
30127         Use modern idiom for realloc() replacement.
30128         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30129         AC_FUNC_REALLOC.
30130         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30131         Autoconf's AC_FUNC_REALLOC.
30132         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30133         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30134         (gl_REPLACE_REALLOC): New macro.
30135         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30136
30137 2010-06-21  Bruno Haible  <bruno@clisp.org>
30138
30139         Fix HAVE_MALLOC_POSIX misnomer.
30140         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30141         !HAVE_MALLOC_POSIX.
30142         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30143         HAVE_MALLOC_POSIX.
30144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30145         instead of HAVE_MALLOC_POSIX.
30146         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30147         HAVE_MALLOC_POSIX.
30148
30149         Use modern idiom for malloc() replacement.
30150         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30151         AC_FUNC_MALLOC.
30152         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30153         Autoconf's AC_FUNC_MALLOC.
30154         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30155         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30156         (gl_REPLACE_MALLOC): New macro.
30157         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30158
30159 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30160
30161         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30162         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30163         This macro takes 3 arguments, not 4.
30164
30165 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30166
30167         ipv6: fix detection under mingw
30168         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30169         in6_addr.
30170
30171 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30172
30173         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30174         that strtod() works when cross-compiling to a glibc version known
30175         to work.
30176
30177 2010-06-15  Bruno Haible  <bruno@clisp.org>
30178
30179         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30180
30181 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30182
30183         select: Correct timeout.
30184         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30185
30186 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30187
30188         git-version-gen: init shell var to avoid env var influence
30189         * build-aux/git-version-gen (v): Init shell var to empty.
30190
30191 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30192
30193         priv-set: Don't assume that priv.h exists merely because getppriv does.
30194         See Jan Andersen's bug report about AIX 5L in
30195         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30196         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30197         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30198         * lib/priv-set.h: Likewise.
30199         * tests/test-priv-set.c: Likewise.
30200
30201 2010-06-13  Bruno Haible  <bruno@clisp.org>
30202
30203         relocatable: Make it easier to test whether to install wrappers.
30204         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30205         RELOCATABLE_VIA_WRAPPER.
30206
30207 2010-06-13  Bruno Haible  <bruno@clisp.org>
30208
30209         gnulib-tool: Display specified modules and dependencies differently.
30210         * gnulib-tool (func_show_module_list): New function.
30211         (func_import, func_create_testdir): Invoke it.
30212         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30213
30214 2010-06-13  Bruno Haible  <bruno@clisp.org>
30215
30216         gnulib-tool: Align code of func_import and func_create_testdir.
30217         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30218         specified_modules.
30219
30220 2010-06-12  Jim Meyering  <meyering@redhat.com>
30221
30222         test-inttostr: avoid spurious failure on Solaris 9
30223         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30224         to accept "%ju".  Reported by Bruno Haible.
30225
30226 2010-06-11  Jim Meyering  <meyering@redhat.com>
30227
30228         test-sys_socket: mark variables as used more readably
30229         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30230         as "used" explicitly via (void) statement casts.  This is more
30231         readable than using them in an artificial return expression.
30232         Suggestion from Bruno Haible.
30233
30234 2010-06-11  Bruno Haible  <bruno@clisp.org>
30235
30236         Avoid some more warnings from "gcc -Wwrite-strings".
30237         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30238         to 'const char *'.
30239         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30240         * tests/test-c-strcasestr.c (main): Likewise.
30241         * tests/test-mbscasestr1.c (main): Likewise.
30242         * tests/test-mbscasestr2.c (main): Likewise.
30243         * tests/test-memmem.c (main): Likewise.
30244         * tests/test-strstr.c (main): Likewise.
30245         * tests/test-strcasestr.c (main): Likewise.
30246
30247 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30248
30249         init.sh: change framework_failure_ to fail with status 99, not 1
30250         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30251         automake's parallel-tests rule that this is an unexpected failure,
30252         even if the test is listed in XFAIL_TESTS.
30253
30254 2010-06-11  Jim Meyering  <meyering@redhat.com>
30255
30256         test-inttostr: avoid warnings about 4-6KB literal strings
30257         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30258         Include "macros.h", for its definition of ASSERT.
30259         (CK): s/assert/ASSERT/
30260         * modules/inttostr-tests (Files): Add macros.h.
30261
30262         init.sh: don't use $ME_ or skip_ before they are defined
30263         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30264         their first uses.  Also hoist their companions: warn_, fail_,
30265         framework_failure_, $stderr_fileno.  Prompted by a patch from
30266         Stefano Lattarini.
30267
30268         test-sys_socket: avoid set-but-not-used warnings from gcc
30269         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30270         avoid warning about set-but-not-used variables.
30271
30272         test-xvasprintf: avoid 'const' discard warnings
30273         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30274         "const" when assigning from literal strings.
30275         (test_xasprintf): Add "void" in function argument list to placate
30276         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30277
30278         tests: avoid compilation warnings in argmatch and exclude tests...
30279         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30280         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30281         Since it always exits, declare with the "noreturn" attribute.
30282         * tests/test-argmatch.c: Likewise.
30283
30284         tests: avoid 'const' discard warnings in mbsstr tests
30285         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30286         * tests/test-mbsstr2.c (main): Likewise.
30287
30288         test-verify: avoid warning from gcc's -Wmissing-declarations
30289         * tests/test-verify.c (function): Declare to be static.
30290
30291         test-inttostr.c: include <string.h> for use of strcmp
30292         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30293
30294         test-linkat: avoid failed assertion on "other" architectures
30295         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30296         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30297         sparc: https://bugs.launchpad.net/bugs/591968
30298
30299 2010-06-11  Jim Meyering  <meyering@redhat.com>
30300
30301         printf.m4: avoid autoconf's "Expanded Before Required" warning
30302         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30303         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30304         autoconf warning.
30305
30306 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30307
30308         Replacement header templates are now named with ".in", not "_".
30309         * doc/gnulib-intro.texi: Correct.
30310
30311 2010-06-10  Jim Meyering  <meyering@redhat.com>
30312
30313         inttostr-tests: depend on snprintf, not snprintf-posix
30314         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30315         snprintf-posix, to avoid this aclocal failure:
30316           missing file gnulib-tests/vasnprintf.c
30317           configure.ac:45: error: expected source file, required through \
30318           AC_LIBSOURCES, not found
30319
30320 2010-06-10  Jim Meyering  <meyering@redhat.com>
30321
30322         inttostr: add a new function, inttostr, and tests
30323         The namesake function was not available.  The existence of the
30324         template file, inttostr.c makes its addition nontrivial.
30325         * lib/anytostr.c: Rename from inttostr.c.
30326         (anytostr): Rename from inttostr.
30327         * lib/inttostr.c: New file.
30328         * modules/inttostr (Files): Add anytostr.c.
30329         (Makefile.am): Set lib_SOURCES instead of ...
30330         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30331         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30332         * lib/offtostr.c: Likewise.
30333         * lib/uinttostr.c: Likewise.
30334         * lib/umaxtostr.c: Likewise.
30335         * modules/inttostr-tests: New file.
30336         * tests/test-inttostr.c: New file.  Test these functions.
30337
30338 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30339             Bruno Haible  <bruno@clisp.org>
30340
30341         Add "Extending Gnulib" chapter to manual.
30342         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30343         chapter.
30344         (Extending Gnulib): New chapter.
30345         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30346         chapter.
30347
30348 2010-06-09  Bruno Haible  <bruno@clisp.org>
30349
30350         Avoid relocwrapper link errors due to gnulib replacement functions.
30351         * lib/areadlink.c: Use the system's malloc, realloc functions.
30352         (areadlink): Set errno to ENOMEM explicitly.
30353         * modules/areadlink (Depends-on): Remove malloc-posix.
30354         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30355
30356 2010-06-09  Bruno Haible  <bruno@clisp.org>
30357
30358         Avoid relocwrapper link errors due to gnulib replacement functions.
30359         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30360         * lib/malloca.c: Likewise.
30361         * lib/relocatable.c: Likewise.
30362         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30363         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30364         * lib/setenv.c: Use the system's malloc, realloc functions.
30365         * lib/strerror.c: Use the system's sprintf function.
30366         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30367
30368 2010-06-04  Bruno Haible  <bruno@clisp.org>
30369
30370         Prefer documented low-level autoconf macro names.
30371         * m4/lib-link.m4: Use m4_translit instead of translit.
30372         * m4/environ.m4: Likewise.
30373         * m4/mathfunc.m4: Likewise.
30374         * m4/onceonly.m4: Likewise.
30375         * m4/stdint.m4: Likewise.
30376         Suggested by Eric Blake.
30377
30378 2010-06-04  Martin Lambers  <marlam@marlam.de>
30379             Bruno Haible  <bruno@clisp.org>
30380
30381         havelib: Allow library names with '+' characters.
30382         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30383         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30384
30385 2010-06-09  Bruno Haible  <bruno@clisp.org>
30386
30387         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30388         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30389         realloc failed.
30390
30391 2010-06-08  Peter Simons  <simons@cryp.to>
30392
30393         maint.mk: make the news-check rule more configurable
30394         * top/maint.mk (news-check-lines-spec): New variable.
30395         (news-check): Use "sed -n 1,10p" in place of "head".
30396
30397 2010-06-07  Jim Meyering  <meyering@redhat.com>
30398
30399         do-release-commit-and-tag: fix typo in --help
30400         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30401
30402         regex: avoid new dead-code warning with gcc-4.6.0
30403         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30404         if-block containing a while-loop.  It's been unused for at least
30405         5 years.
30406
30407 2010-06-05  Bruno Haible  <bruno@clisp.org>
30408
30409         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30410         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30411
30412 2010-06-04  Bruno Haible  <bruno@clisp.org>
30413
30414         Update to GNU gettext 0.18.1.
30415         * modules/gettext (configure.ac): Require gettext infrastructure from
30416         version 0.18.1.
30417
30418 2010-06-03  Bruno Haible  <bruno@clisp.org>
30419
30420         Don't use AC_LIBOBJ with file names in subdirectories.
30421         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30422         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30423         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30424         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30425         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30426         gl_LIBUNISTRING_LIBSOURCE.
30427         (Makefile.am): Augment lib_SOURCES here, conditionally.
30428         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30429
30430 2010-06-03  Bruno Haible  <bruno@clisp.org>
30431
30432         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30433         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30434         expansion does not end with a newline.
30435         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30436         unnecessary newline.
30437
30438 2010-06-03  Bruno Haible  <bruno@clisp.org>
30439
30440         Reduce dependencies.
30441         * tests/test-quotearg.h: New file, extracted from
30442         tests/test-quotearg.c.
30443         * tests/test-quotearg-simple.c: New file, extracted from
30444         tests/test-quotearg.c.
30445         * tests/test-quotearg.c: Don't include <ctype.h>.
30446         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30447         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30448         use_quote_double_quotes, use_quotearg_colon): Moved to
30449         tests/test-quotearg.h.
30450         (results_g, flag_results, custom_quotes, custom_results): Moved
30451         to tests/test-quotearg-simple.c.
30452         (main): Moved the part that does not depend on gettext to
30453         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30454         performed.
30455         * modules/quotearg-simple: New file.
30456         * modules/quotearg-simple-tests: New file.
30457         * modules/quotearg (Depends-on): Add quotearg-simple.
30458         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30459         (Files): Add tests/test-quotearg.h.
30460         Reported by Paolo Bonzini.
30461
30462 2010-06-03  Bruno Haible  <bruno@clisp.org>
30463
30464         Reduce dependencies.
30465         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30466
30467 2010-06-03  Bruno Haible  <bruno@clisp.org>
30468
30469         time: Undefine more broken macros.
30470         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30471         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30472         Reported by Eric Blake.
30473
30474 2010-06-03  Bruno Haible  <bruno@clisp.org>
30475
30476         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30477         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30478         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30479         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30480         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30481         Reported by Ludovic Courtès <ludo@gnu.org>.
30482
30483 2010-06-02  Eric Blake  <eblake@redhat.com>
30484
30485         time: work with mingw + pthreads-win32 library
30486         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30487         if timespec is defined only in pthread.h.
30488         * modules/time (Makefile.am): Substitute it.
30489         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30490         <pthread.h>, when needed.
30491         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30492         from the library.
30493
30494 2010-05-31  Bruno Haible  <bruno@clisp.org>
30495
30496         Avoid expanding two macros in the wrong order.
30497         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30498         gl_LIBUNISTRING if it is defined.
30499         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30500         autoconf >= 2.64.
30501         Reported by Ludovic Courtès <ludo@gnu.org>.
30502
30503 2010-05-27  Jim Meyering  <meyering@redhat.com>
30504
30505         maint.mk: also prohibit "#undef" of always-defined symbols
30506         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30507         Allow more than one space before the symbol name.
30508         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30509         the regexp uses alternation.
30510
30511 2010-05-26  Eric Blake  <eblake@redhat.com>
30512
30513         maint.mk: avoid echo -e
30514         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30515         Convert all uses of echo -* to printf.
30516         Reported by Matthias Bolte.
30517
30518 2010-05-25  Bruno Haible  <bruno@clisp.org>
30519
30520         Update to GNU gettext 0.18, part 2.
30521         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30522         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30523
30524 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30525
30526         Add missing include in test-pwrite.c.
30527         * tests/test-pwrite.c: Include string.h, for strcmp.
30528
30529 2010-05-24  Bruno Haible  <bruno@clisp.org>
30530
30531         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30532
30533 2010-05-24  Bruno Haible  <bruno@clisp.org>
30534
30535         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30536         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30537         iconveh_error argument.
30538         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30539         U_STRCONV_TO_LOCALE.
30540         * lib/unistr/u16-strcoll.c: Likewise.
30541         * lib/unistr/u32-strcoll.c: Likewise.
30542         * modules/unistr/u8-strcoll (Depends-on): Add
30543         uniconv/u8-strconv-to-enc, localcharset. Remove
30544         uniconv/u8-strconv-to-locale.
30545         (configure.ac): Bump version number.
30546         * modules/unistr/u16-strcoll (Depends-on): Add
30547         uniconv/u16-strconv-to-enc, localcharset. Remove
30548         uniconv/u16-strconv-to-locale.
30549         (configure.ac): Bump version number.
30550         * modules/unistr/u32-strcoll (Depends-on): Add
30551         uniconv/u32-strconv-to-enc, localcharset. Remove
30552         uniconv/u32-strconv-to-locale.
30553         (configure.ac): Bump version number.
30554
30555 2010-05-24  Bruno Haible  <bruno@clisp.org>
30556
30557         Avoid a test failure on NetBSD 5.0.
30558         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30559         an iconv() bug.
30560
30561 2010-05-24  Bruno Haible  <bruno@clisp.org>
30562
30563         Adjust #include directive style.
30564         * modules/regex (Includes): Recommend to write <regex.h>.
30565
30566 2010-05-24  Bruno Haible  <bruno@clisp.org>
30567
30568         regex: Don't require alloca.
30569         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30570         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30571         only inside if (0).
30572
30573 2010-05-23  Jim Meyering  <meyering@redhat.com>
30574
30575         test-renameat.c: include <sys/stat.h>
30576         * tests/test-renameat.c: Include <sys/stat.h>; required for
30577         definition of S_IS* macros.
30578
30579 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30580
30581         Update maintainer documentation for 'relocatable-prog' module.
30582         * doc/relocatable-maint.texi: Update.
30583         Comments by Bruno Haible.
30584
30585 2010-05-23  Bruno Haible  <bruno@clisp.org>
30586
30587         git-merge-changelog: Enable --split-merged-entry by default.
30588         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30589         (usage): Don't mention this option any more.
30590         Reported by Ralf Wildenhues.
30591
30592 2010-05-23  Jim Meyering  <meyering@redhat.com>
30593
30594         test-pwrite: do not leave behind a test file named "out"
30595         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30596         The trivial-looking use of init.sh is really necessary.
30597         It ensures that the temporary file, "out", is created in
30598         a temporary directory, and removed upon termination.
30599         * tests/test-pwrite.sh: Re-add file.
30600         * modules/pwrite-tests: Reference it.
30601
30602 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30603
30604         Fix output redirection buglet in init.sh.
30605         * tests/init.sh: Fix redirection of stderr.
30606
30607 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30608
30609         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30610
30611 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30612
30613         * modules/valgrind-tests: New file.
30614         * m4/valgrind-tests.m4: New file.
30615         * doc/valgrind-tests.texi: New file.
30616         * doc/gnulib.texi (Running self-tests under valgrind): New
30617         section.
30618
30619 2010-05-19  Bruno Haible  <bruno@clisp.org>
30620
30621         Clean up dead code in recent commit.
30622         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30623         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30624         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30625         Suggested by Paolo Bonzini.
30626
30627 2010-05-19  Bruno Haible  <bruno@clisp.org>
30628
30629         Avoid valgrind error reports from libunistring.
30630         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30631         * modules/libunistring (Files): Add it.
30632         * modules/libunistring-optional (Files): Likewise.
30633
30634 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30635             Bruno Haible  <bruno@clisp.org>
30636
30637         New module 'libunistring-optional'.
30638         * modules/libunistring-optional: New file.
30639         * m4/libunistring-base.m4: New file.
30640         * m4/libunistring-optional.m4: New file.
30641         * lib/unicase.in.h: Renamed from lib/unicase.h.
30642         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30643         * lib/unictype.in.h: Renamed from lib/unictype.h.
30644         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30645         * lib/uniname.in.h: Renamed from lib/uniname.h.
30646         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30647         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30648         * lib/unistr.in.h: Renamed from lib/unistr.h.
30649         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30650         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30651         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30652         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30653         gl_LIBUNISTRING. If the library was found, determine the installed
30654         version and set LIBUNISTRING_VERSION.
30655         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30656         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30657         handle a configuration option --with-included-libunistring.
30658         * modules/libunistring (Files): Add m4/absolute-header.m4.
30659         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30660         Add m4/libunistring-base.m4.
30661         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30662         (Makefile.am): Build unicase.h from unicase.in.h.
30663         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30664         Add m4/libunistring-base.m4.
30665         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30666         (Makefile.am): Build uniconv.h from uniconv.in.h.
30667         * modules/unictype/base (Files): Use unictype.in.h instead of
30668         unictype.h. Add m4/libunistring-base.m4.
30669         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30670         (Makefile.am): Build unictype.h from unictype.in.h.
30671         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30672         Add m4/libunistring-base.m4.
30673         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30674         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30675         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30676         Add m4/libunistring-base.m4.
30677         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30678         (Makefile.am): Build uniname.h from uniname.in.h.
30679         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30680         Add m4/libunistring-base.m4.
30681         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30682         (Makefile.am): Build uninorm.h from uninorm.in.h.
30683         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30684         unistdio.h. Add m4/libunistring-base.m4.
30685         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30686         (Makefile.am): Build unistdio.h from unistdio.in.h.
30687         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30688         Add m4/libunistring-base.m4.
30689         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30690         (Makefile.am): Build unistr.h from unistr.in.h.
30691         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30692         Add m4/libunistring-base.m4.
30693         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30694         (Makefile.am): Build unitypes.h from unitypes.in.h.
30695         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30696         Add m4/libunistring-base.m4.
30697         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30698         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30699         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30700         uniwidth.h. Add m4/libunistring-base.m4.
30701         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30702         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30703         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30704         instead of augmenting lib_SOURCES.
30705         * modules/unicase/empty-suffix-context: Likewise.
30706         * modules/unicase/locale-language: Likewise.
30707         * modules/unicase/tolower: Likewise.
30708         * modules/unicase/totitle: Likewise.
30709         * modules/unicase/toupper: Likewise.
30710         * modules/unicase/u8-casecmp: Likewise.
30711         * modules/unicase/u8-casecoll: Likewise.
30712         * modules/unicase/u8-casefold: Likewise.
30713         * modules/unicase/u8-casexfrm: Likewise.
30714         * modules/unicase/u8-ct-casefold: Likewise.
30715         * modules/unicase/u8-ct-tolower: Likewise.
30716         * modules/unicase/u8-ct-totitle: Likewise.
30717         * modules/unicase/u8-ct-toupper: Likewise.
30718         * modules/unicase/u8-is-cased: Likewise.
30719         * modules/unicase/u8-is-casefolded: Likewise.
30720         * modules/unicase/u8-is-lowercase: Likewise.
30721         * modules/unicase/u8-is-titlecase: Likewise.
30722         * modules/unicase/u8-is-uppercase: Likewise.
30723         * modules/unicase/u8-prefix-context: Likewise.
30724         * modules/unicase/u8-suffix-context: Likewise.
30725         * modules/unicase/u8-tolower: Likewise.
30726         * modules/unicase/u8-totitle: Likewise.
30727         * modules/unicase/u8-toupper: Likewise.
30728         * modules/unicase/u16-casecmp: Likewise.
30729         * modules/unicase/u16-casecoll: Likewise.
30730         * modules/unicase/u16-casefold: Likewise.
30731         * modules/unicase/u16-casexfrm: Likewise.
30732         * modules/unicase/u16-ct-casefold: Likewise.
30733         * modules/unicase/u16-ct-tolower: Likewise.
30734         * modules/unicase/u16-ct-totitle: Likewise.
30735         * modules/unicase/u16-ct-toupper: Likewise.
30736         * modules/unicase/u16-is-cased: Likewise.
30737         * modules/unicase/u16-is-casefolded: Likewise.
30738         * modules/unicase/u16-is-lowercase: Likewise.
30739         * modules/unicase/u16-is-titlecase: Likewise.
30740         * modules/unicase/u16-is-uppercase: Likewise.
30741         * modules/unicase/u16-prefix-context: Likewise.
30742         * modules/unicase/u16-suffix-context: Likewise.
30743         * modules/unicase/u16-tolower: Likewise.
30744         * modules/unicase/u16-totitle: Likewise.
30745         * modules/unicase/u16-toupper: Likewise.
30746         * modules/unicase/u32-casecmp: Likewise.
30747         * modules/unicase/u32-casecoll: Likewise.
30748         * modules/unicase/u32-casefold: Likewise.
30749         * modules/unicase/u32-casexfrm: Likewise.
30750         * modules/unicase/u32-ct-casefold: Likewise.
30751         * modules/unicase/u32-ct-tolower: Likewise.
30752         * modules/unicase/u32-ct-totitle: Likewise.
30753         * modules/unicase/u32-ct-toupper: Likewise.
30754         * modules/unicase/u32-is-cased: Likewise.
30755         * modules/unicase/u32-is-casefolded: Likewise.
30756         * modules/unicase/u32-is-lowercase: Likewise.
30757         * modules/unicase/u32-is-titlecase: Likewise.
30758         * modules/unicase/u32-is-uppercase: Likewise.
30759         * modules/unicase/u32-prefix-context: Likewise.
30760         * modules/unicase/u32-suffix-context: Likewise.
30761         * modules/unicase/u32-tolower: Likewise.
30762         * modules/unicase/u32-totitle: Likewise.
30763         * modules/unicase/u32-toupper: Likewise.
30764         * modules/unicase/ulc-casecmp: Likewise.
30765         * modules/unicase/ulc-casecoll: Likewise.
30766         * modules/unicase/ulc-casexfrm: Likewise.
30767         * modules/uniconv/u8-conv-from-enc: Likewise.
30768         * modules/uniconv/u8-conv-to-enc: Likewise.
30769         * modules/uniconv/u8-strconv-from-enc: Likewise.
30770         * modules/uniconv/u8-strconv-from-locale: Likewise.
30771         * modules/uniconv/u8-strconv-to-enc: Likewise.
30772         * modules/uniconv/u8-strconv-to-locale: Likewise.
30773         * modules/uniconv/u16-conv-from-enc: Likewise.
30774         * modules/uniconv/u16-conv-to-enc: Likewise.
30775         * modules/uniconv/u16-strconv-from-enc: Likewise.
30776         * modules/uniconv/u16-strconv-from-locale: Likewise.
30777         * modules/uniconv/u16-strconv-to-enc: Likewise.
30778         * modules/uniconv/u16-strconv-to-locale: Likewise.
30779         * modules/uniconv/u32-conv-from-enc: Likewise.
30780         * modules/uniconv/u32-conv-to-enc: Likewise.
30781         * modules/uniconv/u32-strconv-from-enc: Likewise.
30782         * modules/uniconv/u32-strconv-from-locale: Likewise.
30783         * modules/uniconv/u32-strconv-to-enc: Likewise.
30784         * modules/uniconv/u32-strconv-to-locale: Likewise.
30785         * modules/unictype/bidicategory-byname: Likewise.
30786         * modules/unictype/bidicategory-name: Likewise.
30787         * modules/unictype/bidicategory-of: Likewise.
30788         * modules/unictype/bidicategory-test: Likewise.
30789         * modules/unictype/block-list: Likewise.
30790         * modules/unictype/block-test: Likewise.
30791         * modules/unictype/category-C: Likewise.
30792         * modules/unictype/category-Cc: Likewise.
30793         * modules/unictype/category-Cf: Likewise.
30794         * modules/unictype/category-Cn: Likewise.
30795         * modules/unictype/category-Co: Likewise.
30796         * modules/unictype/category-Cs: Likewise.
30797         * modules/unictype/category-L: Likewise.
30798         * modules/unictype/category-Ll: Likewise.
30799         * modules/unictype/category-Lm: Likewise.
30800         * modules/unictype/category-Lo: Likewise.
30801         * modules/unictype/category-Lt: Likewise.
30802         * modules/unictype/category-Lu: Likewise.
30803         * modules/unictype/category-M: Likewise.
30804         * modules/unictype/category-Mc: Likewise.
30805         * modules/unictype/category-Me: Likewise.
30806         * modules/unictype/category-Mn: Likewise.
30807         * modules/unictype/category-N: Likewise.
30808         * modules/unictype/category-Nd: Likewise.
30809         * modules/unictype/category-Nl: Likewise.
30810         * modules/unictype/category-No: Likewise.
30811         * modules/unictype/category-P: Likewise.
30812         * modules/unictype/category-Pc: Likewise.
30813         * modules/unictype/category-Pd: Likewise.
30814         * modules/unictype/category-Pe: Likewise.
30815         * modules/unictype/category-Pf: Likewise.
30816         * modules/unictype/category-Pi: Likewise.
30817         * modules/unictype/category-Po: Likewise.
30818         * modules/unictype/category-Ps: Likewise.
30819         * modules/unictype/category-S: Likewise.
30820         * modules/unictype/category-Sc: Likewise.
30821         * modules/unictype/category-Sk: Likewise.
30822         * modules/unictype/category-Sm: Likewise.
30823         * modules/unictype/category-So: Likewise.
30824         * modules/unictype/category-Z: Likewise.
30825         * modules/unictype/category-Zl: Likewise.
30826         * modules/unictype/category-Zp: Likewise.
30827         * modules/unictype/category-Zs: Likewise.
30828         * modules/unictype/category-and: Likewise.
30829         * modules/unictype/category-and-not: Likewise.
30830         * modules/unictype/category-byname: Likewise.
30831         * modules/unictype/category-name: Likewise.
30832         * modules/unictype/category-none: Likewise.
30833         * modules/unictype/category-of: Likewise.
30834         * modules/unictype/category-or: Likewise.
30835         * modules/unictype/category-test: Likewise.
30836         * modules/unictype/combining-class: Likewise.
30837         * modules/unictype/ctype-alnum: Likewise.
30838         * modules/unictype/ctype-alpha: Likewise.
30839         * modules/unictype/ctype-blank: Likewise.
30840         * modules/unictype/ctype-cntrl: Likewise.
30841         * modules/unictype/ctype-digit: Likewise.
30842         * modules/unictype/ctype-graph: Likewise.
30843         * modules/unictype/ctype-lower: Likewise.
30844         * modules/unictype/ctype-print: Likewise.
30845         * modules/unictype/ctype-punct: Likewise.
30846         * modules/unictype/ctype-space: Likewise.
30847         * modules/unictype/ctype-upper: Likewise.
30848         * modules/unictype/ctype-xdigit: Likewise.
30849         * modules/unictype/decimal-digit: Likewise.
30850         * modules/unictype/digit: Likewise.
30851         * modules/unictype/mirror: Likewise.
30852         * modules/unictype/numeric: Likewise.
30853         * modules/unictype/property-alphabetic: Likewise.
30854         * modules/unictype/property-ascii-hex-digit: Likewise.
30855         * modules/unictype/property-bidi-arabic-digit: Likewise.
30856         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
30857         * modules/unictype/property-bidi-block-separator: Likewise.
30858         * modules/unictype/property-bidi-boundary-neutral: Likewise.
30859         * modules/unictype/property-bidi-common-separator: Likewise.
30860         * modules/unictype/property-bidi-control: Likewise.
30861         * modules/unictype/property-bidi-embedding-or-override: Likewise.
30862         * modules/unictype/property-bidi-eur-num-separator: Likewise.
30863         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
30864         * modules/unictype/property-bidi-european-digit: Likewise.
30865         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
30866         * modules/unictype/property-bidi-left-to-right: Likewise.
30867         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
30868         * modules/unictype/property-bidi-other-neutral: Likewise.
30869         * modules/unictype/property-bidi-pdf: Likewise.
30870         * modules/unictype/property-bidi-segment-separator: Likewise.
30871         * modules/unictype/property-bidi-whitespace: Likewise.
30872         * modules/unictype/property-byname: Likewise.
30873         * modules/unictype/property-combining: Likewise.
30874         * modules/unictype/property-composite: Likewise.
30875         * modules/unictype/property-currency-symbol: Likewise.
30876         * modules/unictype/property-dash: Likewise.
30877         * modules/unictype/property-decimal-digit: Likewise.
30878         * modules/unictype/property-default-ignorable-code-point: Likewise.
30879         * modules/unictype/property-deprecated: Likewise.
30880         * modules/unictype/property-diacritic: Likewise.
30881         * modules/unictype/property-extender: Likewise.
30882         * modules/unictype/property-format-control: Likewise.
30883         * modules/unictype/property-grapheme-base: Likewise.
30884         * modules/unictype/property-grapheme-extend: Likewise.
30885         * modules/unictype/property-grapheme-link: Likewise.
30886         * modules/unictype/property-hex-digit: Likewise.
30887         * modules/unictype/property-hyphen: Likewise.
30888         * modules/unictype/property-id-continue: Likewise.
30889         * modules/unictype/property-id-start: Likewise.
30890         * modules/unictype/property-ideographic: Likewise.
30891         * modules/unictype/property-ids-binary-operator: Likewise.
30892         * modules/unictype/property-ids-trinary-operator: Likewise.
30893         * modules/unictype/property-ignorable-control: Likewise.
30894         * modules/unictype/property-iso-control: Likewise.
30895         * modules/unictype/property-join-control: Likewise.
30896         * modules/unictype/property-left-of-pair: Likewise.
30897         * modules/unictype/property-line-separator: Likewise.
30898         * modules/unictype/property-logical-order-exception: Likewise.
30899         * modules/unictype/property-lowercase: Likewise.
30900         * modules/unictype/property-math: Likewise.
30901         * modules/unictype/property-non-break: Likewise.
30902         * modules/unictype/property-not-a-character: Likewise.
30903         * modules/unictype/property-numeric: Likewise.
30904         * modules/unictype/property-other-alphabetic: Likewise.
30905         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
30906         * modules/unictype/property-other-grapheme-extend: Likewise.
30907         * modules/unictype/property-other-id-continue: Likewise.
30908         * modules/unictype/property-other-id-start: Likewise.
30909         * modules/unictype/property-other-lowercase: Likewise.
30910         * modules/unictype/property-other-math: Likewise.
30911         * modules/unictype/property-other-uppercase: Likewise.
30912         * modules/unictype/property-paired-punctuation: Likewise.
30913         * modules/unictype/property-paragraph-separator: Likewise.
30914         * modules/unictype/property-pattern-syntax: Likewise.
30915         * modules/unictype/property-pattern-white-space: Likewise.
30916         * modules/unictype/property-private-use: Likewise.
30917         * modules/unictype/property-punctuation: Likewise.
30918         * modules/unictype/property-quotation-mark: Likewise.
30919         * modules/unictype/property-radical: Likewise.
30920         * modules/unictype/property-sentence-terminal: Likewise.
30921         * modules/unictype/property-soft-dotted: Likewise.
30922         * modules/unictype/property-space: Likewise.
30923         * modules/unictype/property-terminal-punctuation: Likewise.
30924         * modules/unictype/property-test: Likewise.
30925         * modules/unictype/property-titlecase: Likewise.
30926         * modules/unictype/property-unassigned-code-value: Likewise.
30927         * modules/unictype/property-unified-ideograph: Likewise.
30928         * modules/unictype/property-uppercase: Likewise.
30929         * modules/unictype/property-variation-selector: Likewise.
30930         * modules/unictype/property-white-space: Likewise.
30931         * modules/unictype/property-xid-continue: Likewise.
30932         * modules/unictype/property-xid-start: Likewise.
30933         * modules/unictype/property-zero-width: Likewise.
30934         * modules/unictype/scripts: Likewise.
30935         * modules/unictype/syntax-c-ident: Likewise.
30936         * modules/unictype/syntax-c-whitespace: Likewise.
30937         * modules/unictype/syntax-java-ident: Likewise.
30938         * modules/unictype/syntax-java-whitespace: Likewise.
30939         * modules/unilbrk/u8-possible-linebreaks: Likewise.
30940         * modules/unilbrk/u8-width-linebreaks: Likewise.
30941         * modules/unilbrk/u16-possible-linebreaks: Likewise.
30942         * modules/unilbrk/u16-width-linebreaks: Likewise.
30943         * modules/unilbrk/u32-possible-linebreaks: Likewise.
30944         * modules/unilbrk/u32-width-linebreaks: Likewise.
30945         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
30946         * modules/unilbrk/ulc-width-linebreaks: Likewise.
30947         * modules/uniname/uniname: Likewise.
30948         * modules/uninorm/canonical-decomposition: Likewise.
30949         * modules/uninorm/composition: Likewise.
30950         * modules/uninorm/decomposing-form: Likewise.
30951         * modules/uninorm/decomposition: Likewise.
30952         * modules/uninorm/filter: Likewise.
30953         * modules/uninorm/nfc: Likewise.
30954         * modules/uninorm/nfd: Likewise.
30955         * modules/uninorm/nfkc: Likewise.
30956         * modules/uninorm/nfkd: Likewise.
30957         * modules/uninorm/u8-normalize: Likewise.
30958         * modules/uninorm/u8-normcmp: Likewise.
30959         * modules/uninorm/u8-normcoll: Likewise.
30960         * modules/uninorm/u8-normxfrm: Likewise.
30961         * modules/uninorm/u16-normalize: Likewise.
30962         * modules/uninorm/u16-normcmp: Likewise.
30963         * modules/uninorm/u16-normcoll: Likewise.
30964         * modules/uninorm/u16-normxfrm: Likewise.
30965         * modules/uninorm/u32-normalize: Likewise.
30966         * modules/uninorm/u32-normcmp: Likewise.
30967         * modules/uninorm/u32-normcoll: Likewise.
30968         * modules/uninorm/u32-normxfrm: Likewise.
30969         * modules/unistdio/u8-asnprintf: Likewise.
30970         * modules/unistdio/u8-asprintf: Likewise.
30971         * modules/unistdio/u8-snprintf: Likewise.
30972         * modules/unistdio/u8-sprintf: Likewise.
30973         * modules/unistdio/u8-u8-asnprintf: Likewise.
30974         * modules/unistdio/u8-u8-asprintf: Likewise.
30975         * modules/unistdio/u8-u8-snprintf: Likewise.
30976         * modules/unistdio/u8-u8-sprintf: Likewise.
30977         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30978         * modules/unistdio/u8-u8-vasprintf: Likewise.
30979         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30980         * modules/unistdio/u8-u8-vsprintf: Likewise.
30981         * modules/unistdio/u8-vasnprintf: Likewise.
30982         * modules/unistdio/u8-vasprintf: Likewise.
30983         * modules/unistdio/u8-vsnprintf: Likewise.
30984         * modules/unistdio/u8-vsprintf: Likewise.
30985         * modules/unistdio/u16-asnprintf: Likewise.
30986         * modules/unistdio/u16-asprintf: Likewise.
30987         * modules/unistdio/u16-snprintf: Likewise.
30988         * modules/unistdio/u16-sprintf: Likewise.
30989         * modules/unistdio/u16-u16-asnprintf: Likewise.
30990         * modules/unistdio/u16-u16-asprintf: Likewise.
30991         * modules/unistdio/u16-u16-snprintf: Likewise.
30992         * modules/unistdio/u16-u16-sprintf: Likewise.
30993         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30994         * modules/unistdio/u16-u16-vasprintf: Likewise.
30995         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30996         * modules/unistdio/u16-u16-vsprintf: Likewise.
30997         * modules/unistdio/u16-vasnprintf: Likewise.
30998         * modules/unistdio/u16-vasprintf: Likewise.
30999         * modules/unistdio/u16-vsnprintf: Likewise.
31000         * modules/unistdio/u16-vsprintf: Likewise.
31001         * modules/unistdio/u32-asnprintf: Likewise.
31002         * modules/unistdio/u32-asprintf: Likewise.
31003         * modules/unistdio/u32-snprintf: Likewise.
31004         * modules/unistdio/u32-sprintf: Likewise.
31005         * modules/unistdio/u32-u32-asnprintf: Likewise.
31006         * modules/unistdio/u32-u32-asprintf: Likewise.
31007         * modules/unistdio/u32-u32-snprintf: Likewise.
31008         * modules/unistdio/u32-u32-sprintf: Likewise.
31009         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31010         * modules/unistdio/u32-u32-vasprintf: Likewise.
31011         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31012         * modules/unistdio/u32-u32-vsprintf: Likewise.
31013         * modules/unistdio/u32-vasnprintf: Likewise.
31014         * modules/unistdio/u32-vasprintf: Likewise.
31015         * modules/unistdio/u32-vsnprintf: Likewise.
31016         * modules/unistdio/u32-vsprintf: Likewise.
31017         * modules/unistdio/ulc-asnprintf: Likewise.
31018         * modules/unistdio/ulc-asprintf: Likewise.
31019         * modules/unistdio/ulc-fprintf: Likewise.
31020         * modules/unistdio/ulc-snprintf: Likewise.
31021         * modules/unistdio/ulc-sprintf: Likewise.
31022         * modules/unistdio/ulc-vasnprintf: Likewise.
31023         * modules/unistdio/ulc-vasprintf: Likewise.
31024         * modules/unistdio/ulc-vfprintf: Likewise.
31025         * modules/unistdio/ulc-vsnprintf: Likewise.
31026         * modules/unistdio/ulc-vsprintf: Likewise.
31027         * modules/unistr/u8-check: Likewise.
31028         * modules/unistr/u8-chr: Likewise.
31029         * modules/unistr/u8-cmp: Likewise.
31030         * modules/unistr/u8-cmp2: Likewise.
31031         * modules/unistr/u8-cpy: Likewise.
31032         * modules/unistr/u8-cpy-alloc: Likewise.
31033         * modules/unistr/u8-endswith: Likewise.
31034         * modules/unistr/u8-mblen: Likewise.
31035         * modules/unistr/u8-mbsnlen: Likewise.
31036         * modules/unistr/u8-mbtouc: Likewise.
31037         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31038         * modules/unistr/u8-mbtoucr: Likewise.
31039         * modules/unistr/u8-move: Likewise.
31040         * modules/unistr/u8-next: Likewise.
31041         * modules/unistr/u8-prev: Likewise.
31042         * modules/unistr/u8-set: Likewise.
31043         * modules/unistr/u8-startswith: Likewise.
31044         * modules/unistr/u8-stpcpy: Likewise.
31045         * modules/unistr/u8-stpncpy: Likewise.
31046         * modules/unistr/u8-strcat: Likewise.
31047         * modules/unistr/u8-strchr: Likewise.
31048         * modules/unistr/u8-strcmp: Likewise.
31049         * modules/unistr/u8-strcoll: Likewise.
31050         * modules/unistr/u8-strcpy: Likewise.
31051         * modules/unistr/u8-strcspn: Likewise.
31052         * modules/unistr/u8-strdup: Likewise.
31053         * modules/unistr/u8-strlen: Likewise.
31054         * modules/unistr/u8-strmblen: Likewise.
31055         * modules/unistr/u8-strmbtouc: Likewise.
31056         * modules/unistr/u8-strncat: Likewise.
31057         * modules/unistr/u8-strncmp: Likewise.
31058         * modules/unistr/u8-strncpy: Likewise.
31059         * modules/unistr/u8-strnlen: Likewise.
31060         * modules/unistr/u8-strpbrk: Likewise.
31061         * modules/unistr/u8-strrchr: Likewise.
31062         * modules/unistr/u8-strspn: Likewise.
31063         * modules/unistr/u8-strstr: Likewise.
31064         * modules/unistr/u8-strtok: Likewise.
31065         * modules/unistr/u8-to-u16: Likewise.
31066         * modules/unistr/u8-to-u32: Likewise.
31067         * modules/unistr/u8-uctomb: Likewise.
31068         * modules/unistr/u16-check: Likewise.
31069         * modules/unistr/u16-chr: Likewise.
31070         * modules/unistr/u16-cmp: Likewise.
31071         * modules/unistr/u16-cmp2: Likewise.
31072         * modules/unistr/u16-cpy: Likewise.
31073         * modules/unistr/u16-cpy-alloc: Likewise.
31074         * modules/unistr/u16-endswith: Likewise.
31075         * modules/unistr/u16-mblen: Likewise.
31076         * modules/unistr/u16-mbsnlen: Likewise.
31077         * modules/unistr/u16-mbtouc: Likewise.
31078         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31079         * modules/unistr/u16-mbtoucr: Likewise.
31080         * modules/unistr/u16-move: Likewise.
31081         * modules/unistr/u16-next: Likewise.
31082         * modules/unistr/u16-prev: Likewise.
31083         * modules/unistr/u16-set: Likewise.
31084         * modules/unistr/u16-startswith: Likewise.
31085         * modules/unistr/u16-stpcpy: Likewise.
31086         * modules/unistr/u16-stpncpy: Likewise.
31087         * modules/unistr/u16-strcat: Likewise.
31088         * modules/unistr/u16-strchr: Likewise.
31089         * modules/unistr/u16-strcmp: Likewise.
31090         * modules/unistr/u16-strcoll: Likewise.
31091         * modules/unistr/u16-strcpy: Likewise.
31092         * modules/unistr/u16-strcspn: Likewise.
31093         * modules/unistr/u16-strdup: Likewise.
31094         * modules/unistr/u16-strlen: Likewise.
31095         * modules/unistr/u16-strmblen: Likewise.
31096         * modules/unistr/u16-strmbtouc: Likewise.
31097         * modules/unistr/u16-strncat: Likewise.
31098         * modules/unistr/u16-strncmp: Likewise.
31099         * modules/unistr/u16-strncpy: Likewise.
31100         * modules/unistr/u16-strnlen: Likewise.
31101         * modules/unistr/u16-strpbrk: Likewise.
31102         * modules/unistr/u16-strrchr: Likewise.
31103         * modules/unistr/u16-strspn: Likewise.
31104         * modules/unistr/u16-strstr: Likewise.
31105         * modules/unistr/u16-strtok: Likewise.
31106         * modules/unistr/u16-to-u32: Likewise.
31107         * modules/unistr/u16-to-u8: Likewise.
31108         * modules/unistr/u16-uctomb: Likewise.
31109         * modules/unistr/u32-check: Likewise.
31110         * modules/unistr/u32-chr: Likewise.
31111         * modules/unistr/u32-cmp: Likewise.
31112         * modules/unistr/u32-cmp2: Likewise.
31113         * modules/unistr/u32-cpy: Likewise.
31114         * modules/unistr/u32-cpy-alloc: Likewise.
31115         * modules/unistr/u32-endswith: Likewise.
31116         * modules/unistr/u32-mblen: Likewise.
31117         * modules/unistr/u32-mbsnlen: Likewise.
31118         * modules/unistr/u32-mbtouc: Likewise.
31119         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31120         * modules/unistr/u32-mbtoucr: Likewise.
31121         * modules/unistr/u32-move: Likewise.
31122         * modules/unistr/u32-next: Likewise.
31123         * modules/unistr/u32-prev: Likewise.
31124         * modules/unistr/u32-set: Likewise.
31125         * modules/unistr/u32-startswith: Likewise.
31126         * modules/unistr/u32-stpcpy: Likewise.
31127         * modules/unistr/u32-stpncpy: Likewise.
31128         * modules/unistr/u32-strcat: Likewise.
31129         * modules/unistr/u32-strchr: Likewise.
31130         * modules/unistr/u32-strcmp: Likewise.
31131         * modules/unistr/u32-strcoll: Likewise.
31132         * modules/unistr/u32-strcpy: Likewise.
31133         * modules/unistr/u32-strcspn: Likewise.
31134         * modules/unistr/u32-strdup: Likewise.
31135         * modules/unistr/u32-strlen: Likewise.
31136         * modules/unistr/u32-strmblen: Likewise.
31137         * modules/unistr/u32-strmbtouc: Likewise.
31138         * modules/unistr/u32-strncat: Likewise.
31139         * modules/unistr/u32-strncmp: Likewise.
31140         * modules/unistr/u32-strncpy: Likewise.
31141         * modules/unistr/u32-strnlen: Likewise.
31142         * modules/unistr/u32-strpbrk: Likewise.
31143         * modules/unistr/u32-strrchr: Likewise.
31144         * modules/unistr/u32-strspn: Likewise.
31145         * modules/unistr/u32-strstr: Likewise.
31146         * modules/unistr/u32-strtok: Likewise.
31147         * modules/unistr/u32-to-u16: Likewise.
31148         * modules/unistr/u32-to-u8: Likewise.
31149         * modules/unistr/u32-uctomb: Likewise.
31150         * modules/uniwbrk/u8-wordbreaks: Likewise.
31151         * modules/uniwbrk/u16-wordbreaks: Likewise.
31152         * modules/uniwbrk/u32-wordbreaks: Likewise.
31153         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31154         * modules/uniwbrk/wordbreak-property: Likewise.
31155         * modules/uniwidth/u8-strwidth: Likewise.
31156         * modules/uniwidth/u8-width: Likewise.
31157         * modules/uniwidth/u16-strwidth: Likewise.
31158         * modules/uniwidth/u16-width: Likewise.
31159         * modules/uniwidth/u32-strwidth: Likewise.
31160         * modules/uniwidth/u32-width: Likewise.
31161         * modules/uniwidth/width: Likewise.
31162         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31163         with $(LIBUNISTRING).
31164         * modules/unicase/ignorable-tests: Likewise.
31165         * modules/unicase/locale-language-tests: Likewise.
31166         * modules/unicase/tolower-tests: Likewise.
31167         * modules/unicase/totitle-tests: Likewise.
31168         * modules/unicase/toupper-tests: Likewise.
31169         * modules/unicase/u8-casecmp-tests: Likewise.
31170         * modules/unicase/u8-casecoll-tests: Likewise.
31171         * modules/unicase/u8-casefold-tests: Likewise.
31172         * modules/unicase/u8-is-cased-tests: Likewise.
31173         * modules/unicase/u8-is-casefolded-tests: Likewise.
31174         * modules/unicase/u8-is-lowercase-tests: Likewise.
31175         * modules/unicase/u8-is-titlecase-tests: Likewise.
31176         * modules/unicase/u8-is-uppercase-tests: Likewise.
31177         * modules/unicase/u8-tolower-tests: Likewise.
31178         * modules/unicase/u8-totitle-tests: Likewise.
31179         * modules/unicase/u8-toupper-tests: Likewise.
31180         * modules/unicase/u16-casecmp-tests: Likewise.
31181         * modules/unicase/u16-casecoll-tests: Likewise.
31182         * modules/unicase/u16-casefold-tests: Likewise.
31183         * modules/unicase/u16-is-cased-tests: Likewise.
31184         * modules/unicase/u16-is-casefolded-tests: Likewise.
31185         * modules/unicase/u16-is-lowercase-tests: Likewise.
31186         * modules/unicase/u16-is-titlecase-tests: Likewise.
31187         * modules/unicase/u16-is-uppercase-tests: Likewise.
31188         * modules/unicase/u16-tolower-tests: Likewise.
31189         * modules/unicase/u16-totitle-tests: Likewise.
31190         * modules/unicase/u16-toupper-tests: Likewise.
31191         * modules/unicase/u32-casecmp-tests: Likewise.
31192         * modules/unicase/u32-casecoll-tests: Likewise.
31193         * modules/unicase/u32-casefold-tests: Likewise.
31194         * modules/unicase/u32-is-cased-tests: Likewise.
31195         * modules/unicase/u32-is-casefolded-tests: Likewise.
31196         * modules/unicase/u32-is-lowercase-tests: Likewise.
31197         * modules/unicase/u32-is-titlecase-tests: Likewise.
31198         * modules/unicase/u32-is-uppercase-tests: Likewise.
31199         * modules/unicase/u32-tolower-tests: Likewise.
31200         * modules/unicase/u32-totitle-tests: Likewise.
31201         * modules/unicase/u32-toupper-tests: Likewise.
31202         * modules/unicase/ulc-casecmp-tests: Likewise.
31203         * modules/unicase/ulc-casecoll-tests: Likewise.
31204         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31205         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31206         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31207         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31208         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31209         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31210         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31211         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31212         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31213         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31214         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31215         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31216         * modules/unictype/bidicategory-byname-tests: Likewise.
31217         * modules/unictype/bidicategory-name-tests: Likewise.
31218         * modules/unictype/bidicategory-of-tests: Likewise.
31219         * modules/unictype/bidicategory-test-tests: Likewise.
31220         * modules/unictype/block-list-tests: Likewise.
31221         * modules/unictype/block-of-tests: Likewise.
31222         * modules/unictype/block-test-tests: Likewise.
31223         * modules/unictype/category-C-tests: Likewise.
31224         * modules/unictype/category-Cc-tests: Likewise.
31225         * modules/unictype/category-Cf-tests: Likewise.
31226         * modules/unictype/category-Cn-tests: Likewise.
31227         * modules/unictype/category-Co-tests: Likewise.
31228         * modules/unictype/category-Cs-tests: Likewise.
31229         * modules/unictype/category-L-tests: Likewise.
31230         * modules/unictype/category-Ll-tests: Likewise.
31231         * modules/unictype/category-Lm-tests: Likewise.
31232         * modules/unictype/category-Lo-tests: Likewise.
31233         * modules/unictype/category-Lt-tests: Likewise.
31234         * modules/unictype/category-Lu-tests: Likewise.
31235         * modules/unictype/category-M-tests: Likewise.
31236         * modules/unictype/category-Mc-tests: Likewise.
31237         * modules/unictype/category-Me-tests: Likewise.
31238         * modules/unictype/category-Mn-tests: Likewise.
31239         * modules/unictype/category-N-tests: Likewise.
31240         * modules/unictype/category-Nd-tests: Likewise.
31241         * modules/unictype/category-Nl-tests: Likewise.
31242         * modules/unictype/category-No-tests: Likewise.
31243         * modules/unictype/category-P-tests: Likewise.
31244         * modules/unictype/category-Pc-tests: Likewise.
31245         * modules/unictype/category-Pd-tests: Likewise.
31246         * modules/unictype/category-Pe-tests: Likewise.
31247         * modules/unictype/category-Pf-tests: Likewise.
31248         * modules/unictype/category-Pi-tests: Likewise.
31249         * modules/unictype/category-Po-tests: Likewise.
31250         * modules/unictype/category-Ps-tests: Likewise.
31251         * modules/unictype/category-S-tests: Likewise.
31252         * modules/unictype/category-Sc-tests: Likewise.
31253         * modules/unictype/category-Sk-tests: Likewise.
31254         * modules/unictype/category-Sm-tests: Likewise.
31255         * modules/unictype/category-So-tests: Likewise.
31256         * modules/unictype/category-Z-tests: Likewise.
31257         * modules/unictype/category-Zl-tests: Likewise.
31258         * modules/unictype/category-Zp-tests: Likewise.
31259         * modules/unictype/category-Zs-tests: Likewise.
31260         * modules/unictype/category-and-not-tests: Likewise.
31261         * modules/unictype/category-and-tests: Likewise.
31262         * modules/unictype/category-byname-tests: Likewise.
31263         * modules/unictype/category-name-tests: Likewise.
31264         * modules/unictype/category-none-tests: Likewise.
31265         * modules/unictype/category-of-tests: Likewise.
31266         * modules/unictype/category-or-tests: Likewise.
31267         * modules/unictype/category-test-withtable-tests: Likewise.
31268         * modules/unictype/combining-class-tests: Likewise.
31269         * modules/unictype/ctype-alnum-tests: Likewise.
31270         * modules/unictype/ctype-alpha-tests: Likewise.
31271         * modules/unictype/ctype-blank-tests: Likewise.
31272         * modules/unictype/ctype-cntrl-tests: Likewise.
31273         * modules/unictype/ctype-digit-tests: Likewise.
31274         * modules/unictype/ctype-graph-tests: Likewise.
31275         * modules/unictype/ctype-lower-tests: Likewise.
31276         * modules/unictype/ctype-print-tests: Likewise.
31277         * modules/unictype/ctype-punct-tests: Likewise.
31278         * modules/unictype/ctype-space-tests: Likewise.
31279         * modules/unictype/ctype-upper-tests: Likewise.
31280         * modules/unictype/ctype-xdigit-tests: Likewise.
31281         * modules/unictype/decimal-digit-tests: Likewise.
31282         * modules/unictype/digit-tests: Likewise.
31283         * modules/unictype/mirror-tests: Likewise.
31284         * modules/unictype/numeric-tests: Likewise.
31285         * modules/unictype/property-alphabetic-tests: Likewise.
31286         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31287         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31288         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31289         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31290         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31291         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31292         * modules/unictype/property-bidi-control-tests: Likewise.
31293         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31294         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31295         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31296         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31297         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31298         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31299         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31300         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31301         * modules/unictype/property-bidi-pdf-tests: Likewise.
31302         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31303         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31304         * modules/unictype/property-byname-tests: Likewise.
31305         * modules/unictype/property-combining-tests: Likewise.
31306         * modules/unictype/property-composite-tests: Likewise.
31307         * modules/unictype/property-currency-symbol-tests: Likewise.
31308         * modules/unictype/property-dash-tests: Likewise.
31309         * modules/unictype/property-decimal-digit-tests: Likewise.
31310         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31311         * modules/unictype/property-deprecated-tests: Likewise.
31312         * modules/unictype/property-diacritic-tests: Likewise.
31313         * modules/unictype/property-extender-tests: Likewise.
31314         * modules/unictype/property-format-control-tests: Likewise.
31315         * modules/unictype/property-grapheme-base-tests: Likewise.
31316         * modules/unictype/property-grapheme-extend-tests: Likewise.
31317         * modules/unictype/property-grapheme-link-tests: Likewise.
31318         * modules/unictype/property-hex-digit-tests: Likewise.
31319         * modules/unictype/property-hyphen-tests: Likewise.
31320         * modules/unictype/property-id-continue-tests: Likewise.
31321         * modules/unictype/property-id-start-tests: Likewise.
31322         * modules/unictype/property-ideographic-tests: Likewise.
31323         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31324         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31325         * modules/unictype/property-ignorable-control-tests: Likewise.
31326         * modules/unictype/property-iso-control-tests: Likewise.
31327         * modules/unictype/property-join-control-tests: Likewise.
31328         * modules/unictype/property-left-of-pair-tests: Likewise.
31329         * modules/unictype/property-line-separator-tests: Likewise.
31330         * modules/unictype/property-logical-order-exception-tests: Likewise.
31331         * modules/unictype/property-lowercase-tests: Likewise.
31332         * modules/unictype/property-math-tests: Likewise.
31333         * modules/unictype/property-non-break-tests: Likewise.
31334         * modules/unictype/property-not-a-character-tests: Likewise.
31335         * modules/unictype/property-numeric-tests: Likewise.
31336         * modules/unictype/property-other-alphabetic-tests: Likewise.
31337         * modules/unictype/property-other-default-ignorable-code-point-tests:
31338         Likewise.
31339         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31340         * modules/unictype/property-other-id-continue-tests: Likewise.
31341         * modules/unictype/property-other-id-start-tests: Likewise.
31342         * modules/unictype/property-other-lowercase-tests: Likewise.
31343         * modules/unictype/property-other-math-tests: Likewise.
31344         * modules/unictype/property-other-uppercase-tests: Likewise.
31345         * modules/unictype/property-paired-punctuation-tests: Likewise.
31346         * modules/unictype/property-paragraph-separator-tests: Likewise.
31347         * modules/unictype/property-pattern-syntax-tests: Likewise.
31348         * modules/unictype/property-pattern-white-space-tests: Likewise.
31349         * modules/unictype/property-private-use-tests: Likewise.
31350         * modules/unictype/property-punctuation-tests: Likewise.
31351         * modules/unictype/property-quotation-mark-tests: Likewise.
31352         * modules/unictype/property-radical-tests: Likewise.
31353         * modules/unictype/property-sentence-terminal-tests: Likewise.
31354         * modules/unictype/property-soft-dotted-tests: Likewise.
31355         * modules/unictype/property-space-tests: Likewise.
31356         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31357         * modules/unictype/property-test-tests: Likewise.
31358         * modules/unictype/property-titlecase-tests: Likewise.
31359         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31360         * modules/unictype/property-unified-ideograph-tests: Likewise.
31361         * modules/unictype/property-uppercase-tests: Likewise.
31362         * modules/unictype/property-variation-selector-tests: Likewise.
31363         * modules/unictype/property-white-space-tests: Likewise.
31364         * modules/unictype/property-xid-continue-tests: Likewise.
31365         * modules/unictype/property-xid-start-tests: Likewise.
31366         * modules/unictype/property-zero-width-tests: Likewise.
31367         * modules/unictype/scripts-tests: Likewise.
31368         * modules/unictype/syntax-c-ident-tests: Likewise.
31369         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31370         * modules/unictype/syntax-java-ident-tests: Likewise.
31371         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31372         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31373         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31374         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31375         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31376         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31377         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31378         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31379         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31380         * modules/uniname/uniname-tests: Likewise.
31381         * modules/uninorm/canonical-decomposition-tests: Likewise.
31382         * modules/uninorm/compat-decomposition-tests: Likewise.
31383         * modules/uninorm/composition-tests: Likewise.
31384         * modules/uninorm/decomposing-form-tests: Likewise.
31385         * modules/uninorm/decomposition-tests: Likewise.
31386         * modules/uninorm/filter-tests: Likewise.
31387         * modules/uninorm/nfc-tests: Likewise.
31388         * modules/uninorm/nfd-tests: Likewise.
31389         * modules/uninorm/nfkc-tests: Likewise.
31390         * modules/uninorm/nfkd-tests: Likewise.
31391         * modules/uninorm/u8-normcmp-tests: Likewise.
31392         * modules/uninorm/u8-normcoll-tests: Likewise.
31393         * modules/uninorm/u16-normcmp-tests: Likewise.
31394         * modules/uninorm/u16-normcoll-tests: Likewise.
31395         * modules/uninorm/u32-normcmp-tests: Likewise.
31396         * modules/uninorm/u32-normcoll-tests: Likewise.
31397         * modules/unistdio/u8-asnprintf-tests: Likewise.
31398         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31399         * modules/unistdio/u8-vasprintf-tests: Likewise.
31400         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31401         * modules/unistdio/u8-vsprintf-tests: Likewise.
31402         * modules/unistdio/u16-asnprintf-tests: Likewise.
31403         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31404         * modules/unistdio/u16-vasprintf-tests: Likewise.
31405         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31406         * modules/unistdio/u16-vsprintf-tests: Likewise.
31407         * modules/unistdio/u32-asnprintf-tests: Likewise.
31408         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31409         * modules/unistdio/u32-vasprintf-tests: Likewise.
31410         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31411         * modules/unistdio/u32-vsprintf-tests: Likewise.
31412         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31413         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31414         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31415         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31416         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31417         * modules/unistr/u8-check-tests: Likewise.
31418         * modules/unistr/u8-chr-tests: Likewise.
31419         * modules/unistr/u8-cmp-tests: Likewise.
31420         * modules/unistr/u8-cmp2-tests: Likewise.
31421         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31422         * modules/unistr/u8-cpy-tests: Likewise.
31423         * modules/unistr/u8-mblen-tests: Likewise.
31424         * modules/unistr/u8-mbsnlen-tests: Likewise.
31425         * modules/unistr/u8-mbtouc-tests: Likewise.
31426         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31427         * modules/unistr/u8-mbtoucr-tests: Likewise.
31428         * modules/unistr/u8-move-tests: Likewise.
31429         * modules/unistr/u8-next-tests: Likewise.
31430         * modules/unistr/u8-prev-tests: Likewise.
31431         * modules/unistr/u8-set-tests: Likewise.
31432         * modules/unistr/u8-stpcpy-tests: Likewise.
31433         * modules/unistr/u8-stpncpy-tests: Likewise.
31434         * modules/unistr/u8-strcat-tests: Likewise.
31435         * modules/unistr/u8-strcmp-tests: Likewise.
31436         * modules/unistr/u8-strcoll-tests: Likewise.
31437         * modules/unistr/u8-strcpy-tests: Likewise.
31438         * modules/unistr/u8-strdup-tests: Likewise.
31439         * modules/unistr/u8-strlen-tests: Likewise.
31440         * modules/unistr/u8-strmblen-tests: Likewise.
31441         * modules/unistr/u8-strmbtouc-tests: Likewise.
31442         * modules/unistr/u8-strncat-tests: Likewise.
31443         * modules/unistr/u8-strncmp-tests: Likewise.
31444         * modules/unistr/u8-strncpy-tests: Likewise.
31445         * modules/unistr/u8-strnlen-tests: Likewise.
31446         * modules/unistr/u8-to-u16-tests: Likewise.
31447         * modules/unistr/u8-to-u32-tests: Likewise.
31448         * modules/unistr/u8-uctomb-tests: Likewise.
31449         * modules/unistr/u16-check-tests: Likewise.
31450         * modules/unistr/u16-chr-tests: Likewise.
31451         * modules/unistr/u16-cmp-tests: Likewise.
31452         * modules/unistr/u16-cmp2-tests: Likewise.
31453         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31454         * modules/unistr/u16-cpy-tests: Likewise.
31455         * modules/unistr/u16-mblen-tests: Likewise.
31456         * modules/unistr/u16-mbsnlen-tests: Likewise.
31457         * modules/unistr/u16-mbtouc-tests: Likewise.
31458         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31459         * modules/unistr/u16-mbtoucr-tests: Likewise.
31460         * modules/unistr/u16-move-tests: Likewise.
31461         * modules/unistr/u16-next-tests: Likewise.
31462         * modules/unistr/u16-prev-tests: Likewise.
31463         * modules/unistr/u16-set-tests: Likewise.
31464         * modules/unistr/u16-stpcpy-tests: Likewise.
31465         * modules/unistr/u16-stpncpy-tests: Likewise.
31466         * modules/unistr/u16-strcat-tests: Likewise.
31467         * modules/unistr/u16-strcmp-tests: Likewise.
31468         * modules/unistr/u16-strcoll-tests: Likewise.
31469         * modules/unistr/u16-strcpy-tests: Likewise.
31470         * modules/unistr/u16-strdup-tests: Likewise.
31471         * modules/unistr/u16-strlen-tests: Likewise.
31472         * modules/unistr/u16-strmblen-tests: Likewise.
31473         * modules/unistr/u16-strmbtouc-tests: Likewise.
31474         * modules/unistr/u16-strncat-tests: Likewise.
31475         * modules/unistr/u16-strncmp-tests: Likewise.
31476         * modules/unistr/u16-strncpy-tests: Likewise.
31477         * modules/unistr/u16-strnlen-tests: Likewise.
31478         * modules/unistr/u16-to-u32-tests: Likewise.
31479         * modules/unistr/u16-to-u8-tests: Likewise.
31480         * modules/unistr/u16-uctomb-tests: Likewise.
31481         * modules/unistr/u32-check-tests: Likewise.
31482         * modules/unistr/u32-chr-tests: Likewise.
31483         * modules/unistr/u32-cmp-tests: Likewise.
31484         * modules/unistr/u32-cmp2-tests: Likewise.
31485         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31486         * modules/unistr/u32-cpy-tests: Likewise.
31487         * modules/unistr/u32-mblen-tests: Likewise.
31488         * modules/unistr/u32-mbsnlen-tests: Likewise.
31489         * modules/unistr/u32-mbtouc-tests: Likewise.
31490         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31491         * modules/unistr/u32-mbtoucr-tests: Likewise.
31492         * modules/unistr/u32-move-tests: Likewise.
31493         * modules/unistr/u32-next-tests: Likewise.
31494         * modules/unistr/u32-prev-tests: Likewise.
31495         * modules/unistr/u32-set-tests: Likewise.
31496         * modules/unistr/u32-stpcpy-tests: Likewise.
31497         * modules/unistr/u32-stpncpy-tests: Likewise.
31498         * modules/unistr/u32-strcat-tests: Likewise.
31499         * modules/unistr/u32-strcmp-tests: Likewise.
31500         * modules/unistr/u32-strcoll-tests: Likewise.
31501         * modules/unistr/u32-strcpy-tests: Likewise.
31502         * modules/unistr/u32-strdup-tests: Likewise.
31503         * modules/unistr/u32-strlen-tests: Likewise.
31504         * modules/unistr/u32-strmblen-tests: Likewise.
31505         * modules/unistr/u32-strmbtouc-tests: Likewise.
31506         * modules/unistr/u32-strncat-tests: Likewise.
31507         * modules/unistr/u32-strncmp-tests: Likewise.
31508         * modules/unistr/u32-strncpy-tests: Likewise.
31509         * modules/unistr/u32-strnlen-tests: Likewise.
31510         * modules/unistr/u32-to-u16-tests: Likewise.
31511         * modules/unistr/u32-to-u8-tests: Likewise.
31512         * modules/unistr/u32-uctomb-tests: Likewise.
31513         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31514         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31515         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31516         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31517         * modules/uniwidth/u8-strwidth-tests: Likewise.
31518         * modules/uniwidth/u8-width-tests: Likewise.
31519         * modules/uniwidth/u16-strwidth-tests: Likewise.
31520         * modules/uniwidth/u16-width-tests: Likewise.
31521         * modules/uniwidth/u32-strwidth-tests: Likewise.
31522         * modules/uniwidth/u32-width-tests: Likewise.
31523         * modules/uniwidth/width-tests: Likewise.
31524
31525 2010-05-18  Richard Jones  <rjones@redhat.com>
31526
31527         doc: users.txt: list hivex
31528         * users.txt: Add hivex.
31529
31530 2010-05-18  Richard Jones  <rjones@redhat.com>
31531
31532         doc: users.txt: list febootstrap
31533         * users.txt: Add febootstrap.
31534
31535 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31536
31537         bootstrap: fix an error when gnulib is not used as a git submodule
31538         * build-aux/bootstrap (gnulib_path): If its length is zero then
31539         assign "gnulib" to it.
31540         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31541
31542 2010-05-16  Bruno Haible  <bruno@clisp.org>
31543
31544         Avoid autoconf warnings about AM_ICONV.
31545         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31546         2.64.
31547
31548 2010-05-16  Bruno Haible  <bruno@clisp.org>
31549
31550         absolute-header: Make the macro usable in more situations.
31551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31552         from gl_ABSOLUTE_HEADER.
31553         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31554
31555 2010-05-16  James Youngman  <jay@gnu.org>
31556
31557         doc: update users.txt
31558         * users.txt: Add CSSC.
31559
31560 2010-05-16  Jim Meyering  <meyering@redhat.com>
31561
31562         init.sh: fix an error in the previous change; add more comments
31563         * tests/init.sh: Compare exit code in loop against 9, not 2.
31564         Patch by Bruno Haible.
31565         Make the two tests more similar by adding an empty "then" clause.
31566         Add comments.
31567
31568         init.sh: avoid unnecessary shell re-exec
31569         * tests/init.sh: Improve the re-exec-required check to first test the
31570         current shell.  If it passes the test, do not search for a shell that
31571         does pass, and do not re-exec.  This test is particularly contorted to
31572         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31573         of $(...) evokes a syntax error and causes immediate shell exit with
31574         status 2.  Bruno Haible reported that the re-exec made it impossible
31575         to single-step through any init.sh-using script.
31576
31577 2010-05-16  Bruno Haible  <bruno@clisp.org>
31578
31579         Fix collision between gnulib's and libintl's printf replacements.
31580         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31581         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31582         (printf): When using GNU C, map the __printf__ function to rpl_printf
31583         via __asm__. When not using GNU C, define rpl_printf instead of
31584         __printf__.
31585         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31586         commit.
31587         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31588         commit.
31589         * m4/asm-underscore.m4: New file.
31590         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31591         * modules/stdio (Files): Add m4/asm-underscore.m4.
31592         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31593         Reported by Ben Pfaff.
31594
31595 2010-05-16  Bruno Haible  <bruno@clisp.org>
31596
31597         verify: Avoid skipping the test on openSUSE 11.0.
31598         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31599
31600 2010-05-13  Bruno Haible  <bruno@clisp.org>
31601
31602         Avoid useless warnings from G++.
31603         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31604         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31605         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31606
31607 2010-05-11  Jim Meyering  <meyering@redhat.com>
31608
31609         maint.mk: tweak preceding change
31610         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31611         regexps tighter by anchoring at EOL, and make the new group "shy"
31612         for slightly decreased overhead.
31613
31614 2010-05-11  Eric Blake  <eblake@redhat.com>
31615
31616         maint.mk: gnulib doesn't guarantee NSIG
31617         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31618
31619 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31620
31621         test-pwrite.c: Remove unused variable declaration.
31622         * tests/test-pwrite.c (main): Remove read_buf declaration.
31623
31624         Remove useless test-pwrite.sh file.
31625         * tests/test-pwrite.sh: Delete file.
31626         * modules/pwrite-tests: Remove references.
31627         Reported by Bruno Haible.
31628
31629 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31630
31631         init.sh: fix a typo
31632         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31633
31634 2010-05-10  Jim Meyering  <meyering@redhat.com>
31635
31636         maint.mk: avoid using a temporary file in the always-defined-macros check
31637         * top/maint.mk (.re-defmac): Remove rule.
31638         (gl_trap_): Remove definition.
31639         (sc_prohibit_always-defined_macros): Rewrite not to create and
31640         depend on a temporary file.  Instead, depend on GNU grep's ability
31641         to read a list of regular expressions from stdin when given "-f -".
31642
31643 2010-05-09  Bruno Haible  <bruno@clisp.org>
31644
31645         Update to GNU gettext 0.18, part 1.
31646         * m4/gettext.m4: Update to GNU gettext 0.18.
31647         * m4/intl.m4: Likewise.
31648         * m4/po.m4: Likewise.
31649         * modules/gettext (Files): Add m4/fcntl-o.m4.
31650         (configure.ac): Require gettext infrastructure from version 0.18.
31651
31652 2010-05-09  Jim Meyering  <meyering@redhat.com>
31653
31654         init.sh: enable MALLOC_PERTURB_
31655         * tests/init.sh: Enable glibc's malloc-perturbing option.
31656
31657         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31658         With my recent change in init.sh from the two-line form:
31659             -#   : ${srcdir=.}
31660             -#   . "$srcdir/init.sh"; path_prepend_ .
31661             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31662         I noticed that using the one-line form would cause this test
31663         to fail with a false-positive, or to stop working altogether,
31664         depending on whether help-version changed or all the tests did.
31665         * top/maint.mk (_hv_regex): Remove this definition.
31666         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31667         (_hv_regex_strong): Use a stronger regex to check for conformance.
31668         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31669         Give a separate diagnostic for lack of conforming use.
31670
31671         maint.mk: prohibit definition of symbols defined by gnulib
31672         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31673         definition of symbols defined by gnulib.
31674
31675 2010-05-09  Bruno Haible  <bruno@clisp.org>
31676
31677         acl: Avoid test failure on Cygwin-hosted mingw.
31678         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31679
31680 2010-05-09  Bruno Haible  <bruno@clisp.org>
31681
31682         error: Use system's fcntl function.
31683         * lib/error.c (fcntl): Undefine.
31684
31685 2010-05-09  Jim Meyering  <meyering@redhat.com>
31686
31687         verify: adjust formatting to be more consistent
31688         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31689         argument-list '('s, and after one comma.
31690
31691 2010-05-09  Bruno Haible  <bruno@clisp.org>
31692
31693         error: More reliable output on mingw.
31694         * lib/error.c: Include <windows.h>.
31695         (is_open): New function.
31696         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31697         defined.
31698
31699 2010-05-09  Bruno Haible  <bruno@clisp.org>
31700
31701         vasnprintf: Fix syntax errors in libintl build on mingw.
31702         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31703         pad_ourselves and prec_ourselves after use.
31704
31705 2010-05-08  Bruno Haible  <bruno@clisp.org>
31706
31707         * lib/config.charset: Update comments for Cygwin 1.7.
31708         * lib/localcharset.c: Likewise.
31709
31710 2010-05-07  Jim Meyering  <meyering@redhat.com>
31711
31712         init.sh: improve comments
31713         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31714         . "${srcdir=.}/init.sh"; path_prepend_ .
31715         Add a note about path_prepend_ and the alternative of using
31716         TESTS_ENVIRONMENT.
31717
31718 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31719
31720         exclude: Unescape hashed patterns in wildcard mode.
31721         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31722         to the hash list.
31723         * tests/test-exclude8.sh: New test case.
31724         * modules/exclude-tests: Add new test.
31725
31726 2010-05-05  Eric Blake  <eblake@redhat.com>
31727
31728         verify: automate tests
31729         * modules/verify-tests: New module.
31730         * tests/test-verify.sh: New file.
31731         * tests/test-verify.c: Guard each negative test with a unique id.
31732         Also avoid warning about unused left hand of comma expressions.
31733
31734 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31735
31736         Further improvements to verify.h, suggested by Eric Blake.
31737         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31738         the GL_* versions, to avoid collision with OpenGL.
31739         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31740         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31741         than testing merely whether it's defined.
31742
31743         Modify verify.h to pacify gcc -Wredundant_decls.
31744         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31745         These use the prefix "GL_" since they're likely to be useful elsewhere.
31746         We may need to break them out into a different .h file.
31747         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31748         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31749         of verify_function__.
31750
31751 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31752
31753         Tests for module pwrite.
31754         * modules/pwrite-tests: New file.
31755         * tests/test-pwrite.sh: New file.
31756         * tests/test-pwrite.c: New file.
31757
31758         New module pwrite.
31759         * lib/unistd.in.h (pwrite): New declaration.
31760         * lib/pwrite.c: New file, from glibc with modifications.
31761         * m4/pwrite.m4: New file.
31762         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31763         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31764         REPLACE_PWRITE.
31765         * modules/pwrite: New file.
31766         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31767         REPLACE_PWRITE.
31768         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31769         * doc/posix-functions/pwrite.texi: Mention the new module.
31770
31771 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31772
31773         pread: Update documentation.
31774         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31775
31776 2010-05-04  Eric Blake  <eblake@redhat.com>
31777
31778         docs: update cygwin progress
31779         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31780         this bug.
31781         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31782         Added in cygwin 1.7.2.
31783         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31784         Likewise.
31785         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31786         Likewise.
31787         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31788         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31789         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31790         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31791         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31792         Mention nproc module.
31793         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31794         bug in cygwin 1.7.5 addition.
31795         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31796         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31797         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31798         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31799         1.7.5.
31800         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31801         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31802         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31803         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31804         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31805         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31806         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31807         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31808         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31809         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31810         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31811         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31812         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31813         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31814         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31815         Likewise.
31816         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31817         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31818         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31819         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31820         Likewise.
31821         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31822         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31823         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31824         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31825         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31826         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31827         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31828         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31829         Likewise.
31830         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31831         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
31832         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
31833         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
31834         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
31835         Likewise.
31836         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
31837         Likewise.
31838         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
31839         Likewise.
31840         * doc/glibc-functions/xdrrec_endofrecord.texi
31841         (xdrrec_endofrecord): Likewise.
31842         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
31843         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
31844         Likewise.
31845         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
31846         Likewise.
31847
31848 2010-05-04  Jim Meyering  <meyering@redhat.com>
31849
31850         gendocs.sh: make its "-s FILE" option more useful
31851         * build-aux/gendocs.sh: When honoring the -s FILE option, update
31852         $PACKAGE to reflect the probably-different basename of "FILE".
31853
31854 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31855
31856         bootstrap: don't ignore download_po_files failure
31857         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
31858         failure.
31859
31860 2010-05-03  Jim Meyering  <meyering@redhat.com>
31861
31862         maint.mk: allow to pass options to gendocs.sh
31863         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
31864         (gendocs_options_): New overridable variable.
31865
31866         gnu-web-doc-update: don't ignore configure or build failure
31867         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
31868
31869         announce-gen: backslash-escape '@'s in --help output
31870         * build-aux/announce-gen: Fix syntax errors.
31871
31872         maint.mk, announce-gen: allow project-specific announcement mail headers
31873         * top/maint.mk (translation_project_): Define default.
31874         (announcement_Cc_, announcement_mail_headers_): Likewise.
31875         (announcement): Invoke announce-gen with new --mail-headers option.
31876         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
31877
31878         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
31879         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
31880         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
31881         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
31882         line in the "err2" output file when running "make check" in verbose
31883         mode (i.e., with set -x enabled).
31884
31885 2010-05-03  Bruno Haible  <bruno@clisp.org>
31886
31887         wctob: Fix for weird platforms.
31888         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
31889         argument value.
31890
31891 2010-05-03  Jim Meyering  <meyering@redhat.com>
31892
31893         maint.mk: prohibit unwarranted use of <strings.h>
31894         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
31895         strings.h in a file that does not also use strcasecmp, strncasecmp,
31896         ffs or ffsll.
31897
31898         maint.mk: remove obsolete comments
31899         * top/maint.mk: Remove stale, commented-out rules.
31900
31901 2010-05-02  Bruno Haible  <bruno@clisp.org>
31902
31903         wcwidth: Declare also when it's aliased.
31904         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
31905         macro.
31906
31907 2010-05-02  Bruno Haible  <bruno@clisp.org>
31908
31909         Fix regression from 2010-04-25.
31910         * gnulib-tool (func_modules_transitive_closure): Check the status of
31911         all modules, not only of the tests that are of the form foo-tests where
31912         foo is a module.
31913
31914 2010-05-02  Bruno Haible  <bruno@clisp.org>
31915
31916         wctob: Work around nasty Cygwin 1.7.2 bug.
31917         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
31918         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
31919
31920 2010-05-01  Bruno Haible  <bruno@clisp.org>
31921
31922         fpurge: Sharper test.
31923         * tests/test-fpurge.c (main): Add one more ftell check.
31924         * modules/fpurge-tests (Depends-on): Add ftell.
31925         Suggested by Eric Blake.
31926
31927 2010-05-01  Bruno Haible  <bruno@clisp.org>
31928
31929         ftello: Another test.
31930         * tests/test-ftello3.c: New file.
31931         * modules/ftello-tests (Files): Add it.
31932         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31933         MOSTLYCLEANFILES.
31934
31935         ftell: Another test.
31936         * tests/test-ftell3.c: New file.
31937         * modules/ftell-tests (Files): Add it.
31938         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31939         MOSTLYCLEANFILES.
31940
31941 2010-05-01  Bruno Haible  <bruno@clisp.org>
31942
31943         ftell, ftello: Work around Solaris bug.
31944         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
31945         * lib/ftello.c: Include stdio-impl.h.
31946         (ftello): On Solaris, when _IOWRT is set, compute the result without
31947         looking at _IOREAD.
31948         * modules/ftello (Files): Add lib/stdio-impl.h.
31949         * doc/posix-functions/ftell.texi: Mention Solaris bug.
31950         * doc/posix-functions/ftello.texi: Likewise.
31951         Reported by Eric Blake.
31952
31953 2010-05-01  Bruno Haible  <bruno@clisp.org>
31954
31955         freading: Adapt to special meaning of _IOREAD flag on Solaris.
31956         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
31957         the _IOWRT flag is also set.
31958
31959 2010-05-01  Bruno Haible  <bruno@clisp.org>
31960
31961         Fix doc about a HP-UX stdio bug.
31962         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
31963         * doc/posix-functions/ftello.texi: Likewise.
31964
31965 2010-05-01  Bruno Haible  <bruno@clisp.org>
31966
31967         lseek test: Fix failure on Solaris.
31968         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
31969         output.
31970
31971 2010-04-30  Jim Meyering  <meyering@redhat.com>
31972
31973         bootstrap: don't ignore failure to generate po*/Makevars
31974         * build-aux/bootstrap (with_gettext): Don't ignore failure
31975         to create po/Makevars or runtime-po/Makevars.
31976
31977 2010-04-29  Eric Blake  <eblake@redhat.com>
31978
31979         headers: relax license to LGPLv2+
31980         * modules/fcntl-h (License): Relax license.
31981         * modules/getopt-posix (License): Likewise.
31982         * modules/locale (License): Likewise.
31983         * modules/math (License): Likewise.
31984         * modules/pty (License): Likewise.
31985         * modules/sched (License): Likewise.
31986         * modules/search (License): Likewise.
31987         * modules/spawn (License): Likewise.
31988         * modules/stdarg (License): Likewise.
31989         * modules/sysexits (License): Likewise.
31990
31991 2010-04-29  Jim Meyering  <meyering@redhat.com>
31992
31993         inttypes: relax license to LGPLv2+
31994         * modules/inttypes (License): Relax license.
31995
31996 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31997
31998         * top/maint.mk (indent): Run twice to produce idempotent results.
31999
32000 2010-04-28  Bruno Haible  <bruno@clisp.org>
32001
32002         getdate: Generate getdate.c in the source directory.
32003         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32004         MOSTLYCLEANFILES.
32005         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32006
32007 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32008
32009         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32010         is not declared as a const *; avoid warnings in that case.
32011
32012 2010-04-28  Eric Blake  <eblake@redhat.com>
32013
32014         canonicalize-lgpl: avoid compiler warning
32015         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32016         declaration' / 'extraneous semicolon' warning with some compilers.
32017         Reported by Andreas Gruenbacher.
32018
32019 2010-04-28  Jim Meyering  <meyering@redhat.com>
32020
32021         init.sh: ensure a more reliable exit status when exiting via trap
32022         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32023         Inspired by patches from Dmitry V. Levin.
32024         Also trap on signal 3 (SIGQUIT).
32025
32026 2010-04-27  Bruno Haible  <bruno@clisp.org>
32027
32028         Update doc about utimes().
32029         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32030         'utimens' module.
32031         Reported by Andreas Gruenbacher <agruen@suse.de>.
32032
32033 2010-04-27  Eric Blake  <eblake@redhat.com>
32034
32035         full-read, full-write: relax license
32036         * modules/full-read (License): Drop to LGPLv2+.
32037         * modules/full-write (License): Likewise.
32038         * modules/safe-read (License): Likewise.
32039         * modules/safe-write (License): Likewise.
32040
32041         pthread: mention library for linking
32042         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32043
32044 2010-04-27  Jim Meyering  <meyering@redhat.com>
32045
32046         maint.mk: fix a bug introduced in last change
32047         * top/maint.mk (gl_assured_headers_): Now that all names are on
32048         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32049         is not anchored to end of word, it should be adequate.
32050
32051         maint.mk: avoid side-effect in latest syntax-check
32052         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32053         to run commands via $(shell...), and hence to incur cost only when
32054         the new rule is actually run.
32055
32056         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32057         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32058         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32059         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32060         (gl_assured_headers_, az_, AZ_): Define.
32061         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32062
32063 2010-04-26  Jim Meyering  <jim@meyering.net>
32064             Bruno Haible  <bruno@clisp.org>
32065
32066         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32067         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32068         Prompted by an exchange with Gilles Espinasse.
32069
32070 2010-04-26  Jim Meyering  <meyering@redhat.com>
32071
32072         git-version-gen: aesthetic tweak
32073         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32074         so that the command remains on a single line.
32075
32076 2010-04-26  Eric Blake  <eblake@redhat.com>
32077
32078         git-version-gen: allow use on EBCDIC hosts
32079         * build-aux/git-version-gen (dirty): Use literal rather than tying
32080         ourselves to ascii.
32081         Reported by Steve Goetze.
32082
32083 2010-04-25  Bruno Haible  <bruno@clisp.org>
32084
32085         netdb: Add support for GNULIB_POSIXCHECK.
32086         * lib/netdb.in.h: Include warn-on-use.h.
32087         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32088         functions are used when GNULIB_POSIXCHECK is defined and the
32089         getaddrinfo module is not in use.
32090         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32091         freeaddrinfo, gai_strerror, getnameinfo are declared.
32092         * modules/netdb (Depends-on): Add warn-on-use.
32093         (Makefile.am): Include warn-on-use.h in netdb.h.
32094
32095 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32096
32097         build: avoid "make check" failure without .git/ directory
32098         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32099         there is no .git/ directory.
32100
32101 2010-04-25  Bruno Haible  <bruno@clisp.org>
32102
32103         ptsname: Fix misuse of ttyname_r.
32104         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32105         of errno.
32106
32107 2010-04-25  Bruno Haible  <bruno@clisp.org>
32108
32109         ttyname_r: Make it work on Solaris 10.
32110         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32111         if the system function has the POSIX declaration. Test whether the
32112         function fails if the buffer is less than 128 bytes large.
32113         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32114         system's ttyname_r function. Provide a reasonably large buffer.
32115         * modules/ttyname_r (Depends-on): Add extensions.
32116         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32117
32118 2010-04-25  Bruno Haible  <bruno@clisp.org>
32119
32120         Use the 'extensions' module for some more functions on Solaris.
32121         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32122         module.
32123         * doc/posix-functions/ctime_r.texi: Likewise.
32124         * doc/posix-functions/getgrgid_r.texi: Likewise.
32125         * doc/posix-functions/getgrnam_r.texi: Likewise.
32126         * doc/posix-functions/getpwnam_r.texi: Likewise.
32127         * doc/posix-functions/getpwuid_r.texi: Likewise.
32128         * doc/posix-functions/readdir_r.texi: Likewise.
32129         * doc/posix-functions/sigwait.texi: Likewise.
32130         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32131         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32132
32133 2010-04-25  Bruno Haible  <bruno@clisp.org>
32134
32135         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32136         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32137         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32138         * lib/ttyname_r.c: Include <limits.h>.
32139         (ttyname_r): Define using the system's ttyname_r function, if it exists
32140         and not on Solaris.
32141         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32142         set.
32143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32144         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32145         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32146         Reported by Simon Josefsson.
32147
32148 2010-04-25  Bruno Haible  <bruno@clisp.org>
32149
32150         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32151         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32152         * doc/posix-functions/ctime_r.texi: Likewise.
32153         * doc/posix-functions/getgrgid_r.texi: Likewise.
32154         * doc/posix-functions/getgrnam_r.texi: Likewise.
32155         * doc/posix-functions/getlogin_r.texi: Likewise.
32156         * doc/posix-functions/getpwnam_r.texi: Likewise.
32157         * doc/posix-functions/getpwuid_r.texi: Likewise.
32158         * doc/posix-functions/readdir_r.texi: Likewise.
32159         * doc/posix-functions/sigwait.texi: Likewise.
32160         * doc/posix-functions/ttyname_r.texi: Likewise.
32161         Reported by Simon Josefsson.
32162
32163 2010-04-25  Bruno Haible  <bruno@clisp.org>
32164
32165         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32166         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32167         also to --create-testdir.
32168         (func_acceptable): Don't consider the status of *-tests modules here.
32169         (func_modules_transitive_closure): Consider it here, before including a
32170         test module.
32171         (func_import, func_create_testdir): Set inc_all_direct_tests,
32172         inc_all_indirect_tests.
32173         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32174         --create-testdir and --create-megatestdir.
32175
32176 2010-04-25  Bruno Haible  <bruno@clisp.org>
32177
32178         gnulib-tool: Add --without-*-tests options.
32179         * gnulib-tool (func_usage): Document the --without-*-tests options.
32180         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32181         excl_unportable_tests): New variables.
32182         Fail if they are specified with --import or --update.
32183         (func_acceptable): Respect the excl_*_tests variables.
32184         (func_import): Set the excl_*_tests variables to empty.
32185
32186 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32187             Bruno Haible  <bruno@clisp.org>
32188
32189         Work around a MacOS X 10.4 bug with openpty.
32190         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32191         * tests/test-openpty.c (main): Close the master side explicitly.
32192
32193 2010-04-25  Bruno Haible  <bruno@clisp.org>
32194
32195         strnlen: Fix a C++ test error on MacOS X and Solaris.
32196         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32197         the function is not declared.
32198         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32199         Simon Josefsson.
32200
32201 2010-04-24  Bruno Haible  <bruno@clisp.org>
32202
32203         Avoid a gcc warning.
32204         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32205         of correct type for %08lx directive.
32206         Reported by Eric Blake.
32207
32208 2010-04-24  Bruno Haible  <bruno@clisp.org>
32209
32210         vasnprintf: Correct errno value in case of out-of-memory.
32211         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32212         or sprintf. Use the errno value from SNPRINTF or sprintf.
32213         Reported by Ian Beckwith <ianb@erislabs.net>.
32214
32215 2010-04-24  Bruno Haible  <bruno@clisp.org>
32216
32217         ansi-c++-opt: Find correct compiler when cross-compiling.
32218         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32219         AC_CHECK_PROGS.
32220         Reported by Simon Josefsson.
32221
32222 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32223
32224         vc-list-files: Add support for subversion
32225         * build-aux/vc-list-files: Use "svn list" to generate the list of
32226         files controlled by subversion.
32227
32228 2010-04-23  Jim Meyering  <meyering@redhat.com>
32229
32230         vc-list-files tests: convert to use init.sh
32231         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32232         path_prepend_.
32233         Use Exit, not exit.
32234         Use skip_ rather than open coding it.
32235         Remove trap set-up and compare definitions.
32236         * tests/test-vc-list-files-git.sh: Likewise.
32237         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32238
32239 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32240
32241         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32242         backup files.
32243
32244 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32245
32246         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32247
32248 2010-04-20  Eric Blake  <eblake@redhat.com>
32249
32250         tests: be robust to ignored SIGPIPE
32251         * tests/test-select-in.sh: Consume all output.
32252         * tests/test-lseek.sh: Check correct exit status, while avoiding
32253         EPIPE.
32254
32255 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32256             Bruno Haible  <bruno@clisp.org>
32257
32258         visibility: Don't use -fvisibility if it leads to a warning.
32259         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32260         yes, don't pretend that visibility works if it leads to a warning.
32261         Reported by Mike Gran <spk121@yahoo.com>.
32262
32263 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32264
32265         * build-aux/bootstrap: Use "git -h" for testing for supported options
32266         instead of "git --help".  The short-form option only shows a summary,
32267         and doesn't layout the full man page.  Grep for the full option name
32268         in the summary, too.
32269
32270 2010-04-19  Bruno Haible  <bruno@clisp.org>
32271
32272         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32273         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32274         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32275         mention of RELOCATABLE_STRIP.
32276         Reported by Sylvain Beucler <beuc@beuc.net>.
32277
32278 2010-04-19  Bruno Haible  <bruno@clisp.org>
32279
32280         * lib/diffseq.h: Fix typo in comment.
32281         Reported by Eric Blake.
32282
32283 2010-04-19  Bruno Haible  <bruno@clisp.org>
32284
32285         ioctl: Move autoconf macro to a .m4 file.
32286         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32287         * modules/ioctl (Files): Add it.
32288         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32289         Reported by Ian Beckwith <ianb@erislabs.net>.
32290
32291 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32292             Bruno Haible  <bruno@clisp.org>
32293
32294         diffseq: Accommodate use-case with abstract arrays.
32295         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32296         is not defined.
32297         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32298         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32299
32300 2010-04-18  Bruno Haible  <bruno@clisp.org>
32301
32302         * doc/posix-headers/stdbool.texi: More precise wording.
32303
32304 2010-04-17  Jim Meyering  <meyering@redhat.com>
32305
32306         maint.mk: use gnu-style indentation in an embedded perl script
32307         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32308         Rename variable: s/two/last_two_bytes/
32309
32310 2010-04-16  Eric Blake  <eblake@redhat.com>
32311
32312         test-stdbool: skip test that fails with Solaris CC
32313         * tests/test-stdbool.c (f): Skip test that causes compilation
32314         error under buggy C++ compiler.
32315         * lib/stdbool.in.h: Document the limitation.
32316         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32317
32318         setenv: allow compilation with C++
32319         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32320         register keyword.
32321
32322         stdint: allow test to pass with C++
32323         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32324
32325         getopt: allow compilation with C++
32326         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32327         struct.
32328         * lib/getopt.c (_getopt_internal_r): Use correct type.
32329         Reported by Dagobert Michelson, via Joel E. Denny.
32330
32331 2010-04-16  Bruno Haible  <bruno@clisp.org>
32332
32333         Override netdb.h always.
32334         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32335         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32336         Reported by Ludovic Courtès <ludo@gnu.org>.
32337
32338 2010-04-15  Bruno Haible  <bruno@clisp.org>
32339
32340         openpty: Fix mistake from 2010-03-21.
32341         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32342         Reported by Simon Josefsson.
32343
32344 2010-04-15  Eric Blake  <eblake@redhat.com>
32345
32346         test-forkpty: fix expected signature
32347         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32348         Reported by Simon Josefsson.
32349
32350 2010-04-15  Jim Meyering  <meyering@redhat.com>
32351
32352         maint.mk: texinfo_suffix_re_: correct the default regexp
32353         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32354
32355         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32356         make it configurable via texinfo_suffix_re_.
32357
32358 2010-04-14  Eric Blake  <eblake@redhat.com>
32359
32360         strtok_r: relax license to LGPLv2+
32361         * modules/strtok_r (License): Relax license.
32362         Reported by Matthias Bolte.
32363
32364 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32365
32366         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32367         version 1.4.4 by default instead of requiring the libgcrypt
32368         version used during build.  This makes it possible to use the
32369         application with older but still binary compatible libgcrypt
32370         versions.
32371
32372 2010-04-13  Eric Blake  <eblake@redhat.com>
32373
32374         getopt-gnu: match recent glibc fixes and posix ruling
32375         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32376         '+' handling, when requesting extensions.
32377         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32378         'W;' handling.
32379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32380         * doc/posix-functions/getopt.texi (getopt): Document this.
32381         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32382         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32383         Likewise.
32384
32385         getopt: merge bug fixes from glibc
32386         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32387         diagnostics.  Honor '+:' correctly.  Reject ';'.
32388
32389         getopt-posix: detect MacOS bug
32390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32391         optind when missing a required argument.
32392         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32393         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32394         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32395         Likewise.
32396
32397         getopt-posix: avoid spurious failure on Solaris
32398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32399         an indicator that setting optind=1 is sufficient for reset.
32400
32401         getopt-posix: avoid spurious failure on FreeBSD
32402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32403         in POSIX mode, since the m4 test uses it.
32404
32405         gnulib-tool: silence warning on BSD sh
32406         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32407
32408 2010-04-13  Jim Meyering  <meyering@redhat.com>
32409
32410         doc: users.txt: GNU patch now uses gnulib
32411         * users.txt: Add patch.
32412
32413 2010-04-12  Jim Meyering  <meyering@redhat.com>
32414
32415         maint.mk: generate more concise timing data for syntax-check rules
32416         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32417         " done" from each line that reports a syntax-check test duration.
32418
32419 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32420
32421         git-version-gen: use "git update-index..." rather than "git status"
32422         * build-aux/git-version-gen: Use git update-index --refresh, not
32423         "git status".  With some versions of git, "git status" would fail
32424         to update the index and result in an unwarranted "-dirty" suffix.
32425
32426 2010-04-11  Jim Meyering  <meyering@redhat.com>
32427
32428         openat: correct formatting (no semantic change)
32429         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32430         Suggested by Bruno Haible.
32431
32432 2010-04-11  Bruno Haible  <bruno@clisp.org>
32433
32434         Stricter declaration checking in testdirs.
32435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32436         If for_tests is true, augment AM_CPPFLAGS to define
32437         GNULIB_STRICT_CHECKING.
32438         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32439         GNULIB_STRICT_CHECKING is defined, verify that the function is
32440         declared.
32441
32442 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32443             Bruno Haible  <bruno@clisp.org>
32444
32445         libunistring: Improve configure output.
32446         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32447         Don't say "consider installing GNU libunistring" when checking again
32448         with libiconv.
32449
32450 2010-04-11  Bruno Haible  <bruno@clisp.org>
32451
32452         libunistring: Correct value of $LTLIBUNISTRING.
32453         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32454         correct the value of $LTLIBUNISTRING.
32455
32456 2010-04-11  Bruno Haible  <bruno@clisp.org>
32457
32458         havelib: Add static libraries to LIBS in the right order.
32459         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32460         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32461
32462 2010-04-11  Bruno Haible  <bruno@clisp.org>
32463
32464         libunistring: Detect libunistring also when it depends on libiconv.
32465         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32466         the second AC_LIB_HAVE_LINKFLAGS invocation.
32467
32468 2010-04-11  James Youngman  <jay@gnu.org>
32469
32470         close-stream: declare local scalars to be "const"
32471         * lib/close-stream.c (close_stream): Make boolean variables const
32472         to document the fact that we set but do not change them.
32473
32474 2010-04-11  Bruno Haible  <bruno@clisp.org>
32475
32476         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32477
32478 2010-04-11  Jim Meyering  <meyering@redhat.com>
32479
32480         maint.mk: don't include dist-check.mk
32481         * top/maint.mk: Remove bogus include directive.
32482
32483         maint.mk: improve empty-line-at-EOF check
32484         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32485         solution, rather than tail+Perl-based one.  The latter would read
32486         a few kilobytes from the end of each file, and did not handle empty
32487         files properly.
32488
32489         maint.mk: print the elapsed time for each syntax-check rule
32490         * top/maint.mk (sc_m_rules_): Save start time in a file.
32491         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32492         (local-check): Interpose the .z rules
32493
32494 2010-04-11  Jim Meyering  <meyering@redhat.com>
32495
32496         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32497         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32498         empty file with one that ends in an empty line.
32499
32500 2010-04-10  Bruno Haible  <bruno@clisp.org>
32501
32502         mkdir: Make it work on mingw64.
32503         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32504         * lib/mkdir.c: Update comment.
32505         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
32506
32507 2010-04-10  Bruno Haible  <bruno@clisp.org>
32508
32509         Don't override improved macro from newer autoconf.
32510         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32511         autoconf >= 2.62.
32512         Reported by Joel E. Denny <jdenny@clemson.edu>.
32513
32514 2010-04-10  Jim Meyering  <meyering@redhat.com>
32515
32516         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32517         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32518
32519         maint.mk: correct a diagnostic
32520         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32521         in diagnostic; now use $prohibit.
32522
32523 2010-04-10  Bruno Haible  <address@hidden>
32524
32525         fchownat: Fix a C++ test error on Solaris 8.
32526         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32527         the function does not exist.
32528
32529 2010-04-10  Bruno Haible  <bruno@clisp.org>
32530
32531         vasnprintf: Add more tests.
32532         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32533         (test_function): Test converting an invalid wide string.
32534
32535         vasnprintf: Correct handling of unconvertible wide string arguments.
32536         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32537         VASNPRINTF.
32538         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32539         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32540         smaller than the expected maximum need for the directive. Set errno to
32541         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32542         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32544         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32545         * modules/vasnprintf (Files): Add m4/printf.m4.
32546         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32547
32548 2010-04-10  Bruno Haible  <bruno@clisp.org>
32549
32550         vasnprintf: Fix crash in %ls directive.
32551         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32552         string is passed as argument to %ls, with no precision and no width.
32553         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32554
32555 2010-04-10  Bruno Haible  <bruno@clisp.org>
32556
32557         vasnprintf: Fix multiple test failures on mingw.
32558         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32559         _snprintf, or snwprintf, not _snwprintf.
32560
32561 2010-04-10  Bruno Haible  <bruno@clisp.org>
32562
32563         write: Fix a C++ test error on mingw.
32564         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32565
32566 2010-04-10  Bruno Haible  <bruno@clisp.org>
32567
32568         vasnprintf test: Reduce code duplication.
32569         * tests/test-vasnprintf.c (test_function): New function, extracted from
32570         test_vasnprintf.
32571         (test_vasnprintf, test_asnprintf): Invoke it.
32572
32573 2010-04-10  Bruno Haible  <bruno@clisp.org>
32574
32575         strnlen: Fix warning in C++ mode on MacOS X.
32576         * lib/string.in.h (strnlen): Use the modern idiom.
32577         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32578         defining strnlen as a macro already in <config.h>.
32579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32580         REPLACE_STRNLEN.
32581         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32582         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32583
32584 2010-04-08  James Youngman  <jay@gnu.org>
32585
32586         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32587         the example.
32588
32589 2010-04-09  Jim Meyering  <meyering@redhat.com>
32590
32591         maint.mk: print better diagnostic when there is no $(_hv_file)
32592         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32593         announce that when $(_hv_file) (aka help-version) does not exist.
32594
32595         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32596         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32597         not try to interpret its random input bytes.  Jarno Rajahalme reported
32598         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32599         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32600         (mktempd_): Likewise, just in case.
32601
32602         ftruncate: add two years to projected module removal date: 2012
32603         * m4/ftruncate.m4: Adjust comments.
32604
32605         ftruncate: mark module as obsolete; even MinGW provides it, now
32606         * modules/ftruncate (Status): Obsolete.
32607         (Notice): Say that.
32608         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32609         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32610
32611 2010-04-08  Bruno Haible  <bruno@clisp.org>
32612
32613         Fix side effects from tests-related modules.
32614         * modules/dprintf-posix (Comment): New section.
32615         * modules/fprintf-posix (Comment): Likewise.
32616         * modules/obstack-printf-posix (Comment): Likewise.
32617         * modules/printf-posix (Comment): Likewise.
32618         * modules/snprintf-posix (Comment): Likewise.
32619         * modules/sprintf-posix (Comment): Likewise.
32620         * modules/vasnprintf-posix (Comment): Likewise.
32621         * modules/vasprintf-posix (Comment): Likewise.
32622         * modules/vdprintf-posix (Comment): Likewise.
32623         * modules/vfprintf-posix (Comment): Likewise.
32624         * modules/vprintf-posix (Comment): Likewise.
32625         * modules/vsnprintf-posix (Comment): Likewise.
32626         * modules/vsprintf-posix (Comment): Likewise.
32627         * modules/xprintf-posix (Comment): Likewise.
32628         * modules/xvasprintf-posix (Comment): Likewise.
32629         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32630         * modules/floorf-tests (Depends-on): Likewise.
32631         * modules/round-tests (Depends-on): Likewise.
32632         * modules/roundf-tests (Depends-on): Likewise.
32633         * modules/trunc-tests (Depends-on): Likewise.
32634         * modules/truncf-tests (Depends-on): Likewise.
32635         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32636         'fprintf-posix' module is not present.
32637         * tests/test-floorf2.c (check): Likewise.
32638         * tests/test-trunc2.c (check): Likewise.
32639         * tests/test-truncf2.c (check): Likewise.
32640         * tests/test-round2.c (equal): Likewise.
32641         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32642
32643 2010-04-07  Karl Berry  <karl@gnu.org>
32644
32645         * config/srclist.txt,
32646         * config/srclistvars.sh,
32647         * config/srclist-update: doc fixes.
32648
32649 2010-04-07  Jim Meyering  <meyering@redhat.com>
32650
32651         maint.mk: add a PATH crosschecking syntax-check rule
32652         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32653         Useful if you use a test like the one in help-version (coreutils,
32654         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32655         printed by prog --version.
32656
32657 2010-04-06  Bruno Haible  <bruno@clisp.org>
32658
32659         Fix link error on mingw.
32660         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32661         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32662
32663 2010-04-06  Bruno Haible  <bruno@clisp.org>
32664
32665         Assume rmdir exists.
32666         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32667
32668 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32669
32670         doc: update users.txt
32671         * users.txt: Add gcal.
32672
32673 2010-04-06  Jim Meyering  <meyering@redhat.com>
32674
32675         init.sh: simply unset TMPDIR rather than risking env -i
32676         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32677         although it probably works fine on all Unix-based systems, some
32678         systems (Cygwin?) cannot tolerate a totally cleared environment.
32679         Suggestion from Eric Blake.
32680
32681 2010-04-06  Jim Meyering  <meyering@redhat.com>
32682
32683         init.sh: portability fix: use env's POSIX-specified -i option not -u
32684         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32685         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32686
32687 2010-04-05  Bruno Haible  <bruno@clisp.org>
32688
32689         btowc: Work around Cygwin 1.7.2 bug.
32690         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32691         does not map NUL to 0.
32692         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32693
32694 2010-04-05  Bruno Haible  <bruno@clisp.org>
32695
32696         Make the multithread modules work on Cygwin 1.7.2.
32697         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32698         imported symbols can be declared weak, so that it returns "no" on
32699         Cygwin 1.7.2.
32700
32701 2010-04-05  Bruno Haible  <bruno@clisp.org>
32702
32703         Use the module 'strncat'.
32704         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32705
32706         Tests for module 'strncat'.
32707         * modules/strncat-tests: New file.
32708         * tests/test-strncat.c: New file.
32709
32710         New module 'strncat'.
32711         * lib/string.in.h (strncat): New declaration.
32712         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32713         * m4/strncat.m4: New file, based on m4/memchr.m4.
32714         * modules/strncat: New file.
32715         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32716         is declared.
32717         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32718         REPLACE_STRNCAT.
32719         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32720         REPLACE_STRNCAT.
32721         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32722         module.
32723         * tests/test-string-c++.cc: Check signature of strncat.
32724
32725 2010-04-05  Jim Meyering  <meyering@redhat.com>
32726
32727         xstrtoumax-tests: convert to use init.sh
32728         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32729         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32730         Use Exit, not exit.
32731         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32732
32733         xstrtoimax-tests: convert to use init.sh
32734         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32735         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32736         Use Exit, not exit.
32737         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32738
32739 2010-04-05  Bruno Haible  <bruno@clisp.org>
32740
32741         sys_socket: Avoid #define replacements in C++ mode.
32742         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32743         warning to the function if possible, rather than #defining the symbol
32744         to a dysfunctional alias.
32745
32746 2010-04-05  Bruno Haible  <bruno@clisp.org>
32747
32748         fseeko: Fix C++ test error on mingw.
32749         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32750         gl_FUNC_FSEEKO.
32751         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32752         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32753         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32754         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32755
32756 2010-04-05  Bruno Haible  <bruno@clisp.org>
32757
32758         duplocale: Improve test output.
32759         * tests/test-duplocale.c (main): Print reason for skipped test.
32760
32761 2010-04-05  Bruno Haible  <bruno@clisp.org>
32762
32763         Assume rmdir exists.
32764         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32765         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32766
32767 2010-04-05  Bruno Haible  <bruno@clisp.org>
32768
32769         Fix link error on Solaris 8 with cc.
32770         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32771
32772 2010-04-05  Bruno Haible  <bruno@clisp.org>
32773
32774         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32775         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32776
32777 2010-04-05  Bruno Haible  <bruno@clisp.org>
32778
32779         vasprintf: Update documentation.
32780         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32781
32782 2010-04-05  Bruno Haible  <bruno@clisp.org>
32783
32784         ptsname: Improve test.
32785         * tests/test-ptsname.c (main): Also try the various master names of BSD
32786         systems.
32787
32788 2010-04-05  Bruno Haible  <bruno@clisp.org>
32789
32790         memchr: Avoid a possible C++ test error.
32791         * lib/string.in.h (memchr): Provide declaration if function is missing.
32792         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32793         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32795         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32796
32797 2010-04-05  Bruno Haible  <bruno@clisp.org>
32798
32799         strtok_r: Improve idiom.
32800         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32801         AC_LIBOBJ is used.
32802
32803 2010-04-05  Bruno Haible  <bruno@clisp.org>
32804
32805         strdup: Improve idiom.
32806         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32807         AC_LIBOBJ is used.
32808         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32809         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32810         when AC_LIBOBJ is used.
32811
32812 2010-04-05  Bruno Haible  <bruno@clisp.org>
32813
32814         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32815         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32816         don't set REPLACE_MBSINIT to 1.
32817         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32818         don't set REPLACE_MBRTOWC to 1.
32819         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32820         exist, don't set REPLACE_MBSRTOWCS to 1.
32821         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32822         exist, don't set REPLACE_MBSNRTOWCS to 1.
32823         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32824         don't set REPLACE_WCRTOMB to 1.
32825         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32826         exist, don't set REPLACE_WCSRTOMBS to 1.
32827         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32828         exist, don't set REPLACE_WCSNRTOMBS to 1.
32829
32830 2010-04-05  Bruno Haible  <bruno@clisp.org>
32831
32832         ldexpl: Improve idiom.
32833         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32834         make sure to set HAVE_DECL_LDEXPL to 0.
32835
32836 2010-04-05  Jim Meyering  <meyering@redhat.com>
32837
32838         xstrtol-tests: convert to use init.sh
32839         * modules/xstrtol-tests (Files): Add tests/init.sh.
32840         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32841         Use Exit, not exit.
32842         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32843
32844         atexit-tests: convert to use init.sh
32845         * modules/atexit-tests (Files): Add tests/init.sh.
32846         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32847         Use Exit, not exit.
32848         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32849
32850         init.sh: fix typo
32851         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
32852
32853         init.sh: make it easier for a test script to write to the tty, ...
32854         when using automake's parallel-tests mode.
32855         * tests/init.sh (stderr_fileno_): Define overridable variable.
32856         (warn_): New function, to use it.
32857         (fail_, skip_, framework_failure_): Use warn_.
32858
32859 2010-04-04  Bruno Haible  <bruno@clisp.org>
32860
32861         btowc: Avoid warning.
32862         * lib/btowc.c: Include <stdlib.h>.
32863         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
32864
32865 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32866             Bruno Haible  <bruno@clisp.org>
32867
32868         wchar: Port to NetBSD 1.5.
32869         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
32870         * lib/wctype.in.h (WEOF): Likewise.
32871
32872 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32873             Bruno Haible  <bruno@clisp.org>
32874
32875         Port extended stdio to NetBSD 1.5.
32876         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
32877         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
32878         older.
32879
32880 2010-04-04  Bruno Haible  <bruno@clisp.org>
32881
32882         string: Remove unused substitution.
32883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32884         HAVE_DECL_STRERROR.
32885         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
32886
32887 2010-04-04  Bruno Haible  <bruno@clisp.org>
32888
32889         strtod: Avoid a possible C++ test error.
32890         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
32891         set REPLACE_STRTOD.
32892
32893 2010-04-04  Bruno Haible  <bruno@clisp.org>
32894
32895         strerror: Update documentation.
32896         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
32897
32898 2010-04-04  Bruno Haible  <bruno@clisp.org>
32899
32900         stdio: Fix some C++ test errors on Solaris 8 with GCC.
32901         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
32902         _GL_CXXALIAS_SYS_CAST.
32903
32904 2010-04-04  Bruno Haible  <bruno@clisp.org>
32905
32906         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32907         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
32908         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
32909         REPLACE_FREXPL to 1.
32910         * doc/posix-functions/frexpl.texi: Update documentation.
32911
32912 2010-04-04  Bruno Haible  <bruno@clisp.org>
32913
32914         math: Fix some C++ test errors on Solaris 8 and Cygwin.
32915         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
32916
32917 2010-04-04  Bruno Haible  <bruno@clisp.org>
32918
32919         Implement nanosleep for native Windows.
32920         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
32921
32922 2010-04-04  Bruno Haible  <bruno@clisp.org>
32923
32924         math: Fix some C++ test errors on Solaris 8.
32925         * lib/math.in.h (truncf, trunc): Use simpler idiom.
32926
32927 2010-04-04  Bruno Haible  <bruno@clisp.org>
32928
32929         math: Fix some C++ test errors on Cygwin.
32930         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
32931         truncl): Provide declaration if the system does not have it.
32932         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
32933         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
32934         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
32935         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
32936         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
32937         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
32938         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
32939         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
32940         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
32941         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
32942         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
32943         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
32944         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
32945         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
32946         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
32947         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
32948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
32949         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32950         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32951         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
32952         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32953         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32954
32955 2010-04-04  Bruno Haible  <bruno@clisp.org>
32956
32957         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
32958         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32959         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32960         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32961         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32962         * m4/isinf.m4 (gl_ISINF): Likewise.
32963         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32964
32965 2010-04-04  Bruno Haible  <bruno@clisp.org>
32966
32967         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
32968         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32969
32970 2010-04-04  Bruno Haible  <bruno@clisp.org>
32971
32972         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
32973         * modules/tmpfile (configure.ac): Update.
32974
32975         tmpfile: Fix C++ test error on mingw.
32976         * lib/stdio.in.h (tmpfile): New declaration.
32977         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32978         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32979         * modules/tmpfile (Depends-on): Add stdio.
32980         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32981         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32982         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32983         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32984         REPLACE_TMPFILE.
32985         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32986
32987 2010-04-04  Bruno Haible  <bruno@clisp.org>
32988
32989         ioctl: Fix C++ test error on mingw.
32990         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32991         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32992         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32993
32994 2010-04-03  Bruno Haible  <bruno@clisp.org>
32995
32996         wcwidth: Fix C++ test error on mingw.
32997         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32999         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33000
33001 2010-04-03  Bruno Haible  <bruno@clisp.org>
33002
33003         nanosleep: Fix C++ test error on mingw.
33004         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33005         * lib/time.in.h (nanosleep): Use modern idiom.
33006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33007         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33008         REPLACE_NANOSLEEP to 1.
33009         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33010         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33011
33012 2010-04-03  Bruno Haible  <bruno@clisp.org>
33013
33014         strptime: Fix C++ test error on mingw.
33015         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33016         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33017         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33018         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33019         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33020         not REPLACE_STRPTIME.
33021         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33022         REPLACE_STRPTIME.
33023
33024 2010-04-03  Bruno Haible  <bruno@clisp.org>
33025
33026         timegm: Fix C++ test error on mingw.
33027         * lib/time.in.h (timegm): Use modern idiom.
33028         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33029         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33030         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33031         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33032
33033 2010-04-03  Bruno Haible  <bruno@clisp.org>
33034
33035         timegm: Assume declaration if function exists.
33036         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33037         if it exists. Don't clobber ac_cv_func_timegm.
33038
33039 2010-04-03  Bruno Haible  <bruno@clisp.org>
33040
33041         time_r: Fix C++ test error on mingw.
33042         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33043         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33044         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33045         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33046         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33047
33048 2010-04-03  Bruno Haible  <bruno@clisp.org>
33049
33050         time_r: Minor updates.
33051         * modules/time_r (Description): Mention the provided functions.
33052         * lib/time_r.c: Don't include <string.h>.
33053         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33054         * doc/posix-functions/localtime_r.texi: Likewise.
33055
33056 2010-04-03  Bruno Haible  <bruno@clisp.org>
33057
33058         time: Fix regression introduced on 2010-03-08.
33059         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33060         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33061
33062 2010-04-03  Jim Meyering  <meyering@redhat.com>
33063
33064         maint.mk: don't silently disable project-specific syntax-check rules
33065         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33066         that they need to convert their project-specific syntax-check rules
33067         to use the new _sc_search_regexp.
33068
33069 2010-04-03  Bruno Haible  <bruno@clisp.org>
33070
33071         fchdir: Fix regression introduced on 2010-03-08.
33072         * lib/unistd.in.h (fchdir): Fix declaration.
33073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33075         REPLACE_FCHDIR.
33076         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33077         REPLACE_FCHDIR.
33078
33079 2010-04-03  Bruno Haible  <bruno@clisp.org>
33080
33081         getpagesize: Fix C++ test error on mingw.
33082         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33083         system does not declare the function.
33084         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33085         declared.
33086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33087         HAVE_DECL_GETPAGESIZE.
33088         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33089
33090 2010-04-03  Bruno Haible  <bruno@clisp.org>
33091
33092         stdio: Make C++ tests work on mingw.
33093         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33094         does not declare the function.
33095
33096 2010-04-03  Bruno Haible  <bruno@clisp.org>
33097
33098         ftello: Fix C++ test error on mingw.
33099         * lib/stdio.in.h (ftello): Use modern idiom.
33100         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33101         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33102         is missing and that it needs to be replaced.
33103         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33105         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33106
33107 2010-04-03  Bruno Haible  <bruno@clisp.org>
33108
33109         fseeko: Fix C++ test error on mingw.
33110         * lib/stdio.in.h (fseeko): Use modern idiom.
33111         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33112         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33113         is missing and that it needs to be replaced.
33114         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33116         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33117
33118 2010-04-03  Bruno Haible  <bruno@clisp.org>
33119
33120         mkstemp: Fix C++ test error on mingw.
33121         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33122         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33123         function is missing and that it needs to be replaced.
33124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33125         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33126
33127 2010-04-03  Bruno Haible  <bruno@clisp.org>
33128
33129         stpncpy: Fix C++ test error on mingw.
33130         * lib/string.in.h (stpncpy): Use modern idiom.
33131         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33132         function is missing and that it needs to be replaced.
33133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33134         REPLACE_STPNCPY.
33135         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33136
33137 2010-04-03  Bruno Haible  <bruno@clisp.org>
33138
33139         sys_stat: Fix C++ test error on mingw.
33140         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33141         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33142
33143 2010-04-03  Bruno Haible  <bruno@clisp.org>
33144
33145         pty: Update doc.
33146         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33147
33148 2010-04-03  Bruno Haible  <bruno@clisp.org>
33149
33150         unistd: Fix C++ test error on mingw.
33151         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33152
33153 2010-04-03  Bruno Haible  <bruno@clisp.org>
33154
33155         Update doc regarding mingw.
33156         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33157         * doc/glibc-functions/login_tty.texi: Likewise.
33158         * doc/glibc-functions/forkpty.texi: Likewise.
33159
33160 2010-04-03  Bruno Haible  <bruno@clisp.org>
33161
33162         stdlib: Avoid compilation failure of c-strtold on mingw.
33163         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33164
33165 2010-04-03  Bruno Haible  <bruno@clisp.org>
33166
33167         locale: Make C++ tests work on Cygwin and mingw.
33168         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33169         cannot provide the function.
33170         Reported by Simon Josefsson.
33171
33172 2010-04-03  Bruno Haible  <bruno@clisp.org>
33173
33174         localename: Port to MacOS X 10.6.
33175         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33176         memory layout of the locales in MacOS X 10.6 as well.
33177         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33178
33179 2010-04-02  Bruno Haible  <bruno@clisp.org>
33180
33181         gnulib-tool: Ensure that long-running tests are executed last.
33182         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33183         running tests after the one for the other tests.
33184
33185 2010-04-02  Bruno Haible  <bruno@clisp.org>
33186
33187         gnulib-tool: Ensure the tests in the main directory are executed first.
33188         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33189         start with the current directory.
33190
33191 2010-04-02  Bruno Haible  <bruno@clisp.org>
33192
33193         Tests for module 'havelib', moved here from GNU gettext.
33194         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33195         modifications.
33196         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33197         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33198         with modifications.
33199         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33200         modifications.
33201         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33202         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33203         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33204         with modifications.
33205         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33206         with modifications.
33207         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33208         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33209         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33210         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33211         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33212         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33213         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33214         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33215         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33216         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33217         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33218         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33219         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33220         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33221         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33222         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33223         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33224         with modifications.
33225         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33226         with modifications.
33227         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33228         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33229         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33230         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33231         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33232         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33233         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33234         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33235         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33236         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33237         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33238         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33239         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33240         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33241         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33242         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33243         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33244         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33245         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33246         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33247         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33248         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33249         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33250         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33251         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33252         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33253         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33254         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33255         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33256         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33257         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33258         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33259         * tests/havelib/rpathx/rpathx.c: New file, from
33260         gettext/autoconf-lib-link.
33261         * tests/havelib/rpathx/Makefile.am: New file, from
33262         gettext/autoconf-lib-link.
33263         * tests/havelib/rpathx/configure.ac: New file, from
33264         gettext/autoconf-lib-link with modifications.
33265         * tests/havelib/rpathy/rpathy.c: New file, from
33266         gettext/autoconf-lib-link.
33267         * tests/havelib/rpathy/Makefile.am: New file, from
33268         gettext/autoconf-lib-link.
33269         * tests/havelib/rpathy/configure.ac: New file, from
33270         gettext/autoconf-lib-link with modifications.
33271         * tests/havelib/rpathz/rpathz.c: New file, from
33272         gettext/autoconf-lib-link.
33273         * tests/havelib/rpathz/Makefile.am: New file, from
33274         gettext/autoconf-lib-link.
33275         * tests/havelib/rpathz/configure.ac: New file, from
33276         gettext/autoconf-lib-link with modifications.
33277         * tests/havelib/rpathlx/usex.c: New file, from
33278         gettext/autoconf-lib-link.
33279         * tests/havelib/rpathlx/Makefile.am: New file, from
33280         gettext/autoconf-lib-link.
33281         * tests/havelib/rpathlx/configure.ac: New file, from
33282         gettext/autoconf-lib-link with modifications.
33283         * tests/havelib/rpathly/usey.c: New file, from
33284         gettext/autoconf-lib-link.
33285         * tests/havelib/rpathly/Makefile.am: New file, from
33286         gettext/autoconf-lib-link.
33287         * tests/havelib/rpathly/configure.ac: New file, from
33288         gettext/autoconf-lib-link with modifications.
33289         * tests/havelib/rpathlz/usez.c: New file, from
33290         gettext/autoconf-lib-link.
33291         * tests/havelib/rpathlz/Makefile.am: New file, from
33292         gettext/autoconf-lib-link.
33293         * tests/havelib/rpathlz/configure.ac: New file, from
33294         gettext/autoconf-lib-link with modifications.
33295         * tests/havelib/rpathlyx/usey.c: New file, from
33296         gettext/autoconf-lib-link.
33297         * tests/havelib/rpathlyx/Makefile.am: New file, from
33298         gettext/autoconf-lib-link.
33299         * tests/havelib/rpathlyx/configure.ac: New file, from
33300         gettext/autoconf-lib-link with modifications.
33301         * tests/havelib/rpathlzyx/usez.c: New file, from
33302         gettext/autoconf-lib-link.
33303         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33304         gettext/autoconf-lib-link.
33305         * tests/havelib/rpathlzyx/configure.ac: New file, from
33306         gettext/autoconf-lib-link with modifications.
33307         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33308         with modifications.
33309
33310 2010-04-02  Bruno Haible  <bruno@clisp.org>
33311
33312         gnulib-tool: Create distributed built sources also for the tests.
33313         * gnulib-tool (func_create_testdir): Also generate distributed built
33314         sources in the tests directory.
33315
33316 2010-04-02  Bruno Haible  <bruno@clisp.org>
33317
33318         gnulib-tool: Obey user's environment variables.
33319         * gnulib-tool (func_create_testdir): When creating built sources,
33320         respect the environment variables for autoconf, automake, etc. given by
33321         the user.
33322
33323 2010-04-02  Bruno Haible  <bruno@clisp.org>
33324
33325         gnulib-tool: Provide the value of --m4-base to modules.
33326         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33327         of gl_m4_base.
33328
33329 2010-04-02  Eric Blake  <eblake@redhat.com>
33330
33331         maint.mk: fix some fallout
33332         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33333         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33334
33335 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33336
33337         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33338         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33339         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33340         (sc_cast_of_x_alloc_return_value): Likewise.
33341         (sc_cast_of_alloca_return_value): Likewise.
33342         (sc_space_tab): Likewise.
33343         (sc_prohibit_atoi_atof): Likewise.
33344         (sc_prohibit_magic_number_exit): Likewise.
33345         (sc_error_exit_success): Likewise.
33346         (sc_file_system): Likewise.
33347         (sc_prohibit_have_config_h): Likewise.
33348         (sc_require_config_h): Likewise.
33349         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33350         (sc_obsolete_symbols): Likewise.
33351         (sc_changelog): Likewise.
33352         (sc_program_name): Likewise.
33353         (sc_the_the): Likewise.
33354         (sc_trailing_blank): Likewise.
33355         (sc_two_space_separator_in_usage): Likewise.
33356         (sc_useless_cpp_parens): Likewise.
33357         (sc_GPL_version): Likewise.
33358         (sc_GFDL_version): Likewise.
33359         (sc_texinfo_acronym): Likewise.
33360         (sc_prohibit_cvs_keyword): Likewise.
33361         (sc_prohibit_stat_st_blocks): Likewise.
33362         (sc_prohibit_S_IS_definition): Likewise.
33363         (sc_redundant_const): Likewise.
33364         (sc_makefile_TAB_only_indentation): Likewise.
33365         (sc_m4_quote_check): Likewise.
33366         (sc_makefile_path_separator_check): Likewise.
33367         (sc_copyright_check): Likewise.
33368         (sc_Wundef_boolean): Likewise.
33369         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33370
33371         maint.mk: match 0 or more whitespace-before-function-call '('
33372         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33373         that have zero or two-and-more spaces between the function name
33374         and the open parenthesis.
33375         (sc_error_message_warn_fatal): Likewise.
33376         (sc_error_message_uppercase): Likewise.
33377         (sc_error_message_period): Likewise.
33378
33379 2010-03-31  Eric Blake  <eblake@redhat.com>
33380
33381         maint.mk: check for [ as well as test
33382         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33383         Based on a libvirt report by Matthias Bolte.
33384
33385         gnumakefile: don't squelch _version output
33386         * top/GNUmakefile (_version): Create one-shot dependency rather
33387         than using $(shell) when version must be regenerated.
33388         (_autoreconf): Run verbosely, by default.
33389
33390         sys_time: avoid compiler warnings
33391         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33392         unconditional, fixing regression from 2010-03-29.
33393         Reported by Simon Josefsson.
33394
33395 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33396
33397         maint.mk: s/_header_without_use/_sc_header_without_use/
33398         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33399         (sc_prohibit_assert_without_use): Use the new name.
33400         (sc_prohibit_close_stream_without_use): Likewise.
33401         (sc_prohibit_getopt_without_use): Likewise.
33402         (sc_prohibit_quotearg_without_use): Likewise.
33403         (sc_prohibit_quote_without_use): Likewise.
33404         (sc_prohibit_long_options_without_use): Likewise.
33405         (sc_prohibit_inttostr_without_use): Likewise.
33406         (sc_prohibit_ignore_value_without_use): Likewise.
33407         (sc_prohibit_error_without_use): Likewise.
33408         (sc_prohibit_xalloc_without_use): Likewise.
33409         (sc_prohibit_hash_without_use): Likewise.
33410         (sc_prohibit_hash_pjw_without_use): Likewise.
33411         (sc_prohibit_safe_read_without_use): Likewise.
33412         (sc_prohibit_argmatch_without_use): Likewise.
33413         (sc_prohibit_canonicalize_without_use): Likewise.
33414         (sc_prohibit_root_dev_ino_without_use): Likewise.
33415         (sc_prohibit_openat_without_use): Likewise.
33416         (sc_prohibit_c_ctype_without_use): Likewise.
33417         (sc_prohibit_signal_without_use): Likewise.
33418         (sc_prohibit_intprops_without_use): Likewise.
33419
33420 2010-03-30  Eric Blake  <eblake@redhat.com>
33421
33422         maint: improve module indicators
33423         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33424         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33425         columns, and avoid extra macro expansion.
33426
33427         fdopendir: work around FreeBSD bug
33428         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33429         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33430         * modules/dirent (Makefile.am): Substitute it.
33431         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33432         declaration.
33433         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33434         fix.
33435         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33436
33437 2010-03-29  Bruno Haible  <bruno@clisp.org>
33438
33439         Emit #pragma system_header after the inclusion guard, not before.
33440         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33441         guard that spans the entire file, not before. This enables an
33442         optimization in GCC's preprocessor.
33443         * lib/ctype.in.h: Likewise.
33444         * lib/dirent.in.h: Likewise.
33445         * lib/errno.in.h: Likewise.
33446         * lib/float.in.h: Likewise.
33447         * lib/getopt.in.h: Likewise.
33448         * lib/iconv.in.h: Likewise.
33449         * lib/langinfo.in.h: Likewise.
33450         * lib/locale.in.h: Likewise.
33451         * lib/math.in.h: Likewise.
33452         * lib/netdb.in.h: Likewise.
33453         * lib/netinet_in.in.h: Likewise.
33454         * lib/pty.in.h: Likewise.
33455         * lib/sched.in.h: Likewise.
33456         * lib/se-selinux.in.h: Likewise.
33457         * lib/search.in.h: Likewise.
33458         * lib/spawn.in.h: Likewise.
33459         * lib/stdarg.in.h: Likewise.
33460         * lib/stdint.in.h: Likewise.
33461         * lib/string.in.h: Likewise.
33462         * lib/strings.in.h: Likewise.
33463         * lib/sys_file.in.h: Likewise.
33464         * lib/sys_ioctl.in.h: Likewise.
33465         * lib/sys_time.in.h: Likewise.
33466         * lib/sys_times.in.h: Likewise.
33467         * lib/sys_utsname.in.h: Likewise.
33468         * lib/sys_wait.in.h: Likewise.
33469         * lib/sysexits.in.h: Likewise.
33470         * lib/wctype.in.h: Likewise.
33471
33472 2010-03-28  James Youngman  <jay@gnu.org>
33473
33474         save-cwd: don't leak a file descriptor when the caller execs.
33475         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33476         saved file descriptor.
33477         * modules/save-cwd (Depends-on): Depend on cloexec.
33478
33479 2010-03-29  Bruno Haible  <bruno@clisp.org>
33480
33481         Remove vestiges of fts-lgpl module.
33482         * lib/fts_.h: Assume GNULIB_FTS is 1.
33483         * lib/fts.c: Likewise.
33484         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33485
33486 2010-03-28  Bruno Haible  <bruno@clisp.org>
33487
33488         Fix definition of tests witness macro.
33489         * gnulib-tool (func_import): Fix definition of witness macro.
33490
33491 2010-03-28  Bruno Haible  <bruno@clisp.org>
33492
33493         Fix ioctl's protoype on glibc systems.
33494         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33495         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33496         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33497         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33498         signature. If not, arrange to replace the ioctl function.
33499         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33500         REPLACE_IOCTL.
33501         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33502         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33503         Reported by Ludovic Courtès <ludo@gnu.org>.
33504
33505 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33506
33507         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33508         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33509         made it so grep -r --include=GLOB* ... did not work.
33510
33511 2010-03-26  Jim Meyering  <meyering@redhat.com>
33512             Eric Blake  <eblake@redhat.com>
33513
33514         maint.mk: prohibit use of test's -o and -a operators
33515         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33516
33517 2010-03-28  Bruno Haible  <bruno@clisp.org>
33518
33519         Remove unused GNULIB_XYZ macro definitions.
33520         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33521         invocation.
33522
33523 2010-03-28  Bruno Haible  <bruno@clisp.org>
33524
33525         Mark privileged tests modules.
33526         * modules/idpriv-drop-tests (Status): New section.
33527         * modules/idpriv-droptemp-tests (Status): New section.
33528
33529 2010-03-28  Bruno Haible  <bruno@clisp.org>
33530
33531         Split C++ tests into separate tests modules.
33532         * modules/dirent-c++-tests: New file, extracted from
33533         modules/dirent-tests.
33534         * modules/dirent-tests: Depend on it.
33535         * modules/fcntl-h-c++-tests: New file, extracted from
33536         modules/fcntl-h-tests.
33537         * modules/fcntl-h-tests: Depend on it.
33538         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33539         * modules/glob-tests: Depend on it.
33540         * modules/iconv-h-c++-tests: New file, extracted from
33541         modules/iconv-h-tests.
33542         * modules/iconv-h-tests: Depend on it.
33543         * modules/langinfo-c++-tests: New file, extracted from
33544         modules/langinfo-tests.
33545         * modules/langinfo-tests: Depend on it.
33546         * modules/locale-c++-tests: New file, extracted from
33547         modules/locale-tests.
33548         * modules/locale-tests: Depend on it.
33549         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33550         * modules/math-tests: Depend on it.
33551         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33552         * modules/pty-tests: Depend on it.
33553         * modules/search-c++-tests: New file, extracted from
33554         modules/search-tests.
33555         * modules/search-tests: Depend on it.
33556         * modules/signal-c++-tests: New file, extracted from
33557         modules/signal-tests.
33558         * modules/signal-tests: Depend on it.
33559         * modules/spawn-c++-tests: New file, extracted from
33560         modules/spawn-tests.
33561         * modules/spawn-tests: Depend on it.
33562         * modules/stdio-c++-tests: New file, extracted from
33563         modules/stdio-tests.
33564         * modules/stdio-tests: Depend on it.
33565         * modules/stdlib-c++-tests: New file, extracted from
33566         modules/stdlib-tests.
33567         * modules/stdlib-tests: Depend on it.
33568         * modules/string-c++-tests: New file, extracted from
33569         modules/string-tests.
33570         * modules/string-tests: Depend on it.
33571         * modules/sys_ioctl-c++-tests: New file, extracted from
33572         modules/sys_ioctl-tests.
33573         * modules/sys_ioctl-tests: Depend on it.
33574         * modules/sys_select-c++-tests: New file, extracted from
33575         modules/sys_select-tests.
33576         * modules/sys_select-tests: Depend on it.
33577         * modules/sys_socket-c++-tests: New file, extracted from
33578         modules/sys_socket-tests.
33579         * modules/sys_socket-tests: Depend on it.
33580         * modules/sys_stat-c++-tests: New file, extracted from
33581         modules/sys_stat-tests.
33582         * modules/sys_stat-tests: Depend on it.
33583         * modules/sys_time-c++-tests: New file, extracted from
33584         modules/sys_time-tests.
33585         * modules/sys_time-tests: Depend on it.
33586         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33587         * modules/time-tests: Depend on it.
33588         * modules/unistd-c++-tests: New file, extracted from
33589         modules/unistd-tests.
33590         * modules/unistd-tests: Depend on it.
33591         * modules/wchar-c++-tests: New file, extracted from
33592         modules/wchar-tests.
33593         * modules/wchar-tests: Depend on it.
33594         * modules/wctype-c++-tests: New file, extracted from
33595         modules/wctype-tests.
33596         * modules/wctype-tests: Depend on it.
33597         Reported by Simon Josefsson.
33598
33599 2010-03-28  Bruno Haible  <bruno@clisp.org>
33600
33601         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33602         * gnulib-tool (func_exists_module): New function, extracted from
33603         func_verify_module.
33604         (func_verify_module): Use it.
33605         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33606         'foo' only if 'foo' exists.
33607         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33608         module.
33609
33610 2010-03-28  Bruno Haible  <bruno@clisp.org>
33611
33612         gnulib-tool: Add support for special categories of tests.
33613         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33614         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33615         (func_usage): Document them.
33616         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33617         inc_unportable_tests, inc_all_tests): New variables.
33618         (func_acceptable): Consider these variables.
33619         (func_modules_transitive_closure): Make it work when the 'Status' field
33620         consists of multiple words.
33621         (func_import): Store and restore the values of inc_cxx_tests,
33622         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33623         inc_all_tests in gnulib-comp.m4.
33624         (func_create_testdir): Set inc_all_tests to true.
33625         * doc/gnulib.texi (Extra tests modules): New section.
33626         Suggested by Jim Meyering.
33627
33628 2010-03-28  Bruno Haible  <bruno@clisp.org>
33629
33630         ansi-c++-opt: Allow turning off the C++ build by default.
33631         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33632         gl_CXX_CHOICE_DEFAULT_NO is defined.
33633         Requested by Eric Blake.
33634
33635 2010-03-28  Bruno Haible  <bruno@clisp.org>
33636
33637         unistd: Avoid #define replacements in C++ mode.
33638         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33639         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33640         setsockopt, shutdown, select): In C++, attach a warning to the function
33641         if possible, rather than #defining the symbol to a dysfunctional alias.
33642         Reported by John W. Eaton <jwe@gnu.org>.
33643
33644 2010-03-28  Bruno Haible  <bruno@clisp.org>
33645
33646         Fix link errors on mingw.
33647         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33648         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33649         $(LIBSOCKET).
33650         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33651         $(LIBSOCKET).
33652
33653 2010-03-28  Bruno Haible  <bruno@clisp.org>
33654             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33655
33656         lib-ignore: Determine different options for different compilers.
33657         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33658         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33659         Add comments.
33660         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33661         * NEWS: Mention the change.
33662
33663 2010-03-27  Bruno Haible  <bruno@clisp.org>
33664
33665         Remove unused GNULIB_XYZ macro definitions.
33666         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33667         * modules/fseek (configure.ac): Likewise.
33668         * modules/ioctl (configure.ac): Likewise.
33669         * modules/open (configure.ac): Likewise.
33670         * modules/stdlib-safer (configure.ac): Likewise.
33671
33672 2010-03-27  Bruno Haible  <bruno@clisp.org>
33673
33674         Add a remark about certain modules.
33675         * modules/malloc (Comment): New section.
33676         * modules/realloc (Comment): Likewise.
33677         * modules/sigpipe (Comment): Likewise.
33678
33679 2010-03-27  Bruno Haible  <bruno@clisp.org>
33680
33681         Resolve conflict between the two kinds of module indicators.
33682         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33683         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33684         * modules/canonicalize (configure.ac): Invoke
33685         gl_MODULE_INDICATOR_FOR_TESTS.
33686         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33687         GNULIB_XYZ.
33688         * tests/test-dirent-c++.cc: Likewise.
33689         * tests/test-dirent-safer.c: Likewise.
33690         * tests/test-dup2.c: Likewise.
33691         * tests/test-fchdir.c: Likewise.
33692         * tests/test-fcntl-h-c++.cc: Likewise.
33693         * tests/test-getopt.c: Likewise.
33694         * tests/test-getopt.h: Likewise.
33695         * tests/test-langinfo-c++.cc: Likewise.
33696         * tests/test-locale-c++.cc: Likewise.
33697         * tests/test-math-c++.cc: Likewise.
33698         * tests/test-pty-c++.cc: Likewise.
33699         * tests/test-search-c++.cc: Likewise.
33700         * tests/test-signal-c++.cc: Likewise.
33701         * tests/test-spawn-c++.cc: Likewise.
33702         * tests/test-stdio-c++.cc: Likewise.
33703         * tests/test-stdlib-c++.cc: Likewise.
33704         * tests/test-string-c++.cc: Likewise.
33705         * tests/test-sys_ioctl-c++.cc: Likewise.
33706         * tests/test-sys_select-c++.cc: Likewise.
33707         * tests/test-sys_socket-c++.cc: Likewise.
33708         * tests/test-sys_stat-c++.cc: Likewise.
33709         * tests/test-sys_time-c++.cc: Likewise.
33710         * tests/test-time-c++.cc: Likewise.
33711         * tests/test-unistd-c++.cc: Likewise.
33712         * tests/test-wchar-c++.cc: Likewise.
33713         * tests/uninorm/test-u8-nfc.c: Likewise.
33714         * tests/uninorm/test-u8-nfd.c: Likewise.
33715         * tests/uninorm/test-u8-nfkc.c: Likewise.
33716         * tests/uninorm/test-u8-nfkd.c: Likewise.
33717         * tests/uninorm/test-u16-nfc.c: Likewise.
33718         * tests/uninorm/test-u16-nfd.c: Likewise.
33719         * tests/uninorm/test-u16-nfkc.c: Likewise.
33720         * tests/uninorm/test-u16-nfkd.c: Likewise.
33721         * tests/uninorm/test-u32-nfc.c: Likewise.
33722         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33723         * tests/uninorm/test-u32-nfd.c: Likewise.
33724         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33725         * tests/uninorm/test-u32-nfkc.c: Likewise.
33726         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33727         * tests/uninorm/test-u32-nfkd.c: Likewise.
33728         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33729         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33730
33731 2010-03-27  Bruno Haible  <bruno@clisp.org>
33732
33733         Distinguish two kinds of module indicators.
33734         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33735         gl_MODULE_INDICATOR.
33736         (gl_MODULE_INDICATOR): New macro.
33737         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33738         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33739         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33740         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33741         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33742         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33743         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33744         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33745         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33746         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33747         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33748         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33750         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33751         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33752         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33753         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33754         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33755         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33756         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33757         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33758         * modules/cloexec (configure.ac): Likewise.
33759         * modules/getopt-gnu (configure.ac): Likewise.
33760         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33761         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33762         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33763         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33764
33765 2010-03-27  Bruno Haible  <bruno@clisp.org>
33766
33767         New module description field 'Comment'.
33768         * gnulib-tool: New option --extract-comment.
33769         (func_usage): Document it.
33770         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33771         (func_get_comment): New function.
33772         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33773
33774 2010-03-27  Bruno Haible  <bruno@clisp.org>
33775
33776         Addendum to 2010-02-07 commit.
33777         * gnulib-tool (func_usage): Document --extract-applicability option.
33778
33779 2010-03-27  Bruno Haible  <bruno@clisp.org>
33780
33781         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33782         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33783         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33784         rather than link errors.
33785
33786 2010-03-27  Bruno Haible  <bruno@clisp.org>
33787
33788         Avoid side effects from tests-related modules on the compilation of lib.
33789         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33790         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33791         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33792         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33793         macro.
33794         (func_import): Define a witness macro. Assign it a value that depends
33795         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33796         tests-related modules.
33797         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33798         Reported by Jim Meyering.
33799
33800 2010-03-27  Bruno Haible  <bruno@clisp.org>
33801
33802         Factorize common .m4 code.
33803         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33804         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33805         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33806         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33807         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33808         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33809         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33810         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33811         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33812         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33813         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
33814         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33815         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33816         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33817         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33818         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33819         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33820         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33822         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33823         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
33824         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33825         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33826         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33827         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33828         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33829         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33830         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33831         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
33832         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33833         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33834         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33835
33836 2010-03-27  Bruno Haible  <bruno@clisp.org>
33837
33838         Fix a compilation error on Cygwin with g++ >= 4.3.
33839         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
33840         if it is undefined or if we alias it to chmod.
33841         (lstat): Don't warn about the use of this function if it is undefined
33842         or if we alias it to stat.
33843         Reported by Simon Josefsson.
33844
33845 2010-03-27  Bruno Haible  <bruno@clisp.org>
33846
33847         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
33848         * modules/getlogin (configure.ac): Update.
33849
33850         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
33851         * modules/getlogin_r (configure.ac): Update.
33852
33853         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
33854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
33855         * modules/inet_ntop (configure.ac): Update.
33856
33857         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
33858         * modules/inet_pton (configure.ac): Update.
33859
33860         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
33861         * modules/mbslen (configure.ac): Update.
33862
33863         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
33864         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
33865         * modules/forkpty (configure.ac): Update.
33866         * modules/openpty (configure.ac): Update.
33867
33868 2010-03-26  Simon Josefsson  <simon@josefsson.org>
33869
33870         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
33871         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
33872
33873 2010-03-25  Eric Blake  <eblake@redhat.com>
33874
33875         maint: use pragma consistently across replacement headers
33876         * lib/ctype.in.h (system_header): Hoist for consistent placement.
33877         * lib/dirent.in.h (system_header): Likewise.
33878         * lib/errno.in.h (system_header): Likewise.
33879         * lib/float.in.h (system_header): Likewise.
33880         * lib/getopt.in.h (system_header): Likewise.
33881         * lib/iconv.in.h (system_header): Likewise.
33882         * lib/inttypes.in.h (system_header): Likewise.
33883         * lib/langinfo.in.h (system_header): Likewise.
33884         * lib/locale.in.h (system_header): Likewise.
33885         * lib/math.in.h (system_header): Likewise.
33886         * lib/netdb.in.h (system_header): Likewise.
33887         * lib/netinet_in.in.h (system_header): Likewise.
33888         * lib/pty.in.h (system_header): Likewise.
33889         * lib/sched.in.h (system_header): Likewise.
33890         * lib/se-selinux.in.h (system_header): Likewise.
33891         * lib/search.in.h (system_header): Likewise.
33892         * lib/spawn.in.h (system_header): Likewise.
33893         * lib/stdarg.in.h (system_header): Likewise.
33894         * lib/stdint.in.h (system_header): Likewise.
33895         * lib/string.in.h (system_header): Likewise.
33896         * lib/strings.in.h (system_header): Likewise.
33897         * lib/sys_file.in.h (system_header): Likewise.
33898         * lib/sys_ioctl.in.h (system_header): Likewise.
33899         * lib/sys_socket.in.h (system_header): Likewise.
33900         * lib/sys_times.in.h (system_header): Likewise.
33901         * lib/sys_utsname.in.h (system_header): Likewise.
33902         * lib/sys_wait.in.h (system_header): Likewise.
33903         * lib/sysexits.in.h (system_header): Likewise.
33904         * lib/unistd.in.h (system_header): Likewise.
33905         * lib/wctype.in.h (system_header): Likewise.
33906
33907         arpa/inet: fix mingw compilation warning
33908         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
33909         Reported by Matthew Bolte.
33910
33911 2010-03-25  Bruno Haible  <bruno@clisp.org>
33912
33913         Avoid collision between gnulib wrapper and libintl wrapper.
33914         * lib/printf.c (printf): Don't define if a printf wrapper is already
33915         defined in intl/printf.c.
33916         Reported by Michel Boaventura <michel@michelboaventura.com>.
33917
33918 2010-03-25  Bruno Haible  <bruno@clisp.org>
33919
33920         Use ANSI C.
33921         * lib/readutmp.h (getutent): Provide ANSI C prototype.
33922
33923 2010-03-25  Bruno Haible  <bruno@clisp.org>
33924
33925         Minor formatting changes.
33926         * lib/acosl.c: Insert space before function argument list.
33927         * lib/argz.c: Likewise.
33928         * lib/asinl.c: Likewise.
33929         * lib/expl.c: Likewise.
33930         * lib/gen-uni-tables.c: Likewise.
33931         * lib/gettext.h: Likewise.
33932         * lib/glthread/lock.h: Likewise.
33933         * lib/tanl.c: Likewise.
33934         * lib/uniname/uniname.c: Likewise.
33935         * tests/test-idpriv-drop.c: Likewise.
33936         * tests/test-idpriv-droptemp.c: Likewise.
33937         * tests/test-lock.c: Likewise.
33938         * tests/test-tls.c: Likewise.
33939         * lib/argp-help.c: Insert space before function-like macro argument
33940         list.
33941         * lib/memcmp.c: Likewise.
33942         * tests/test-base64.c: Likewise.
33943         * lib/localename.c: Insert space before sizeof's argument list.
33944         * lib/safe-alloc.h: Likewise.
33945         * lib/file-set.h: Insert space before macro argument list.
33946         * tests/test-argp.c: Likewise.
33947         * lib/argp-namefrob.h: Insert space before function parameter list.
33948         * lib/getaddrinfo.c: Likewise.
33949         * lib/netdb.in.h: Likewise.
33950         * lib/parse-duration.h: Likewise.
33951         * lib/parse-duration.c: Likewise.
33952         * lib/poll.c: Likewise.
33953         * lib/select.c: Likewise.
33954         * lib/trim.h: Likewise.
33955         * tests/test-usleep.c: Likewise.
33956         * lib/ldexpl.c: Insert space before function parameter list and before
33957         function argument list.
33958         * lib/logl.c: Likewise.
33959         * lib/sqrtl.c: Likewise.
33960         * lib/trim.c: Likewise.
33961         * lib/cosl.c: Use GNU style indentation. Insert space before function
33962         argument list.
33963         * lib/sinl.c: Likewise.
33964         * lib/tsearch.c: Insert space after 'for'.
33965         Reported by Jim Meyering.
33966
33967 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
33968
33969         * maint.mk (sc_Wundef_boolean): Check for the presence of the
33970         config header before grepping, as it's not present before
33971         autoreconf/configure are run.  Reported by Simon Josefsson.
33972
33973 2010-03-23  Bruno Haible  <bruno@clisp.org>
33974
33975         pt_chown: Make it work with automake < 1.11.
33976         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33977         Reported by Simon Josefsson.
33978
33979 2010-03-23  Bruno Haible  <bruno@clisp.org>
33980
33981         pt_chown: Don't depend on GPLed modules.
33982         * lib/pt_chown.c: Don't include idpriv.h.
33983         (main): Don't drop privileges.
33984         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33985         Reported by Simon Josefsson.
33986
33987 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33988
33989         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33990         suggestions from karl@freefriends.org (Karl Berry).
33991
33992 2010-03-22  Eric Blake  <eblake@redhat.com>
33993
33994         gethostname: further tweaks
33995         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33996         are overriding gethostname.
33997         Suggested by Bruno Haible.
33998
33999 2010-03-21  Bruno Haible  <bruno@clisp.org>
34000
34001         Fix comments.
34002         * lib/forkpty.c (rpl_forkpty): Fix comment.
34003         * lib/openpty.c (rpl_openpty): Likewise.
34004         Reported by Eric Blake.
34005
34006 2010-03-22  Eric Blake  <eblake@redhat.com>
34007
34008         gethostname: fix build on mingw
34009         * lib/unistd.in.h (includes): Work around fact that mingw
34010         <winsock2.h> re-includes <unistd.h>, by avoiding any
34011         redeclarations if we are being included by <winsock2.h>.
34012         Reported by Matthias Bolte.
34013
34014 2010-03-21  Bruno Haible  <bruno@clisp.org>
34015
34016         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34017         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34018         modifications.
34019         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34020         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34021         provide the replacement.
34022         * modules/forkpty (Depends-on): Add openpty, login_tty.
34023         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34024         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34025         * doc/glibc-functions/forkpty.texi: More supported platforms.
34026         * config/srclist.txt: Add forkpty.c (commented).
34027
34028 2010-03-21  Bruno Haible  <bruno@clisp.org>
34029
34030         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34031         (Makefile.am): Verify that PTY_LIB is defined.
34032
34033         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34034
34035 2010-03-21  Bruno Haible  <bruno@clisp.org>
34036
34037         Tests for module 'login_tty'.
34038         * modules/login_tty-tests: New file.
34039         * tests/test-login_tty.c: New file.
34040
34041         New module 'login_tty'.
34042         * lib/login_tty.c: New file.
34043         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34044         * modules/login_tty: New file.
34045         * doc/glibc-functions/login_tty.texi: Mention the new module.
34046
34047 2010-03-21  Bruno Haible  <bruno@clisp.org>
34048
34049         login_tty: Documentation.
34050         * doc/glibc-functions/login_tty.texi: New file.
34051         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34052
34053 2010-03-21  Bruno Haible  <bruno@clisp.org>
34054
34055         pty: Consistent macro naming.
34056         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34057         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34058         * modules/pty (configure.ac): Update.
34059
34060 2010-03-21  Bruno Haible  <bruno@clisp.org>
34061
34062         Tests for openpty: Make stricter.
34063         * tests/test-openpty.c (main): Add test of canonical processing and
34064         erase.
34065         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34066
34067         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34068         * lib/openpty.c (openpty): New replacement function.
34069         * lib/pty.in.h: Include <termios.h>.
34070         (openpty): Update declaration. Add comments.
34071         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34072         is not declared, arrange to provide the replacement. Check for _getpty
34073         and posix_openpt.
34074         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34075         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34076         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34077         * modules/pty-tests (test_pty_c___LDADD): New variable.
34078         * doc/glibc-functions/openpty.texi: More supported platforms.
34079
34080 2010-03-21  Bruno Haible  <bruno@clisp.org>
34081
34082         setenv: Tweaks.
34083         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34084         the test program.
34085         * doc/posix-functions/setenv.texi: Update platforms list.
34086
34087 2010-03-21  Bruno Haible  <bruno@clisp.org>
34088
34089         New module 'unlockpt'.
34090         * lib/unlockpt.c: New file, from glibc with modifications.
34091         * m4/unlockpt.m4: New file.
34092         * modules/unlockpt: New file.
34093         * lib/stdlib.in.h (unlockpt): New declaration.
34094         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34095         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34096         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34097         HAVE_UNLOCKPT.
34098         * doc/posix-functions/unlockpt.texi: Mention the new module.
34099         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34100         * config/srclist.txt: Add unlockpt.c (commented).
34101
34102 2010-03-21  Jim Meyering  <meyering@redhat.com>
34103
34104         maint.mk: prohibit inclusion of "intprops.h" without use
34105         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34106
34107 2010-03-21  Bruno Haible  <bruno@clisp.org>
34108
34109         New module 'grantpt'.
34110         * lib/grantpt.c: New file, from glibc with modifications.
34111         * m4/grantpt.m4: New file.
34112         * modules/grantpt: New file.
34113         * lib/stdlib.in.h (grantpt): New declaration.
34114         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34115         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34116         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34117         HAVE_GRANTPT.
34118         * doc/posix-functions/grantpt.texi: Mention the new module.
34119         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34120         * config/srclist.txt: Add grantpt.c (commented).
34121
34122 2010-03-21  Bruno Haible  <bruno@clisp.org>
34123
34124         New module 'pt_chown'.
34125         * lib/pt_chown.c: New file, from glibc with modifications.
34126         * lib/pty-private.h: New file, from glibc with modifications.
34127         * modules/pt_chown: New file.
34128         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34129
34130 2010-03-21  Bruno Haible  <bruno@clisp.org>
34131
34132         Tests for module 'ptsname'.
34133         * modules/ptsname-tests: New file.
34134         * tests/test-ptsname.c: New file.
34135
34136         New module 'ptsname'.
34137         * lib/ptsname.c: New file, from glibc with modifications.
34138         * m4/ptsname.m4: New file.
34139         * modules/ptsname: New file.
34140         * lib/stdlib.in.h (ptsname): New declaration.
34141         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34142         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34143         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34144         HAVE_PTSNAME.
34145         * doc/posix-functions/ptsname.texi: Mention the new module.
34146         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34147         * config/srclist.txt: Add ptsname.c (commented).
34148
34149 2010-03-21  Bruno Haible  <bruno@clisp.org>
34150
34151         Tests for module 'ttyname_r'.
34152         * modules/ttyname_r-tests: New file.
34153         * tests/test-ttyname_r.c: New file.
34154
34155         New module 'ttyname_r'.
34156         * lib/ttyname_r.c: New file.
34157         * m4/ttyname_r.m4: New file.
34158         * modules/ttyname_r: New file.
34159         * lib/unistd.in.h (ttyname_r): New declaration.
34160         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34161         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34162         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34163         HAVE_TTYNAME_R.
34164         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34165         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34166
34167 2010-03-20  Bruno Haible  <bruno@clisp.org>
34168
34169         signal: Undefine macro definitions in C++ mode.
34170         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34171         sigfillset): Undefine macro definitions from the system header in C++
34172         mode.
34173         Reported by John W. Eaton <jwe@gnu.org>.
34174
34175 2010-03-20  Bruno Haible  <bruno@clisp.org>
34176
34177         Ensure no #include statements inside extern "C" { ... }.
34178         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34179         contain #include statements.
34180         * lib/time.in.h: Likewise.
34181
34182 2010-03-20  Bruno Haible  <bruno@clisp.org>
34183
34184         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34185         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34186         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34187         Reported by John W. Eaton <jwe@gnu.org>.
34188
34189 2010-03-20  Bruno Haible  <bruno@clisp.org>
34190
34191         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34192         Reported by Jim Meyering.
34193
34194 2010-03-20  Bruno Haible  <bruno@clisp.org>
34195
34196         pipe: Set errno upon failure.
34197         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34198         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34199         errno value in error message.
34200
34201 2010-03-20  Bruno Haible  <bruno@clisp.org>
34202             Jim Meyering  <meyering@redhat.com>
34203
34204         lchown: Avoid "unused variable" warning.
34205         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34206
34207 2010-03-20  Bruno Haible  <bruno@clisp.org>
34208
34209         Work around unlink() bug on MacOS X 10.5.6.
34210         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34211         attempting to unlink a parent directory.
34212         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34213         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34214         activate for the replacement function.
34215         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34216
34217 2010-03-20  Bruno Haible  <bruno@clisp.org>
34218
34219         Fix link errors on Solaris 8.
34220         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34221         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34222
34223 2010-03-19  Jim Meyering  <meyering@redhat.com>
34224
34225         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34226         The _LIBC implementation of build_range_exp correctly honors the
34227         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34228         However, the non-_LIBC implementation would ignore that syntax-bit
34229         flag and return REG_ERANGE unconditionally.
34230         This change makes it honor that flag.
34231         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34232         Make two pointer parameters "const".
34233         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34234         (parse_bracket_exp): Update caller.
34235
34236         regex.m4: correct the reversed range endpoint ([b-a]) test
34237         * m4/regex.m4: When requiring that [b-a] evoke failure,
34238         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34239         test pass once again for x86-based systems.
34240
34241 2010-03-19  Bruno Haible  <bruno@clisp.org>
34242
34243         scandir: Fix link error on Solaris 8.
34244         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34245         macros.
34246
34247 2010-03-19  Bruno Haible  <bruno@clisp.org>
34248
34249         getusershell: Fix documentation.
34250         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34251         module.
34252         * doc/glibc-functions/setusershell.texi: Likewise.
34253
34254         getusershell: Provide declaration, missing on Solaris 9.
34255         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34256         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34257         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34258         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34260         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34261         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34262         HAVE_GETUSERSHELL.
34263         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34264
34265 2010-03-19  Bruno Haible  <bruno@clisp.org>
34266
34267         wctype: Provide iswblank function.
34268         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34269         exists and is fine.
34270         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34271         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34272         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34273         * doc/posix-functions/iswblank.texi: Update.
34274
34275 2010-03-19  Bruno Haible  <bruno@clisp.org>
34276
34277         Tests of module 'pty' in C++ mode.
34278         * modules/pty-tests: New file.
34279         * tests/test-pty-c++.cc: New file.
34280         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34281
34282 2010-03-19  Eric Blake  <eblake@redhat.com>
34283
34284         logb: fix documentation
34285         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34286         1.5 declaration bug.
34287
34288         forkpty, openpty: prefer glibc's const-safe prototype
34289         * lib/forkpty.c (rpl_forkpty): New file.
34290         * lib/openpty.c (rpl_openpty): Likewise.
34291         * modules/forkpty (Files): Distribute it.
34292         * modules/openpty (Files): Likewise.
34293         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34294         check...
34295         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34296         replacement for for non-const BSD signature.
34297         * modules/pty (Makefile.am): Substitute witnesses.
34298         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34299         * tests/test-forkpty.c: Update signature check.
34300         * tests/test-openpty.c: Likewise.
34301         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34302         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34303
34304         forkpty, openpty: split functions into new modules
34305         * modules/pty (Makefile.am): Substitute new witnesses.
34306         (Libraries): Move library detection...
34307         * modules/forkpty: ...into new module.
34308         * modules/openpty: Another new module.
34309         * modules/pty-tests: Rename and split...
34310         * modules/forkpty-tests: ...to this...
34311         * modules/openpty-tests: ...and this.
34312         * tests/test-pty.c: Rename and split...
34313         * tests/test-forkpty.c: ...to this...
34314         * tests/test-openpty.c: ...and this.
34315         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34316         (gl_PTY): Split library searching...
34317         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34318         (gl_FORKPTY, gl_OPENPTY): New macros.
34319         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34320         * NEWS: Mention the split.
34321         * MODULES.html.sh (Misc): Document the modules.
34322         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34323         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34324
34325         pty: improve replacement header
34326         * lib/pty.in.h: New file.
34327         * modules/pty (Files): Ship it.
34328         (Makefile.am): Always build replacement.
34329         * m4/pty.m4: Rename...
34330         * m4/pty_h.m4: ...to this.
34331         (gl_PTY): Modernize setting of witness macros; update check of
34332         forkpty to take proper advantage of cache.
34333         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34334
34335         getopt: avoid compiler warning
34336         * lib/getopt.c (attribute_hidden): Remove unused macro.
34337
34338 2010-03-18  Bruno Haible  <bruno@clisp.org>
34339
34340         Fix link errors on Solaris 8.
34341         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34342         * modules/search-tests (test_search_c___LDADD): Likewise.
34343         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34344         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34345         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34346         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34347         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34348         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34349         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34350
34351 2010-03-18  Bruno Haible  <bruno@clisp.org>
34352
34353         Fix bug introduced on 2010-03-14.
34354         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34355         (gl_SPAWN_H): Require it.
34356         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34357         Reported by Simon Josefsson.
34358
34359 2010-03-18  Bruno Haible  <bruno@clisp.org>
34360
34361         Fix typo introduced on 2009-12-31.
34362         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34363         posix_spawn_file_actions_adddup2.
34364
34365 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34366         and Eric Blake  <eblake@redhat.com>
34367
34368         test-vc-list-files-git: make more robust
34369         * tests/test-vc-list-files-git.sh: Unset problematic environment
34370         variables.  Chain commands together.
34371
34372 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34373
34374         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34375         `AC_CHECK_DECL' invocation.
34376
34377 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34378
34379         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34380         appears before executable statements. Suggested by Petr Sumbera
34381         <Petr.Sumbera@Sun.COM>.
34382
34383 2010-03-14  Bruno Haible  <bruno@clisp.org>
34384
34385         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34386         portability problems. Instead use a simpler test.
34387         (main): Check that invalid arguments are rejected only on Linux.
34388
34389 2010-03-14  Bruno Haible  <bruno@clisp.org>
34390
34391         Fix bug introduced on 2009-12-31.
34392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34393         gl_PREREQ_SYS_H_WINSOCK2 always.
34394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34395         SYS_SOCKET_H variable.
34396         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34397         Update comments.
34398         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34399         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34400         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34401         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34402         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34403
34404 2010-03-14  Bruno Haible  <bruno@clisp.org>
34405
34406         Fix values returned by sinl, cosl.
34407         * lib/trigl.h: Add specification comments.
34408         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34409         that combines the values from the precomputed table with the values of
34410         the Chebyshev polynomials.
34411
34412 2010-03-14  Bruno Haible  <bruno@clisp.org>
34413
34414         Fix compilation error when modules 'posix_spawn[p]' are not used.
34415         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34416         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34417
34418 2010-03-14  Bruno Haible  <bruno@clisp.org>
34419
34420         Fix compilation error on mingw when module 'time_r' is not used.
34421         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34422         is 1.
34423         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34424         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34425         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34426         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34427
34428 2010-03-14  Bruno Haible  <bruno@clisp.org>
34429
34430         Fix compilation error with Sun C.
34431         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34432         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34433         instead of GCC specific ULONG_LONG_MAX.
34434         * lib/xstrtoll.c: Likewise.
34435         * lib/xstrtoull.c: Likewise.
34436
34437 2010-03-13  Bruno Haible  <bruno@clisp.org>
34438
34439         Allow the user to disable C++ code and tests.
34440         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34441         (gl_PROG_ANSI_CXX): Require it.
34442
34443 2010-03-13  Bruno Haible  <bruno@clisp.org>
34444
34445         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34446         cases.
34447
34448 2010-03-13  Bruno Haible  <bruno@clisp.org>
34449
34450         Test that gnulib does not break the standard C++ headers.
34451         * tests/test-locale-c++2.cc: New file.
34452         * modules/locale-tests (Files): Add it.
34453         (Makefile.am): Compile it for test-locale-c++.
34454         * tests/test-math-c++2.cc: New file.
34455         * modules/math-tests (Files): Add it.
34456         (Makefile.am): Compile it for test-math-c++.
34457         * tests/test-signal-c++2.cc: New file.
34458         * modules/signal-tests (Files): Add it.
34459         (Makefile.am): Compile it for test-signal-c++.
34460         * tests/test-stdio-c++2.cc: New file.
34461         * modules/stdio-tests (Files): Add it.
34462         (Makefile.am): Compile it for test-stdio-c++.
34463         * tests/test-stdlib-c++2.cc: New file.
34464         * modules/stdlib-tests (Files): Add it.
34465         (Makefile.am): Compile it for test-stdlib-c++.
34466         * tests/test-string-c++2.cc: New file.
34467         * modules/string-tests (Files): Add it.
34468         (Makefile.am): Compile it for test-string-c++.
34469         * tests/test-time-c++2.cc: New file.
34470         * modules/time-tests (Files): Add it.
34471         (Makefile.am): Compile it for test-time-c++.
34472         Reported by John W. Eaton <jwe@gnu.org>.
34473
34474 2010-03-13  Bruno Haible  <bruno@clisp.org>
34475
34476         * gnulib-tool (func_usage): Clarify which options are available for
34477         --create-testdir and --create-megatestdir.
34478
34479 2010-03-13  Bruno Haible  <bruno@clisp.org>
34480
34481         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34482         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34483         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34484         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34485         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34486         when appropriate.
34487         Reported by Jim Meyering.
34488
34489 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34490
34491         * gnulib-tool (func_import): Explain origin of code.
34492
34493 2010-03-12  Bruno Haible  <bruno@clisp.org>
34494
34495         Fix problem with automake's definition of CXXLINK.
34496         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34497         Reported by Simon Josefsson and Ludovic Courtès.
34498
34499 2010-03-12  Bruno Haible  <bruno@clisp.org>
34500
34501         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34502         stable releases.
34503
34504 2010-03-11  Bruno Haible  <bruno@clisp.org>
34505
34506         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34507         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34508         whether the system provides one variant or multiple variants of the
34509         function.
34510         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34511         C++ compilers.
34512         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34513         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34514         Reported by Jim Meyering.
34515
34516 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34517
34518         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34519
34520 2010-03-08  Bruno Haible  <bruno@clisp.org>
34521
34522         gnulib-tool: Add support for --libtool in --create-testdir.
34523         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34524         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34525
34526 2010-03-08  Eric Blake  <eblake@redhat.com>
34527
34528         gnulib-tool.texi: mention possibility of git submodule
34529         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34530         submodules.
34531         * doc/.gitignore: Ignore another generated file.
34532
34533 2010-03-08  Karl Berry  <karl@gnu.org>
34534
34535         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34536         of committing gnulib files while skipping others.
34537
34538 2010-03-07  Bruno Haible  <bruno@clisp.org>
34539
34540         Tests of module 'wctype' in C++ mode.
34541         * tests/test-wctype-c++.cc: New file.
34542         * modules/wctype-tests (Files): Add it and tests/signature.h.
34543         (Depends-on): Add ansi-c++-opt.
34544         (Makefile.am): Arrange to compile and run test-wctype-c++.
34545
34546         Tests of module 'wchar' in C++ mode.
34547         * tests/test-wchar-c++.cc: New file.
34548         * modules/wchar-tests (Files): Add it and tests/signature.h.
34549         (Depends-on): Add ansi-c++-opt.
34550         (Makefile.am): Arrange to compile and run test-wchar-c++.
34551         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34552         gl_MODULE_INDICATOR.
34553
34554         Tests of module 'unistd' in C++ mode.
34555         * tests/test-unistd-c++.cc: New file.
34556         * modules/unistd-tests (Files): Add it and tests/signature.h.
34557         (Depends-on): Add ansi-c++-opt.
34558         (Makefile.am): Arrange to compile and run test-unistd-c++.
34559         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34560         gl_MODULE_INDICATOR.
34561
34562         Tests of module 'time' in C++ mode.
34563         * tests/test-time-c++.cc: New file.
34564         * modules/time-tests (Files): Add it and tests/signature.h.
34565         (Depends-on): Add ansi-c++-opt.
34566         (Makefile.am): Arrange to compile and run test-time-c++.
34567         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34568
34569         Tests of module 'sys_time' in C++ mode.
34570         * tests/test-sys_time-c++.cc: New file.
34571         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34572         (Depends-on): Add ansi-c++-opt.
34573         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34574         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34575         gl_MODULE_INDICATOR.
34576
34577         Tests of module 'sys_stat' in C++ mode.
34578         * tests/test-sys_stat-c++.cc: New file.
34579         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34580         (Depends-on): Add ansi-c++-opt.
34581         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34582         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34583         gl_MODULE_INDICATOR.
34584
34585         Tests of module 'sys_socket' in C++ mode.
34586         * tests/test-sys_socket-c++.cc: New file.
34587         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34588         (Depends-on): Add ansi-c++-opt.
34589         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34590         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34591         gl_MODULE_INDICATOR.
34592
34593         Tests of module 'sys_select' in C++ mode.
34594         * tests/test-sys_select-c++.cc: New file.
34595         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34596         (Depends-on): Add ansi-c++-opt.
34597         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34598         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34599         gl_MODULE_INDICATOR.
34600
34601         Tests of module 'sys_ioctl' in C++ mode.
34602         * tests/test-sys_ioctl-c++.cc: New file.
34603         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34604         (Depends-on): Add ansi-c++-opt.
34605         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34606         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34607         gl_MODULE_INDICATOR.
34608
34609         Tests of module 'string' in C++ mode.
34610         * tests/test-string-c++.cc: New file.
34611         * modules/string-tests (Files): Add it and tests/signature.h.
34612         (Depends-on): Add ansi-c++-opt.
34613         (Makefile.am): Arrange to compile and run test-string-c++.
34614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34615         gl_MODULE_INDICATOR.
34616
34617         Tests of module 'stdlib' in C++ mode.
34618         * tests/test-stdlib-c++.cc: New file.
34619         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34620         (Depends-on): Add ansi-c++-opt.
34621         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34622         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34623         gl_MODULE_INDICATOR.
34624
34625         Tests of module 'stdio' in C++ mode.
34626         * tests/test-stdio-c++.cc: New file.
34627         * modules/stdio-tests (Files): Add it and tests/signature.h.
34628         (Depends-on): Add ansi-c++-opt.
34629         (Makefile.am): Arrange to compile and run test-stdio-c++.
34630         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34631         gl_MODULE_INDICATOR.
34632
34633         Tests of module 'spawn' in C++ mode.
34634         * tests/test-spawn-c++.cc: New file.
34635         * modules/spawn-tests (Files): Add it and tests/signature.h.
34636         (Depends-on): Add ansi-c++-opt.
34637         (Makefile.am): Arrange to compile and run test-spawn-c++.
34638         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34639         gl_MODULE_INDICATOR.
34640
34641         Tests of module 'signal' in C++ mode.
34642         * tests/test-signal-c++.cc: New file.
34643         * modules/signal-tests (Files): Add it and tests/signature.h.
34644         (Depends-on): Add ansi-c++-opt.
34645         (Makefile.am): Arrange to compile and run test-signal-c++.
34646         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34647         gl_MODULE_INDICATOR.
34648
34649         Tests of module 'search' in C++ mode.
34650         * tests/test-search-c++.cc: New file.
34651         * modules/search-tests (Files): Add it and tests/signature.h.
34652         (Depends-on): Add ansi-c++-opt.
34653         (Makefile.am): Arrange to compile and run test-search-c++.
34654         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34655         gl_MODULE_INDICATOR.
34656
34657         Tests of module 'math' in C++ mode.
34658         * tests/test-math-c++.cc: New file.
34659         * modules/math-tests (Files): Add it and tests/signature.h.
34660         (Depends-on): Add ansi-c++-opt.
34661         (Makefile.am): Arrange to compile and run test-math-c++.
34662         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34663
34664         Tests of module 'locale' in C++ mode.
34665         * tests/test-locale-c++.cc: New file.
34666         * modules/locale-tests (Files): Add it and tests/signature.h.
34667         (Depends-on): Add ansi-c++-opt.
34668         (Makefile.am): Arrange to compile and run test-locale-c++.
34669         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34670         gl_MODULE_INDICATOR.
34671
34672         Tests of module 'langinfo' in C++ mode.
34673         * tests/test-langinfo-c++.cc: New file.
34674         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34675         (Depends-on): Add ansi-c++-opt.
34676         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34677         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34678         gl_MODULE_INDICATOR.
34679
34680         Tests of module 'iconv-h' in C++ mode.
34681         * tests/test-iconv-h-c++.cc: New file.
34682         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34683         (Depends-on): Add ansi-c++-opt.
34684         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34685
34686         Tests of module 'glob' in C++ mode.
34687         * tests/test-glob-c++.cc: New file.
34688         * modules/glob-tests (Files): Add it.
34689         (Depends-on): Add ansi-c++-opt.
34690         (Makefile.am): Arrange to compile and run test-glob-c++.
34691
34692         Tests of module 'fcntl-h' in C++ mode.
34693         * tests/test-fcntl-h-c++.cc: New file.
34694         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34695         (Depends-on): Add ansi-c++-opt.
34696         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34697         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34698         gl_MODULE_INDICATOR.
34699
34700         Tests of module 'dirent' in C++ mode.
34701         * tests/test-dirent-c++.cc: New file.
34702         * modules/dirent-tests (Files): Add it and tests/signature.h.
34703         (Depends-on): Add ansi-c++-opt.
34704         (Makefile.am): Arrange to compile and run test-dirent-c++.
34705         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34706         gl_MODULE_INDICATOR.
34707
34708         New module 'ansi-c++-opt'.
34709         * modules/ansi-c++-opt: New file.
34710         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34711
34712         Document C++ namespace mode.
34713         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34714
34715         wctype: Avoid #define replacements in C++ mode.
34716         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34717         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34718         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34719         In C++, define a namespaced alias symbol.
34720         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34721         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34722         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34723         rule.
34724
34725         wchar: Avoid #define replacements in C++ mode.
34726         * lib/wchar.in.h: Include c++defs.h.
34727         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34728         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34729         symbol.
34730         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34731         * modules/wchar (Depends-on): Add c++defs.
34732         (Makefile.am): Update wchar.h rule.
34733
34734         unistd: Avoid #define replacements in C++ mode.
34735         * lib/unistd.in.h: Include c++defs.h.
34736         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34737         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34738         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34739         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34740         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34741         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34742         symbol.
34743         (environ): Update.
34744         * modules/unistd (Depends-on): Add c++defs.
34745         (Makefile.am): Update unistd.h rule.
34746
34747         time: Avoid #define replacements in C++ mode.
34748         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34749         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34750         define a namespaced alias symbol.
34751         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34752         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34753         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34754         * modules/time (Depends-on): Add c++defs, warn-on-use.
34755         (Makefile.am): Update time.h rule.
34756         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34757         * modules/nanosleep (configure.ac): Likewise.
34758         * modules/strptime (configure.ac): Likewise.
34759         * modules/timegm (configure.ac): Likewise.
34760
34761         sys_time: Avoid #define replacements in C++ mode.
34762         * lib/sys_time.in.h: Include c++defs.h.
34763         (gettimeofday): In C++, define a namespaced alias symbol.
34764         * modules/sys_time (Depends-on): Add c++defs.
34765         (Makefile.am): Update sys/time.h rule.
34766
34767         sys_stat: Avoid #define replacements in C++ mode.
34768         * lib/sys_stat.in.h: Include c++defs.h.
34769         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34770         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34771         namespaced alias symbol.
34772         In C++, define a namespaced alias symbol.
34773         * modules/sys_stat (Depends-on): Add c++defs.
34774         (Makefile.am): Update sys/stat.h rule.
34775
34776         sys_socket: Avoid #define replacements in C++ mode.
34777         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34778         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34779         definitions also when the system has a <sys/socket.h>.
34780         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34781         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34782         In C++, define a namespaced alias symbol.
34783         * modules/sys_socket (Depends-on): Add c++defs.
34784         (Makefile.am): Update sys/socket.h rule.
34785
34786         sys_select: Avoid #define replacements in C++ mode.
34787         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34788         definitions also when the system has a <sys/select.h>.
34789         (select): In C++, define a namespaced alias symbol.
34790         * modules/sys_select (Depends-on): Add c++defs.
34791         (Makefile.am): Update sys/select.h rule.
34792
34793         sys_ioctl: Avoid #define replacements in C++ mode.
34794         * lib/sys_ioctl.in.h: Include c++defs.h.
34795         (ioctl): In C++, define a namespaced alias symbol.
34796         * modules/sys_ioctl (Depends-on): Add c++defs.
34797         (Makefile.am): Update sys/ioctl.h rule.
34798
34799         string: Avoid #define replacements in C++ mode.
34800         * lib/string.in.h: Include c++defs.h.
34801         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34802         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34803         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34804         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34805         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34806         * modules/string (Depends-on): Add c++defs.
34807         (Makefile.am): Update string.h rule.
34808
34809         stdlib: Avoid #define replacements in C++ mode.
34810         * lib/stdlib.in.h: Include c++defs.h.
34811         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34812         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34813         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34814         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34815         symbol.
34816         * modules/stdlib (Depends-on): Add c++defs.
34817         (Makefile.am): Update stdlib.h rule.
34818
34819         stdio: Avoid #define replacements in C++ mode.
34820         * lib/stdio.in.h: Include c++defs.h.
34821         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34822         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34823         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34824         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34825         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34826         namespaced alias symbol.
34827         * modules/stdio (Depends-on): Add c++defs.
34828         (Makefile.am): Update stdio.h rule.
34829
34830         spawn: Avoid #define replacements in C++ mode.
34831         * lib/spawn.in.h: Include c++defs.h.
34832         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34833         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34834         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34835         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34836         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34837         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34838         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34839         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34840         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34841         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34842         In C++, define a namespaced alias symbol.
34843         * modules/spawn (Depends-on): Add c++defs.
34844         (Makefile.am): Update spawn.h rule.
34845
34846         signal: Avoid #define replacements in C++ mode.
34847         * lib/signal.in.h: Include c++defs.h.
34848         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34849         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
34850         namespaced alias symbol.
34851         * modules/signal (Depends-on): Add c++defs.
34852         (Makefile.am): Update signal.h rule.
34853
34854         search: Avoid #define replacements in C++ mode.
34855         * lib/search.in.h: Include c++defs.h.
34856         (_gl_search_compar_fn, _gl_search_action_fn): New types.
34857         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
34858         symbol.
34859         * modules/search (Depends-on): Add c++defs.
34860         (Makefile.am): Update search.h rule.
34861
34862         math: Avoid #define replacements in C++ mode.
34863         * lib/math.in.h: Include c++defs.h.
34864         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
34865         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
34866         trunc, truncl): In C++, define a namespaced alias symbol.
34867         * modules/math (Depends-on): Add c++defs.
34868         (Makefile.am): Update math.h rule.
34869
34870         locale: Avoid #define replacements in C++ mode.
34871         * lib/locale.in.h: Include c++defs.h.
34872         (duplocale): In C++, define a namespaced alias symbol.
34873         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
34874         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
34875         * modules/locale (Depends-on): Add c++defs.
34876         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
34877
34878         langinfo: Avoid #define replacements in C++ mode.
34879         * lib/langinfo.in.h: Include c++defs.h.
34880         (nl_langinfo): In C++, define a namespaced alias symbol.
34881         * modules/langinfo (Depends-on): Add c++defs.
34882         (Makefile.am): Update langinfo.h rule.
34883
34884         iconv-h: Avoid #define replacements in C++ mode.
34885         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
34886         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
34887         symbol.
34888         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34889         whenever iconv is present.
34890         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
34891         (Makefile.am): Update iconv.h rule.
34892
34893         glob: Avoid #define replacements in C++ mode.
34894         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
34895         (_gl_glob_errfunc_fn): New type.
34896         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
34897         symbol.
34898         * modules/glob (Depends-on): Add c++defs, warn-on-use.
34899         (Makefile.am): Update glob.h rule.
34900
34901         fcntl-h: Avoid #define replacements in C++ mode.
34902         * lib/fcntl.in.h: Include c++defs.h.
34903         (fcntl, open, openat): In C++, define a namespaced alias symbol.
34904         * modules/fcntl-h (Depends-on): Add c++defs.
34905         (Makefile.am): Update fcntl.h rule.
34906
34907         dirent: Avoid #define replacements in C++ mode.
34908         * lib/dirent.in.h: Include c++defs.h.
34909         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
34910         namespaced alias symbol.
34911         (dirfd): Update declaration.
34912         * modules/dirent (Depends-on): Add c++defs.
34913         (Makefile.am): Update dirent.h rule.
34914
34915         ctype: Make it usable in C++ code.
34916         * lib/ctype.in.h: Include c++defs.h.
34917         (isblank): Declare as extern "C".
34918         * modules/ctype (Depends-on): Add c++defs.
34919         (Makefile.am): Update ctype.h rule.
34920
34921         New module 'c++defs'.
34922         * modules/c++defs: New file.
34923         * build-aux/c++defs.h: New file.
34924         Reported by John W. Eaton <jwe@gnu.org>.
34925
34926 2010-03-07  Bruno Haible  <bruno@clisp.org>
34927
34928         logb: Provide missing declaration for Cygwin.
34929         * lib/math.in.h (logb): New declaration.
34930         * m4/logb.m4: New file.
34931         * modules/logb (Files): Add m4/logb.m4.
34932         (Depends-on): Add math.
34933         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
34934         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
34935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
34936         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
34937         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
34938
34939 2010-03-07  Bruno Haible  <bruno@clisp.org>
34940
34941         Fix test-cond link error.
34942         * tests/test-cond.c: Include <stdio.h>.
34943
34944 2010-03-07  Bruno Haible  <bruno@clisp.org>
34945
34946         Fix test-dirent-safer link error.
34947         * modules/dirent-safer-tests (Makefile.am): Define
34948         test_dirent_safer_LDADD.
34949
34950 2010-03-07  Bruno Haible  <bruno@clisp.org>
34951
34952         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
34953         among default module list.
34954
34955 2010-03-07  Bruno Haible  <bruno@clisp.org>
34956
34957         Fix link error on platforms with GNU libiconv.
34958         * modules/unistr/u8-strcoll-tests (Makefile): Define
34959         test_u8_strcoll_LDADD.
34960         * modules/unistr/u16-strcoll-tests (Makefile): Define
34961         test_u16_strcoll_LDADD.
34962         * modules/unistr/u32-strcoll-tests (Makefile): Define
34963         test_u32_strcoll_LDADD.
34964
34965 2010-03-07  Bruno Haible  <bruno@clisp.org>
34966
34967         Use POSIX declarations for socket functions.
34968         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
34969         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
34970         rpl_sendto): Change declaration to match POSIX.
34971         * lib/connect.c (rpl_connect): Likewise.
34972         * lib/accept.c (rpl_accept): Likewise.
34973         * lib/bind.c (rpl_bind): Likewise.
34974         * lib/getpeername.c (rpl_getpeername): Likewise.
34975         * lib/getsockname.c (rpl_getsockname): Likewise.
34976         * lib/recv.c (rpl_recv): Likewise.
34977         * lib/send.c (rpl_send): Likewise.
34978         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34979         * lib/sendto.c (rpl_sendto): Likewise.
34980
34981 2010-03-06  Bruno Haible  <bruno@clisp.org>
34982
34983         Clarify access, euidaccess, faccessat.
34984         * doc/posix-functions/faccessat.texi: Mention security problem under
34985         "Other problems", not "Portability problems".
34986         * doc/posix-functions/access.texi: Likewise. Mention a related security
34987         problem.
34988         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34989         * lib/euidaccess.c: Add comments about platforms.
34990         * lib/unistd.in.h (access, euidaccess): Add warnings.
34991
34992 2010-03-07  Bruno Haible  <bruno@clisp.org>
34993
34994         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34995         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34996         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34997         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34998         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34999         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35000         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35001         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35002         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35003         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35004         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35005         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35006         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35007         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35008         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35009         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35010         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35011         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35012         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35013         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35014         Likewise.
35015         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35016         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35017         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35018         Likewise.
35019         * tests/test-spawn.c (main): Make it work when
35020         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35021
35022 2010-03-07  Bruno Haible  <bruno@clisp.org>
35023
35024         Fix incorrect Makefile.am generation in German locale.
35025         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35026         Execute sed command with character range in C locale.
35027
35028 2010-03-06  Bruno Haible  <bruno@clisp.org>
35029
35030         Tests for module 'iconv-h'.
35031         * modules/iconv-h-tests: New file.
35032         * tests/test-iconv-h.c: New file.
35033
35034         New module 'iconv-h'.
35035         * modules/iconv-h: New file.
35036         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35037         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35038         (configure.ac): Remove gl_ICONV_H.
35039         (Makefile.am): Remove rule for iconv.h.
35040
35041 2010-03-06  Bruno Haible  <bruno@clisp.org>
35042
35043         More consistent naming of *.m4 files.
35044         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35045         * modules/wctype (Files): Update.
35046
35047         More consistent naming of *.m4 files.
35048         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35049         * modules/wchar (Files): Update.
35050
35051 2010-03-06  Jim Meyering  <meyering@redhat.com>
35052
35053         euidaccess: relax license to LGPLv2+
35054         * modules/euidaccess (License): Relax to LGPLv2+.
35055
35056 2010-03-06  Bruno Haible  <bruno@clisp.org>
35057
35058         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35059         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35060         (Makefile.am): Augment lib_SOURCES instead.
35061
35062 2010-03-04  Jim Meyering  <meyering@redhat.com>
35063
35064         utime: remove obsolete module
35065         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35066         unnecessary for years, and has been marked as obsolete for 10 months.
35067         * modules/utime: Remove file.
35068         * lib/utime.c: Remove file.
35069         * m4/utime.m4: Remove file.
35070         * m4/utimes-null.m4: Remove file.
35071         * doc/posix-functions/utime.texi (utime): Remove reference to
35072         the module.  Move the sole "fixed by gnulib" item into the
35073         "problems not fixed by Gnulib" list.
35074         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35075
35076 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35077
35078         * modules/exit (License): Relax license to LGPLv2+.
35079         (Status): Mark as obsolete.
35080         * NEWS: Mention deprecated 'exit' module.
35081         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35082         of now obsolete 'exit'.
35083
35084 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35085
35086         fts-lgpl: remove unused module
35087         * modules/fts-lgpl: Remove.
35088         * MODULES.html.sh (func_all_modules): Adjust.
35089         * check-module (find_included_lib_files): Adjust.
35090         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35091
35092 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35093
35094         copy-acl: enhance Solaris ACL error handling
35095         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35096         * lib/set-mode-acl.c (qset_acl): Likewise.
35097
35098 2010-03-02  Bruno Haible  <bruno@clisp.org>
35099
35100         spawn: Don't override the system defined values on FreeBSD 8.
35101         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35102         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35103         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35104         if HAVE_POSIX_SPAWN is 1.
35105         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35106
35107 2010-03-01  Bruno Haible  <bruno@clisp.org>
35108
35109         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35110         regarding Automake.
35111
35112 2010-02-25  Bruno Haible  <bruno@clisp.org>
35113
35114         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35115         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35116         setting, not afterwards.
35117         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35118
35119 2010-02-24  Eric Blake  <eblake@redhat.com>
35120
35121         bootstrap, git-version-gen: use timestamp
35122         * build-aux/git-version-gen (scriptversion): Force UTC.
35123         * build-aux/bootstrap (scriptversion): New variable.
35124
35125         bootstrap: allow older git
35126         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35127         older than 1.6.4.  Requested by the libvirt project.
35128
35129 2010-02-23  Eric Blake  <eblake@redhat.com>
35130
35131         warn-on-use: work with old autoconf
35132         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35133         AS_VAR semantics of autoconf 2.60.
35134         Reported by Bruno Haible.
35135
35136         bootstrap: improve some comments
35137         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35138         clarification comments.
35139
35140         gettimeofday: provide correct function
35141         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35142         when replacement is declared, otherwise provide gettimeofday.
35143         Reported by Michael Goffioul.
35144
35145 2010-02-23  Jim Meyering  <meyering@redhat.com>
35146
35147         lib-ignore: relax license to "unlimited", not LGPLv2+
35148         * modules/lib-ignore (License): Relax to "unlimited".
35149
35150 2010-02-23  Jim Meyering  <meyering@redhat.com>
35151
35152         lib-ignore: relax license to LGPLv2+
35153         * modules/lib-ignore (License): Relax to LGPLv2+.
35154
35155 2010-02-22  Eric Blake  <eblake@redhat.com>
35156
35157         lseek: avoid bash 3.2 broken pipe bug
35158         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35159         warning from bash 3.2.
35160         Reported by Ben Pfaff, with analysis from Bruno Haible.
35161
35162         bootstrap: support non-FSF copyright holder
35163         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35164         bootstrap.conf override of COPYRIGHT_HOLDER.
35165         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35166
35167         bootstrap: interoperate with gettext 0.14.1
35168         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35169
35170         bootstrap: allow for alternate submodule location
35171         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35172         hardcoding submodule location.
35173         (gnulib_mk): Allow direct use of Makefile.am.
35174
35175         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35176         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35177         rather than reconfiguring where the submodule points.
35178
35179         gettimeofday: restore support for platforms that lack function
35180         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35181         replacement if function is missing.
35182         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35183         * modules/sys_time (Makefile.am): Substitute it.
35184         * lib/sys_time.in.h (gettimeofday): Check it.
35185         Reported by Michael Goffioul.
35186
35187 2010-02-21  Bruno Haible  <bruno@clisp.org>
35188
35189         * lib/stdio.in.h (obstack_printf): Fix typo.
35190
35191 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35192
35193         vc-list-files: use bzr ls's -R option
35194         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35195         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35196
35197 2010-02-21  Jim Meyering  <meyering@redhat.com>
35198
35199         init.sh: fix EXEEXT shims to work also for names like test-prog
35200         * tests/init.sh: Re-exec a better shell, when needed.
35201         If the current shell lacks support for posix $(...), an init.sh-using
35202         test will now try to find a shell that supports that.  If EXEEXT is
35203         nonempty, we also require support for hyphen-in-alias-name and shell
35204         substitutions like ${var#glob}.  Failure to find such a shell results
35205         in a skipped test.
35206
35207 2010-02-21  Bruno Haible  <bruno@clisp.org>
35208
35209         Really work around around "broken pipe" error message from bash 3.2.
35210         * gnulib-tool (func_reset_sigpipe): Remove function.
35211         (echo): In bash 3.2, define to a function that uses printf.
35212         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35213
35214 2010-02-20  Bruno Haible  <bruno@clisp.org>
35215
35216         Restore support for automake 1.9.6 with autoconf 2.61.
35217         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35218         Reported by James Youngman <jay@gnu.org>.
35219
35220 2010-02-20  Bruno Haible  <bruno@clisp.org>
35221
35222         Improve *printf warning condition.
35223         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35224         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35225         and the function is overridden due to SIGPIPE emulation.
35226
35227 2010-02-20  Bruno Haible  <bruno@clisp.org>
35228
35229         * lib/stdio.in.h: Tweak comments.
35230
35231 2010-02-19  Bruno Haible  <bruno@clisp.org>
35232
35233         Make it easier to find modules. New gnulib-tool option '--find'.
35234         * gnulib-tool: New option --find.
35235         (func_usage): Document it.
35236         (func_sanitize_modulelist): New function, extracted from
35237         func_all_modules.
35238         (func_all_modules): Invoke it.
35239         * doc/gnulib-tool.texi (Which modules?): New node.
35240
35241 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35242
35243         * lib/sys_select.in.h: Provide select replacement even if
35244         sys/select.h exists on a system, for Interix.
35245
35246 2010-02-18  Jim Meyering  <meyering@redhat.com>
35247
35248         init.sh: don't use $(...) just yet
35249         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35250         to accommodate e.g., Solaris' /bin/sh.
35251
35252 2010-02-17  Bruno Haible  <bruno@clisp.org>
35253
35254         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35255         Reported by Ludovic Courtès <ludo@gnu.org>.
35256
35257 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35258
35259         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35260         linking with -lintl.
35261
35262 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35263
35264         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35265         if not provided by the system's netdb.h.  Reported by
35266         ludo@gnu.org (Ludovic Courtès).
35267
35268 2010-02-15  Jim Meyering  <meyering@redhat.com>
35269
35270         init.sh: improve portability and efficiency
35271         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35272         "dummy" in a for loop.
35273         Use '!', not '^' to select the complement of a character set used
35274         in a "case" statement.
35275         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35276         Suggestions from Eric Blake.
35277
35278         init.sh: automatically accommodate programs with the .exe suffix
35279         Automatically arrange for an invocation of "prog" to execute the
35280         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35281         may use the simpler "prog", yet still work when built on a system
35282         that requires specifying the added suffix.
35283         Do this by constructing a function named "prog" that invokes
35284         "prog.exe" for each .exe file in selected directories.
35285         * tests/init.sh (find_exe_basenames_): New function.
35286         (create_exe_shim_functions_): New function.
35287         (path_prepend_): Use it.
35288
35289         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35290         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35291         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35292
35293 2010-02-14  Jim Meyering  <meyering@redhat.com>
35294
35295         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35296         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35297         (sc_prohibit_hash_pjw_without_use): New rule.
35298
35299         maint.mk: allow the default upload destination dir to be overridden
35300         * top/maint.mk (upload_dest_dir_): Define with a default that
35301         preserves the status quo.
35302         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35303         Reported by Peter Simons.
35304
35305         maint.mk: prohibit inclusion of "hash.h" without_use
35306         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35307
35308 2010-02-10  Jim Meyering  <meyering@redhat.com>
35309
35310         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35311         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35312
35313 2010-02-09  Eric Blake  <ebb9@byu.net>
35314         and Bruno Haible  <bruno@clisp.org>
35315
35316         obstack-printf-posix: ensure declaration
35317         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35318         extracted from gl_FUNC_OBSTACK_PRINTF.
35319         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35320         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35321         Likewise.
35322         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35323         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35324         0.
35325
35326 2010-02-08  Bruno Haible  <bruno@clisp.org>
35327
35328         gnulib-tool: Fix typo in 2010-02-07 commit.
35329         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35330         Reported by Eric Blake.
35331
35332 2010-02-07  Bruno Haible  <bruno@clisp.org>
35333
35334         gnulib-tool: Fix up caching patches.
35335         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35336         option --no-cache. Use associative arrays when supported by the shell.
35337         (sed_comments): New variable.
35338         (modcache): Renamed from do_cache.
35339         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35340         abbreviate unnecessarily.
35341         (have_associative): New variable.
35342         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35343         way also for ksh and zsh.
35344         (func_init_sed_convert_to_cache_statements): New function, extracted
35345         from func_cache_lookup_module. Add support for associative arrays.
35346         Don't set the c_MODULE_cached variable here. Ignore all lines before
35347         the first field header. Remove only the final newline, not all trailing
35348         newlines. Support empty fields correctly. Limit the use of 'eval' to
35349         assignments.
35350         (func_get_description, func_get_status, func_get_notice,
35351         func_get_applicability, func_get_filelist, func_get_dependencies,
35352         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35353         func_get_automake_snippet, func_get_include_directive,
35354         func_get_link_directive, func_get_license, func_get_maintainer):
35355         Update documentation. List the unoptimized code first. Add support for
35356         associative arrays. Limit the use of 'eval' to assignments.
35357         (func_get_applicability): Undo stylistic pessimisations.
35358         (func_get_automake_snippet, func_get_include_directive): Reduce code
35359         duplication.
35360         (func_modules_transitive_closure, func_modules_add_dummy,
35361         func_modules_notice, func_modules_to_filelist, func_add_file,
35362         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35363         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35364         func_create_testdir, func_create_megatestdir): Update documentation.
35365
35366 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35367
35368         * gnulib-tool (func_cache_lookup_module): Store the module name
35369         belonging to the cache variable; error out if two different
35370         module names map to the same cache variable name.
35371
35372 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35373
35374         gnulib-tool: Make caching optional.
35375         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35376         Update matching short versions of --no-changelog.
35377         (func_usage): Update.
35378         (sed_extract_cache_prog): Renamed from ...
35379         (sed_extract_prog): ... this; revert to old extraction script.
35380         (func_get_description, func_get_status)
35381         (func_get_notice, func_get_applicability, func_get_filelist)
35382         (func_get_dependencies, func_get_autoconf_early_snippet)
35383         (func_get_autoconf_snippet, func_get_automake_snippet)
35384         (func_get_include_directive, func_get_link_directive)
35385         (func_get_license, func_get_maintainer): If $do_cache is false,
35386         use old, non-caching extraction scripts.
35387         Suggestion by Bruno Haible.
35388
35389 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35390
35391         gnulib-tool: cache module metainformation.
35392         * gnulib-tool (sed_extract_prog): Match newline before each
35393         header, and rewrite header to a shell variable suffix.
35394         (func_cache_var, func_cache_lookup_module): New functions,
35395         to turn a module name into a cache variable prefix, and to
35396         look up and cache module metainformation.
35397         (func_get_description, func_get_status)
35398         (func_get_notice, func_get_applicability, func_get_filelist)
35399         (func_get_dependencies, func_get_autoconf_early_snippet)
35400         (func_get_autoconf_snippet, func_get_automake_snippet)
35401         (func_get_include_directive, func_get_link_directive)
35402         (func_get_license, func_get_maintainer): Use
35403         func_cache_lookup_module.
35404
35405 2010-02-07  Bruno Haible  <bruno@clisp.org>
35406
35407         fnctl: Fix missing dependency.
35408         * modules/fcntl (Depends-on): Add getdtablesize.
35409         Reported by John W. Eaton <jwe@gnu.org>.
35410
35411 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35412
35413         Argp: fix recognition of short alias options.
35414
35415         * lib/argp-parse.c (convert_options): Fix improper use of
35416         `|' between character values.
35417         * tests/test-argp.c (group1_option): New alias option
35418         --read (-r).
35419         (group1_parser): Special handling for 'r'.
35420         (test15): New test case.
35421         (test_fun): Add test15.
35422         * tests/test-argp-2.sh: Update expected --help and --usage
35423         outputs.
35424
35425 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35426
35427         * tests/test-argp.c: Fix indentation.
35428
35429 2010-02-04  Eric Blake  <ebb9@byu.net>
35430
35431         gettimeofday: expose type of second argument
35432         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35433         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35434         * tests/test-gettimeofday.c: Use it to silence warning.
35435         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35436         the issue.
35437
35438 2010-02-03  Jim Meyering  <meyering@redhat.com>
35439
35440         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35441         * lib/regcomp.c (TYPE_SIGNED): Define.
35442         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35443
35444         regcomp.c: avoid a new -Wshadow warning
35445         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35446
35447 2010-02-01  Jim Meyering  <meyering@redhat.com>
35448
35449         removing useless parentheses in cpp #define directives
35450         For motivation, see commit c0221df4, "define STREQ(a,b)
35451         consistently, removing useless parentheses"
35452         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35453         * lib/mountlist.c (MNT_IGNORE): Likewise.
35454         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35455
35456 2010-02-01  Eric Blake  <ebb9@byu.net>
35457
35458         sys_time: use link-warning
35459         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35460         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35461         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35462         * modules/sys_time (Depends-on): Add warn-on-use.
35463         (Makefile.am): Always build replacement.
35464         (configure.ac): Update substitutions.
35465         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35466         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35467         bother with SYS_TIME_H.
35468         * modules/gettimeofday (configure.ac): Declare indicator.
35469         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35470         in use.
35471
35472         closein-tests: silence compiler warning
35473         * tests/test-closein.c (main): Ignore fread result.
35474         * modules/closein-tests (Depends-on): Add ignore-value.
35475
35476         tests: silence warning about system return
35477         * tests/test-areadlink-with-size.c (main): Ignore system result.
35478         * tests/test-areadlink.c (main): Likewise.
35479         * tests/test-areadlinkat-with-size.c (main): Likewise.
35480         * tests/test-areadlinkat.c (main): Likewise.
35481         * tests/test-canonicalize-lgpl.c (main): Likewise.
35482         * tests/test-canonicalize.c (main): Likewise.
35483         * tests/test-chown.c (main): Likewise.
35484         * tests/test-fchownat.c (main): Likewise.
35485         * tests/test-fdutimensat.c (main): Likewise.
35486         * tests/test-fstatat.c (main): Likewise.
35487         * tests/test-futimens.c (main): Likewise.
35488         * tests/test-lchown.c (main): Likewise.
35489         * tests/test-link.c (main): Likewise.
35490         * tests/test-linkat.c (main): Likewise.
35491         * tests/test-lstat.c (main): Likewise.
35492         * tests/test-mkdir.c (main): Likewise.
35493         * tests/test-mkdirat.c (main): Likewise.
35494         * tests/test-mkfifo.c (main): Likewise.
35495         * tests/test-mkfifoat.c (main): Likewise.
35496         * tests/test-mknod.c (main): Likewise.
35497         * tests/test-readlink.c (main): Likewise.
35498         * tests/test-remove.c (main): Likewise.
35499         * tests/test-rename.c (main): Likewise.
35500         * tests/test-renameat.c (main): Likewise.
35501         * tests/test-rmdir.c (main): Likewise.
35502         * tests/test-symlink.c (main): Likewise.
35503         * tests/test-symlinkat.c (main): Likewise.
35504         * tests/test-unlink.c (main): Likewise.
35505         * tests/test-unlinkat.c (main): Likewise.
35506         * tests/test-utimens.c (main): Likewise.
35507         * tests/test-utimensat.c (main): Likewise.
35508         * modules/areadlink-tests (Depends-on): Add ignore-value.
35509         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35510         * modules/areadlinkat-tests (Depends-on): Likewise.
35511         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35512         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35513         * modules/canonicalize-tests (Depends-on): Likewise.
35514         * modules/chown-tests (Depends-on): Likewise.
35515         * modules/fdutimensat-tests (Depends-on): Likewise.
35516         * modules/futimens-tests (Depends-on): Likewise.
35517         * modules/lchown-tests (Depends-on): Likewise.
35518         * modules/link-tests (Depends-on): Likewise.
35519         * modules/linkat-tests (Depends-on): Likewise.
35520         * modules/lstat-tests (Depends-on): Likewise.
35521         * modules/mkdir-tests (Depends-on): Likewise.
35522         * modules/mkfifo-tests (Depends-on): Likewise.
35523         * modules/mkfifoat-tests (Depends-on): Likewise.
35524         * modules/mknod-tests (Depends-on): Likewise.
35525         * modules/openat-tests (Depends-on): Likewise.
35526         * modules/readlink-tests (Depends-on): Likewise.
35527         * modules/remove-tests (Depends-on): Likewise.
35528         * modules/rename-tests (Depends-on): Likewise.
35529         * modules/renameat-tests (Depends-on): Likewise.
35530         * modules/rmdir-tests (Depends-on): Likewise.
35531         * modules/symlink-tests (Depends-on): Likewise.
35532         * modules/symlinkat-tests (Depends-on): Likewise.
35533         * modules/unlink-tests (Depends-on): Likewise.
35534         * modules/utimens-tests (Depends-on): Likewise.
35535         * modules/utimensat-tests (Depends-on): Likewise.
35536
35537 2010-01-31  Bruno Haible  <bruno@clisp.org>
35538
35539         Perform the same test for many <math.h> functions.
35540         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35541         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35542         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35543         of gl_MATHFUNC.
35544         * modules/acos (configure.ac): Likewise.
35545         * modules/asin (configure.ac): Likewise.
35546         * modules/atan (configure.ac): Likewise.
35547         * modules/atan2 (configure.ac): Likewise.
35548         * modules/cbrt (configure.ac): Likewise.
35549         * modules/copysign (configure.ac): Likewise.
35550         * modules/cos (configure.ac): Likewise.
35551         * modules/cosh (configure.ac): Likewise.
35552         * modules/erf (configure.ac): Likewise.
35553         * modules/erfc (configure.ac): Likewise.
35554         * modules/exp (configure.ac): Likewise.
35555         * modules/fmod (configure.ac): Likewise.
35556         * modules/hypot (configure.ac): Likewise.
35557         * modules/j0 (configure.ac): Likewise.
35558         * modules/j1 (configure.ac): Likewise.
35559         * modules/jn (configure.ac): Likewise.
35560         * modules/lgamma (configure.ac): Likewise.
35561         * modules/log (configure.ac): Likewise.
35562         * modules/log10 (configure.ac): Likewise.
35563         * modules/log1p (configure.ac): Likewise.
35564         * modules/pow (configure.ac): Likewise.
35565         * modules/remainder (configure.ac): Likewise.
35566         * modules/sin (configure.ac): Likewise.
35567         * modules/sinh (configure.ac): Likewise.
35568         * modules/tan (configure.ac): Likewise.
35569         * modules/tanh (configure.ac): Likewise.
35570         * modules/y0 (configure.ac): Likewise.
35571         * modules/y1 (configure.ac): Likewise.
35572         * modules/yn (configure.ac): Likewise.
35573         Suggested by Paolo Bonzini.
35574
35575 2010-01-31  Bruno Haible  <bruno@clisp.org>
35576
35577         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35578
35579 2010-01-31  Bruno Haible  <bruno@clisp.org>
35580
35581         Work around getdelim() bug on FreeBSD 8.0.
35582         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35583         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35584         not work.
35585         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35586         is 1.
35587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35588         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35589         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35590         a non-zero size.
35591         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35592
35593 2010-01-31  Bruno Haible  <bruno@clisp.org>
35594
35595         Work around getline() bug on FreeBSD 8.0.
35596         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35597         and a non-zero size.
35598         * tests/test-getline.c (main): Likewise.
35599         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35600         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35601
35602 2010-01-28  Eric Blake  <ebb9@byu.net>
35603
35604         regex: fix build failure
35605         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35606         platforms.
35607
35608 2010-01-28  Jim Meyering  <meyering@redhat.com>
35609
35610         regex: do not ignore memory allocation failure
35611         * lib/regex_internal.c (create_cd_newstate): Detect
35612         re_node_set_init_copy failure.   Extracted from glibc commit
35613         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35614
35615         regex: sync more white-space changes from libc
35616         * lib/regex_internal.c: White-space only changes.
35617         * lib/regexec.c: Likewise.
35618
35619         regex: add many uses of __attribute_warn_unused_result__
35620         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35621         * lib/regexec.c: Likewise.
35622         Extracted from a messy glibc commit.
35623
35624         regcomp.c: spelling and merge-artifact from glibc
35625         * lib/regcomp.c: Merge remainder of glibc's
35626         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35627
35628         regcomp.c: sync white-space changes from glibc
35629         * lib/regcomp.c: Merge to accommodate white space
35630         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35631
35632         regcomp.c: do not ignore internal return values
35633         * lib/regcomp.c: Do not ignore internal return values.
35634         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35635         but without its white-space changes and spelling fixes.
35636
35637         regex_internal.h: define __attribute_warn_unused_result__
35638         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35639
35640         maint: add a syntax-check rule to check for vulnerable Makefile.in
35641         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35642
35643 2010-01-27  Jim Meyering  <meyering@redhat.com>
35644
35645         ncftpput-ftp: clean up spaces
35646         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35647         Remove trailing blanks.
35648
35649 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35650
35651         * build-aux/git-version-gen: Fix copyright statement.
35652         * build-aux/gnupload: Likewise.
35653         * tests/test-arcfour.c: Likewise.
35654         * tests/test-arctwo.c: Likewise.
35655         * tests/test-count-one-bits.c: Likewise.
35656         * tests/test-crc.c: Likewise.
35657         * tests/test-des.c: Likewise.
35658         * tests/test-gc-arcfour.c: Likewise.
35659         * tests/test-gc-arctwo.c: Likewise.
35660         * tests/test-gc-des.c: Likewise.
35661         * tests/test-gc-hmac-md5.c: Likewise.
35662         * tests/test-gc-hmac-sha1.c: Likewise.
35663         * tests/test-gc-md2.c: Likewise.
35664         * tests/test-gc-md4.c: Likewise.
35665         * tests/test-gc-md5.c: Likewise.
35666         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35667         * tests/test-gc-rijndael.c: Likewise.
35668         * tests/test-gc-sha1.c: Likewise.
35669         * tests/test-gc.c: Likewise.
35670         * tests/test-gethostname.c: Likewise.
35671         * tests/test-gettimeofday.c: Likewise.
35672         * tests/test-hash.c: Likewise.
35673         * tests/test-hmac-md5.c: Likewise.
35674         * tests/test-hmac-sha1.c: Likewise.
35675         * tests/test-md2.c: Likewise.
35676         * tests/test-md4.c: Likewise.
35677         * tests/test-md5.c: Likewise.
35678         * tests/test-memchr.c: Likewise.
35679         * tests/test-memchr2.c: Likewise.
35680         * tests/test-memcmp.c: Likewise.
35681         * tests/test-memmem.c: Likewise.
35682         * tests/test-memrchr.c: Likewise.
35683         * tests/test-rawmemchr.c: Likewise.
35684         * tests/test-read-file.c: Likewise.
35685         * tests/test-rijndael.c: Likewise.
35686         * tests/test-sockets.c: Likewise.
35687         * tests/test-strchrnul.c: Likewise.
35688         * tests/test-strstr.c: Likewise.
35689         * tests/test-strtod.c: Likewise.
35690         * build-aux/ncftpput-ftp: Likewise.
35691
35692 2010-01-26  Eric Blake  <ebb9@byu.net>
35693
35694         ignore-value: update recommended header name
35695         * modules/ignore-value (Include): Only use <> for headers that
35696         exist in glibc.
35697
35698 2010-01-26  Jim Meyering  <meyering@redhat.com>
35699
35700         test-userspec.c: avoid compiler warnings
35701         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35702         and "initialization discards qualifiers..." warnings.
35703         Put the first "uid" in its own scope, and make char* members "const".
35704
35705 2010-01-25  Bruno Haible  <bruno@clisp.org>
35706
35707         gnulib-tool: Make warning diagnostics consistent.
35708         * gnulib-tool (func_warning): New function.
35709         Use it everywhere where gnulib-tool produces output to stderr and it is
35710         not a fatal error.
35711
35712 2010-01-25  Bruno Haible  <bruno@clisp.org>
35713
35714         Fix test dependencies.
35715         * modules/xstrtol-tests (Depends-on): Add inttypes.
35716         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35717
35718 2010-01-25 Pádraig Brady <P@draigBrady.com>
35719
35720         syntax-check: detect incorrect boolean macro values in config.h
35721         * modules/maintainer-makefile (configure.ac): Parameterize the location
35722         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35723         The logic is from Eric Blake and the location indicated by Jim Meyering.
35724         Note the more natural CONFIG_HEADER name is prohibited by automake
35725         for backwards compatibility reasons.
35726         * top/maint.mk (sc_Wundef_boolean): New rule.
35727
35728 2010-01-25  Jim Meyering  <meyering@redhat.com>
35729
35730         bootstrap: detect MacOS 10.6's shasum, too
35731         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35732         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35733
35734 2010-01-23  Jim Meyering  <meyering@redhat.com>
35735
35736         xstrtoll: new module
35737         * modules/xstrtoll: New file.
35738         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35739         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35740         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35741         ./configure fails if you use this module and lack "long long".
35742         * modules/xstrtoll-tests: New module.
35743         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35744         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35745         new init.sh-based test framework.
35746
35747 2010-01-24  Bruno Haible  <bruno@clisp.org>
35748
35749         Tests for module 'yn'.
35750         * modules/yn-tests: New file.
35751         * tests/test-yn.c: New file.
35752
35753         Tests for module 'y1'.
35754         * modules/y1-tests: New file.
35755         * tests/test-y1.c: New file.
35756
35757         Tests for module 'y0'.
35758         * modules/y0-tests: New file.
35759         * tests/test-y0.c: New file.
35760
35761         Tests for module 'tanh'.
35762         * modules/tanh-tests: New file.
35763         * tests/test-tanh.c: New file.
35764
35765         Tests for module 'tan'.
35766         * modules/tan-tests: New file.
35767         * tests/test-tan.c: New file.
35768
35769         Tests for module 'sqrt'.
35770         * modules/sqrt-tests: New file.
35771         * tests/test-sqrt.c: New file.
35772
35773         Tests for module 'sinh'.
35774         * modules/sinh-tests: New file.
35775         * tests/test-sinh.c: New file.
35776
35777         Tests for module 'sin'.
35778         * modules/sin-tests: New file.
35779         * tests/test-sin.c: New file.
35780
35781         Tests for module 'rint'.
35782         * modules/rint-tests: New file.
35783         * tests/test-rint.c: New file.
35784
35785         Tests for module 'remainder'.
35786         * modules/remainder-tests: New file.
35787         * tests/test-remainder.c: New file.
35788
35789         Tests for module 'pow'.
35790         * modules/pow-tests: New file.
35791         * tests/test-pow.c: New file.
35792
35793         Tests for module 'nextafter'.
35794         * modules/nextafter-tests: New file.
35795         * tests/test-nextafter.c: New file.
35796
35797         Tests for module 'modf'.
35798         * modules/modf-tests: New file.
35799         * tests/test-modf.c: New file.
35800
35801         Tests for module 'logb'.
35802         * modules/logb-tests: New file.
35803         * tests/test-logb.c: New file.
35804
35805         Tests for module 'log1p'.
35806         * modules/log1p-tests: New file.
35807         * tests/test-log1p.c: New file.
35808
35809         Tests for module 'log10'.
35810         * modules/log10-tests: New file.
35811         * tests/test-log10.c: New file.
35812
35813         Tests for module 'log'.
35814         * modules/log-tests: New file.
35815         * tests/test-log.c: New file.
35816
35817         Tests for module 'lgamma'.
35818         * modules/lgamma-tests: New file.
35819         * tests/test-lgamma.c: New file.
35820
35821         Tests for module 'ldexp'.
35822         * modules/ldexp-tests: New file.
35823         * tests/test-ldexp.c: New file.
35824
35825         Tests for module 'jn'.
35826         * modules/jn-tests: New file.
35827         * tests/test-jn.c: New file.
35828
35829         Tests for module 'j1'.
35830         * modules/j1-tests: New file.
35831         * tests/test-j1.c: New file.
35832
35833         Tests for module 'j0'.
35834         * modules/j0-tests: New file.
35835         * tests/test-j0.c: New file.
35836
35837         Tests for module 'hypot'.
35838         * modules/hypot-tests: New file.
35839         * tests/test-hypot.c: New file.
35840
35841         Tests for module 'fmod'.
35842         * modules/fmod-tests: New file.
35843         * tests/test-fmod.c: New file.
35844
35845         Tests for module 'fabs'.
35846         * modules/fabs-tests: New file.
35847         * tests/test-fabs.c: New file.
35848
35849         Tests for module 'exp'.
35850         * modules/exp-tests: New file.
35851         * tests/test-exp.c: New file.
35852
35853         Tests for module 'erfc'.
35854         * modules/erfc-tests: New file.
35855         * tests/test-erfc.c: New file.
35856
35857         Tests for module 'erf'.
35858         * modules/erf-tests: New file.
35859         * tests/test-erf.c: New file.
35860
35861         Tests for module 'cosh'.
35862         * modules/cosh-tests: New file.
35863         * tests/test-cosh.c: New file.
35864
35865         Tests for module 'cos'.
35866         * modules/cos-tests: New file.
35867         * tests/test-cos.c: New file.
35868
35869         Tests for module 'copysign'.
35870         * modules/copysign-tests: New file.
35871         * tests/test-copysign.c: New file.
35872
35873         Tests for module 'cbrt'.
35874         * modules/cbrt-tests: New file.
35875         * tests/test-cbrt.c: New file.
35876
35877         Tests for module 'atan2'.
35878         * modules/atan2-tests: New file.
35879         * tests/test-atan2.c: New file.
35880
35881         Tests for module 'atan'.
35882         * modules/atan-tests: New file.
35883         * tests/test-atan.c: New file.
35884
35885         Tests for module 'asin'.
35886         * modules/asin-tests: New file.
35887         * tests/test-asin.c: New file.
35888
35889         Tests for module 'acos'.
35890         * modules/acos-tests: New file.
35891         * tests/test-acos.c: New file.
35892
35893 2010-01-24  Bruno Haible  <bruno@clisp.org>
35894
35895         Fix tests for common <math.h> functions.
35896         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
35897         code snippet that references the function pointer, rather than merely
35898         calling the function. Substitute the FUNC_LIBM variable.
35899         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
35900         * modules/acos (configure.ac): Likewise.
35901         * modules/asin (configure.ac): Likewise.
35902         * modules/atan (configure.ac): Likewise.
35903         * modules/atan2 (configure.ac): Likewise.
35904         * modules/cbrt (configure.ac): Likewise.
35905         * modules/copysign (configure.ac): Likewise.
35906         * modules/cos (configure.ac): Likewise.
35907         * modules/cosh (configure.ac): Likewise.
35908         * modules/erf (configure.ac): Likewise.
35909         * modules/erfc (configure.ac): Likewise.
35910         * modules/exp (configure.ac): Likewise.
35911         * modules/fabs (configure.ac): Likewise.
35912         * modules/fmod (configure.ac): Likewise.
35913         * modules/hypot (configure.ac): Likewise.
35914         * modules/j0 (configure.ac): Likewise.
35915         * modules/j1 (configure.ac): Likewise.
35916         * modules/jn (configure.ac): Likewise.
35917         * modules/ldexp (configure.ac): Likewise.
35918         * modules/lgamma (configure.ac): Likewise.
35919         * modules/log (configure.ac): Likewise.
35920         * modules/log10 (configure.ac): Likewise.
35921         * modules/log1p (configure.ac): Likewise.
35922         * modules/logb (configure.ac): Likewise.
35923         * modules/modf (configure.ac): Likewise.
35924         * modules/nextafter (configure.ac): Likewise.
35925         * modules/pow (configure.ac): Likewise.
35926         * modules/remainder (configure.ac): Likewise.
35927         * modules/rint (configure.ac): Likewise.
35928         * modules/sin (configure.ac): Likewise.
35929         * modules/sinh (configure.ac): Likewise.
35930         * modules/tan (configure.ac): Likewise.
35931         * modules/tanh (configure.ac): Likewise.
35932         * modules/y0 (configure.ac): Likewise.
35933         * modules/y1 (configure.ac): Likewise.
35934         * modules/yn (configure.ac): Likewise.
35935
35936 2010-01-24  Bruno Haible  <bruno@clisp.org>
35937
35938         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
35939         * tests/test-acosl.c (x): New variable.
35940         (main): Store argument in x and fetch it from x.
35941         * tests/test-asinl.c (x): New variable.
35942         (main): Store argument in x and fetch it from x.
35943         * tests/test-atanl.c (x): New variable.
35944         (main): Store argument in x and fetch it from x.
35945         * tests/test-cosl.c (x): New variable.
35946         (main): Store argument in x and fetch it from x.
35947         * tests/test-expl.c (x): New variable.
35948         (main): Store argument in x and fetch it from x.
35949         * tests/test-logl.c (x): New variable.
35950         (main): Store argument in x and fetch it from x.
35951         * tests/test-sinl.c (x): New variable.
35952         (main): Store argument in x and fetch it from x.
35953         * tests/test-sqrtl.c (x): New variable.
35954         (main): Store argument in x and fetch it from x.
35955         * tests/test-tanl.c (x): New variable.
35956         (main): Store argument in x and fetch it from x.
35957
35958 2010-01-24  Bruno Haible  <bruno@clisp.org>
35959
35960         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
35961         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
35962         assignments to the initial TESTS_ENVIRONMENT.
35963         * doc/gnulib.texi (Unit test modules): Document it.
35964         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
35965         TESTS_ENVIRONMENT.
35966         * modules/btowc-tests (Makefile.am): Likewise.
35967         * modules/c-stack-tests (Makefile.am): Likewise.
35968         * modules/c-strcase-tests (Makefile.am): Likewise.
35969         * modules/copy-file-tests (Makefile.am): Likewise.
35970         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
35971         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
35972         * modules/mbrtowc-tests (Makefile.am): Likewise.
35973         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35974         * modules/mbscasestr-tests (Makefile.am): Likewise.
35975         * modules/mbschr-tests (Makefile.am): Likewise.
35976         * modules/mbscspn-tests (Makefile.am): Likewise.
35977         * modules/mbsinit-tests (Makefile.am): Likewise.
35978         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35979         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35980         * modules/mbspbrk-tests (Makefile.am): Likewise.
35981         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35982         * modules/mbsrchr-tests (Makefile.am): Likewise.
35983         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35984         * modules/mbsspn-tests (Makefile.am): Likewise.
35985         * modules/mbsstr-tests (Makefile.am): Likewise.
35986         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35987         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35988         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35989         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35990         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35991         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35992         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35993         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35994         * modules/wcrtomb-tests (Makefile.am): Likewise.
35995         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35996         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35997         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35998         assignments from TESTS_ENVIRONMENT.
35999         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36000         augmentation.
36001         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36002         * modules/atexit-tests (Makefile.am): Likewise.
36003         * modules/binary-io-tests (Makefile.am): Likewise.
36004         * modules/closein-tests (Makefile.am): Likewise.
36005         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36006         * modules/exclude-tests (Makefile.am): Likewise.
36007         * modules/fflush-tests (Makefile.am): Likewise.
36008         * modules/fpending-tests (Makefile.am): Likewise.
36009         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36010         * modules/freadahead-tests (Makefile.am): Likewise.
36011         * modules/freadptr-tests (Makefile.am): Likewise.
36012         * modules/freadseek-tests (Makefile.am): Likewise.
36013         * modules/fseek-tests (Makefile.am): Likewise.
36014         * modules/fseeko-tests (Makefile.am): Likewise.
36015         * modules/ftell-tests (Makefile.am): Likewise.
36016         * modules/ftello-tests (Makefile.am): Likewise.
36017         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36018         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36019         * modules/lseek-tests (Makefile.am): Likewise.
36020         * modules/parse-duration-tests (Makefile.am): Likewise.
36021         * modules/perror-tests (Makefile.am): Likewise.
36022         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36023         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36024         * modules/pipe-tests (Makefile.am): Likewise.
36025         * modules/pread-tests (Makefile.am): Likewise.
36026         * modules/printf-posix-tests (Makefile.am): Likewise.
36027         * modules/select-tests (Makefile.am): Likewise.
36028         * modules/sigpipe-tests (Makefile.am): Likewise.
36029         * modules/tsearch-tests (Makefile.am): Likewise.
36030         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36031         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36032         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36033         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36034         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36035         * modules/version-etc-tests (Makefile.am): Likewise.
36036         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36037         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36038         * modules/xalloc-die-tests (Makefile.am): Likewise.
36039         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36040         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36041         * modules/xstrtol-tests (Makefile.am): Likewise.
36042         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36043         * modules/yesno-tests (Makefile.am): Likewise.
36044         Suggested by Jim Meyering.
36045
36046 2010-01-24  Bruno Haible  <bruno@clisp.org>
36047
36048         More documentation.
36049         * doc/gnulib.texi (Writing modules): New chapter.
36050         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36051         the new chapter.
36052
36053 2010-01-24  Jim Meyering  <meyering@redhat.com>
36054
36055         maint.mk: do not prepend "./" after filtering
36056         * top/maint.mk (_prepend_srcdir_prefix): New variable
36057         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36058         "./" when $(srcdir) is ".".
36059
36060         define STREQ(a,b) consistently, removing useless parentheses
36061         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36062         since the only risk is that "a" or "b" contains an unparenthesized
36063         comma, but if either did that, STREQ would have 3 or more arguments.
36064         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36065         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36066         * lib/hash-triple.c (STREQ): Likewise.
36067         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36068         * lib/getugroups.c (STREQ): Likewise.
36069
36070 2010-01-23  Jim Meyering  <meyering@redhat.com>
36071
36072         maint.mk: fix syntax-check in a non-srcdir build directory
36073         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36074         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36075
36076 2010-01-22  Jim Meyering  <meyering@redhat.com>
36077
36078         userspec: add unit tests
36079         * tests/test-userspec.c: New file.
36080         * modules/userspec-tests: Likewise.
36081
36082 2010-01-21  Jim Meyering  <meyering@redhat.com>
36083
36084         maint.mk: handle source file names containing "." robustly
36085         * top/maint.mk (_dot_escaped_srcdir): Define.
36086         (VC_LIST): Use it in LHS of sed substitution.
36087
36088 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36089
36090         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36091         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36092         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36093         from a non-srcdir build.
36094
36095 2010-01-20  Eric Blake  <ebb9@byu.net>
36096
36097         warn-on-use: use instead of link-warning
36098         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36099         * modules/unistd (Depends-on, Makefile.am): Likewise.
36100         * modules/arpa_inet (Depends-on): Replace link-warning with
36101         warn-on-use.
36102         (Makefile.am): Update rules accordingly.
36103         * modules/ctype (Depends-on, Makefile.am): Likewise.
36104         * modules/dirent (Depends-on, Makefile.am): Likewise.
36105         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36106         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36107         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36108         * modules/locale (Depends-on, Makefile.am): Likewise.
36109         * modules/math (Depends-on, Makefile.am): Likewise.
36110         * modules/search (Depends-on, Makefile.am): Likewise.
36111         * modules/signal (Depends-on, Makefile.am): Likewise.
36112         * modules/spawn (Depends-on, Makefile.am): Likewise.
36113         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36114         * modules/string (Depends-on, Makefile.am): Likewise.
36115         * modules/strings (Depends-on, Makefile.am): Likewise.
36116         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36117         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36118         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36119         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36120         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36121         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36122         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36123         * modules/wchar (Depends-on, Makefile.am): Likewise.
36124         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36125         should be poisoned.
36126         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36127         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36128         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36129         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36130         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36131         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36132         * m4/math_h.m4 (gl_MATH_H): Likewise.
36133         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36134         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36135         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36136         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36137         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36138         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36139         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36140         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36141         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36145         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36146         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36147         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36148         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36149         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36150         GL_LINK_WARNING.
36151         * lib/ctype.in.h: Likewise.
36152         * lib/dirent.in.h: Likewise.
36153         * lib/fcntl.in.h: Likewise.
36154         * lib/inttypes.in.h: Likewise.
36155         * lib/langinfo.in.h: Likewise.
36156         * lib/locale.in.h: Likewise.
36157         * lib/math.in.h: Likewise.
36158         * lib/search.in.h: Likewise.
36159         * lib/signal.in.h: Likewise.
36160         * lib/spawn.in.h: Likewise.
36161         * lib/stdio.in.h: Likewise.
36162         * lib/stdlib.in.h: Likewise.
36163         * lib/string.in.h: Likewise.
36164         * lib/strings.in.h: Likewise.
36165         * lib/sys_file.in.h: Likewise.
36166         * lib/sys_ioctl.in.h: Likewise.
36167         * lib/sys_select.in.h: Likewise.
36168         * lib/sys_socket.in.h: Likewise.
36169         * lib/sys_stat.in.h: Likewise.
36170         * lib/sys_times.in.h: Likewise.
36171         * lib/sys_utsname.in.h: Likewise.
36172         * lib/unistd.in.h: Likewise.
36173         * lib/wchar.in.h: Likewise.
36174
36175 2010-01-20  Bruno Haible  <bruno@clisp.org>
36176
36177         Avoid duplicate -lm.
36178         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36179         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36181         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36182         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36183         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36184         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36185         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36186         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36187         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36188         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36189         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36190         Reported by Paolo Bonzini.
36191
36192 2010-01-19  Bruno Haible  <bruno@clisp.org>
36193
36194         langinfo, nl_langinfo: Relicense under LGPLv2+.
36195         * modules/langinfo (License): Change to LGPLv2+.
36196         * modules/nl_langinfo (License): Likewise.
36197         Patch by David Lutterkort <lutter@redhat.com>.
36198
36199 2010-01-19  Bruno Haible  <bruno@clisp.org>
36200
36201         Avoid compilation error with cc on OSF/1 5.1.
36202         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36203         statement, not before.
36204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36205
36206 2010-01-18  Bruno Haible  <bruno@clisp.org>
36207
36208         Avoid a link error due to the __printf__ symbol.
36209         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36210         and 2.6.x.
36211         (__format__, __printf__): Remove definitions.
36212         * lib/argp-fmtstream.h: Likewise.
36213         * lib/argp.h: Likewise.
36214         * lib/error.h: Likewise.
36215         * lib/vasnprintf.h: Likewise.
36216         * lib/xprintf.h: Likewise.
36217         * lib/xvasprintf.h: Likewise.
36218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36219
36220 2010-01-18  Bruno Haible  <bruno@clisp.org>
36221
36222         Tests for module 'tanl'.
36223         * modules/tanl-tests: New file.
36224         * tests/test-tanl.c: New file.
36225
36226         Tests for module 'sqrtl'.
36227         * modules/sqrtl-tests: New file.
36228         * tests/test-sqrtl.c: New file.
36229
36230         Tests for module 'sinl'.
36231         * modules/sinl-tests: New file.
36232         * tests/test-sinl.c: New file.
36233
36234         Tests for module 'logl'.
36235         * modules/logl-tests: New file.
36236         * tests/test-logl.c: New file.
36237
36238         Tests for module 'expl'.
36239         * modules/expl-tests: New file.
36240         * tests/test-expl.c: New file.
36241
36242         Tests for module 'cosl'.
36243         * modules/cosl-tests: New file.
36244         * tests/test-cosl.c: New file.
36245
36246         Tests for module 'atanl'.
36247         * modules/atanl-tests: New file.
36248         * tests/test-atanl.c: New file.
36249
36250         Tests for module 'asinl'.
36251         * modules/asinl-tests: New file.
36252         * tests/test-asinl.c: New file.
36253
36254         Tests for module 'acosl'.
36255         * modules/acosl-tests: New file.
36256         * tests/test-acosl.c: New file.
36257
36258         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36259         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36260         tanl): Use the standard gnulib idiom.
36261         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36262         * lib/sinl.c: Likewise.
36263         * lib/tanl.c: Don't include trigl.c.
36264         (kernel_tanl): Make static.
36265         * lib/sincosl.c: Include trigl.h first.
36266         * lib/trigl.c: Likewise.
36267         * m4/acosl.m4: New file.
36268         * m4/asinl.m4: New file.
36269         * m4/atanl.m4: New file.
36270         * m4/cosl.m4: New file.
36271         * m4/expl.m4: New file.
36272         * m4/logl.m4: New file.
36273         * m4/sinl.m4: New file.
36274         * m4/sqrtl.m4: New file.
36275         * m4/tanl.m4: New file.
36276         * m4/mathl.m4: Remove file.
36277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36278         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36279         Don't initialize GNULIB_MATHL.
36280         * modules/acosl: New file.
36281         * modules/asinl: New file.
36282         * modules/atanl: New file.
36283         * modules/cosl: New file.
36284         * modules/expl: New file.
36285         * modules/logl: New file.
36286         * modules/sinl: New file.
36287         * modules/sqrtl: New file.
36288         * modules/tanl: New file.
36289         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36290         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36291         substitute GNULIB_MATHL.
36292         * modules/mathl: Rewritten.
36293         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36294         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36295         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36296         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36297         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36298         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36299         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36300         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36301         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36302
36303 2010-01-18  Bruno Haible  <bruno@clisp.org>
36304
36305         sqrt: Make gl_FUNC_SQRT requirable.
36306         * m4/sqrt.m4: New file.
36307         * modules/sqrt (Files): Add it.
36308         (configure.ac): Invoke gl_FUNC_SQRT.
36309
36310 2010-01-18  Bruno Haible  <bruno@clisp.org>
36311
36312         New modules for common <math.h> functions.
36313         * m4/mathfunc.m4: New file.
36314         * modules/acos: New file.
36315         * modules/asin: New file.
36316         * modules/atan: New file.
36317         * modules/atan2: New file.
36318         * modules/cbrt: New file.
36319         * modules/copysign: New file.
36320         * modules/cos: New file.
36321         * modules/cosh: New file.
36322         * modules/erf: New file.
36323         * modules/erfc: New file.
36324         * modules/exp: New file.
36325         * modules/fabs: New file.
36326         * modules/fmod: New file.
36327         * modules/hypot: New file.
36328         * modules/j0: New file.
36329         * modules/j1: New file.
36330         * modules/jn: New file.
36331         * modules/ldexp: New file.
36332         * modules/lgamma: New file.
36333         * modules/log: New file.
36334         * modules/log10: New file.
36335         * modules/log1p: New file.
36336         * modules/logb: New file.
36337         * modules/modf: New file.
36338         * modules/nextafter: New file.
36339         * modules/pow: New file.
36340         * modules/remainder: New file.
36341         * modules/rint: New file.
36342         * modules/sin: New file.
36343         * modules/sinh: New file.
36344         * modules/sqrt: New file.
36345         * modules/tan: New file.
36346         * modules/tanh: New file.
36347         * modules/y0: New file.
36348         * modules/y1: New file.
36349         * modules/yn: New file.
36350         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36351         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36352         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36353         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36354         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36355         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36356         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36357         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36358         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36359         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36360         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36361         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36362         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36363         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36364         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36365         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36366         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36367         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36368         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36369         * doc/posix-functions/log.texi: Mention the 'log' module.
36370         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36371         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36372         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36373         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36374         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36375         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36376         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36377         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36378         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36379         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36380         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36381         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36382         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36383         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36384         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36385         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36386
36387 2010-01-18  Jim Meyering  <meyering@redhat.com>
36388
36389         ignore-value: relax license to LGPLv2+
36390         * modules/ignore-value (License): Relax to LGPLv2+.
36391
36392         getdate: don't leak when TZ contains two or more '"'s
36393         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36394         double quote in TZ after the first one.
36395
36396         readtokens: do not leak internal token_lengths buffer
36397         * lib/readtokens.c (readtokens): Free the local, lengths,
36398         when the supplied "token_lengths" parameter is NULL.
36399
36400 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36401
36402         Fix a couple of missing LIBTHREAD link failures on AIX.
36403         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36404         $(LIBTHREAD).
36405         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36406
36407         Link test-poll against INET_PTON_LIB.
36408         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36409         for inet_pton on Solaris 10.
36410
36411 2010-01-17  Bruno Haible  <bruno@clisp.org>
36412
36413         unistdio/*-sprintf: Fix typo in module description.
36414         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36415         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36416         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36417         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36418         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36419         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36420         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36421         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36422
36423 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36424
36425         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36426         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36427         variables in shell case patterns, for AIX and HP-UX ksh.
36428
36429         Split large sed scripts, for HP-UX sed.
36430         * modules/stdio: Split sed scripts around 50 sed commands,
36431         to avoid HP-UX limit of 99 commands, in the near future.
36432         * modules/string: Likewise.
36433         * modules/unistd: Likewise.
36434
36435         gnulib-tool: avoid writing in the current directory.
36436         * gnulib-tool (func_emit_lib_Makefile_am)
36437         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36438         not in the current directory, so concurrent gnulib-tool
36439         instances do not interfere.
36440
36441 2010-01-16  Jim Meyering  <meyering@redhat.com>
36442
36443         doc: update users.txt
36444         * users.txt: Add grep.
36445         (diffutils, gzip): Update URLs.
36446
36447 2010-01-12  Bruno Haible  <bruno@clisp.org>
36448
36449         posix_spawn: Avoid test failure on Cygwin.
36450         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36451         characters.
36452         Reported by Simon Josefsson.
36453
36454 2010-01-12  Bruno Haible  <bruno@clisp.org>
36455
36456         * tests/test-cond.c (main): When skipping the test, show the reason.
36457
36458 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36459
36460         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36461
36462 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36463
36464         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36465         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36466
36467 2010-01-12  Eric Blake  <ebb9@byu.net>
36468
36469         build: guarantee AS_VAR_IF
36470         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36471         (gl_AS_VAR_IF): Move...
36472         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36473         Reported by Simon Josefsson.
36474
36475 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36476
36477         * lib/stdio.in.h: Fix typo.
36478
36479 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36480
36481         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36482         libgpg-error.
36483
36484 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36485
36486         * tests/test-xalloc-die.sh: Use $EXEEXT.
36487
36488 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36489             Bruno Haible  <bruno@clisp.org>
36490
36491         getlogin, getlogin_r: Avoid test failure.
36492         * tests/test-getlogin.c: Include <stdio.h>.
36493         (main): Skip the test when the function fails because stdin is not a
36494         tty.
36495         * tests/test-getlogin_r.c: Include <stdio.h>.
36496         (main): Skip the test when the function fails because stdin is not a
36497         tty.
36498
36499 2010-01-11  Eric Blake  <ebb9@byu.net>
36500
36501         tests: avoid more large file warnings
36502         * tests/test-fflush.c: Avoid warning about ftell use.
36503         * tests/test-fseek.c: Avoid warning about fseek use.
36504
36505 2010-01-10  Bruno Haible  <bruno@clisp.org>
36506
36507         nproc: Work better on Linux when /proc and /sys are not mounted.
36508         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36509         as lower bound when, on glibc/Linux systems,
36510         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36511         Suggested by Pádraig Brady <P@draigbrady.com>.
36512         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36513
36514         nproc: Refactor.
36515         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36516         extracted from num_processors.
36517         (num_processors): Call it.
36518
36519 2010-01-11  Jim Meyering  <meyering@redhat.com>
36520
36521         utimecmp: avoid new warning from upcoming gcc-4.5.0
36522         * lib/utimecmp.c (BILLION): Define using #define rather than an
36523         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36524
36525 2010-01-11  Eric Blake  <ebb9@byu.net>
36526
36527         math: add portability warnings for classification macros
36528         * modules/math (Depends-on): Add warn-on-use.
36529         (Makefile.am): Provide new substitutions.
36530         * m4/math_h.m4 (gl_MATH_H): Require inline.
36531         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36532         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36533         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36534         implement warnings.
36535
36536         unistd: warn on use of environ without module
36537         * modules/unistd (Depends-on): Add warn-on-use.
36538         (Makefile.am): Provide new substitutions.
36539         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36540         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36541
36542         stdio: warn on suspicious uses
36543         * modules/stdio (Depends-on): Add warn-on-use.
36544         (Makefile.am): Provide new substitutions.
36545         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36546         fseeko.
36547         * lib/stdio.in.h (gets): Always warn on use.
36548         (fseek, ftell): Adjust when warnings are issued, and honor
36549         _GL_NO_LARGE_FILES as a way to silence the warning.
36550         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36551         any warning about large file offsets.
36552         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36553         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36554         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36555         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36556         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36557         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36558         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36559         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36560
36561         warn-on-use: new module
36562         * modules/warn-on-use: New file.
36563         * build-aux/warn-on-use.h: Likewise.
36564         * m4/warn-on-use.m4: Likewise.
36565         * MODULES.html.sh (Support for building): Mention it.
36566
36567 2010-01-10  Bruno Haible  <bruno@clisp.org>
36568
36569         Tests for module 'unistr/u32-strdup'.
36570         * modules/unistr/u32-strdup-tests: New file.
36571         * tests/unistr/test-u32-strdup.c: New file.
36572
36573         Tests for module 'unistr/u16-strdup'.
36574         * modules/unistr/u16-strdup-tests: New file.
36575         * tests/unistr/test-u16-strdup.c: New file.
36576
36577         Tests for module 'unistr/u8-strdup'.
36578         * modules/unistr/u8-strdup-tests: New file.
36579         * tests/unistr/test-u8-strdup.c: New file.
36580         * tests/unistr/test-strdup.h: New file.
36581
36582         Tests for module 'unistr/u32-strncmp'.
36583         * modules/unistr/u32-strncmp-tests: New file.
36584         * tests/unistr/test-u32-strncmp.c: New file.
36585
36586         Tests for module 'unistr/u16-strncmp'.
36587         * modules/unistr/u16-strncmp-tests: New file.
36588         * tests/unistr/test-u16-strncmp.c: New file.
36589
36590         Tests for module 'unistr/u8-strncmp'.
36591         * modules/unistr/u8-strncmp-tests: New file.
36592         * tests/unistr/test-u8-strncmp.c: New file.
36593         * tests/unistr/test-strncmp.h: New file.
36594
36595         Tests for module 'unistr/u32-strcoll'.
36596         * modules/unistr/u32-strcoll-tests: New file.
36597         * tests/unistr/test-u32-strcoll.c: New file.
36598
36599         Tests for module 'unistr/u16-strcoll'.
36600         * modules/unistr/u16-strcoll-tests: New file.
36601         * tests/unistr/test-u16-strcoll.c: New file.
36602
36603         Tests for module 'unistr/u8-strcoll'.
36604         * modules/unistr/u8-strcoll-tests: New file.
36605         * tests/unistr/test-u8-strcoll.c: New file.
36606
36607         Tests for module 'unistr/u32-strcmp'.
36608         * modules/unistr/u32-strcmp-tests: New file.
36609         * tests/unistr/test-u32-strcmp.c: New file.
36610         * tests/unistr/test-u32-strcmp.h: New file.
36611
36612         Tests for module 'unistr/u16-strcmp'.
36613         * modules/unistr/u16-strcmp-tests: New file.
36614         * tests/unistr/test-u16-strcmp.c: New file.
36615         * tests/unistr/test-u16-strcmp.h: New file.
36616
36617         Tests for module 'unistr/u8-strcmp'.
36618         * modules/unistr/u8-strcmp-tests: New file.
36619         * tests/unistr/test-u8-strcmp.c: New file.
36620         * tests/unistr/test-u8-strcmp.h: New file.
36621         * tests/unistr/test-strcmp.h: New file.
36622
36623         Tests for module 'unistr/u32-strncat'.
36624         * modules/unistr/u32-strncat-tests: New file.
36625         * tests/unistr/test-u32-strncat.c: New file.
36626
36627         Tests for module 'unistr/u16-strncat'.
36628         * modules/unistr/u16-strncat-tests: New file.
36629         * tests/unistr/test-u16-strncat.c: New file.
36630
36631         Tests for module 'unistr/u8-strncat'.
36632         * modules/unistr/u8-strncat-tests: New file.
36633         * tests/unistr/test-u8-strncat.c: New file.
36634         * tests/unistr/test-strncat.h: New file.
36635
36636         Tests for module 'unistr/u32-strcat'.
36637         * modules/unistr/u32-strcat-tests: New file.
36638         * tests/unistr/test-u32-strcat.c: New file.
36639
36640         Tests for module 'unistr/u16-strcat'.
36641         * modules/unistr/u16-strcat-tests: New file.
36642         * tests/unistr/test-u16-strcat.c: New file.
36643
36644         Tests for module 'unistr/u8-strcat'.
36645         * modules/unistr/u8-strcat-tests: New file.
36646         * tests/unistr/test-u8-strcat.c: New file.
36647         * tests/unistr/test-strcat.h: New file.
36648
36649         Tests for module 'unistr/u32-stpncpy'.
36650         * modules/unistr/u32-stpncpy-tests: New file.
36651         * tests/unistr/test-u32-stpncpy.c: New file.
36652
36653         Tests for module 'unistr/u16-stpncpy'.
36654         * modules/unistr/u16-stpncpy-tests: New file.
36655         * tests/unistr/test-u16-stpncpy.c: New file.
36656
36657         Tests for module 'unistr/u8-stpncpy'.
36658         * modules/unistr/u8-stpncpy-tests: New file.
36659         * tests/unistr/test-u8-stpncpy.c: New file.
36660         * tests/unistr/test-stpncpy.h: New file.
36661
36662         Tests for module 'unistr/u32-strncpy'.
36663         * modules/unistr/u32-strncpy-tests: New file.
36664         * tests/unistr/test-u32-strncpy.c: New file.
36665
36666         Tests for module 'unistr/u16-strncpy'.
36667         * modules/unistr/u16-strncpy-tests: New file.
36668         * tests/unistr/test-u16-strncpy.c: New file.
36669
36670         Tests for module 'unistr/u8-strncpy'.
36671         * modules/unistr/u8-strncpy-tests: New file.
36672         * tests/unistr/test-u8-strncpy.c: New file.
36673         * tests/unistr/test-strncpy.h: New file.
36674
36675         Tests for module 'unistr/u32-stpcpy'.
36676         * modules/unistr/u32-stpcpy-tests: New file.
36677         * tests/unistr/test-u32-stpcpy.c: New file.
36678
36679         Tests for module 'unistr/u16-stpcpy'.
36680         * modules/unistr/u16-stpcpy-tests: New file.
36681         * tests/unistr/test-u16-stpcpy.c: New file.
36682
36683         Tests for module 'unistr/u8-stpcpy'.
36684         * modules/unistr/u8-stpcpy-tests: New file.
36685         * tests/unistr/test-u8-stpcpy.c: New file.
36686         * tests/unistr/test-stpcpy.h: New file.
36687
36688         Tests for module 'unistr/u32-strcpy'.
36689         * modules/unistr/u32-strcpy-tests: New file.
36690         * tests/unistr/test-u32-strcpy.c: New file.
36691
36692         Tests for module 'unistr/u16-strcpy'.
36693         * modules/unistr/u16-strcpy-tests: New file.
36694         * tests/unistr/test-u16-strcpy.c: New file.
36695
36696         Tests for module 'unistr/u8-strcpy'.
36697         * modules/unistr/u8-strcpy-tests: New file.
36698         * tests/unistr/test-u8-strcpy.c: New file.
36699         * tests/unistr/test-strcpy.h: New file.
36700
36701         Tests for module 'unistr/u32-strnlen'.
36702         * modules/unistr/u32-strnlen-tests: New file.
36703         * tests/unistr/test-u32-strnlen.c: New file.
36704
36705         Tests for module 'unistr/u16-strnlen'.
36706         * modules/unistr/u16-strnlen-tests: New file.
36707         * tests/unistr/test-u16-strnlen.c: New file.
36708
36709         Tests for module 'unistr/u8-strnlen'.
36710         * modules/unistr/u8-strnlen-tests: New file.
36711         * tests/unistr/test-u8-strnlen.c: New file.
36712         * tests/unistr/test-strnlen.h: New file.
36713
36714         Tests for module 'unistr/u32-strlen'.
36715         * modules/unistr/u32-strlen-tests: New file.
36716         * tests/unistr/test-u32-strlen.c: New file.
36717
36718         Tests for module 'unistr/u16-strlen'.
36719         * modules/unistr/u16-strlen-tests: New file.
36720         * tests/unistr/test-u16-strlen.c: New file.
36721
36722         Tests for module 'unistr/u8-strlen'.
36723         * modules/unistr/u8-strlen-tests: New file.
36724         * tests/unistr/test-u8-strlen.c: New file.
36725
36726         Tests for module 'unistr/u32-prev'.
36727         * modules/unistr/u32-prev-tests: New file.
36728         * tests/unistr/test-u32-prev.c: New file.
36729
36730         Tests for module 'unistr/u16-prev'.
36731         * modules/unistr/u16-prev-tests: New file.
36732         * tests/unistr/test-u16-prev.c: New file.
36733
36734         Tests for module 'unistr/u8-prev'.
36735         * modules/unistr/u8-prev-tests: New file.
36736         * tests/unistr/test-u8-prev.c: New file.
36737
36738         Tests for module 'unistr/u32-next'.
36739         * modules/unistr/u32-next-tests: New file.
36740         * tests/unistr/test-u32-next.c: New file.
36741
36742         Tests for module 'unistr/u16-next'.
36743         * modules/unistr/u16-next-tests: New file.
36744         * tests/unistr/test-u16-next.c: New file.
36745
36746         Tests for module 'unistr/u8-next'.
36747         * modules/unistr/u8-next-tests: New file.
36748         * tests/unistr/test-u8-next.c: New file.
36749
36750         Tests for module 'unistr/u32-strmbtouc'.
36751         * modules/unistr/u32-strmbtouc-tests: New file.
36752         * tests/unistr/test-u32-strmbtouc.c: New file.
36753
36754         Tests for module 'unistr/u16-strmbtouc'.
36755         * modules/unistr/u16-strmbtouc-tests: New file.
36756         * tests/unistr/test-u16-strmbtouc.c: New file.
36757
36758         Tests for module 'unistr/u8-strmbtouc'.
36759         * modules/unistr/u8-strmbtouc-tests: New file.
36760         * tests/unistr/test-u8-strmbtouc.c: New file.
36761
36762         Tests for module 'unistr/u32-strmblen'.
36763         * modules/unistr/u32-strmblen-tests: New file.
36764         * tests/unistr/test-u32-strmblen.c: New file.
36765
36766         Tests for module 'unistr/u16-strmblen'.
36767         * modules/unistr/u16-strmblen-tests: New file.
36768         * tests/unistr/test-u16-strmblen.c: New file.
36769
36770         Tests for module 'unistr/u8-strmblen'.
36771         * modules/unistr/u8-strmblen-tests: New file.
36772         * tests/unistr/test-u8-strmblen.c: New file.
36773
36774         Tests for module 'unistr/u32-cpy-alloc'.
36775         * modules/unistr/u32-cpy-alloc-tests: New file.
36776         * tests/unistr/test-u32-cpy-alloc.c: New file.
36777
36778         Tests for module 'unistr/u16-cpy-alloc'.
36779         * modules/unistr/u16-cpy-alloc-tests: New file.
36780         * tests/unistr/test-u16-cpy-alloc.c: New file.
36781
36782         Tests for module 'unistr/u8-cpy-alloc'.
36783         * modules/unistr/u8-cpy-alloc-tests: New file.
36784         * tests/unistr/test-u8-cpy-alloc.c: New file.
36785         * tests/unistr/test-cpy-alloc.h: New file.
36786
36787         Tests for module 'unistr/u32-mbsnlen'.
36788         * modules/unistr/u32-mbsnlen-tests: New file.
36789         * tests/unistr/test-u32-mbsnlen.c: New file.
36790
36791         Tests for module 'unistr/u16-mbsnlen'.
36792         * modules/unistr/u16-mbsnlen-tests: New file.
36793         * tests/unistr/test-u16-mbsnlen.c: New file.
36794
36795         Tests for module 'unistr/u8-mbsnlen'.
36796         * modules/unistr/u8-mbsnlen-tests: New file.
36797         * tests/unistr/test-u8-mbsnlen.c: New file.
36798
36799         Tests for module 'unistr/u32-chr'.
36800         * modules/unistr/u32-chr-tests: New file.
36801         * tests/unistr/test-u32-chr.c: New file.
36802
36803         Tests for module 'unistr/u16-chr'.
36804         * modules/unistr/u16-chr-tests: New file.
36805         * tests/unistr/test-u16-chr.c: New file.
36806
36807         Tests for module 'unistr/u8-chr'.
36808         * modules/unistr/u8-chr-tests: New file.
36809         * tests/unistr/test-u8-chr.c: New file.
36810         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36811
36812         Tests for module 'unistr/u32-cmp2'.
36813         * modules/unistr/u32-cmp2-tests: New file.
36814         * tests/unistr/test-u32-cmp2.c: New file.
36815
36816         Tests for module 'unistr/u16-cmp2'.
36817         * modules/unistr/u16-cmp2-tests: New file.
36818         * tests/unistr/test-u16-cmp2.c: New file.
36819
36820         Tests for module 'unistr/u8-cmp2'.
36821         * modules/unistr/u8-cmp2-tests: New file.
36822         * tests/unistr/test-u8-cmp2.c: New file.
36823         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36824
36825         Tests for module 'unistr/u32-cmp'.
36826         * modules/unistr/u32-cmp-tests: New file.
36827         * tests/unistr/test-u32-cmp.c: New file.
36828
36829         Tests for module 'unistr/u16-cmp'.
36830         * modules/unistr/u16-cmp-tests: New file.
36831         * tests/unistr/test-u16-cmp.c: New file.
36832
36833         Tests for module 'unistr/u8-cmp'.
36834         * modules/unistr/u8-cmp-tests: New file.
36835         * tests/unistr/test-u8-cmp.c: New file.
36836         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
36837
36838         Tests for module 'unistr/u32-set'.
36839         * modules/unistr/u32-set-tests: New file.
36840         * tests/unistr/test-u32-set.c: New file.
36841
36842         Tests for module 'unistr/u16-set'.
36843         * modules/unistr/u16-set-tests: New file.
36844         * tests/unistr/test-u16-set.c: New file.
36845
36846         Tests for module 'unistr/u8-set'.
36847         * modules/unistr/u8-set-tests: New file.
36848         * tests/unistr/test-u8-set.c: New file.
36849         * tests/unistr/test-set.h: New file.
36850
36851         Tests for module 'unistr/u32-move'.
36852         * modules/unistr/u32-move-tests: New file.
36853         * tests/unistr/test-u32-move.c: New file.
36854
36855         Tests for module 'unistr/u16-move'.
36856         * modules/unistr/u16-move-tests: New file.
36857         * tests/unistr/test-u16-move.c: New file.
36858
36859         Tests for module 'unistr/u8-move'.
36860         * modules/unistr/u8-move-tests: New file.
36861         * tests/unistr/test-u8-move.c: New file.
36862         * tests/unistr/test-move.h: New file.
36863
36864         Tests for module 'unistr/u32-cpy'.
36865         * modules/unistr/u32-cpy-tests: New file.
36866         * tests/unistr/test-u32-cpy.c: New file.
36867
36868         Tests for module 'unistr/u16-cpy'.
36869         * modules/unistr/u16-cpy-tests: New file.
36870         * tests/unistr/test-u16-cpy.c: New file.
36871
36872         Tests for module 'unistr/u8-cpy'.
36873         * modules/unistr/u8-cpy-tests: New file.
36874         * tests/unistr/test-u8-cpy.c: New file.
36875         * tests/unistr/test-cpy.h: New file.
36876
36877 2010-01-09  Bruno Haible  <bruno@clisp.org>
36878
36879         Tests for module 'unistr/u32-uctomb'.
36880         * modules/unistr/u32-uctomb-tests: New file.
36881         * tests/unistr/test-u32-uctomb.c: New file.
36882
36883         Tests for module 'unistr/u16-uctomb'.
36884         * modules/unistr/u16-uctomb-tests: New file.
36885         * tests/unistr/test-u16-uctomb.c: New file.
36886
36887         Tests for module 'unistr/u8-uctomb'.
36888         * modules/unistr/u8-uctomb-tests: New file.
36889         * tests/unistr/test-u8-uctomb.c: New file.
36890
36891         Tests for module 'unistr/u32-mbtoucr'.
36892         * modules/unistr/u32-mbtoucr-tests: New file.
36893         * tests/unistr/test-u32-mbtoucr.c: New file.
36894
36895         Tests for module 'unistr/u16-mbtoucr'.
36896         * modules/unistr/u16-mbtoucr-tests: New file.
36897         * tests/unistr/test-u16-mbtoucr.c: New file.
36898
36899         Tests for module 'unistr/u8-mbtoucr'.
36900         * modules/unistr/u8-mbtoucr-tests: New file.
36901         * tests/unistr/test-u8-mbtoucr.c: New file.
36902
36903         Tests for module 'unistr/u32-mbtouc'.
36904         * modules/unistr/u32-mbtouc-tests: New file.
36905         * tests/unistr/test-u32-mbtouc.c: New file.
36906
36907         Tests for module 'unistr/u16-mbtouc'.
36908         * modules/unistr/u16-mbtouc-tests: New file.
36909         * tests/unistr/test-u16-mbtouc.c: New file.
36910
36911         Tests for module 'unistr/u8-mbtouc'.
36912         * modules/unistr/u8-mbtouc-tests: New file.
36913         * tests/unistr/test-u8-mbtouc.c: New file.
36914
36915         Tests for module 'unistr/u32-mbtouc-unsafe'.
36916         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
36917         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
36918         * tests/unistr/test-u32-mbtouc.h: New file.
36919
36920         Tests for module 'unistr/u16-mbtouc-unsafe'.
36921         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
36922         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
36923         * tests/unistr/test-u16-mbtouc.h: New file.
36924
36925         Tests for module 'unistr/u8-mbtouc-unsafe'.
36926         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
36927         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
36928         * tests/unistr/test-u8-mbtouc.h: New file.
36929
36930         Tests for module 'unistr/u32-mblen'.
36931         * modules/unistr/u32-mblen-tests: New file.
36932         * tests/unistr/test-u32-mblen.c: New file.
36933
36934         Tests for module 'unistr/u16-mblen'.
36935         * modules/unistr/u16-mblen-tests: New file.
36936         * tests/unistr/test-u16-mblen.c: New file.
36937
36938         Tests for module 'unistr/u8-mblen'.
36939         * modules/unistr/u8-mblen-tests: New file.
36940         * tests/unistr/test-u8-mblen.c: New file.
36941
36942         Tests for module 'unistr/u32-to-u16'.
36943         * modules/unistr/u32-to-u16-tests: New file.
36944         * tests/unistr/test-u32-to-u16.c: New file.
36945
36946         Tests for module 'unistr/u32-to-u8'.
36947         * modules/unistr/u32-to-u8-tests: New file.
36948         * tests/unistr/test-u32-to-u8.c: New file.
36949
36950         Tests for module 'unistr/u16-to-u32'.
36951         * modules/unistr/u16-to-u32-tests: New file.
36952         * tests/unistr/test-u16-to-u32.c: New file.
36953
36954         Tests for module 'unistr/u16-to-u8'.
36955         * modules/unistr/u16-to-u8-tests: New file.
36956         * tests/unistr/test-u16-to-u8.c: New file.
36957
36958         Tests for module 'unistr/u8-to-u32'.
36959         * modules/unistr/u8-to-u32-tests: New file.
36960         * tests/unistr/test-u8-to-u32.c: New file.
36961
36962         Tests for module 'unistr/u8-to-u16'.
36963         * modules/unistr/u8-to-u16-tests: New file.
36964         * tests/unistr/test-u8-to-u16.c: New file.
36965
36966         Tests for module 'unistr/u32-check'.
36967         * modules/unistr/u32-check-tests: New file.
36968         * tests/unistr/test-u32-check.c: New file.
36969
36970         Tests for module 'unistr/u16-check'.
36971         * modules/unistr/u16-check-tests: New file.
36972         * tests/unistr/test-u16-check.c: New file.
36973
36974         Tests for module 'unistr/u8-check'.
36975         * modules/unistr/u8-check-tests: New file.
36976         * tests/unistr/test-u8-check.c: New file.
36977
36978         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36979         (category_equals): New function.
36980         (main): Add more tests.
36981         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36982
36983         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36984
36985 2010-01-10  Bruno Haible  <bruno@clisp.org>
36986
36987         unistr/u*-strcoll: Try harder to distinguish different strings.
36988         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36989         compare s1 and s2 to see if they are different.
36990
36991 2010-01-10  Bruno Haible  <bruno@clisp.org>
36992
36993         unistr/u*-stpncpy: Fix the return value.
36994         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36995         description of the return value consistent with stpncpy in glibc.
36996         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36997         written non-NUL unit.
36998
36999 2010-01-10  Bruno Haible  <bruno@clisp.org>
37000
37001         unistr/u*-next: Add missing dependencies.
37002         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37003         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37004         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37005
37006 2010-01-10  Bruno Haible  <bruno@clisp.org>
37007
37008         unistr/u8-mbsnlen: Fix return value for incomplete character.
37009         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37010         u8_mblen.
37011         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37012         Remove unistr/u8-mblen.
37013         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37014         u16_mblen.
37015         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37016         Remove unistr/u16-mblen.
37017
37018 2010-01-10  Bruno Haible  <bruno@clisp.org>
37019
37020         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37021         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37022         Reported by Brian Gough <bjg@gnu.org> and
37023         Chris Clayton <chris2553@googlemail.com> via
37024         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37025
37026 2010-01-09  Bruno Haible  <bruno@clisp.org>
37027
37028         unistr/u16-to-u32: Reject invalid input.
37029         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37030         u16_mbtouc.
37031         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37032         Remove unistr/u16-mbtouc.
37033
37034         unistr/u16-to-u8: Reject invalid input.
37035         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37036         u16_mbtouc.
37037         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37038         Remove unistr/u16-mbtouc.
37039
37040         unistr/u8-to-u32: Reject invalid input.
37041         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37042         u8_mbtouc.
37043         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37044         Remove unistr/u8-mbtouc.
37045
37046         unistr/u8-to-u16: Reject invalid input.
37047         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37048         u8_mbtouc.
37049         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37050         Remove unistr/u8-mbtouc.
37051
37052 2010-01-09  Bruno Haible  <bruno@clisp.org>
37053
37054         Tests for module 'getlogin'.
37055         * modules/getlogin-tests: New file.
37056         * tests/test-getlogin.c: New file.
37057
37058         New module 'getlogin'.
37059         * lib/unistd.in.h (getlogin): New declaration.
37060         * lib/getlogin.c: New file.
37061         * m4/getlogin.m4: New file.
37062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37063         HAVE_GETLOGIN.
37064         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37065         HAVE_GETLOGIN.
37066         * modules/getlogin: New file.
37067         * doc/posix-functions/getlogin.texi: Mention the new module.
37068         Reported by John W. Eaton <jwe@gnu.org>.
37069
37070 2010-01-09  Bruno Haible  <bruno@clisp.org>
37071
37072         getlogin_r: Support for native Windows.
37073         * lib/getlogin_r.c: Include <windows.h>
37074         (getlogin_r): Implement for native Windows.
37075         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37076         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37077         via John W. Eaton <jwe@gnu.org>.
37078
37079 2010-01-09  Bruno Haible  <bruno@clisp.org>
37080
37081         getlogin_r: Small fixes.
37082         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37083         succeeds.
37084         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37085         before testing whether getlogin_r is declared. No need to set
37086         HAVE_DECL_GETLOGIN_R to 1.
37087         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37088
37089 2010-01-09  Bruno Haible  <bruno@clisp.org>
37090
37091         * lib/unistd.in.h (getlogin_r): Add comment.
37092
37093 2010-01-09  Bruno Haible  <bruno@clisp.org>
37094
37095         Tests for module 'getlogin_r'.
37096         * modules/getlogin_r-tests: New file.
37097         * tests/test-getlogin_r.c: New file.
37098
37099 2010-01-09  Jim Meyering  <meyering@redhat.com>
37100
37101         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37102         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37103         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37104
37105 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37106
37107         * lib/dup2.c (rpl_dup2): Improve comment.
37108
37109 2010-01-08  Eric Blake  <ebb9@byu.net>
37110
37111         maint.mk: allow packages to add makefile @@ exceptions
37112         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37113         (sc_makefile_check): Rename...
37114         (sc_makefile_at_at_check): ...to this, and use hook.
37115
37116         dup2: work around mingw bug
37117         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37118         Reported by Simon Josefsson.
37119
37120 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37121
37122         glob: Fix C++ compilation.
37123         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37124         C++.
37125
37126 2010-01-07  Bruno Haible  <bruno@clisp.org>
37127
37128         Fix indentation of wctype.in.h, broken since 2007-01-06.
37129         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37130
37131 2010-01-07  Bruno Haible  <bruno@clisp.org>
37132
37133         mbslen: Avoid collision with system function.
37134         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37135         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37136         * m4/mbslen.m4: New file.
37137         * modules/mbslen (Files): Add it.
37138         (configure.ac): Invoke gl_MBSLEN.
37139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37140         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37141         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37142         via Ian Beckwith <ianb@erislabs.net>.
37143
37144 2010-01-07  Bruno Haible  <bruno@clisp.org>
37145
37146         dirent: Document the last fix.
37147         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37148
37149 2010-01-07  Bruno Haible  <bruno@clisp.org>
37150
37151         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37152         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37153         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37154         va_list are defined.
37155         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37156         Reported by Eric Blake.
37157
37158 2010-01-07  Bruno Haible  <bruno@clisp.org>
37159
37160         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37161         * modules/xlist (Depends-on): Add 'list',
37162         * modules/xoset (Depends-on): Add 'oset'.
37163         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37164
37165 2010-01-07  Bruno Haible  <bruno@clisp.org>
37166
37167         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37168         * doc/posix-functions/strncasecmp.texi: Likewise.
37169
37170 2010-01-07  Bruno Haible  <bruno@clisp.org>
37171
37172         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37173
37174 2010-01-07  John W. Eaton  <jwe@octave.org>
37175
37176         wctype: allow C++ use
37177         * lib/wctype.in.h: Add extern "C" block for C++.
37178
37179 2010-01-06  Eric Blake  <ebb9@byu.net>
37180
37181         maint.mk: detect incorrect GFDL usage
37182         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37183
37184 2010-01-06  Jim Meyering  <meyering@redhat.com>
37185         and Eric Blake  <ebb9@byu.net>
37186
37187         maint.mk: ignore multi-line copyright in NEWS
37188         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37189
37190 2010-01-06  Eric Blake  <ebb9@byu.net>
37191
37192         select: add missing dependency
37193         * modules/select-tests (Depends-on): Move sockets dependency...
37194         * modules/select (Depends-on): ...here.
37195         Reported by Ian Beckwith.
37196
37197         doc: regenerate INSTALL
37198         * doc/INSTALL: Reflect recent autoconf update.
37199         * doc/INSTALL.ISO: Likewise.
37200         * doc/INSTALL.UTF-8: Likewise.
37201
37202         pread: fix compilation on glibc
37203         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37204         Reported by Ralf Wildenhues.
37205
37206         dirent: fix test failure
37207         * lib/dirent.in.h (includes): Guarantee ino_t.
37208         Reported by Ralf Wildenhues.
37209
37210 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37211
37212         linkat, renameat: avoid bad free
37213         * lib/at-func2.c (at_func2): Fix typo.
37214         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37215
37216 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37217
37218         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37219         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37220         to avoid failure of symlink test later.
37221
37222 2010-01-06  Eric Blake  <ebb9@byu.net>
37223
37224         stdio, unistd: guarantee ssize_t
37225         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37226         2008 are exposed when needed.
37227         * lib/stdio.in.h (includes): Likewise.
37228         Reported by Ralf Wildenhues.
37229
37230 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37231
37232         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37233         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37234         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37235
37236 2010-01-06  Jim Meyering  <meyering@redhat.com>
37237
37238         readtokens: this module *does* require xalloc.h
37239         It uses only functions that were omitted by the old syntax-check rule.
37240         * lib/readtokens.c: Include "xalloc.h" once again.
37241         * modules/readtokens (Depends-on): Add xalloc.
37242         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37243
37244 2010-01-05  Eric Blake  <ebb9@byu.net>
37245
37246         maint: support 'make announcement' from a VPATH build
37247         * top/maint.mk (announcement): Look for correct NEWS file.
37248
37249 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37250
37251         utimens (fdutimens): ignore a negative FD, per contract
37252         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37253         when we have a valid file descriptor.  Otherwise, using a brand
37254         new glibc (with just-patched futimens that now fails with EBADF)
37255         would cause this function to fail with ENOSYS.
37256         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37257         See also http://bugzilla.redhat.com/552320.
37258
37259 2010-01-05  Eric Blake  <ebb9@byu.net>
37260
37261         strcase: document what it provides
37262         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37263         gnulib module.
37264         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37265         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37266
37267 2010-01-05  Jim Meyering  <meyering@redhat.com>
37268
37269         maint: remove useless inclusions of "xalloc.h"
37270         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37271         * lib/readtokens.c: Likewise.
37272         * lib/same.c: Likewise.
37273         * modules/getloadavg (Depends-on): Remove xalloc.
37274         * modules/readtokens: Likewise.
37275         * modules/same: Likewise.
37276
37277         maint.mk: include 4 more function names in alloca.h-checking regexp
37278         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37279         regexp.  Before, we would give a false-positive (saying alloca.h
37280         is included unnecessarily) when the only uses involved omitted symbols.
37281
37282         xalloc.h: use consistent formatting
37283         * lib/xalloc.h: Move declarations to start in the first column.
37284
37285 2010-01-05  Eric Blake  <ebb9@byu.net>
37286
37287         mkdir: avoid xalloc
37288         * lib/mkdir.c (includes): Drop unused header.
37289         Reported by John W. Eaton.
37290
37291 2010-01-04  Jim Meyering  <meyering@redhat.com>
37292
37293         nl_langinfo: avoid configure-time syntax error
37294         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37295         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37296         the empty string.  Don't let that provoke a shell syntax error.
37297
37298         regcomp, regexec, fnmatch: avoid array bounds read error
37299         * lib/regcomp.c (build_equiv_class): From glibc:
37300         Use only the low 24 bits of a findidx return value as an index
37301         into the weights array.  Patch by Ulrich Drepper:
37302         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37303         * lib/regexec.c (check_node_accept_bytes): Likewise.
37304         * lib/fnmatch_loop.c (FCT): Likewise.
37305
37306         regcomp: skip collseq lookup when there are no rules
37307         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37308         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37309
37310         regcomp: recognize ill-formed { } expressions
37311         * lib/regcomp.c (parse_dup_op): From glibc:
37312         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37313
37314         regcomp: fix typo in comment
37315         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37316         s/satisfy/satisfies/.
37317
37318         regcomp: sync from glibc: remove dead store
37319         * lib/regcomp.c (duplicate_node_closure): Remove useless
37320         search_duplicated_node call and dead store.
37321
37322         regcomp: sync from glibc; always use nl_langinfo
37323         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37324         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37325         * modules/regex (Depends-on): Add nl_langinfo.
37326
37327 2010-01-04  Eric Blake  <ebb9@byu.net>
37328
37329         fdopendir: fix configure test
37330         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37331
37332 2010-01-01  Bruno Haible  <bruno@clisp.org>
37333
37334         wchar: Remove unused configure check.
37335         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37336
37337 2010-01-01  Eric Blake  <ebb9@byu.net>
37338
37339         headers: make check of system header explicit
37340         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37341         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37342         ourselves.
37343         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37344         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37345         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37346         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37347         internals.
37348         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37349         missing.
37350         Suggested by Bruno Haible.
37351
37352 2010-01-01  Jim Meyering  <meyering@redhat.com>
37353
37354         ChangeLog: tweak to eliminate unnecessary copyright line
37355         * ChangeLog: Remove a copyright line that was mistakenly updated
37356         by today's update-copyright run.  Reported by Eric Blake.
37357
37358         test-update-copyright: don't let envvar setting cause test failure
37359         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37360
37361 2010-01-01  Bruno Haible  <bruno@clisp.org>
37362
37363         localename: Avoid gcc warning.
37364         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37365         function if it is not used.
37366
37367 2010-01-01  Jim Meyering  <meyering@redhat.com>
37368
37369         update nearly all FSF copyright year lists to include 2010
37370         Use the same procedure as for 2009, outlined in
37371         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37372
37373         version-etc: set COPYRIGHT_YEAR to 2010
37374         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37375
37376 2009-12-31  Eric Blake  <ebb9@byu.net>
37377
37378         doc: correct availability of cygwin 1.5.x getopt
37379         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37380         variables.
37381         * doc/posix-functions/opterr.texi (opterr): Likewise.
37382         * doc/posix-functions/optind.texi (optind): Likewise.
37383         * doc/posix-functions/optopt.texi (optopt): Likewise.
37384         * doc/posix-functions/tzname.texi (tzname): Likewise.
37385
37386         openat: update maintainer
37387         * modules/openat (Maintainer): Add myself.
37388
37389         utimens: avoid shadowing warning
37390         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37391         buffers into one, to avoid shadowing, as well as avoiding a
37392         redundant stat.
37393         Reported by Jim Meyering.
37394
37395         test-dup2: avoid compiler warning
37396         * tests/test-dup2.c (is_inheritable): Only define if used.
37397
37398 2010-01-01  Bruno Haible  <bruno@clisp.org>
37399
37400         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37401         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37402         defined, use wctomb instead of wcrtomb.
37403
37404 2010-01-01  Bruno Haible  <bruno@clisp.org>
37405
37406         iconv: Reject native Solaris iconv.
37407         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37408         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37409
37410 2009-12-31  Bruno Haible  <bruno@clisp.org>
37411
37412         * tests/test-signal.c (main): Remove test of 'SIG'.
37413
37414 2009-12-31  Bruno Haible  <bruno@clisp.org>
37415
37416         spawn: Fix incomplete fix.
37417         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37418         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37419         warnings for GNULIB_POSIXCHECK again.
37420         Reported by Eric Blake.
37421
37422 2009-12-31  Bruno Haible  <bruno@clisp.org>
37423
37424         Avoid namespace pollution on glibc systems.
37425         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37426         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37427         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37428         glibc systems.
37429
37430 2009-12-31  Bruno Haible  <bruno@clisp.org>
37431
37432         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37433         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37434         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37435         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37436         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37437         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37438         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37439
37440 2009-12-31  Bruno Haible  <bruno@clisp.org>
37441
37442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37443         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37444         afterwards.
37445
37446 2009-12-31  Bruno Haible  <bruno@clisp.org>
37447
37448         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37449         SYS_UTSNAME_H.
37450
37451 2009-12-31  Bruno Haible  <bruno@clisp.org>
37452
37453         spawn: Fix misapplied patch.
37454         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37455         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37456         warnings for GNULIB_POSIXCHECK.
37457
37458 2009-12-31  Bruno Haible  <bruno@clisp.org>
37459
37460         times: Update after sys_times changed.
37461         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37462         * modules/times (Files): Add it.
37463         (configure.ac): Invoke gl_FUNC_TIMES.
37464
37465 2009-12-31  Bruno Haible  <bruno@clisp.org>
37466
37467         Use AC_C_INLINE where necessary.
37468         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37469         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37470         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37471         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37472         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37473         * m4/mbiter.m4 (gl_MBITER): Likewise.
37474         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37475         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37476         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37477         * modules/u64 (configure.ac): Likewise.
37478
37479 2009-12-31  Bruno Haible  <bruno@clisp.org>
37480
37481         Use AC_C_INLINE instead of module 'inline' where possible.
37482         * modules/inline (Description): Clarify purpose.
37483         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37484         * modules/count-one-bits (Depends-on): Remove inline.
37485         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37486         * modules/openat (Depends-on): Remove inline.
37487         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37488         instead of depending on module 'inline'.
37489         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37490         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37491         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37492         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37493         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37494         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37495         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37496         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37497         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37498         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37499         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37500         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37501         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37502         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37503         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37504         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37505         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37506         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37507         Likewise.
37508         * modules/unictype/property-ascii-hex-digit (Depends-on,
37509         configure.ac): Likewise.
37510         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37511         configure.ac): Likewise.
37512         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37513         configure.ac): Likewise.
37514         * modules/unictype/property-bidi-block-separator (Depends-on,
37515         configure.ac): Likewise.
37516         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37517         configure.ac): Likewise.
37518         * modules/unictype/property-bidi-common-separator (Depends-on,
37519         configure.ac): Likewise.
37520         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37521         Likewise.
37522         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37523         configure.ac): Likewise.
37524         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37525         configure.ac): Likewise.
37526         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37527         configure.ac): Likewise.
37528         * modules/unictype/property-bidi-european-digit (Depends-on,
37529         configure.ac): Likewise.
37530         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37531         configure.ac): Likewise.
37532         * modules/unictype/property-bidi-left-to-right (Depends-on,
37533         configure.ac): Likewise.
37534         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37535         configure.ac): Likewise.
37536         * modules/unictype/property-bidi-other-neutral (Depends-on,
37537         configure.ac): Likewise.
37538         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37539         Likewise.
37540         * modules/unictype/property-bidi-segment-separator (Depends-on,
37541         configure.ac): Likewise.
37542         * modules/unictype/property-bidi-whitespace (Depends-on,
37543         configure.ac): Likewise.
37544         * modules/unictype/property-combining (Depends-on, configure.ac):
37545         Likewise.
37546         * modules/unictype/property-composite (Depends-on, configure.ac):
37547         Likewise.
37548         * modules/unictype/property-currency-symbol (Depends-on,
37549         configure.ac): Likewise.
37550         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37551         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37552         Likewise.
37553         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37554         configure.ac): Likewise.
37555         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37556         Likewise.
37557         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37558         Likewise.
37559         * modules/unictype/property-extender (Depends-on, configure.ac):
37560         Likewise.
37561         * modules/unictype/property-format-control (Depends-on, configure.ac):
37562         Likewise.
37563         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37564         Likewise.
37565         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37566         Likewise.
37567         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37568         Likewise.
37569         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37570         Likewise.
37571         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37572         Likewise.
37573         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37574         Likewise.
37575         * modules/unictype/property-id-start (Depends-on, configure.ac):
37576         Likewise.
37577         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37578         Likewise.
37579         * modules/unictype/property-ids-binary-operator (Depends-on,
37580         configure.ac): Likewise.
37581         * modules/unictype/property-ids-trinary-operator (Depends-on,
37582         configure.ac): Likewise.
37583         * modules/unictype/property-ignorable-control (Depends-on,
37584         configure.ac): Likewise.
37585         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37586         Likewise.
37587         * modules/unictype/property-join-control (Depends-on, configure.ac):
37588         Likewise.
37589         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37590         Likewise.
37591         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37592         Likewise.
37593         * modules/unictype/property-logical-order-exception (Depends-on,
37594         configure.ac): Likewise.
37595         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37596         Likewise.
37597         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37598         * modules/unictype/property-non-break (Depends-on, configure.ac):
37599         Likewise.
37600         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37601         Likewise.
37602         * modules/unictype/property-numeric (Depends-on, configure.ac):
37603         Likewise.
37604         * modules/unictype/property-other-alphabetic (Depends-on,
37605         configure.ac): Likewise.
37606         * modules/unictype/property-other-default-ignorable-code-point
37607         (Depends-on, configure.ac): Likewise.
37608         * modules/unictype/property-other-grapheme-extend (Depends-on,
37609         configure.ac): Likewise.
37610         * modules/unictype/property-other-id-continue (Depends-on,
37611         configure.ac): Likewise.
37612         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37613         Likewise.
37614         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37615         Likewise.
37616         * modules/unictype/property-other-math (Depends-on, configure.ac):
37617         Likewise.
37618         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37619         Likewise.
37620         * modules/unictype/property-paired-punctuation (Depends-on,
37621         configure.ac): Likewise.
37622         * modules/unictype/property-paragraph-separator (Depends-on,
37623         configure.ac): Likewise.
37624         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37625         Likewise.
37626         * modules/unictype/property-pattern-white-space (Depends-on,
37627         configure.ac): Likewise.
37628         * modules/unictype/property-private-use (Depends-on, configure.ac):
37629         Likewise.
37630         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37631         Likewise.
37632         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37633         Likewise.
37634         * modules/unictype/property-radical (Depends-on, configure.ac):
37635         Likewise.
37636         * modules/unictype/property-sentence-terminal (Depends-on,
37637         configure.ac): Likewise.
37638         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37639         Likewise.
37640         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37641         * modules/unictype/property-terminal-punctuation (Depends-on,
37642         configure.ac): Likewise.
37643         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37644         Likewise.
37645         * modules/unictype/property-unassigned-code-value (Depends-on,
37646         configure.ac): Likewise.
37647         * modules/unictype/property-unified-ideograph (Depends-on,
37648         configure.ac): Likewise.
37649         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37650         Likewise.
37651         * modules/unictype/property-variation-selector (Depends-on,
37652         configure.ac): Likewise.
37653         * modules/unictype/property-white-space (Depends-on, configure.ac):
37654         Likewise.
37655         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37656         Likewise.
37657         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37658         Likewise.
37659         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37660         Likewise.
37661         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37662         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37663         Likewise.
37664
37665 2009-12-31  Bruno Haible  <bruno@clisp.org>
37666
37667         Remove unnecessary AC_C_INLINE invocation.
37668         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37669         since 2009-08-21.
37670
37671 2009-12-31  Jim Meyering  <meyering@redhat.com>
37672
37673         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37674         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37675         With this change, we can all remove the gpg_key_ID = ... definition
37676         from our respective cfg.mk files.
37677
37678         maint.mk: create announcement template in ~/, not in /tmp
37679         * top/maint.mk (emit_upload_commands): Adjust.
37680         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37681         Remove temporary file, .ci-msg.
37682
37683 2009-12-31  Eric Blake  <ebb9@byu.net>
37684
37685         link-warning: always build headers with link warnings
37686         * modules/arpa_inet (Makefile.am): Always build replacement
37687         header.
37688         * modules/ctype (Makefile.am): Likewise.
37689         * modules/dirent (Makefile.am): Likewise.
37690         * modules/inttypes (Makefile.am): Likewise.
37691         * modules/langinfo (Makefile.am): Likewise.
37692         * modules/locale (Makefile.am): Likewise.
37693         * modules/spawn (Makefile.am): Likewise.
37694         * modules/sys_file (Makefile.am): Likewise.
37695         * modules/sys_ioctl (Makefile.am): Likewise.
37696         * modules/sys_select (Makefile.am): Likewise.
37697         * modules/sys_socket (Makefile.am): Likewise.
37698         * modules/sys_times (Makefile.am): Likewise.
37699         * modules/sys_utsname (Makefile.am): Likewise.
37700         * modules/sys_wait (Makefile.am): Likewise.
37701         * modules/wchar (Makefile.am): Likewise.
37702         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37703         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37704         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37705         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37706         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37707         Likewise.
37708         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37709         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37710         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37711         Likewise.
37712         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37713         Likewise.
37714         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37715         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37716         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37717         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37718         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37719         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37720         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37721         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37722         (gl_WCHAR_H_DEFAULTS): Likewise.
37723
37724 2009-12-31  Eric Blake  <ebb9@byu.net>
37725
37726         signal, spawn: use link warnings
37727         * lib/signal.in.h (sigset_t): Make unconditional.
37728         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37729         (sigpending, sigprocmask, sigaction): Add link warnings.
37730         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37731         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37732         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37733         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37734         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37735         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37736         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37737         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37738         (posix_spawn_file_actions_destroy)
37739         (posix_spawn_file_actions_addopen)
37740         (posix_spawn_file_actions_addclose)
37741         (posix_spawn_file_actions_adddup2): Likewise.
37742         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37743         * tests/test-signal.c (main): Enhance test.
37744
37745         spawn: improve wrapper support
37746         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37747         (gl_SPAWN_H_DEFAULTS): New defaults.
37748         * modules/spawn (Makefile.am): Substitute them.
37749         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37750         Only declare if missing or broken.
37751
37752         sys_times, sys_utsname: use include_next
37753         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37754         header.
37755         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37756         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37757         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37758         * modules/sys_times (Depends-on): Add include_next.
37759         (Makefile.am): Substitute additional values.
37760         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37761         * lib/sys_times.in.h (includes): Include native header, if
37762         available.
37763         * lib/sys_utsname.in.h (includes): Likewise.
37764         * tests/test-sys_times.c (main): Enhance test.
37765
37766         fdutimensat: revert prior patch
37767         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37768         utimens.h.
37769         Reported by Bruno Haible.
37770
37771 2009-12-30  Eric Blake  <ebb9@byu.net>
37772
37773         sys_wait: drop link-warning dependency
37774         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37775         link-warning efforts.
37776         * lib/sys_wait.in.h: Likewise.
37777
37778         fdutimensat: remove bogus dependency
37779         * modules/fdutimensat (Depends-on): Drop inline.
37780
37781         unistd: fix typo
37782         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37783
37784 2009-12-30  Bruno Haible  <bruno@clisp.org>
37785
37786         Fix compilation error with Solaris cc.
37787         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37788         * lib/unicase/u16-is-invariant.c: Likewise.
37789         * lib/unicase/u32-is-invariant.c: Likewise.
37790         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37791
37792 2009-12-30  Bruno Haible  <bruno@clisp.org>
37793
37794         Fix test crash.
37795         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37796         locales.
37797         Reported by Simon Josefsson <simon@josefsson.org>.
37798
37799 2009-12-30  Bruno Haible  <bruno@clisp.org>
37800
37801         Fix compilation error on most platforms.
37802         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37803         Reported by Simon Josefsson <simon@josefsson.org>
37804         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37805
37806 2009-12-30  Eric Blake  <ebb9@byu.net>
37807
37808         futimens, utimensat: work around ntfs-3g bug
37809         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37810         a ctime bug is present, and expand workaround to cover ntfs-3g.
37811         * lib/utimens.c (fdutimens, lutimens): Likewise.
37812         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37813         (validate_timespec): Adjust return value.
37814         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37815         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37816         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37817
37818 2009-12-29  Eric Blake  <ebb9@byu.net>
37819
37820         link-warning: make usage consistent
37821         * modules/ctype (Depends-on): Add link-warning.
37822         (Makefile.am): Update rules accordingly.
37823         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37824         * modules/locale (Depends-on, Makefile.am): Likewise.
37825         * modules/sys_file (Makefile.am): Likewise.
37826         * modules/getopt-posix (Makefile.am): Delete unused link warning
37827         efforts.
37828         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37829         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37830         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37831         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
37832
37833         stdio: remove unused variables
37834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
37835         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
37836         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
37837
37838         tests: test more substitute headers
37839         * modules/ctype-tests: New file.
37840         * modules/dirent-tests: Likewise.
37841         * modules/spawn-tests: Likewise.
37842         * modules/sys_file-tests: Likewise.
37843         * modules/sys_ioctl-tests: Likewise.
37844         * modules/sys_wait-tests: Likewise.
37845         * tests/test-ctype.c: Likewise.
37846         * tests/test-dirent.c: Likewise.
37847         * tests/test-spawn.c: Likewise.
37848         * tests/test-sys_file.c: Likewise.
37849         * tests/test-sys_ioctl.c: Likewise.
37850         * tests/test-sys_wait.c: Likewise.
37851         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
37852         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
37853         whether or not flock is in use.
37854
37855         tests: remove License section from module
37856         * modules/arpa_inet-tests: Remove unneeded section.
37857         * modules/byteswap-tests: Likewise.
37858         * modules/ceilf-tests: Likewise.
37859         * modules/ceill-tests: Likewise.
37860         * modules/crypto/des-tests: Likewise.
37861         * modules/crypto/gc-arcfour-tests: Likewise.
37862         * modules/crypto/gc-arctwo-tests: Likewise.
37863         * modules/crypto/gc-des-tests: Likewise.
37864         * modules/crypto/gc-hmac-md5-tests: Likewise.
37865         * modules/crypto/gc-hmac-sha1-tests: Likewise.
37866         * modules/crypto/gc-md2-tests: Likewise.
37867         * modules/crypto/gc-md4-tests: Likewise.
37868         * modules/crypto/gc-md5-tests: Likewise.
37869         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
37870         * modules/crypto/gc-rijndael-tests: Likewise.
37871         * modules/crypto/gc-sha1-tests: Likewise.
37872         * modules/crypto/gc-tests: Likewise.
37873         * modules/crypto/md2-tests: Likewise.
37874         * modules/crypto/md4-tests: Likewise.
37875         * modules/fcntl-h-tests: Likewise.
37876         * modules/floorf-tests: Likewise.
37877         * modules/floorl-tests: Likewise.
37878         * modules/frexp-nolibm-tests: Likewise.
37879         * modules/frexp-tests: Likewise.
37880         * modules/frexpl-nolibm-tests: Likewise.
37881         * modules/frexpl-tests: Likewise.
37882         * modules/getaddrinfo-tests: Likewise.
37883         * modules/inttypes-tests: Likewise.
37884         * modules/isfinite-tests: Likewise.
37885         * modules/isinf-tests: Likewise.
37886         * modules/ldexpl-tests: Likewise.
37887         * modules/locale-tests: Likewise.
37888         * modules/math-tests: Likewise.
37889         * modules/netdb-tests: Likewise.
37890         * modules/netinet_in-tests: Likewise.
37891         * modules/printf-frexp-tests: Likewise.
37892         * modules/printf-frexpl-tests: Likewise.
37893         * modules/priv-set-tests: Likewise.
37894         * modules/random_r-tests: Likewise.
37895         * modules/round-tests: Likewise.
37896         * modules/roundf-tests: Likewise.
37897         * modules/roundl-tests: Likewise.
37898         * modules/search-tests: Likewise.
37899         * modules/select-tests: Likewise.
37900         * modules/signal-tests: Likewise.
37901         * modules/stdbool-tests: Likewise.
37902         * modules/stddef-tests: Likewise.
37903         * modules/stdint-tests: Likewise.
37904         * modules/stdio-tests: Likewise.
37905         * modules/stdlib-tests: Likewise.
37906         * modules/string-tests: Likewise.
37907         * modules/strings-tests: Likewise.
37908         * modules/sys_select-tests: Likewise.
37909         * modules/sys_socket-tests: Likewise.
37910         * modules/sys_stat-tests: Likewise.
37911         * modules/sys_time-tests: Likewise.
37912         * modules/sys_utsname-tests: Likewise.
37913         * modules/sysexits-tests: Likewise.
37914         * modules/time-tests: Likewise.
37915         * modules/trunc-tests: Likewise.
37916         * modules/truncf-tests: Likewise.
37917         * modules/truncl-tests: Likewise.
37918         * modules/tsearch-tests: Likewise.
37919         * modules/unistd-tests: Likewise.
37920         * modules/wchar-tests: Likewise.
37921         * modules/wctype-tests: Likewise.
37922
37923         tests: fix license on several tests
37924         * tests/test-des.c: Update to GPLv3+.
37925         * tests/test-flock.c: Likewise.
37926         * tests/test-fsync.c: Likewise.
37927         * tests/test-futimens.h: Likewise.
37928         * tests/test-gc-arcfour.c: Likewise.
37929         * tests/test-gc-arctwo.c: Likewise.
37930         * tests/test-gc-des.c: Likewise.
37931         * tests/test-gc-hmac-md5.c: Likewise.
37932         * tests/test-gc-hmac-sha1.c: Likewise.
37933         * tests/test-gc-md2.c: Likewise.
37934         * tests/test-gc-md4.c: Likewise.
37935         * tests/test-gc-md5.c: Likewise.
37936         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37937         * tests/test-gc-rijndael.c: Likewise.
37938         * tests/test-gc-sha1.c: Likewise.
37939         * tests/test-gc.c: Likewise.
37940         * tests/test-getcwd.c: Likewise.
37941         * tests/test-link.c: Likewise.
37942         * tests/test-link.h: Likewise.
37943         * tests/test-lutimens.h: Likewise.
37944         * tests/test-md2.c: Likewise.
37945         * tests/test-md4.c: Likewise.
37946         * tests/test-mkdir.h: Likewise.
37947         * tests/test-rename.c: Likewise.
37948         * tests/test-rename.h: Likewise.
37949         * tests/test-safe-alloc.c: Likewise.
37950         * tests/test-utimens-common.h: Likewise.
37951         * tests/test-utimens.h: Likewise.
37952
37953         maint: sync license texts
37954         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
37955         * doc/gpl-3.0.texi: Revert copyright year update.
37956         * doc/lgpl-3.0.texi: Likewise.
37957
37958 2009-12-29  Jim Meyering  <meyering@redhat.com>
37959
37960         update nearly all FSF copyright year lists to include 2009
37961         The files named by the following are exempted:
37962             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
37963               test -f "$dst" && { echo "$dst"; continue; }
37964               test -d "$dst" || continue
37965               echo "$dst"/$(basename "$src")
37966             done > exempt
37967             git ls-files tests/unictype >> exempt
37968         In the remaining files, convert to all-interval notation if
37969         - there is already at least one year interval like 2000-2003
37970         - the file is maintained by me
37971         - the file is in lib/uni*/, where that style already prevails
37972         Otherwise, use update-copyright's default.
37973
37974 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37975         and Eric Blake  <ebb9@byu.net>
37976
37977         tests: don't require debug system() to pass
37978         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37979         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37980         * tests/test-unlink.h (test_unlink_func): Likewise.
37981         * tests/test-fstatat.c (main): ...into callers.
37982         * tests/test-lstat.c (main): Likewise.
37983         * tests/test-rmdir.c (main): Likewise.
37984         * tests/test-unlink.c (main): Likewise.
37985         * tests/test-unlinkat.c (main): Likewise.
37986         * tests/test-areadlink-with-size.c (main): Don't require a
37987         debug-only system call to pass, aiding cross-testing to mingw.
37988         * tests/test-areadlink.c (main): Likewise.
37989         * tests/test-areadlinkat-with-size.c (main): Likewise.
37990         * tests/test-areadlinkat.c (main): Likewise.
37991         * tests/test-canonicalize-lgpl.c (main): Likewise.
37992         * tests/test-canonicalize.c (main): Likewise.
37993         * tests/test-chown.c (main): Likewise.
37994         * tests/test-fchownat.c (main): Likewise.
37995         * tests/test-lchown.c (main): Likewise.
37996         * tests/test-fdutimensat.c (main): Likewise.
37997         * tests/test-futimens.c (main): Likewise.
37998         * tests/test-link.c (main): Likewise.
37999         * tests/test-linkat.c (main): Likewise.
38000         * tests/test-mkdir.c (main): Likewise.
38001         * tests/test-mkdirat.c (main): Likewise.
38002         * tests/test-mkfifo.c (main): Likewise.
38003         * tests/test-mkfifoat.c (main): Likewise.
38004         * tests/test-mknod.c (main): Likewise.
38005         * tests/test-readlink.c (main): Likewise.
38006         * tests/test-remove.c (main): Likewise.
38007         * tests/test-rename.c (main): Likewise.
38008         * tests/test-renameat.c (main): Likewise.
38009         * tests/test-symlink.c (main): Likewise.
38010         * tests/test-symlinkat.c (main): Likewise.
38011         * tests/test-utimens.c (main): Likewise.
38012         * tests/test-utimensat.c (main): Likewise.
38013
38014 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38015
38016         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38017         on $(UNUSED_PARAMETER_H) to avoid build failure.
38018
38019 2009-12-28  Jim Meyering  <meyering@redhat.com>
38020
38021         update-copyright: you may specify a max. line length other than 72
38022         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38023
38024         maint: use consistent FSF copyright line syntax
38025         * lib/posixtm.c: Add missing comma in FSF copyright line.
38026         * lib/posixtm.h: Likewise.
38027         * lib/getugroups.c: Add missing ", Inc.".
38028
38029         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38030         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38031         FSF copyright line.  Remove trailing blanks.
38032
38033 2009-12-28  Eric Blake  <ebb9@byu.net>
38034
38035         test-dup2: reduce dependencies
38036         * modules/cloexec (Configure.ac): Set witness.
38037         * modules/dup2-tests (Depends-on): Drop cloexec.
38038         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38039         not present.
38040         Suggested by Bruno Haible.
38041
38042 2009-12-26  Bruno Haible  <bruno@clisp.org>
38043
38044         Remove an unneeded dependency.
38045         * modules/fseterr (Depends-on): Remove dup2.
38046
38047 2009-12-26  Eric Blake  <ebb9@byu.net>
38048
38049         tests: use macros.h in more places
38050         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38051         (ASSERT_STREAM): Provide default of stderr.
38052         * tests/test-dirent-safer.c: Include macros.h, using alternate
38053         stream for assertions.
38054         * tests/test-dup-safer.c: Likewise.
38055         * tests/test-freopen-safer.c: Likewise.
38056         * tests/test-getopt.c: Likewise.
38057         * tests/test-openat-safer.c: Likewise.
38058         * tests/test-pipe.c: Likewise.
38059         * tests/test-popen-safer.c: Likewise.
38060         * modules/dirent-safer-tests (Files): Include macros.h.
38061         * modules/unistd-safer-tests (Files): Likewise.
38062         * modules/freopen-safer-tests (Files): Likewise.
38063         * modules/getopt-posix-tests (Files): Likewise.
38064         * modules/openat-safer-tests (Files): Likewise.
38065         * modules/pipe-tests (Files): Likewise.
38066
38067 2009-12-26  Bruno Haible  <bruno@clisp.org>
38068
38069         javacomp: Portability fix.
38070         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38071         that it also works on Solaris.
38072
38073 2009-12-26  Bruno Haible  <bruno@clisp.org>
38074
38075         localename: Fix storage allocation of gl_locale_name_thread's result.
38076         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38077         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38078         all platforms that have 'uselocale'.
38079         (gl_locale_name_thread_unsafe): New function, extracted from
38080         gl_locale_name_thread.
38081         (gl_locale_name_thread): Call struniq on all platforms that have
38082         'uselocale'.
38083         * tests/test-localename.c (test_locale_name_thread): Check that the
38084         resulting strings are permanently allocated.
38085         * modules/localename-tests (Depends-on): Add strdup.
38086
38087 2009-12-26  Bruno Haible  <bruno@clisp.org>
38088
38089         * tests/test-localename.c (categories): Fill in the strings.
38090
38091 2009-12-26  Jim Meyering  <meyering@redhat.com>
38092
38093         isdir: complete the removal of m4/isdir.m4
38094         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38095
38096         isdir: clean up, since at least grep still uses it
38097         * lib/isdir.c: Include "isdir.h".
38098         (S_ISDIR): Remove now-unneeded definition.
38099         * modules/isdir (Files): Add lib/isdir.h.
38100         * lib/isdir.h: New file, with declaration.
38101         * m4/isdir.m4: Remove file -- unneeded.
38102
38103 2009-12-25  Bruno Haible  <bruno@clisp.org>
38104
38105         selinux-h: Make generated .h files standalone.
38106         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38107         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38108         * lib/se-selinux.in.h: Likewise.
38109         * modules/selinux-h (Depends-on): Add unused-parameter.
38110         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38111         selinux/selinux.h and selinux/context.h.
38112         Suggested by Eric Blake.
38113
38114 2009-12-25  Bruno Haible  <bruno@clisp.org>
38115
38116         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38117         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38118         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38119         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38120         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38121
38122 2009-12-24  Bruno Haible  <bruno@clisp.org>
38123
38124         openat: Fix warning.
38125         * lib/openat-proc.c: Include <unistd.h>.
38126
38127 2009-12-24  Bruno Haible  <bruno@clisp.org>
38128
38129         New module 'unused-parameter'.
38130         * build-aux/unused-parameter.h: New file, extracted from earlier
38131         gnulib-common.m4.
38132         * modules/unused-parameter: New file.
38133         * lib/unistr.h: Include unused-parameter.h.
38134         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38135         _GL_UNUSED.
38136         * modules/unistr/base (Depends-on): Add unused-parameter.
38137
38138 2009-12-24  Bruno Haible  <bruno@clisp.org>
38139
38140         Add missing dependencies to 'extensions' module.
38141         * m4/extensions.m4: Add comment.
38142         * modules/accept4 (Depends-on): Add extensions.
38143         * modules/dup3 (Depends-on): Likewise.
38144         * modules/fcntl (Depends-on): Likewise.
38145         * modules/futimens (Depends-on): Likewise.
38146         * modules/mknod (Depends-on): Likewise.
38147         * modules/pipe2 (Depends-on): Likewise.
38148         * modules/stat-time (Depends-on): Likewise.
38149         * modules/strcasestr-simple (Depends-on): Likewise.
38150         * modules/strsignal (Depends-on): Likewise.
38151         * modules/utimensat (Depends-on): Likewise.
38152         * modules/localcharset (Depends-on): Likewise. Needed because of
38153         gl_FCNTL_O_FLAGS.
38154         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38155         AC_TYPE_MBSTATE_T.
38156         * modules/wcsnrtombs (Depends-on): Likewise.
38157         * modules/wcsrtombs (Depends-on): Likewise.
38158
38159 2009-12-24  Bruno Haible  <bruno@clisp.org>
38160
38161         binary-io: Avoid gcc warning due to SET_BINARY.
38162         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38163         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38164
38165 2009-12-24  Bruno Haible  <bruno@clisp.org>
38166
38167         Avoid future namespace pollution on glibc systems.
38168         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38169         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38170         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38171         glibc systems.
38172
38173 2009-12-24  Bruno Haible  <bruno@clisp.org>
38174
38175         Refactor common macros used in tests.
38176         * tests/macros.h: New file.
38177         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38178         and/or <stdlib.h>, if appropriate.
38179         (ASSERT, SIZEOF): Remove macros.
38180         * tests/test-areadlink-with-size.c: Likewise.
38181         * tests/test-areadlinkat.c: Likewise.
38182         * tests/test-areadlinkat-with-size.c: Likewise.
38183         * tests/test-argmatch.c: Likewise.
38184         * tests/test-argv-iter.c: Likewise.
38185         * tests/test-array-mergesort.c: Likewise.
38186         * tests/test-array_list.c: Likewise.
38187         * tests/test-array_oset.c: Likewise.
38188         * tests/test-avltree_list.c: Likewise.
38189         * tests/test-avltree_oset.c: Likewise.
38190         * tests/test-avltreehash_list.c: Likewise.
38191         * tests/test-base64.c: Likewise.
38192         * tests/test-binary-io.c: Likewise.
38193         * tests/test-bitrotate.c: Likewise.
38194         * tests/test-btowc.c: Likewise.
38195         * tests/test-byteswap.c: Likewise.
38196         * tests/test-c-ctype.c: Likewise.
38197         * tests/test-c-stack.c: Likewise.
38198         * tests/test-c-strcasecmp.c: Likewise.
38199         * tests/test-c-strcasestr.c: Likewise.
38200         * tests/test-c-strncasecmp.c: Likewise.
38201         * tests/test-c-strstr.c: Likewise.
38202         * tests/test-canonicalize-lgpl.c: Likewise.
38203         * tests/test-canonicalize.c: Likewise.
38204         * tests/test-carray_list.c: Likewise.
38205         * tests/test-ceilf1.c: Likewise.
38206         * tests/test-ceilf2.c: Likewise.
38207         * tests/test-ceill.c: Likewise.
38208         * tests/test-chown.c: Likewise.
38209         * tests/test-cloexec.c: Likewise.
38210         * tests/test-copy-acl.c: Likewise.
38211         * tests/test-copy-file.c: Likewise.
38212         * tests/test-count-one-bits.c: Likewise.
38213         * tests/test-dprintf-posix.c: Likewise.
38214         * tests/test-dup2.c: Likewise.
38215         * tests/test-dup3.c: Likewise.
38216         * tests/test-duplocale.c: Likewise.
38217         * tests/test-fbufmode.c: Likewise.
38218         * tests/test-fchdir.c: Likewise.
38219         * tests/test-fchownat.c: Likewise.
38220         * tests/test-fcntl-safer.c: Likewise.
38221         * tests/test-fcntl.c: Likewise.
38222         * tests/test-fdopendir.c: Likewise.
38223         * tests/test-fdutimensat.c: Likewise.
38224         * tests/test-fflush2.c: Likewise.
38225         * tests/test-file-has-acl.c: Likewise.
38226         * tests/test-filevercmp.c: Likewise.
38227         * tests/test-flock.c: Likewise.
38228         * tests/test-floorf1.c: Likewise.
38229         * tests/test-floorf2.c: Likewise.
38230         * tests/test-floorl.c: Likewise.
38231         * tests/test-fnmatch.c: Likewise.
38232         * tests/test-fopen.h: Likewise.
38233         * tests/test-fpending.c: Likewise.
38234         * tests/test-fprintf-posix.c: Likewise.
38235         * tests/test-fpurge.c: Likewise.
38236         * tests/test-freadable.c: Likewise.
38237         * tests/test-freadahead.c: Likewise.
38238         * tests/test-freading.c: Likewise.
38239         * tests/test-freadptr.c: Likewise.
38240         * tests/test-freadptr2.c: Likewise.
38241         * tests/test-freadseek.c: Likewise.
38242         * tests/test-freopen.c: Likewise.
38243         * tests/test-frexp.c: Likewise.
38244         * tests/test-frexpl.c: Likewise.
38245         * tests/test-fseek.c: Likewise.
38246         * tests/test-fseeko.c: Likewise.
38247         * tests/test-fstatat.c: Likewise.
38248         * tests/test-fstrcmp.c: Likewise.
38249         * tests/test-fsync.c: Likewise.
38250         * tests/test-ftell.c: Likewise.
38251         * tests/test-ftello.c: Likewise.
38252         * tests/test-func.c: Likewise.
38253         * tests/test-futimens.c: Likewise.
38254         * tests/test-fwritable.c: Likewise.
38255         * tests/test-fwriting.c: Likewise.
38256         * tests/test-getcwd.c: Likewise.
38257         * tests/test-getdate.c: Likewise.
38258         * tests/test-getdelim.c: Likewise.
38259         * tests/test-getdtablesize.c: Likewise.
38260         * tests/test-getgroups.c: Likewise.
38261         * tests/test-getline.c: Likewise.
38262         * tests/test-getndelim2.c: Likewise.
38263         * tests/test-glob.c: Likewise.
38264         * tests/test-hash.c: Likewise.
38265         * tests/test-i-ring.c: Likewise.
38266         * tests/test-iconv-utf.c: Likewise.
38267         * tests/test-iconv.c: Likewise.
38268         * tests/test-idpriv-drop.c: Likewise.
38269         * tests/test-idpriv-droptemp.c: Likewise.
38270         * tests/test-inet_ntop.c: Likewise.
38271         * tests/test-inet_pton.c: Likewise.
38272         * tests/test-isblank.c: Likewise.
38273         * tests/test-isfinite.c: Likewise.
38274         * tests/test-isinf.c: Likewise.
38275         * tests/test-isnan.c: Likewise.
38276         * tests/test-isnand.h: Likewise.
38277         * tests/test-isnanf.h: Likewise.
38278         * tests/test-isnanl.h: Likewise.
38279         * tests/test-lchown.c: Likewise.
38280         * tests/test-ldexpl.c: Likewise.
38281         * tests/test-link.c: Likewise.
38282         * tests/test-linkat.c: Likewise.
38283         * tests/test-linked_list.c: Likewise.
38284         * tests/test-linkedhash_list.c: Likewise.
38285         * tests/test-localename.c: Likewise.
38286         * tests/test-lseek.c: Likewise.
38287         * tests/test-lstat.c: Likewise.
38288         * tests/test-mbmemcasecmp.c: Likewise.
38289         * tests/test-mbmemcasecoll.c: Likewise.
38290         * tests/test-mbrtowc.c: Likewise.
38291         * tests/test-mbscasecmp.c: Likewise.
38292         * tests/test-mbscasestr1.c: Likewise.
38293         * tests/test-mbscasestr2.c: Likewise.
38294         * tests/test-mbscasestr3.c: Likewise.
38295         * tests/test-mbscasestr4.c: Likewise.
38296         * tests/test-mbschr.c: Likewise.
38297         * tests/test-mbscspn.c: Likewise.
38298         * tests/test-mbsinit.c: Likewise.
38299         * tests/test-mbsncasecmp.c: Likewise.
38300         * tests/test-mbsnrtowcs.c: Likewise.
38301         * tests/test-mbspbrk.c: Likewise.
38302         * tests/test-mbspcasecmp.c: Likewise.
38303         * tests/test-mbsrchr.c: Likewise.
38304         * tests/test-mbsrtowcs.c: Likewise.
38305         * tests/test-mbsspn.c: Likewise.
38306         * tests/test-mbsstr1.c: Likewise.
38307         * tests/test-mbsstr2.c: Likewise.
38308         * tests/test-mbsstr3.c: Likewise.
38309         * tests/test-memchr.c: Likewise.
38310         * tests/test-memchr2.c: Likewise.
38311         * tests/test-memcmp.c: Likewise.
38312         * tests/test-memmem.c: Likewise.
38313         * tests/test-memrchr.c: Likewise.
38314         * tests/test-mkdir.c: Likewise.
38315         * tests/test-mkdirat.c: Likewise.
38316         * tests/test-mkfifo.c: Likewise.
38317         * tests/test-mkfifoat.c: Likewise.
38318         * tests/test-mknod.c: Likewise.
38319         * tests/test-nanosleep.c: Likewise.
38320         * tests/test-nl_langinfo.c: Likewise.
38321         * tests/test-obstack-printf.c: Likewise.
38322         * tests/test-open.c: Likewise.
38323         * tests/test-openat.c: Likewise.
38324         * tests/test-pipe-filter-gi1.c: Likewise.
38325         * tests/test-pipe-filter-gi2-main.c: Likewise.
38326         * tests/test-pipe-filter-ii1.c: Likewise.
38327         * tests/test-pipe-filter-ii2-main.c: Likewise.
38328         * tests/test-pipe2.c: Likewise.
38329         * tests/test-popen.h: Likewise.
38330         * tests/test-posixtm.c: Likewise.
38331         * tests/test-pread.c: Likewise.
38332         * tests/test-printf-frexp.c: Likewise.
38333         * tests/test-printf-frexpl.c: Likewise.
38334         * tests/test-printf-posix.c: Likewise.
38335         * tests/test-priv-set.c: Likewise.
38336         * tests/test-quotearg.c: Likewise.
38337         * tests/test-random_r.c: Likewise.
38338         * tests/test-rawmemchr.c: Likewise.
38339         * tests/test-rbtree_list.c: Likewise.
38340         * tests/test-rbtree_oset.c: Likewise.
38341         * tests/test-rbtreehash_list.c: Likewise.
38342         * tests/test-readlink.c: Likewise.
38343         * tests/test-remove.c: Likewise.
38344         * tests/test-rename.c: Likewise.
38345         * tests/test-renameat.c: Likewise.
38346         * tests/test-rmdir.c: Likewise.
38347         * tests/test-round1.c: Likewise.
38348         * tests/test-roundf1.c: Likewise.
38349         * tests/test-roundl.c: Likewise.
38350         * tests/test-safe-alloc.c: Likewise.
38351         * tests/test-sameacls.c: Likewise.
38352         * tests/test-set-mode-acl.c: Likewise.
38353         * tests/test-setenv.c: Likewise.
38354         * tests/test-sigaction.c: Likewise.
38355         * tests/test-signbit.c: Likewise.
38356         * tests/test-sleep.c: Likewise.
38357         * tests/test-snprintf-posix.c: Likewise.
38358         * tests/test-snprintf.c: Likewise.
38359         * tests/test-sprintf-posix.c: Likewise.
38360         * tests/test-stat-time.c: Likewise.
38361         * tests/test-stat.c: Likewise.
38362         * tests/test-strcasestr.c: Likewise.
38363         * tests/test-strchrnul.c: Likewise.
38364         * tests/test-strerror.c: Likewise.
38365         * tests/test-striconv.c: Likewise.
38366         * tests/test-striconveh.c: Likewise.
38367         * tests/test-striconveha.c: Likewise.
38368         * tests/test-strsignal.c: Likewise.
38369         * tests/test-strstr.c: Likewise.
38370         * tests/test-strtod.c: Likewise.
38371         * tests/test-strverscmp.c: Likewise.
38372         * tests/test-symlink.c: Likewise.
38373         * tests/test-symlinkat.c: Likewise.
38374         * tests/test-trunc1.c: Likewise.
38375         * tests/test-trunc2.c: Likewise.
38376         * tests/test-truncf1.c: Likewise.
38377         * tests/test-truncf2.c: Likewise.
38378         * tests/test-truncl.c: Likewise.
38379         * tests/test-uname.c: Likewise.
38380         * tests/test-unlink.c: Likewise.
38381         * tests/test-unlinkat.c: Likewise.
38382         * tests/test-unsetenv.c: Likewise.
38383         * tests/test-usleep.c: Likewise.
38384         * tests/test-utimens.c: Likewise.
38385         * tests/test-utimensat.c: Likewise.
38386         * tests/test-vasnprintf-posix.c: Likewise.
38387         * tests/test-vasnprintf-posix2.c: Likewise.
38388         * tests/test-vasnprintf.c: Likewise.
38389         * tests/test-vasprintf-posix.c: Likewise.
38390         * tests/test-vasprintf.c: Likewise.
38391         * tests/test-vdprintf-posix.c: Likewise.
38392         * tests/test-vfprintf-posix.c: Likewise.
38393         * tests/test-vprintf-posix.c: Likewise.
38394         * tests/test-vsnprintf-posix.c: Likewise.
38395         * tests/test-vsnprintf.c: Likewise.
38396         * tests/test-vsprintf-posix.c: Likewise.
38397         * tests/test-wcrtomb.c: Likewise.
38398         * tests/test-wcsnrtombs.c: Likewise.
38399         * tests/test-wcsrtombs.c: Likewise.
38400         * tests/test-wctype.c: Likewise.
38401         * tests/test-wcwidth.c: Likewise.
38402         * tests/test-xfprintf-posix.c: Likewise.
38403         * tests/test-xmemdup0.c: Likewise.
38404         * tests/test-xprintf-posix.c: Likewise.
38405         * tests/test-xvasprintf.c: Likewise.
38406         * tests/unicase/test-locale-language.c: Likewise.
38407         * tests/unicase/test-mapping-part1.h: Likewise.
38408         * tests/unicase/test-predicate-part1.h: Likewise.
38409         * tests/unicase/test-u8-casecmp.c: Likewise.
38410         * tests/unicase/test-u8-casecoll.c: Likewise.
38411         * tests/unicase/test-u8-casefold.c: Likewise.
38412         * tests/unicase/test-u8-is-cased.c: Likewise.
38413         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38414         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38415         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38416         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38417         * tests/unicase/test-u8-tolower.c: Likewise.
38418         * tests/unicase/test-u8-totitle.c: Likewise.
38419         * tests/unicase/test-u8-toupper.c: Likewise.
38420         * tests/unicase/test-u16-casecmp.c: Likewise.
38421         * tests/unicase/test-u16-casecoll.c: Likewise.
38422         * tests/unicase/test-u16-casefold.c: Likewise.
38423         * tests/unicase/test-u16-is-cased.c: Likewise.
38424         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38425         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38426         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38427         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38428         * tests/unicase/test-u16-tolower.c: Likewise.
38429         * tests/unicase/test-u16-totitle.c: Likewise.
38430         * tests/unicase/test-u16-toupper.c: Likewise.
38431         * tests/unicase/test-u32-casecmp.c: Likewise.
38432         * tests/unicase/test-u32-casecoll.c: Likewise.
38433         * tests/unicase/test-u32-casefold.c: Likewise.
38434         * tests/unicase/test-u32-is-cased.c: Likewise.
38435         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38436         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38437         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38438         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38439         * tests/unicase/test-u32-tolower.c: Likewise.
38440         * tests/unicase/test-u32-totitle.c: Likewise.
38441         * tests/unicase/test-u32-toupper.c: Likewise.
38442         * tests/unicase/test-ulc-casecmp.c: Likewise.
38443         * tests/unicase/test-ulc-casecoll.c: Likewise.
38444         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38445         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38446         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38447         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38448         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38449         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38450         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38451         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38452         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38453         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38454         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38455         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38456         * tests/unictype/test-bidi_byname.c: Likewise.
38457         * tests/unictype/test-bidi_name.c: Likewise.
38458         * tests/unictype/test-bidi_of.c: Likewise.
38459         * tests/unictype/test-bidi_test.c: Likewise.
38460         * tests/unictype/test-block_list.c: Likewise.
38461         * tests/unictype/test-block_of.c: Likewise.
38462         * tests/unictype/test-block_test.c: Likewise.
38463         * tests/unictype/test-categ_and.c: Likewise.
38464         * tests/unictype/test-categ_and_not.c: Likewise.
38465         * tests/unictype/test-categ_byname.c: Likewise.
38466         * tests/unictype/test-categ_name.c: Likewise.
38467         * tests/unictype/test-categ_none.c: Likewise.
38468         * tests/unictype/test-categ_of.c: Likewise.
38469         * tests/unictype/test-categ_or.c: Likewise.
38470         * tests/unictype/test-categ_test_withtable.c: Likewise.
38471         * tests/unictype/test-combining.c: Likewise.
38472         * tests/unictype/test-decdigit.c: Likewise.
38473         * tests/unictype/test-digit.c: Likewise.
38474         * tests/unictype/test-mirror.c: Likewise.
38475         * tests/unictype/test-numeric.c: Likewise.
38476         * tests/unictype/test-pr_byname.c: Likewise.
38477         * tests/unictype/test-pr_test.c: Likewise.
38478         * tests/unictype/test-predicate-part1.h: Likewise.
38479         * tests/unictype/test-scripts.c: Likewise.
38480         * tests/unictype/test-sy_c_ident.c: Likewise.
38481         * tests/unictype/test-sy_java_ident.c: Likewise.
38482         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38483         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38484         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38485         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38486         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38487         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38488         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38489         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38490         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38491         * tests/uninorm/test-compat-decomposition.c: Likewise.
38492         * tests/uninorm/test-composition.c: Likewise.
38493         * tests/uninorm/test-decomposing-form.c: Likewise.
38494         * tests/uninorm/test-decomposition.c: Likewise.
38495         * tests/uninorm/test-u8-nfc.c: Likewise.
38496         * tests/uninorm/test-u8-nfd.c: Likewise.
38497         * tests/uninorm/test-u8-nfkc.c: Likewise.
38498         * tests/uninorm/test-u8-nfkd.c: Likewise.
38499         * tests/uninorm/test-u8-normcmp.c: Likewise.
38500         * tests/uninorm/test-u8-normcoll.c: Likewise.
38501         * tests/uninorm/test-u16-nfc.c: Likewise.
38502         * tests/uninorm/test-u16-nfd.c: Likewise.
38503         * tests/uninorm/test-u16-nfkc.c: Likewise.
38504         * tests/uninorm/test-u16-nfkd.c: Likewise.
38505         * tests/uninorm/test-u16-normcmp.c: Likewise.
38506         * tests/uninorm/test-u16-normcoll.c: Likewise.
38507         * tests/uninorm/test-u32-nfc.c: Likewise.
38508         * tests/uninorm/test-u32-nfd.c: Likewise.
38509         * tests/uninorm/test-u32-nfkc.c: Likewise.
38510         * tests/uninorm/test-u32-nfkd.c: Likewise.
38511         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38512         * tests/uninorm/test-u32-normcmp.c: Likewise.
38513         * tests/uninorm/test-u32-normcoll.c: Likewise.
38514         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38515         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38516         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38517         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38518         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38519         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38520         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38521         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38522         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38523         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38524         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38525         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38526         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38527         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38528         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38529         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38530         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38531         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38532         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38533         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38534         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38535         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38536         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38537         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38538         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38539         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38540         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38541         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38542         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38543         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38544         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38545         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38546         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38547         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38548         * tests/uniwidth/test-u8-width.c: Likewise.
38549         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38550         * tests/uniwidth/test-u16-width.c: Likewise.
38551         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38552         * tests/uniwidth/test-u32-width.c: Likewise.
38553         * tests/uniwidth/test-uc_width.c: Likewise.
38554         * tests/uniwidth/test-uc_width2.c: Likewise.
38555         * modules/acl-tests (Files): Add tests/macros.h.
38556         * modules/areadlink-tests (Files): Likewise.
38557         * modules/areadlink-with-size-tests (Files): Likewise.
38558         * modules/areadlinkat-tests (Files): Likewise.
38559         * modules/areadlinkat-with-size-tests (Files): Likewise.
38560         * modules/argmatch-tests (Files): Likewise.
38561         * modules/argv-iter-tests (Files): Likewise.
38562         * modules/array-list-tests (Files): Likewise.
38563         * modules/array-mergesort-tests (Files): Likewise.
38564         * modules/array-oset-tests (Files): Likewise.
38565         * modules/avltree-list-tests (Files): Likewise.
38566         * modules/avltree-oset-tests (Files): Likewise.
38567         * modules/avltreehash-list-tests (Files): Likewise.
38568         * modules/base64-tests (Files): Likewise.
38569         * modules/binary-io-tests (Files): Likewise.
38570         * modules/bitrotate-tests (Files): Likewise.
38571         * modules/btowc-tests (Files): Likewise.
38572         * modules/byteswap-tests (Files): Likewise.
38573         * modules/c-ctype-tests (Files): Likewise.
38574         * modules/c-stack-tests (Files): Likewise.
38575         * modules/c-strcase-tests (Files): Likewise.
38576         * modules/c-strcasestr-tests (Files): Likewise.
38577         * modules/c-strstr-tests (Files): Likewise.
38578         * modules/canonicalize-lgpl-tests (Files): Likewise.
38579         * modules/canonicalize-tests (Files): Likewise.
38580         * modules/carray-list-tests (Files): Likewise.
38581         * modules/ceilf-tests (Files): Likewise.
38582         * modules/ceill-tests (Files): Likewise.
38583         * modules/chown-tests (Files): Likewise.
38584         * modules/cloexec-tests (Files): Likewise.
38585         * modules/copy-file-tests (Files): Likewise.
38586         * modules/count-one-bits-tests (Files): Likewise.
38587         * modules/dprintf-posix-tests (Files): Likewise.
38588         * modules/dup2-tests (Files): Likewise.
38589         * modules/dup3-tests (Files): Likewise.
38590         * modules/duplocale-tests (Files): Likewise.
38591         * modules/fbufmode-tests (Files): Likewise.
38592         * modules/fchdir-tests (Files): Likewise.
38593         * modules/fcntl-safer-tests (Files): Likewise.
38594         * modules/fcntl-tests (Files): Likewise.
38595         * modules/fdopendir-tests (Files): Likewise.
38596         * modules/fdutimensat-tests (Files): Likewise.
38597         * modules/fflush-tests (Files): Likewise.
38598         * modules/filevercmp-tests (Files): Likewise.
38599         * modules/flock-tests (Files): Likewise.
38600         * modules/floorf-tests (Files): Likewise.
38601         * modules/floorl-tests (Files): Likewise.
38602         * modules/fnmatch-tests (Files): Likewise.
38603         * modules/fopen-safer-tests (Files): Likewise.
38604         * modules/fopen-tests (Files): Likewise.
38605         * modules/fpending-tests (Files): Likewise.
38606         * modules/fprintf-posix-tests (Files): Likewise.
38607         * modules/fpurge-tests (Files): Likewise.
38608         * modules/freadable-tests (Files): Likewise.
38609         * modules/freadahead-tests (Files): Likewise.
38610         * modules/freading-tests (Files): Likewise.
38611         * modules/freadptr-tests (Files): Likewise.
38612         * modules/freadseek-tests (Files): Likewise.
38613         * modules/freopen-tests (Files): Likewise.
38614         * modules/frexp-nolibm-tests (Files): Likewise.
38615         * modules/frexp-tests (Files): Likewise.
38616         * modules/frexpl-nolibm-tests (Files): Likewise.
38617         * modules/frexpl-tests (Files): Likewise.
38618         * modules/fseek-tests (Files): Likewise.
38619         * modules/fseeko-tests (Files): Likewise.
38620         * modules/fstrcmp-tests (Files): Likewise.
38621         * modules/fsync-tests (Files): Likewise.
38622         * modules/ftell-tests (Files): Likewise.
38623         * modules/ftello-tests (Files): Likewise.
38624         * modules/func-tests (Files): Likewise.
38625         * modules/futimens-tests (Files): Likewise.
38626         * modules/fwritable-tests (Files): Likewise.
38627         * modules/fwriting-tests (Files): Likewise.
38628         * modules/getcwd-tests (Files): Likewise.
38629         * modules/getdate-tests (Files): Likewise.
38630         * modules/getdelim-tests (Files): Likewise.
38631         * modules/getdtablesize-tests (Files): Likewise.
38632         * modules/getgroups-tests (Files): Likewise.
38633         * modules/getline-tests (Files): Likewise.
38634         * modules/getndelim2-tests (Files): Likewise.
38635         * modules/glob-tests (Files): Likewise.
38636         * modules/hash-tests (Files): Likewise.
38637         * modules/i-ring-tests (Files): Likewise.
38638         * modules/iconv-tests (Files): Likewise.
38639         * modules/iconv_open-utf-tests (Files): Likewise.
38640         * modules/idpriv-drop-tests (Files): Likewise.
38641         * modules/idpriv-droptemp-tests (Files): Likewise.
38642         * modules/inet_ntop-tests (Files): Likewise.
38643         * modules/inet_pton-tests (Files): Likewise.
38644         * modules/isblank-tests (Files): Likewise.
38645         * modules/isfinite-tests (Files): Likewise.
38646         * modules/isinf-tests (Files): Likewise.
38647         * modules/isnan-tests (Files): Likewise.
38648         * modules/isnand-nolibm-tests (Files): Likewise.
38649         * modules/isnand-tests (Files): Likewise.
38650         * modules/isnanf-nolibm-tests (Files): Likewise.
38651         * modules/isnanf-tests (Files): Likewise.
38652         * modules/isnanl-nolibm-tests (Files): Likewise.
38653         * modules/isnanl-tests (Files): Likewise.
38654         * modules/lchown-tests (Files): Likewise.
38655         * modules/ldexpl-tests (Files): Likewise.
38656         * modules/link-tests (Files): Likewise.
38657         * modules/linkat-tests (Files): Likewise.
38658         * modules/linked-list-tests (Files): Likewise.
38659         * modules/linkedhash-list-tests (Files): Likewise.
38660         * modules/localename-tests (Files): Likewise.
38661         * modules/lseek-tests (Files): Likewise.
38662         * modules/lstat-tests (Files): Likewise.
38663         * modules/mbmemcasecmp-tests (Files): Likewise.
38664         * modules/mbmemcasecoll-tests (Files): Likewise.
38665         * modules/mbrtowc-tests (Files): Likewise.
38666         * modules/mbscasecmp-tests (Files): Likewise.
38667         * modules/mbscasestr-tests (Files): Likewise.
38668         * modules/mbschr-tests (Files): Likewise.
38669         * modules/mbscspn-tests (Files): Likewise.
38670         * modules/mbsinit-tests (Files): Likewise.
38671         * modules/mbsncasecmp-tests (Files): Likewise.
38672         * modules/mbsnrtowcs-tests (Files): Likewise.
38673         * modules/mbspbrk-tests (Files): Likewise.
38674         * modules/mbspcasecmp-tests (Files): Likewise.
38675         * modules/mbsrchr-tests (Files): Likewise.
38676         * modules/mbsrtowcs-tests (Files): Likewise.
38677         * modules/mbsspn-tests (Files): Likewise.
38678         * modules/mbsstr-tests (Files): Likewise.
38679         * modules/memchr-tests (Files): Likewise.
38680         * modules/memchr2-tests (Files): Likewise.
38681         * modules/memcmp-tests (Files): Likewise.
38682         * modules/memmem-tests (Files): Likewise.
38683         * modules/memrchr-tests (Files): Likewise.
38684         * modules/mkdir-tests (Files): Likewise.
38685         * modules/mkfifo-tests (Files): Likewise.
38686         * modules/mkfifoat-tests (Files): Likewise.
38687         * modules/mknod-tests (Files): Likewise.
38688         * modules/nanosleep-tests (Files): Likewise.
38689         * modules/nl_langinfo-tests (Files): Likewise.
38690         * modules/obstack-printf-tests (Files): Likewise.
38691         * modules/open-tests (Files): Likewise.
38692         * modules/openat-tests (Files): Likewise.
38693         * modules/pipe-filter-gi-tests (Files): Likewise.
38694         * modules/pipe-filter-ii-tests (Files): Likewise.
38695         * modules/pipe2-tests (Files): Likewise.
38696         * modules/popen-safer-tests (Files): Likewise.
38697         * modules/popen-tests (Files): Likewise.
38698         * modules/posixtm-tests (Files): Likewise.
38699         * modules/pread-tests (Files): Likewise.
38700         * modules/printf-frexp-tests (Files): Likewise.
38701         * modules/printf-frexpl-tests (Files): Likewise.
38702         * modules/printf-posix-tests (Files): Likewise.
38703         * modules/priv-set-tests (Files): Likewise.
38704         * modules/quotearg-tests (Files): Likewise.
38705         * modules/random_r-tests (Files): Likewise.
38706         * modules/rawmemchr-tests (Files): Likewise.
38707         * modules/rbtree-list-tests (Files): Likewise.
38708         * modules/rbtree-oset-tests (Files): Likewise.
38709         * modules/rbtreehash-list-tests (Files): Likewise.
38710         * modules/readlink-tests (Files): Likewise.
38711         * modules/remove-tests (Files): Likewise.
38712         * modules/rename-tests (Files): Likewise.
38713         * modules/renameat-tests (Files): Likewise.
38714         * modules/rmdir-tests (Files): Likewise.
38715         * modules/round-tests (Files): Likewise.
38716         * modules/roundf-tests (Files): Likewise.
38717         * modules/roundl-tests (Files): Likewise.
38718         * modules/safe-alloc-tests (Files): Likewise.
38719         * modules/setenv-tests (Files): Likewise.
38720         * modules/sigaction-tests (Files): Likewise.
38721         * modules/signbit-tests (Files): Likewise.
38722         * modules/sleep-tests (Files): Likewise.
38723         * modules/snprintf-posix-tests (Files): Likewise.
38724         * modules/snprintf-tests (Files): Likewise.
38725         * modules/sprintf-posix-tests (Files): Likewise.
38726         * modules/stat-tests (Files): Likewise.
38727         * modules/stat-time-tests (Files): Likewise.
38728         * modules/strcasestr-tests (Files): Likewise.
38729         * modules/strchrnul-tests (Files): Likewise.
38730         * modules/strerror-tests (Files): Likewise.
38731         * modules/striconv-tests (Files): Likewise.
38732         * modules/striconveh-tests (Files): Likewise.
38733         * modules/striconveha-tests (Files): Likewise.
38734         * modules/strsignal-tests (Files): Likewise.
38735         * modules/strstr-tests (Files): Likewise.
38736         * modules/strtod-tests (Files): Likewise.
38737         * modules/strverscmp-tests (Files): Likewise.
38738         * modules/symlink-tests (Files): Likewise.
38739         * modules/symlinkat-tests (Files): Likewise.
38740         * modules/trunc-tests (Files): Likewise.
38741         * modules/truncf-tests (Files): Likewise.
38742         * modules/truncl-tests (Files): Likewise.
38743         * modules/uname-tests (Files): Likewise.
38744         * modules/unicase/cased-tests (Files): Likewise.
38745         * modules/unicase/ignorable-tests (Files): Likewise.
38746         * modules/unicase/locale-language-tests (Files): Likewise.
38747         * modules/unicase/tolower-tests (Files): Likewise.
38748         * modules/unicase/totitle-tests (Files): Likewise.
38749         * modules/unicase/toupper-tests (Files): Likewise.
38750         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38751         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38752         * modules/unicase/u8-casefold-tests (Files): Likewise.
38753         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38754         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38755         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38756         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38757         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38758         * modules/unicase/u8-tolower-tests (Files): Likewise.
38759         * modules/unicase/u8-totitle-tests (Files): Likewise.
38760         * modules/unicase/u8-toupper-tests (Files): Likewise.
38761         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38762         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38763         * modules/unicase/u16-casefold-tests (Files): Likewise.
38764         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38765         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38766         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38767         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38768         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38769         * modules/unicase/u16-tolower-tests (Files): Likewise.
38770         * modules/unicase/u16-totitle-tests (Files): Likewise.
38771         * modules/unicase/u16-toupper-tests (Files): Likewise.
38772         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38773         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38774         * modules/unicase/u32-casefold-tests (Files): Likewise.
38775         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38776         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38777         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38778         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38779         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38780         * modules/unicase/u32-tolower-tests (Files): Likewise.
38781         * modules/unicase/u32-totitle-tests (Files): Likewise.
38782         * modules/unicase/u32-toupper-tests (Files): Likewise.
38783         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38784         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38785         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38786         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38787         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38788         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38789         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38790         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38791         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38792         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38793         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38794         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38795         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38796         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38797         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38798         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38799         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38800         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38801         * modules/unictype/block-list-tests (Files): Likewise.
38802         * modules/unictype/block-of-tests (Files): Likewise.
38803         * modules/unictype/block-test-tests (Files): Likewise.
38804         * modules/unictype/category-C-tests (Files): Likewise.
38805         * modules/unictype/category-Cc-tests (Files): Likewise.
38806         * modules/unictype/category-Cf-tests (Files): Likewise.
38807         * modules/unictype/category-Cn-tests (Files): Likewise.
38808         * modules/unictype/category-Co-tests (Files): Likewise.
38809         * modules/unictype/category-Cs-tests (Files): Likewise.
38810         * modules/unictype/category-L-tests (Files): Likewise.
38811         * modules/unictype/category-Ll-tests (Files): Likewise.
38812         * modules/unictype/category-Lm-tests (Files): Likewise.
38813         * modules/unictype/category-Lo-tests (Files): Likewise.
38814         * modules/unictype/category-Lt-tests (Files): Likewise.
38815         * modules/unictype/category-Lu-tests (Files): Likewise.
38816         * modules/unictype/category-M-tests (Files): Likewise.
38817         * modules/unictype/category-Mc-tests (Files): Likewise.
38818         * modules/unictype/category-Me-tests (Files): Likewise.
38819         * modules/unictype/category-Mn-tests (Files): Likewise.
38820         * modules/unictype/category-N-tests (Files): Likewise.
38821         * modules/unictype/category-Nd-tests (Files): Likewise.
38822         * modules/unictype/category-Nl-tests (Files): Likewise.
38823         * modules/unictype/category-No-tests (Files): Likewise.
38824         * modules/unictype/category-P-tests (Files): Likewise.
38825         * modules/unictype/category-Pc-tests (Files): Likewise.
38826         * modules/unictype/category-Pd-tests (Files): Likewise.
38827         * modules/unictype/category-Pe-tests (Files): Likewise.
38828         * modules/unictype/category-Pf-tests (Files): Likewise.
38829         * modules/unictype/category-Pi-tests (Files): Likewise.
38830         * modules/unictype/category-Po-tests (Files): Likewise.
38831         * modules/unictype/category-Ps-tests (Files): Likewise.
38832         * modules/unictype/category-S-tests (Files): Likewise.
38833         * modules/unictype/category-Sc-tests (Files): Likewise.
38834         * modules/unictype/category-Sk-tests (Files): Likewise.
38835         * modules/unictype/category-Sm-tests (Files): Likewise.
38836         * modules/unictype/category-So-tests (Files): Likewise.
38837         * modules/unictype/category-Z-tests (Files): Likewise.
38838         * modules/unictype/category-Zl-tests (Files): Likewise.
38839         * modules/unictype/category-Zp-tests (Files): Likewise.
38840         * modules/unictype/category-Zs-tests (Files): Likewise.
38841         * modules/unictype/category-and-not-tests (Files): Likewise.
38842         * modules/unictype/category-and-tests (Files): Likewise.
38843         * modules/unictype/category-byname-tests (Files): Likewise.
38844         * modules/unictype/category-name-tests (Files): Likewise.
38845         * modules/unictype/category-none-tests (Files): Likewise.
38846         * modules/unictype/category-of-tests (Files): Likewise.
38847         * modules/unictype/category-or-tests (Files): Likewise.
38848         * modules/unictype/category-test-withtable-tests (Files): Likewise.
38849         * modules/unictype/combining-class-tests (Files): Likewise.
38850         * modules/unictype/ctype-alnum-tests (Files): Likewise.
38851         * modules/unictype/ctype-alpha-tests (Files): Likewise.
38852         * modules/unictype/ctype-blank-tests (Files): Likewise.
38853         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
38854         * modules/unictype/ctype-digit-tests (Files): Likewise.
38855         * modules/unictype/ctype-graph-tests (Files): Likewise.
38856         * modules/unictype/ctype-lower-tests (Files): Likewise.
38857         * modules/unictype/ctype-print-tests (Files): Likewise.
38858         * modules/unictype/ctype-punct-tests (Files): Likewise.
38859         * modules/unictype/ctype-space-tests (Files): Likewise.
38860         * modules/unictype/ctype-upper-tests (Files): Likewise.
38861         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
38862         * modules/unictype/decimal-digit-tests (Files): Likewise.
38863         * modules/unictype/digit-tests (Files): Likewise.
38864         * modules/unictype/mirror-tests (Files): Likewise.
38865         * modules/unictype/numeric-tests (Files): Likewise.
38866         * modules/unictype/property-alphabetic-tests (Files): Likewise.
38867         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
38868         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
38869         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
38870         Likewise.
38871         * modules/unictype/property-bidi-block-separator-tests (Files):
38872         Likewise.
38873         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
38874         Likewise.
38875         * modules/unictype/property-bidi-common-separator-tests (Files):
38876         Likewise.
38877         * modules/unictype/property-bidi-control-tests (Files): Likewise.
38878         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
38879         Likewise.
38880         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
38881         Likewise.
38882         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
38883         Likewise.
38884         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
38885         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
38886         Likewise.
38887         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
38888         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
38889         Likewise.
38890         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
38891         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
38892         * modules/unictype/property-bidi-segment-separator-tests (Files):
38893         Likewise.
38894         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
38895         * modules/unictype/property-byname-tests (Files): Likewise.
38896         * modules/unictype/property-combining-tests (Files): Likewise.
38897         * modules/unictype/property-composite-tests (Files): Likewise.
38898         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
38899         * modules/unictype/property-dash-tests (Files): Likewise.
38900         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
38901         * modules/unictype/property-default-ignorable-code-point-tests (Files):
38902         Likewise.
38903         * modules/unictype/property-deprecated-tests (Files): Likewise.
38904         * modules/unictype/property-diacritic-tests (Files): Likewise.
38905         * modules/unictype/property-extender-tests (Files): Likewise.
38906         * modules/unictype/property-format-control-tests (Files): Likewise.
38907         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
38908         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
38909         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
38910         * modules/unictype/property-hex-digit-tests (Files): Likewise.
38911         * modules/unictype/property-hyphen-tests (Files): Likewise.
38912         * modules/unictype/property-id-continue-tests (Files): Likewise.
38913         * modules/unictype/property-id-start-tests (Files): Likewise.
38914         * modules/unictype/property-ideographic-tests (Files): Likewise.
38915         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
38916         * modules/unictype/property-ids-trinary-operator-tests (Files):
38917         Likewise.
38918         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
38919         * modules/unictype/property-iso-control-tests (Files): Likewise.
38920         * modules/unictype/property-join-control-tests (Files): Likewise.
38921         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
38922         * modules/unictype/property-line-separator-tests (Files): Likewise.
38923         * modules/unictype/property-logical-order-exception-tests (Files):
38924         Likewise.
38925         * modules/unictype/property-lowercase-tests (Files): Likewise.
38926         * modules/unictype/property-math-tests (Files): Likewise.
38927         * modules/unictype/property-non-break-tests (Files): Likewise.
38928         * modules/unictype/property-not-a-character-tests (Files): Likewise.
38929         * modules/unictype/property-numeric-tests (Files): Likewise.
38930         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
38931         * modules/unictype/property-other-default-ignorable-code-point-tests
38932         (Files): Likewise.
38933         * modules/unictype/property-other-grapheme-extend-tests (Files):
38934         Likewise.
38935         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
38936         * modules/unictype/property-other-id-start-tests (Files): Likewise.
38937         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
38938         * modules/unictype/property-other-math-tests (Files): Likewise.
38939         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
38940         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
38941         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
38942         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
38943         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
38944         * modules/unictype/property-private-use-tests (Files): Likewise.
38945         * modules/unictype/property-punctuation-tests (Files): Likewise.
38946         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
38947         * modules/unictype/property-radical-tests (Files): Likewise.
38948         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
38949         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
38950         * modules/unictype/property-space-tests (Files): Likewise.
38951         * modules/unictype/property-terminal-punctuation-tests (Files):
38952         Likewise.
38953         * modules/unictype/property-test-tests (Files): Likewise.
38954         * modules/unictype/property-titlecase-tests (Files): Likewise.
38955         * modules/unictype/property-unassigned-code-value-tests (Files):
38956         Likewise.
38957         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
38958         * modules/unictype/property-uppercase-tests (Files): Likewise.
38959         * modules/unictype/property-variation-selector-tests (Files): Likewise.
38960         * modules/unictype/property-white-space-tests (Files): Likewise.
38961         * modules/unictype/property-xid-continue-tests (Files): Likewise.
38962         * modules/unictype/property-xid-start-tests (Files): Likewise.
38963         * modules/unictype/property-zero-width-tests (Files): Likewise.
38964         * modules/unictype/scripts-tests (Files): Likewise.
38965         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
38966         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
38967         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
38968         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
38969         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
38970         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
38971         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
38972         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
38973         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
38974         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
38975         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
38976         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38977         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38978         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38979         * modules/uninorm/composition-tests (Files): Likewise.
38980         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38981         * modules/uninorm/decomposition-tests (Files): Likewise.
38982         * modules/uninorm/filter-tests (Files): Likewise.
38983         * modules/uninorm/nfc-tests (Files): Likewise.
38984         * modules/uninorm/nfd-tests (Files): Likewise.
38985         * modules/uninorm/nfkc-tests (Files): Likewise.
38986         * modules/uninorm/nfkd-tests (Files): Likewise.
38987         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38988         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38989         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38990         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38991         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38992         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38993         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38994         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38995         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38996         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38997         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38998         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38999         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39000         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39001         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39002         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39003         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39004         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39005         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39006         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39007         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39008         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39009         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39010         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39011         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39012         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39013         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39014         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39015         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39016         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39017         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39018         * modules/uniwidth/u8-width-tests (Files): Likewise.
39019         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39020         * modules/uniwidth/u16-width-tests (Files): Likewise.
39021         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39022         * modules/uniwidth/u32-width-tests (Files): Likewise.
39023         * modules/uniwidth/width-tests (Files): Likewise.
39024         * modules/unlink-tests (Files): Likewise.
39025         * modules/unsetenv-tests (Files): Likewise.
39026         * modules/usleep-tests (Files): Likewise.
39027         * modules/utimens-tests (Files): Likewise.
39028         * modules/utimensat-tests (Files): Likewise.
39029         * modules/vasnprintf-posix-tests (Files): Likewise.
39030         * modules/vasnprintf-tests (Files): Likewise.
39031         * modules/vasprintf-posix-tests (Files): Likewise.
39032         * modules/vasprintf-tests (Files): Likewise.
39033         * modules/vdprintf-posix-tests (Files): Likewise.
39034         * modules/vfprintf-posix-tests (Files): Likewise.
39035         * modules/vprintf-posix-tests (Files): Likewise.
39036         * modules/vsnprintf-posix-tests (Files): Likewise.
39037         * modules/vsnprintf-tests (Files): Likewise.
39038         * modules/vsprintf-posix-tests (Files): Likewise.
39039         * modules/wcrtomb-tests (Files): Likewise.
39040         * modules/wcsnrtombs-tests (Files): Likewise.
39041         * modules/wcsrtombs-tests (Files): Likewise.
39042         * modules/wctype-tests (Files): Likewise.
39043         * modules/wcwidth-tests (Files): Likewise.
39044         * modules/xmemdup0-tests (Files): Likewise.
39045         * modules/xprintf-posix-tests (Files): Likewise.
39046         * modules/xvasprintf-tests (Files): Likewise.
39047
39048 2009-12-24  Eric Blake  <ebb9@byu.net>
39049
39050         test-nanosleep: fix typo
39051         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39052         patch.
39053         Reported by Bruno Haible.
39054
39055 2009-12-24  Bruno Haible  <bruno@clisp.org>
39056
39057         Reduce namespace pollution on glibc systems.
39058         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39059         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39060         systems.
39061         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39062         <getopt.h> on glibc systems.
39063         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39064         systems.
39065         * lib/fcntl.c: Include <unistd.h> here instead.
39066
39067 2009-12-24  Bruno Haible  <bruno@clisp.org>
39068
39069         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39070
39071 2009-12-24  Eric Blake  <ebb9@byu.net>
39072
39073         tests: add signature checks
39074         * tests/signature.h (SIGNATURE_CHECK): New file.
39075         * modules/atexit-tests (Files): Use it.
39076         * modules/btowc-tests (Files): Likewise.
39077         * modules/canonicalize-lgpl-tests (Files): Likewise.
39078         * modules/ceilf-tests (Files): Likewise.
39079         * modules/ceill-tests (Files): Likewise.
39080         * modules/chown-tests (Files): Likewise.
39081         * modules/dprintf-posix-tests (Files): Likewise.
39082         * modules/dup2-tests (Files): Likewise.
39083         * modules/dup3-tests (Files): Likewise.
39084         * modules/duplocale-tests (Files): Likewise.
39085         * modules/fchdir-tests (Files): Likewise.
39086         * modules/fcntl-tests (Files): Likewise.
39087         * modules/fdopendir-tests (Files): Likewise.
39088         * modules/fflush-tests (Files): Likewise.
39089         * modules/flock-tests (Files): Likewise.
39090         * modules/floorf-tests (Files): Likewise.
39091         * modules/floorl-tests (Files): Likewise.
39092         * modules/fnmatch-tests (Files): Likewise.
39093         * modules/fopen-tests (Files): Likewise.
39094         * modules/fprintf-posix-tests (Files): Likewise.
39095         * modules/freopen-tests (Files): Likewise.
39096         * modules/frexp-nolibm-tests (Files): Likewise.
39097         * modules/frexp-tests (Files): Likewise.
39098         * modules/frexpl-nolibm-tests (Files): Likewise.
39099         * modules/frexpl-tests (Files): Likewise.
39100         * modules/fseek-tests (Files): Likewise.
39101         * modules/fseeko-tests (Files): Likewise.
39102         * modules/fsync-tests (Files): Likewise.
39103         * modules/ftell-tests (Files): Likewise.
39104         * modules/ftello-tests (Files): Likewise.
39105         * modules/futimens-tests (Files): Likewise.
39106         * modules/getaddrinfo-tests (Files): Likewise.
39107         * modules/getcwd-tests (Files): Likewise.
39108         * modules/getdelim-tests (Files): Likewise.
39109         * modules/getdtablesize-tests (Files): Likewise.
39110         * modules/getgroups-tests (Files): Likewise.
39111         * modules/gethostname-tests (Files): Likewise.
39112         * modules/getline-tests (Files): Likewise.
39113         * modules/getopt-posix-tests (Files): Likewise.
39114         * modules/gettimeofday-tests (Files): Likewise.
39115         * modules/glob-tests (Files): Likewise.
39116         * modules/iconv-tests (Files): Likewise.
39117         * modules/inet_ntop-tests (Files): Likewise.
39118         * modules/inet_pton-tests (Files): Likewise.
39119         * modules/isblank-tests (Files): Likewise.
39120         * modules/lchown-tests (Files): Likewise.
39121         * modules/ldexpl-tests (Files): Likewise.
39122         * modules/link-tests (Files): Likewise.
39123         * modules/linkat-tests (Files): Likewise.
39124         * modules/lseek-tests (Files): Likewise.
39125         * modules/lstat-tests (Files): Likewise.
39126         * modules/mbrtowc-tests (Files): Likewise.
39127         * modules/mbsinit-tests (Files): Likewise.
39128         * modules/mbsnrtowcs-tests (Files): Likewise.
39129         * modules/mbsrtowcs-tests (Files): Likewise.
39130         * modules/memchr-tests (Files): Likewise.
39131         * modules/memcmp-tests (Files): Likewise.
39132         * modules/memmem-tests (Files): Likewise.
39133         * modules/memrchr-tests (Files): Likewise.
39134         * modules/mkdir-tests (Files): Likewise.
39135         * modules/mkfifo-tests (Files): Likewise.
39136         * modules/mkfifoat-tests (Files): Likewise.
39137         * modules/mknod-tests (Files): Likewise.
39138         * modules/nanosleep-tests (Files): Likewise.
39139         * modules/nl_langinfo-tests (Files): Likewise.
39140         * modules/obstack-printf-tests (Files): Likewise.
39141         * modules/open-tests (Files): Likewise.
39142         * modules/openat-tests (Files): Likewise.
39143         * modules/perror-tests (Files): Likewise.
39144         * modules/pipe2-tests (Files): Likewise.
39145         * modules/poll-tests (Files): Likewise.
39146         * modules/popen-tests (Files): Likewise.
39147         * modules/posix_spawn-tests (Files): Likewise.
39148         * modules/posix_spawnp-tests (Files): Likewise.
39149         * modules/pread-tests (Files): Likewise.
39150         * modules/printf-posix-tests (Files): Likewise.
39151         * modules/pty-tests (Files): Likewise.
39152         * modules/random_r-tests (Files): Likewise.
39153         * modules/rawmemchr-tests (Files): Likewise.
39154         * modules/readlink-tests (Files): Likewise.
39155         * modules/remove-tests (Files): Likewise.
39156         * modules/rename-tests (Files): Likewise.
39157         * modules/renameat-tests (Files): Likewise.
39158         * modules/rmdir-tests (Files): Likewise.
39159         * modules/round-tests (Files): Likewise.
39160         * modules/roundf-tests (Files): Likewise.
39161         * modules/roundl-tests (Files): Likewise.
39162         * modules/select-tests (Files): Likewise.
39163         * modules/setenv-tests (Files): Likewise.
39164         * modules/sigaction-tests (Files): Likewise.
39165         * modules/sleep-tests (Files): Likewise.
39166         * modules/snprintf-posix-tests (Files): Likewise.
39167         * modules/snprintf-tests (Files): Likewise.
39168         * modules/sprintf-posix-tests (Files): Likewise.
39169         * modules/stat-tests (Files): Likewise.
39170         * modules/strcasestr-tests (Files): Likewise.
39171         * modules/strchrnul-tests (Files): Likewise.
39172         * modules/strerror-tests (Files): Likewise.
39173         * modules/strsignal-tests (Files): Likewise.
39174         * modules/strstr-tests (Files): Likewise.
39175         * modules/strtod-tests (Files): Likewise.
39176         * modules/strverscmp-tests (Files): Likewise.
39177         * modules/symlink-tests (Files): Likewise.
39178         * modules/symlinkat-tests (Files): Likewise.
39179         * modules/times-tests (Files): Likewise.
39180         * modules/trunc-tests (Files): Likewise.
39181         * modules/truncf-tests (Files): Likewise.
39182         * modules/truncl-tests (Files): Likewise.
39183         * modules/tsearch-tests (Files): Likewise.
39184         * modules/uname-tests (Files): Likewise.
39185         * modules/unlink-tests (Files): Likewise.
39186         * modules/unsetenv-tests (Files): Likewise.
39187         * modules/usleep-tests (Files): Likewise.
39188         * modules/utimensat-tests (Files): Likewise.
39189         * modules/vasprintf-tests (Files): Likewise.
39190         * modules/vdprintf-posix-tests (Files): Likewise.
39191         * modules/vfprintf-posix-tests (Files): Likewise.
39192         * modules/vprintf-posix-tests (Files): Likewise.
39193         * modules/vsnprintf-posix-tests (Files): Likewise.
39194         * modules/vsnprintf-tests (Files): Likewise.
39195         * modules/vsprintf-posix-tests (Files): Likewise.
39196         * modules/wcrtomb-tests (Files): Likewise.
39197         * modules/wcsnrtombs-tests (Files): Likewise.
39198         * modules/wcsrtombs-tests (Files): Likewise.
39199         * modules/wcwidth-tests (Files): Likewise.
39200         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39201         * tests/test-isinf.c (isinf): Likewise.
39202         * tests/test-isnan.c (isnan): Likewise.
39203         * tests/test-signbit.c (signbit): Likewise.
39204         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39205         declaration, either as macro or with correct signature.
39206         (select): Ensure function under test is declared with correct
39207         signature in correct header.
39208         * tests/test-atexit.c (atexit): Likewise.
39209         * tests/test-btowc.c (btowc): Likewise.
39210         * tests/test-canonicalize-lgpl.c (realpath)
39211         (canonicalize_file_name): Likewise.
39212         * tests/test-ceilf1.c (ceilf): Likewise.
39213         * tests/test-ceill.c (ceill): Likewise.
39214         * tests/test-chown.c (chown): Likewise.
39215         * tests/test-dprintf-posix.c (dprintf): Likewise.
39216         * tests/test-dup2.c (dup2): Likewise.
39217         * tests/test-dup3.c (dup3): Likewise.
39218         * tests/test-duplocale.c (duplocale): Likewise.
39219         * tests/test-fchdir.c (fchdir): Likewise.
39220         * tests/test-fchownat.c (fchownat): Likewise.
39221         * tests/test-fcntl.c (fcntl): Likewise.
39222         * tests/test-fdopendir.c (fdopendir): Likewise.
39223         * tests/test-fflush.c (fflush): Likewise.
39224         * tests/test-flock.c (flock): Likewise.
39225         * tests/test-floorf1.c (floorf): Likewise.
39226         * tests/test-floorl.c (floorl): Likewise.
39227         * tests/test-fnmatch.c (fnmatch): Likewise.
39228         * tests/test-fopen.c (fopen): Likewise.
39229         * tests/test-fprintf-posix.c (fprintf): Likewise.
39230         * tests/test-freopen.c (freopen): Likewise.
39231         * tests/test-frexp.c (frexp): Likewise.
39232         * tests/test-frexpl.c (frexpl): Likewise.
39233         * tests/test-fseek.c (fseek): Likewise.
39234         * tests/test-fseeko.c (fseeko): Likewise.
39235         * tests/test-fstatat.c (fstatat): Likewise.
39236         * tests/test-fsync.c (fsync): Likewise.
39237         * tests/test-ftell.c (ftell): Likewise.
39238         * tests/test-ftello.c (ftello): Likewise.
39239         * tests/test-futimens.c (futimens): Likewise.
39240         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39241         (gai_strerror): Likewise.
39242         * tests/test-getcwd.c (getcwd): Likewise.
39243         * tests/test-getdelim.c (getdelim): Likewise.
39244         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39245         * tests/test-getgroups.c (getgroups): Likewise.
39246         * tests/test-gethostname.c (gethostname): Likewise.
39247         * tests/test-getline.c (getline): Likewise.
39248         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39249         Likewise.
39250         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39251         * tests/test-glob.c (glob, globfree): Likewise.
39252         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39253         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39254         * tests/test-inet_pton.c (inet_pton): Likewise.
39255         * tests/test-isblank.c (isblank): Likewise.
39256         * tests/test-lchown.c (lchown): Likewise.
39257         * tests/test-ldexpl.c (ldexpl): Likewise.
39258         * tests/test-link.c (link): Likewise.
39259         * tests/test-linkat.c (linkat): Likewise.
39260         * tests/test-lseek.c (lseek): Likewise.
39261         * tests/test-lstat.c (lstat): Likewise.
39262         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39263         * tests/test-mbsinit.c (mbsinit): Likewise.
39264         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39265         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39266         * tests/test-memchr.c (memchr): Likewise.
39267         * tests/test-memcmp.c (memcmp): Likewise.
39268         * tests/test-memmem.c (memmem): Likewise.
39269         * tests/test-memrchr.c (memrchr): Likewise.
39270         * tests/test-mkdir.c (mkdir): Likewise.
39271         * tests/test-mkdirat.c (mkdirat): Likewise.
39272         * tests/test-mkfifo.c (mkfifo): Likewise.
39273         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39274         * tests/test-mknod.c (mknod): Likewise.
39275         * tests/test-nanosleep.c (nanosleep): Likewise.
39276         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39277         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39278         Likewise.
39279         * tests/test-open.c (open): Likewise.
39280         * tests/test-openat.c (openat): Likewise.
39281         * tests/test-perror.c (perror): Likewise.
39282         * tests/test-pipe2.c (pipe2): Likewise.
39283         * tests/test-poll.c (poll): Likewise.
39284         * tests/test-popen.c (popen, pclose): Likewise.
39285         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39286         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39287         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39288         (posix_spawn_file_actions_destroy)
39289         (posix_spawn_file_actions_addclose)
39290         (posix_spawn_file_actions_addopen)
39291         (posix_spawn_file_actions_adddup2): Likewise.
39292         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39293         * tests/test-pread.c (pread): Likewise.
39294         * tests/test-printf-posix.c (printf): Likewise.
39295         * tests/test-pty.c (openpty, forkpty): Likewise.
39296         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39297         (random_r): Likewise.
39298         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39299         * tests/test-readlink.c (readlink): Likewise.
39300         * tests/test-remove.c (remove): Likewise.
39301         * tests/test-rename.c (rename): Likewise.
39302         * tests/test-renameat.c (renameat): Likewise.
39303         * tests/test-rmdir.c (rmdir): Likewise.
39304         * tests/test-round1.c (round): Likewise.
39305         * tests/test-roundf1.c (roundf): Likewise.
39306         * tests/test-roundl.c (roundl): Likewise.
39307         * tests/test-setenv.c (setenv): Likewise.
39308         * tests/test-sigaction.c (sigaction): Likewise.
39309         * tests/test-sleep.c (sleep): Likewise.
39310         * tests/test-snprintf.c (snprintf): Likewise.
39311         * tests/test-sprintf-posix.c (sprintf): Likewise.
39312         * tests/test-stat.c (stat): Likewise.
39313         * tests/test-stpncpy.c (stpncpy): Likewise.
39314         * tests/test-strcasestr.c (strcasestr): Likewise.
39315         * tests/test-strchrnul.c (strchrnul): Likewise.
39316         * tests/test-strerror.c (strerror): Likewise.
39317         * tests/test-strsignal.c (strsignal): Likewise.
39318         * tests/test-strstr.c (strstr): Likewise.
39319         * tests/test-strtod.c (strtod): Likewise.
39320         * tests/test-strverscmp.c (strverscmp): Likewise.
39321         * tests/test-symlink.c (symlink): Likewise.
39322         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39323         * tests/test-times.c (times): Likewise.
39324         * tests/test-trunc1.c (trunc): Likewise.
39325         * tests/test-truncf1.c (truncf): Likewise.
39326         * tests/test-truncl.c (truncl): Likewise.
39327         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39328         Likewise.
39329         * tests/test-uname.c (uname): Likewise.
39330         * tests/test-unlink.c (unlink): Likewise.
39331         * tests/test-unlinkat.c (unlinkat): Likewise.
39332         * tests/test-unsetenv.c (unsetenv): Likewise.
39333         * tests/test-usleep.c (usleep): Likewise.
39334         * tests/test-utimensat.c (utimensat): Likewise.
39335         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39336         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39337         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39338         * tests/test-vprintf-posix.c (vprintf): Likewise.
39339         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39340         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39341         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39342         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39343         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39344         * tests/test-wcwidth.c (wcwidth): Likewise.
39345
39346         build: pull in conditional headers during GNULIB_POSIXCHECK
39347         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39348         definitions from any conditionally-included headers.
39349         * lib/stdlib.in.h (includes): Likewise.
39350         * lib/unistd.in.h (includes): Likewise.
39351
39352 2009-12-24  Bruno Haible  <bruno@clisp.org>
39353
39354         * tests/test-argv-iter.c: Include header file being tested immediately
39355         after config.h.
39356         * tests/test-base64.c: Likewise.
39357         * tests/test-flock.c: Likewise.
39358         * tests/test-fsync.c: Likewise.
39359         * tests/test-getdate.c: Likewise.
39360         * tests/test-getndelim2.c: Likewise.
39361         * tests/test-isfinite.c: Likewise.
39362         * tests/test-isinf.c: Likewise.
39363         * tests/test-strerror.c: Likewise.
39364         * tests/test-strsignal.c: Likewise.
39365
39366 2009-12-23  Eric Blake  <ebb9@byu.net>
39367
39368         unistd: work around cygwin bug
39369         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39370         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39371         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39372
39373 2009-12-23  Bruno Haible  <bruno@clisp.org>
39374
39375         localename: More tests.
39376         * tests/test-localename.c (SIZEOF): New macro.
39377         (categories): New variable.
39378         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39379         test_locale_name_default): Add test w.r.t. thread locale.
39380         (test_locale_name_thread): New function.
39381         (main): Invoke it.
39382
39383         localename: Make aware of thread locale.
39384         * lib/localename.h (gl_locale_name_thread): New declaration.
39385         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39386         behaviour with respect to thread locale.
39387         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39388         <langinfo.h>, glthread/lock.h.
39389         (SIZE_BITS): New macro.
39390         (string_hash): New function.
39391         (struct hash_node): New type.
39392         (HASH_TABLE_SIZE): New macro.
39393         (struniq_hash_table, struniq_lock): New variables.
39394         (struniq): New function.
39395         (gl_locale_name_thread): New function.
39396         (gl_locale_name): Invoke it.
39397         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39398         * modules/localename (Depends-on): Add lock.
39399         Reported by Mike Gran <spk121@yahoo.com>.
39400
39401 2009-12-23  Eric Blake  <ebb9@byu.net>
39402
39403         va-args: new module
39404         * modules/va-args: New file.
39405         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39406         * MODULES.html.sh (Core language properties): Mention it.
39407
39408         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39409         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39410         named alias for __attribute__((__unused__)).
39411         * lib/chown.c: Update client.
39412         * lib/fchmodat.c: Likewise.
39413         * lib/fts.c: Likewise.
39414         * lib/getdate.y: Likewise.
39415         * lib/getgroups.c: Likewise.
39416         * lib/getopt.c: Likewise.
39417         * lib/getugroups.c: Likewise.
39418         * lib/mkdir.c: Likewise.
39419         * lib/mkfifo.c: Likewise.
39420         * lib/mkfifoat.c: Likewise.
39421         * lib/mknod.c: Likewise.
39422         * lib/mknodat.c: Likewise.
39423         * lib/readlink.c: Likewise.
39424         * lib/se-context.in.h: Likewise.
39425         * lib/se-selinux.in.h: Likewise.
39426         * lib/sockets.c: Likewise.
39427         * lib/symlink.c: Likewise.
39428         * lib/symlinkat.c: Likewise.
39429         * lib/unicodeio.c: Likewise.
39430         * lib/unistr.h: Likewise.
39431         * tests/test-areadlink.c: Likewise.
39432         * tests/test-areadlinkat.c: Likewise.
39433         * tests/test-filenamecat.c: Likewise.
39434         * tests/test-fseeko.c: Likewise.
39435         * tests/test-ftello.c: Likewise.
39436         * tests/test-getdate.c: Likewise.
39437         * tests/test-getgroups.c: Likewise.
39438         * tests/test-gethostname.c: Likewise.
39439         * tests/test-quotearg.c: Likewise.
39440         * tests/test-version-etc.c: Likewise.
39441         * tests/test-xalloc-die.c: Likewise.
39442         * tests/test-xfprintf-posix.c: Likewise.
39443         * tests/test-xprintf-posix.c: Likewise.
39444         * tests/test-xvasprintf.c: Likewise.
39445
39446         tests: avoid compiler warnings
39447         * tests/test-fcntl.c (main): Delete unused parameters.
39448         * tests/test-freopen-safer.c (main): Likewise.
39449         * tests/test-xalloc-die.c (main): Mark unused parameters.
39450         * tests/test-fseeko.c (main): Likewise.
39451         * tests/test-ftello.c (main): Likewise.
39452         * tests/test-nanosleep.c (main): Avoid declaration warning.
39453         * tests/test-sleep.c (main): Likewise.
39454         * tests/test-unsetenv.c (main): Silence warning about string
39455         literal.
39456         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39457
39458 2009-12-23  Bruno Haible  <bruno@clisp.org>
39459
39460         * tests/test-localename.c (test_locale_name): New function, extracted
39461         from main. Also test mixed situations.
39462         (test_locale_name_posix, test_locale_name_environ,
39463         test_locale_name_default): New functions.
39464         (main): Invoke them all.
39465         * modules/localename-tests (configure.ac): Test for newlocale.
39466
39467 2009-12-23  Bruno Haible  <bruno@clisp.org>
39468
39469         unistd: Ensure getcwd gets declared before being overridden.
39470         * lib/unistd.in.h: Conditionally include <io.h>.
39471
39472 2009-12-22  Bruno Haible  <bruno@clisp.org>
39473
39474         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39475         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39476         (gl_WCHAR_H): Invoke it.
39477         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39478         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39479         Reported by Karl Berry <karl@freefriends.org>.
39480
39481 2009-12-22  Eric Blake  <ebb9@byu.net>
39482
39483         math, unistd: avoid redundant includes
39484         * lib/math.in.h (isnan): No need to re-include <math.h>.
39485         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39486
39487         getsubopt: work around cygwin bug
39488         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39489         avoid conflicting with system getsubopt.
39490         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39491         bug.
39492
39493         getopt: synchronize from glibc
39494         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39495         parameter order.  Adjust all callers.
39496         (_getopt_internal_r, main): Adjust quoting in error messages.
39497         Drop considerations for outdated POSIX 1003.2 error message.
39498         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39499         callers.
39500         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39501
39502         test-getopt: test stderr behavior
39503         * modules/getopt-posix-tests (Depends-on): Add dup2.
39504         * tests/test-getopt.c (ASSERT): Avoid stderr.
39505         (main): Move stderr to a temporary file.
39506         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39507         Instead, add parameter to inform caller if output occurred.
39508         (test_getopt): Adjust all existing tests to expect silence, and
39509         add new tests of leading ":".
39510         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39511         glibc shortcomings with leading "-:" or "+:" in optstring.
39512         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39513         Likewise.
39514         * doc/posix-functions/getopt.texi (getopt): Likewise.
39515
39516         test-getopt: enhance test
39517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39518         supports optind=0.
39519         * tests/test-getopt.c (OPTIND_MIN): Move...
39520         * tests/test-getopt.h (OPTIND_MIN): ...here.
39521         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39522         Require that optind=0 works, since modern BSD supports it in
39523         addition to optreset, and since coreutils expects it.
39524         (test_getopt_long_only): New test.
39525         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39526         glibc shortcomings with 'W;', and enforcement of optind=0.
39527         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39528         Likewise.
39529
39530 2009-12-21  Bruno Haible  <bruno@clisp.org>
39531
39532         localename: Improvements for MacOS X and Cygwin.
39533         * lib/localename.h (gl_locale_name_environ): New declaration.
39534         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39535         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39536         (gl_locale_name_posix): Invoke it.
39537         (gl_locale_name_default): Add comments. Use Windows native API also on
39538         Cygwin.
39539
39540 2009-12-21  Bruno Haible  <bruno@clisp.org>
39541
39542         Update list of Win32 locale ids.
39543         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39544         (LANG_SAMI): Renamed from LANG_SAAMI.
39545         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39546         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39547         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39548         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39549         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39550         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39551         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39552         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39553         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39554         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39555         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39556         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39557         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39558         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39559         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39560         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39561         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39562         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39563         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39564         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39565         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39566         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39567         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39568         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39569         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39570         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39571         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39572         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39573         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39574         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39575         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39576         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39577         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39578         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39579         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39580         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39581         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39582         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39583         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39584         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39585         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39586         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39587         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39588         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39589         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39590         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39591         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39592         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39593         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39594         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39595         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39596         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39597         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39598         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39599         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39600         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39601         Add more languages and countries for Sami, Sorbian. Add more countries
39602         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39603         for Pashto. Change country for Syriac, Tswana.
39604
39605 2009-12-21  Eric Blake  <ebb9@byu.net>
39606
39607         test-utimens: avoid spurious failure
39608         * tests/test-chown.h (nap): Factor...
39609         * tests/nap.h: ...into new file.
39610         * tests/test-lchown.h (nap): Avoid duplication.
39611         * tests/test-utimens-common.h (nap): Use shared implementation,
39612         necessary on file systems with 1-second resolution.
39613         * modules/chown-tests (Files): Include new file.
39614         * modules/fdutimensat-tests (Files): Likewise.
39615         * modules/futimens-tests (Files): Likewise.
39616         * modules/lchown-tests (Files): Likewise.
39617         * modules/openat-tests (Files): Likewise.
39618         * modules/utimens-tests (Files): Likewise.
39619         * modules/utimensat-tests (Files): Likewise.
39620
39621 2009-12-19  Eric Blake  <ebb9@byu.net>
39622
39623         futimens, utimensat: work around Linux bug
39624         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39625         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39626         * lib/utimensat.c (rpl_utimensat): Work around it.
39627         * lib/futimens.c (rpl_futimens): Adjust comment.
39628
39629         utimens: work around Linux ctime bug
39630         * lib/utimens.c (detect_ctime_bug): New helper function.
39631         (update_timespec): Differentiate between workaround needed for
39632         this bug vs. what is needed for systems that lack utimensat.
39633         (fdutimens, lutimens): Work around bug.
39634
39635         utimens: check for ctime update
39636         * tests/test-utimens-common.h (check_ctime): Define.
39637         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39638         * tests/test-futimens.h (test_futimens): Likewise.
39639         * tests/test-lutimens.h (test_lutimens): Likewise.
39640         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39641         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39642
39643 2009-12-19  Bruno Haible  <bruno@clisp.org>
39644
39645         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39646         * tests/test-dprintf-posix2.sh: New file.
39647         * tests/test-dprintf-posix2.c: New file.
39648         * modules/dprintf-posix-tests (Files): Add them.
39649         (configure.ac): Check for getrlimit and setrlimit.
39650         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39651
39652 2009-12-19  Bruno Haible  <bruno@clisp.org>
39653
39654         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39655         * tests/test-fprintf-posix3.sh: New file.
39656         * tests/test-fprintf-posix3.c: New file.
39657         * modules/fprintf-posix-tests (Files): Add them.
39658         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39659
39660 2009-12-19  Eric Blake  <ebb9@byu.net>
39661
39662         dirfd: fix prototype
39663         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39664         * lib/dirfd.c (dirfd): Likewise.
39665
39666         canonicalize: reduce memory usage
39667         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39668         allocation to size.
39669         Reported by Solar Designer <solar@openwall.com>.
39670
39671 2009-12-19  Bruno Haible  <bruno@clisp.org>
39672
39673         New module attribute 'Applicability'.
39674         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39675         * gnulib-tool: New option --extract-applicability.
39676         (func_usage): Document it.
39677         (sed_extract_prog): Recognize it.
39678         (func_get_applicability): New function.
39679         (func_import): Generalize handling of 'link-warning' module.
39680         * modules/link-warning (Applicability): New section.
39681         * modules/arg-nonnull (Applicability): New section.
39682         Repoted by Simon Josefsson <simon@josefsson.org>.
39683
39684 2009-12-19  Bruno Haible  <bruno@clisp.org>
39685
39686         fflush: tweak
39687         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39688         * lib/fseeko.c (rpl_fseeko): Likewise.
39689
39690 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39691
39692         * lib/gl_list.h: Fix typo in comment.
39693
39694 2009-12-16  Eric Blake  <ebb9@byu.net>
39695
39696         fcntl: use to simplify other modules
39697         * modules/cloexec (Depends-on): Add fcntl.
39698         * modules/fchdir (Depends-on): Likewise.
39699         * modules/fd-safer-flag (Depends-on): Likewise.
39700         * modules/unistd-safer (Depends-on): Likewise.
39701         * modules/dup3 (configure.ac): Set module indicator.
39702         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39703         missing.
39704         * lib/fchdir.c (_gl_register_dup): Fix comment.
39705         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39706         * lib/dup-safer.c (dup_safer): Likewise.
39707         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39708         * lib/dup3.c (dup3): Likewise.
39709         * tests/test-fchdir.c (main): Enhance test.
39710         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
39711
39712         fcntl: port portions of fcntl to mingw
39713         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39714         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39715         replacement for mingw.
39716         * modules/fcntl (Description): Update.
39717         (Depends-on): Add dup2.
39718         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39719         * modules/fcntl-h (Makefile.am): Substitute it.
39720         * lib/fcntl.in.h (fcntl): Update declaration.
39721         (F_DUPFD, F_GETFD): New macros, when needed.
39722         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39723         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39724         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39725         we now guarantee.
39726
39727         fcntl: work around cygwin bug in F_DUPFD
39728         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39729         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39730         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39731         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39732         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39733
39734         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39735         * modules/fcntl (Files): List new files.
39736         (configure.ac): Run a test.
39737         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39738         * lib/fcntl.c (rpl_fcntl): Likewise.
39739         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39740         (gl_FCNTL_H): Always replace fcntl.h.
39741         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39742         * lib/fcntl.in.h (fcntl): Declare replacement.
39743         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39744         needed, plus a witness.
39745         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39746         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39747         * tests/test-fcntl.c: New file.
39748         * modules/fcntl-tests: Likewise.
39749
39750         binary-io: avoid potential compilation warning
39751         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39752         directives.
39753
39754         fflush: avoid compilation error on NetBSD
39755         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39756         between off_t and fpos_t, since the latter is sometimes a struct.
39757         * lib/fseeko.c (rpl_fseeko): Likewise.
39758         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39759
39760 2009-12-15  Eric Blake  <ebb9@byu.net>
39761
39762         fcntl-h, stdio, sys_ioctl: fix declarations
39763         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39764         function must not take arguments.
39765         * lib/sys_ioctl.in.h (ioctl): Likewise.
39766         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39767         (open): Add a link warning.
39768
39769 2009-12-15  Jim Meyering  <meyering@redhat.com>
39770
39771         areadlink, areadlink-with-size: relax license to LGPLv2+
39772         * modules/areadlink (License): Relax to LGPLv2+.
39773         * modules/areadlink-with-size (License): Likewise.
39774
39775 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39776             Bruno Haible  <bruno@clisp.org>
39777
39778         *printf: Fix memory leak.
39779         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39780         * lib/vfprintf.c (vfprintf): Likewise.
39781         * lib/dprintf.c (dprintf): Likewise.
39782         * lib/vdprintf.c (vdprintf): Likewise.
39783
39784 2009-12-14  Eric Blake  <ebb9@byu.net>
39785
39786         accept4: adjust module dependencies
39787         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39788
39789         utimens: one more try at avoiding compiler warning
39790         * lib/utimens.c (lutimens): Lower scope of result.
39791
39792 2009-12-13  Bruno Haible  <bruno@clisp.org>
39793
39794         Move the malloc checking from module 'list' to new module 'xlist'.
39795         * modules/xlist: New file.
39796         * lib/gl_xlist.h: New file.
39797         * lib/gl_xlist.c: New file.
39798         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39799         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39800         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39801         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39802         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39803         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39804         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39805         gl_sortedlist_nx_add): New declarations.
39806         (struct gl_list_implementation): Rename and change methods accordingly.
39807         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39808         (gl_list_nx_create): Renamed from gl_list_create.
39809         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39810         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39811         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39812         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39813         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39814         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39815         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39816         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39817         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39818         gl_list_create_empty.
39819         (gl_list_nx_create): Renamed from gl_list_create.
39820         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39821         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39822         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39823         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39824         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39825         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39826         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39827         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39828         * lib/gl_array_list.c: Don't include xalloc.h.
39829         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39830         NULL upon out-of-memory.
39831         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
39832         out-of-memory.
39833         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
39834         Change return type to 'int'.
39835         (gl_array_nx_set_at): Renamed from gl_array_set_at.
39836         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39837         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
39838         upon out-of-memory.
39839         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
39840         upon out-of-memory.
39841         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
39842         upon out-of-memory.
39843         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
39844         upon out-of-memory.
39845         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
39846         out-of-memory.
39847         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
39848         Update.
39849         (gl_array_list_implementation): Update.
39850         * lib/gl_carray_list.c: Don't include xalloc.h.
39851         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
39852         Return NULL upon out-of-memory.
39853         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
39854         out-of-memory.
39855         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
39856         Change return type to 'int'.
39857         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
39858         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39859         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
39860         upon out-of-memory.
39861         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
39862         upon out-of-memory.
39863         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
39864         out-of-memory.
39865         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
39866         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
39867         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
39868         Update.
39869         (gl_carray_list_implementation): Update.
39870         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
39871         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
39872         gl_linked_create_empty. Return NULL upon out-of-memory.
39873         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
39874         out-of-memory.
39875         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
39876         Change return type to 'int'. Return -1 upon out-of-memory.
39877         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
39878         out-of-memory.
39879         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
39880         upon out-of-memory.
39881         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
39882         upon out-of-memory.
39883         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
39884         NULL upon out-of-memory.
39885         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
39886         upon out-of-memory.
39887         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
39888         out-of-memory.
39889         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
39890         Update.
39891         * lib/gl_linked_list.c: Don't include xalloc.h.
39892         (gl_linked_list_implementation): Update.
39893         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
39894         (add_to_bucket): Change return type to 'int'.
39895         (gl_linkedhash_list_implementation): Update.
39896         * lib/gl_anytree_list1.h (free_subtree): New function.
39897         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
39898         gl_tree_create_empty. Return NULL upon out-of-memory.
39899         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
39900         Change return type to 'int'. Return -1 upon out-of-memory.
39901         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
39902         out-of-memory.
39903         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
39904         (gl_tree_remove_node): New function, moved here from
39905         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
39906         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
39907         Update.
39908         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
39909         malloc, not xmalloc. Return NULL upon out-of-memory.
39910         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39911         out-of-memory.
39912         (gl_tree_remove_node_from_tree): New function, extracted from
39913         gl_tree_remove_node.
39914         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39915         upon out-of-memory.
39916         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39917         out-of-memory.
39918         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39919         upon out-of-memory.
39920         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39921         upon out-of-memory.
39922         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39923         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
39924         not xmalloc. Return NULL upon out-of-memory.
39925         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39926         out-of-memory.
39927         (gl_tree_remove_node_from_tree): New function, extracted from
39928         gl_tree_remove_node.
39929         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39930         upon out-of-memory.
39931         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39932         out-of-memory.
39933         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39934         upon out-of-memory.
39935         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39936         upon out-of-memory.
39937         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39938         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
39939         gl_anytree_list1.h before gl_anyavltree_list2.h.
39940         (gl_avltree_list_implementation): Update.
39941         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
39942         gl_anytree_list1.h before gl_anyavltree_list2.h.
39943         (gl_rbtree_list_implementation): Update.
39944         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
39945         Change return type to 'int'. Return -1 upon out-of-memory. Use
39946         __builtin_expect.
39947         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
39948         (gl_avltreehash_list_implementation): Update.
39949         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
39950         (gl_rbtreehash_list_implementation): Update.
39951         * modules/array-list (Depends-on): Remove xalloc.
39952         * modules/carray-list (Depends-on): Likewise.
39953         * modules/linked-list (Depends-on): Likewise.
39954         * modules/linkedhash-list (Depends-on): Likewise.
39955         * modules/avltree-list (Depends-on): Likewise.
39956         * modules/rbtree-list (Depends-on): Likewise.
39957         * modules/avltreehash-list (Depends-on): Likewise.
39958         * modules/rbtreehash-list (Depends-on): Likewise.
39959
39960         * modules/xsublist: New file.
39961         * lib/gl_xsublist.h: New file.
39962         * lib/gl_xsublist.c: New file.
39963         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
39964         (gl_sublist_nx_create): New declaration.
39965         * lib/gl_sublist.c: Don't include xalloc.h.
39966         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
39967         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
39968         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
39969         Change return type to 'int'. Return -1 upon out-of-memory.
39970         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
39971         upon out-of-memory.
39972         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
39973         NULL upon out-of-memory.
39974         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
39975         upon out-of-memory.
39976         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39977         NULL upon out-of-memory.
39978         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39979         NULL upon out-of-memory.
39980         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39981         upon out-of-memory.
39982         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39983         (gl_sublist_list_implementation): Update.
39984         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39985         upon out-of-memory.
39986         * modules/sublist (Depends-on): Remove xalloc.
39987
39988         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39989         * tests/test-carray_list.c: Likewise.
39990         * tests/test-linked_list.c: Likewise.
39991         * tests/test-linkedhash_list.c: Likewise.
39992         * tests/test-avltree_list.c: Likewise.
39993         * tests/test-rbtree_list.c: Likewise.
39994         * tests/test-avltreehash_list.c: Likewise.
39995         * tests/test-rbtreehash_list.c: Likewise.
39996         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39997         * modules/carray-list-tests (Makefile.am): Likewise.
39998         * modules/linked-list-tests (Makefile.am): Likewise.
39999         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40000         * modules/avltree-list-tests (Makefile.am): Likewise.
40001         * modules/rbtree-list-tests (Makefile.am): Likewise.
40002         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40003         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40004
40005         * NEWS: Mention the changes.
40006
40007         * lib/clean-temp.c: Include gl_xlist.h.
40008         * modules/clean-temp (Depends-on): Add xlist.
40009
40010         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40011         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40012
40013         * tests/test-array_oset.c: Include gl_xlist.h.
40014         * modules/array-oset-tests (Depends-on): Add xlist.
40015
40016         Reported by José E. Marchesi <jemarch@gnu.org>.
40017
40018 2009-12-13  Bruno Haible  <bruno@clisp.org>
40019
40020         Move the malloc checking from module 'oset' to new module 'xoset'.
40021         * modules/xoset: New file.
40022         * lib/gl_xoset.h: New file.
40023         * lib/gl_xoset.c: New file.
40024         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40025         declarations.
40026         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40027         (struct gl_oset_implementation): Rename and change methods accordingly.
40028         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40029         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40030         'int'. Mark as __warn_unused_result__.
40031         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40032         gl_oset_create_empty.
40033         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40034         'int'.
40035         * lib/gl_array_oset.c: Don't include xalloc.h.
40036         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40037         malloc, not xmalloc.
40038         (grow): Change return type to 'int'. Don't call xalloc_die.
40039         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40040         to 'int'.
40041         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40042         'int'.
40043         (gl_array_oset_implementation): Update.
40044         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40045         gl_tree_create_empty.
40046         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40047         'int'.
40048         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40049         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40050         xmalloc.
40051         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40052         not xmalloc.
40053         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40054         xmalloc.
40055         (gl_avltree_oset_implementation): Update.
40056         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40057         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40058         xmalloc.
40059         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40060         not xmalloc.
40061         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40062         xmalloc.
40063         (gl_rbtree_oset_implementation): Update.
40064         * modules/array-oset (Depends-on): Remove xalloc.
40065         * modules/avltree-oset (Depends-on): Likewise.
40066         * modules/rbtree-oset (Depends-on): Likewise.
40067         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40068         * tests/test-avltree_oset.c: Likewise.
40069         * tests/test-rbtree_oset.c: Likewise.
40070         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40071         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40072         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40073         * NEWS: Mention the change.
40074
40075 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40076
40077         maint.mk: allow a project to override release-prep commands
40078         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40079         commands into a new rule.
40080         (release-prep): New rule.
40081         (release-prep-hook): New overridable variable.
40082
40083 2009-12-13  Bruno Haible  <bruno@clisp.org>
40084
40085         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40086
40087 2009-12-13  Jim Meyering  <meyering@redhat.com>
40088
40089         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40090         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40091
40092 2009-12-12  Bruno Haible  <bruno@clisp.org>
40093
40094         duplocale: Tweak.
40095         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40096
40097 2009-12-12  Karl Berry  <karl@gnu.org>
40098
40099         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40100
40101 2009-12-12  Bruno Haible  <bruno@clisp.org>
40102
40103         * m4/po.m4: Undo incorrect untabification.
40104
40105 2009-12-12  Bruno Haible  <bruno@clisp.org>
40106
40107         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40108         * modules/c-strtod (Depends-on): Add locale.
40109         * modules/c-strtold (Depends-on): Likewise.
40110
40111 2009-12-12  Bruno Haible  <bruno@clisp.org>
40112
40113         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40114
40115 2009-12-11  Eric Blake  <ebb9@byu.net>
40116
40117         setenv: relax requirement in light of POSIX ruling
40118         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40119         not NULL.
40120         * tests/test-setenv.c (main): Relax test.
40121         * tests/test-unsetenv.c (main): Likewise.
40122         * doc/posix-functions/setenv.texi (setenv): Document this.
40123         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40124
40125 2009-12-11  Bruno Haible  <bruno@clisp.org>
40126
40127         New module 'fd-safer-flag'.
40128         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40129         * lib/dup-safer.c (dup_safer_flag): Remove function.
40130         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40131         * lib/fd-safer.c (fd_safer_flag): Remove function.
40132         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40133         * modules/cloexec (configure.ac): Drop indicator macro.
40134         * modules/fd-safer-flag: New file.
40135         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40136         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40137         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40138
40139 2009-12-11  Bruno Haible  <bruno@clisp.org>
40140
40141         Tests for module 'nl_langinfo'.
40142         * modules/nl_langinfo-tests: New file.
40143         * tests/test-nl_langinfo.sh: New file.
40144         * tests/test-nl_langinfo.c: New file.
40145
40146         New module 'nl_langinfo'.
40147         * lib/nl_langinfo.c: New file.
40148         * m4/nl_langinfo.m4: New file.
40149         * modules/nl_langinfo: New file.
40150         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40151
40152 2009-12-11  Bruno Haible  <bruno@clisp.org>
40153
40154         Tests for module 'langinfo'.
40155         * modules/langinfo-tests: New file.
40156         * tests/test-langinfo.c: New file.
40157
40158         New module 'langinfo'.
40159         * lib/langinfo.in.h: New file.
40160         * m4/langinfo_h.m4: New file.
40161         * modules/langinfo: New file.
40162         * doc/posix-headers/langinfo.texi: Mention the new module.
40163
40164 2009-12-11  Bruno Haible  <bruno@clisp.org>
40165
40166         * lib/config.charset: Untabify.
40167
40168 2009-12-11  Bruno Haible  <bruno@clisp.org>
40169
40170         * modules/unistd-safer (configure.ac): Drop indicator macro.
40171
40172 2009-12-11  Bruno Haible  <bruno@clisp.org>
40173
40174         Move pipe2-safer code to its own file.
40175         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40176         * lib/pipe-safer.c (pipe2_safer): Remove function.
40177         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40178         (Makefile.am): Add it to lib_SOURCES.
40179
40180 2009-12-10  Bruno Haible  <bruno@clisp.org>
40181
40182         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40183
40184 2009-12-10  Bruno Haible  <bruno@clisp.org>
40185
40186         Declare which arguments expect non-NULL values, for GCC and clang.
40187         * build-aux/arg-nonnull.h: New file.
40188         * modules/arg-nonnull: New file.
40189         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40190         (inet_ntop, inet_pton): Use it.
40191         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40192         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40193         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40194         (open, openat): Use it.
40195         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40196         (fnmatch): Use it.
40197         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40198         (getopt, getopt_long, getopt_long_only): Use it.
40199         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40200         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40201         Use it.
40202         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40203         (iconv_open): Use it.
40204         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40205         (strtoimax, strtoumax): Use it.
40206         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40207         (duplocale): Use it.
40208         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40209         (frexp, frexpl): Use it.
40210         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40211         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40212         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40213         (tsearch, tfind, tdelete, twalk): Use it.
40214         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40215         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40216         sigpending): Use it.
40217         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40218         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40219         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40220         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40221         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40222         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40223         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40224         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40225         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40226         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40227         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40228         Use it.
40229         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40230         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40231         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40232         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40233         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40234         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40235         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40236         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40237         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40238         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40239         strtoull, unsetenv): Use it.
40240         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40241         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40242         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40243         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40244         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40245         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40246         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40247         (strcasecmp, strncasecmp): Use it.
40248         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40249         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40250         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40251         rpl_setsockopt): Use it.
40252         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40253         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40254         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40255         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40256         (gettimeofday): Use it.
40257         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40258         (times): Use it.
40259         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40260         (uname): Use it.
40261         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40262         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40263         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40264         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40265         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40266         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40267         unlinkat, write): Use it.
40268         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40269         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40270         * lib/argv-iter.h: Include arg-nonnull.h.
40271         (_ATTRIBUTE_NONNULL_): Remove macro.
40272         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40273         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40274         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40275         optimization.
40276         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40277         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40278         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40279         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40280         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40281         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40282         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40283         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40284         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40285         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40286         * modules/dirent (Depends-on): Add arg-nonnull.
40287         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40288         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40289         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40290         * modules/fnmatch (Depends-on): Add arg-nonnull.
40291         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40292         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40293         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40294         * modules/glob (Depends-on): Add arg-nonnull.
40295         (Makefile.am): Insert arg-nonnull.h into glob.h.
40296         * modules/iconv_open (Depends-on): Add arg-nonnull.
40297         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40298         * modules/inttypes (Depends-on): Add arg-nonnull.
40299         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40300         * modules/locale (Depends-on): Add arg-nonnull.
40301         (Makefile.am): Insert arg-nonnull.h into locale.h.
40302         * modules/math (Depends-on): Add arg-nonnull.
40303         (Makefile.am): Insert arg-nonnull.h into math.h.
40304         * modules/netdb (Depends-on): Add arg-nonnull.
40305         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40306         * modules/search (Depends-on): Add arg-nonnull.
40307         (Makefile.am): Insert arg-nonnull.h into search.h.
40308         * modules/signal (Depends-on): Add arg-nonnull.
40309         (Makefile.am): Insert arg-nonnull.h into signal.h.
40310         * modules/spawn (Depends-on): Add arg-nonnull.
40311         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40312         * modules/stdio (Depends-on): Add arg-nonnull.
40313         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40314         * modules/stdlib (Depends-on): Add arg-nonnull.
40315         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40316         * modules/string (Depends-on): Add arg-nonnull.
40317         (Makefile.am): Insert arg-nonnull.h into string.h.
40318         * modules/strings (Depends-on): Add arg-nonnull.
40319         (Makefile.am): Insert arg-nonnull.h into strings.h.
40320         * modules/sys_socket (Depends-on): Add arg-nonnull.
40321         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40322         * modules/sys_stat (Depends-on): Add arg-nonnull.
40323         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40324         * modules/sys_time (Depends-on): Add arg-nonnull.
40325         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40326         * modules/sys_times (Depends-on): Add arg-nonnull.
40327         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40328         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40329         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40330         * modules/time (Depends-on): Add arg-nonnull.
40331         (Makefile.am): Insert arg-nonnull.h into time.h.
40332         * modules/unistd (Depends-on): Add arg-nonnull.
40333         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40334         * modules/wchar (Depends-on): Add arg-nonnull.
40335         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40336         * modules/argv-iter (Depends-on): Add arg-nonnull.
40337         * tests/test-canonicalize.c (null_ptr): New function.
40338         (main): Use it.
40339         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40340         (main): Use it.
40341         * tests/test-memmem.c (null_ptr): New function.
40342         (main): Use it.
40343         Reported by Jim Meyering.
40344
40345 2009-12-10  Bruno Haible  <bruno@clisp.org>
40346
40347         Use spaces for indentation, not tabs.
40348         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40349         * m4/*.m4: Untabify.
40350         * build-aux/*.h: Untabify.
40351         * tests/**/*.[hc]: Untabify.
40352         * README: New section "Indent with spaces, not TABs", based on
40353         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40354         * NEWS: Mention the change.
40355
40356 2009-12-10  Bruno Haible  <bruno@clisp.org>
40357
40358         pty test: Fix link error.
40359         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40360         test_pty_LDADD.
40361
40362 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40363
40364         * modules/pty: New file.
40365         * modules/pty-tests: New file.
40366         * m4/pty.m4: New file.
40367         * tests/test-pty.c: New file.
40368         * doc/glibc-headers/pty.texi: Modified.
40369         * doc/glibc-functions/forkpty.texi: Modified.
40370         * doc/glibc-functions/openpty.texi: Modified.
40371
40372 2009-12-10  Bruno Haible  <bruno@clisp.org>
40373
40374         Avoid syntax error in C++ mode.
40375         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40376
40377 2009-12-10  Bruno Haible  <bruno@clisp.org>
40378
40379         Use sed with option -e.
40380         * gnulib-tool (func_version, func_emit_copyright_notice,
40381         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40382         option -e to sed.
40383         * modules/link-warning (Makefile.am): Likewise.
40384
40385 2009-12-10  Jim Meyering  <meyering@redhat.com>
40386
40387         mgetgroups: do not write bytes beyond end of malloc'd buffer
40388         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40389         username, we call getgroups with a one-element-shorter buffer,
40390         but still told it the length was original, max_n_groups.
40391
40392 2009-12-09  Eric Blake  <ebb9@byu.net>
40393
40394         cloexec: relax license
40395         * modules/cloexec (Maintainer): Add myself.
40396         (License): Use LGPL, not GPL.
40397
40398         link-warning: optimize generation
40399         * modules/link-warning (Makefile.am): Reduce process usage.
40400
40401 2009-12-09  Bruno Haible  <bruno@clisp.org>
40402
40403         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40404         workaround was added on 2009-11-17.
40405
40406 2009-12-09  Jim Meyering  <meyering@redhat.com>
40407             Bruno Haible  <bruno@clisp.org>
40408
40409         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40410         * modules/link-warning (Makefile.am): Make the comment-removing sed
40411         command more robust in the face of bootstrap-prepended comment lines.
40412
40413 2009-12-09  Bruno Haible  <bruno@clisp.org>
40414
40415         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40416         most one group.
40417
40418 2009-12-09  Simon Josefsson <simon@josefsson.org>
40419             Bruno Haible  <bruno@clisp.org>
40420
40421         * build-aux/link-warning.h: Add copyright notice.
40422         * modules/link-warning (Makefile.am): Generate link-warning.h from
40423         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40424         * NEWS: Mention change in link-warning module.
40425         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40426         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40427         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40428         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40429         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40430         * modules/math (Makefile.am): Add dependency to math.h.
40431         * modules/search (Makefile.am): Add dependency to search.h.
40432         * modules/signal (Makefile.am): Add dependency to signal.h.
40433         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40434         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40435         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40436         * modules/string (Makefile.am): Add dependency to string.h.
40437         * modules/strings (Makefile.am): Add dependency to strings.h.
40438         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40439         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40440         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40441         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40442         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40443         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40444         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40445         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40446         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40447
40448 2009-12-09  Bruno Haible  <bruno@clisp.org>
40449
40450         fchdir: Optimize away rpl_fstat when possible.
40451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40452         REPLACE_OPEN_DIRECTORY.
40453         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40454
40455 2009-12-09  Bruno Haible  <bruno@clisp.org>
40456
40457         * lib/fchdir.c: Update comment.
40458
40459 2009-12-09  Bruno Haible  <bruno@clisp.org>
40460
40461         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40462
40463 2009-12-08  Eric Blake  <ebb9@byu.net>
40464
40465         fchdir: avoid memory leak on re-registration.
40466         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40467
40468 2009-12-08  Jim Meyering  <meyering@redhat.com>
40469
40470         init.sh: avoid Solaris 10 /bin/sh portability problem
40471         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40472         sourced script:
40473           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40474           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40475           bar
40476         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40477         and two tests used that idiom.
40478         * tests/init.sh: Update suggested usage comments.
40479         (path_prepend_): New function, to be used in place
40480         of the --src-path=DIR option.
40481         (setup_): Move PATH-prepending code into path_prepend_.
40482         * tests/test-pread.sh: Adapt to new usage.
40483         * tests/test-xalloc-die.sh: Likewise.
40484
40485 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40486
40487         * doc/gnulib.texi (Glibc pty.h): Add.
40488         * doc/glibc-functions/forkpty.texi: Add.
40489         * doc/glibc-functions/openpty.texi: Add.
40490         Suggested by Bruno Haible.
40491
40492 2009-12-08  Eric Blake  <ebb9@byu.net>
40493
40494         fchdir: fix logic bugs
40495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40496         * tests/test-fchdir.c (main): Enhance test.
40497         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40498         is in use.
40499
40500         dup2: fix logic bugs
40501         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40502         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40503         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40504         exists.
40505         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40506
40507 2009-12-07  Eric Blake  <ebb9@byu.net>
40508
40509         unlink: fix m4 detection
40510         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40511
40512         unistd-safer: add unit test
40513         * modules/unistd-safer-tests: New file.
40514         * tests/test-dup-safer.c: Likewise.
40515         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40516         * tests/test-dup2.c (setmode): Likewise.
40517         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40518
40519         cloexec: preserve text vs. binary across dup_cloexec
40520         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40521         mode.
40522         * modules/dup2-tests (Depends-on): Add binary-io.
40523         * modules/cloexec-tests (Depends-on): Likewise.
40524         * tests/test-dup2.c (setmode, is_mode): New helpers.
40525         (main): Add tests that translation mode is preserved.
40526         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40527         Reported by Bruno Haible.
40528
40529         mgetgroups: reduce duplicate listings
40530         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40531         resulting array.
40532         * tests/test-chown.h (test_chown): Simplify client.
40533         * tests/test-lchown.h (test_lchown): Likewise.
40534
40535 2009-12-06  Bruno Haible  <bruno@clisp.org>
40536
40537         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40538         value.
40539
40540 2009-12-06  Bruno Haible  <bruno@clisp.org>
40541
40542         * lib/progname.c: Include stdio.h, stdlib.h.
40543         (set_program_name): Reject a NULL argument.
40544
40545 2009-12-05  Eric Blake  <ebb9@byu.net>
40546
40547         pipe2-safer: new module
40548         * modules/pipe2-safer: New file.
40549         * lib/unistd-safer.h (pipe2_safer): New prototype.
40550         * lib/unistd--.h (pipe2): New wrapper.
40551         * lib/pipe-safer.c (pipe2_safer): New function.
40552         * modules/pipe (Depends-on): Add pipe2-safer.
40553         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40554
40555         stdlib-safer: preserve cloexec flag for mkostemp[s]
40556         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40557         fd_safer_flag.
40558
40559         unistd-safer: allow preservation of cloexec status via flag
40560         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40561         prototypes.
40562         * lib/dup-safer.c (dup_safer_flag): New function.
40563         * lib/fd-safer.c (fd_safer_flag): Likewise.
40564         * modules/cloexec (configure.ac): Set witness.
40565
40566         test-dup2: enhance test
40567         * modules/dup2-tests (Depends-on): Add cloexec.
40568         * tests/test-dup2.c (main): Enhance test.
40569
40570         cloexec: add dup_cloexec
40571         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40572         header and comments.
40573         * lib/cloexec.c (set_cloexec_flag): Add comments.
40574         (dup_cloexec): New function, with mingw implementation borrowed
40575         from...
40576         * lib/w32spawn.h (dup_noinherit): ...here.
40577         * modules/execute (Depends-on): Add cloexec.
40578         * modules/pipe (Depends-on): Likewise.
40579         * modules/cloexec (Depends-on): Add dup2.
40580         * modules/cloexec-tests (Files): New file.
40581         * tests/test-cloexec.c: Likewise.
40582
40583         test-xalloc-die: fix test for mingw
40584         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40585         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40586         directory and .exe suffix off argv[0] output.
40587
40588         test-fseeko: fix test for mingw
40589         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40590         than undefining fseek, so test will pass on mingw.
40591
40592 2009-12-05  Bruno Haible  <bruno@clisp.org>
40593
40594         * lib/progname.h (set_program_name): Clarify specification.
40595         * lib/progname.c (set_program_name): Likewise.
40596         Reported by Jim Meyering.
40597
40598 2009-12-05  Jim Meyering  <meyering@redhat.com>
40599
40600         maint.mk: backslash-escape parens in default regexp
40601         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40602         backslash-escape the literal parentheses.
40603
40604         maint.mk: news-date-check: use grep -E
40605         * top/maint.mk (today): Define a Make variable, not a...
40606         (news-date-check): ...shell variable.
40607         (news-date-regexp): Use the Make variable.
40608         Use grep's -E option.  Change the failing diagnostic to mention
40609         the variable, $(news-date-regexp).
40610
40611 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40612
40613         maintainer-makefile: allow customization of NEWS entry format
40614         * top/maint.mk (news-date-regexp): New overridable variable.
40615         (news-date-check): Use it.
40616
40617 2009-12-04  Eric Blake  <ebb9@byu.net>
40618
40619         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40620         * lib/mgetgroups.h (xgetgroups): New prototype.
40621         * lib/mgetgroups.c (xgetgroups): New wrapper.
40622         (mgetgroups): Handle ENOSYS.
40623         * modules/mgetgroups (Depends-on): Add realloc.
40624         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40625
40626         mgetgroups: avoid argument promotion issues with -1
40627         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40628         for invalid gid_t.
40629         * tests/test-chown.h (getegid, test_chown): Likewise.
40630         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40631
40632 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40633
40634         exclude: Fix header file problems.
40635         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40636
40637 2009-12-01  Jim Meyering  <meyering@redhat.com>
40638
40639         fts: fts_open: do not let an empty string cause immediate failure
40640         This is required in support of GNU rm, for which the command
40641         "rm A '' B" must process and remove both A and B, in spite of
40642         the empty string argument.
40643         * lib/fts.c (fts_open): Do not let the presence of an empty string
40644         cause fts_open to fail immediately.  Most fts-using tools must be
40645         able to process all arguments, in order, and can be expected to
40646         diagnose such arguments themselves.
40647
40648 2009-11-30  Eric Blake  <ebb9@byu.net>
40649
40650         utimens: fix compilation error
40651         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40652         Declare variable at right scope.
40653
40654 2009-11-29  Jim Meyering  <meyering@redhat.com>
40655
40656         bootstrap: handle perl-5.11's changed --version output
40657         * build-aux/bootstrap (get_version): Handle perl separately,
40658         since perl-5.11's --version output is different.
40659
40660 2009-11-28  Jim Meyering  <meyering@redhat.com>
40661
40662         userspec: depend on the inttostr module, too
40663         * modules/userspec (Depends-on): Add inttostr.
40664
40665         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40666         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40667         number of MAXUID when it evaluates to (uid_t) -1.
40668         Likewise for group ID.  Reported by Matt McCutchen in
40669         <http://savannah.gnu.org/bugs/?28113>
40670
40671         userspec: reformat to use spaces, not TABs
40672         * lib/userspec.c: Expand TABs to spaces.
40673         Add Emacs' "indent-tabs-mode: nil" hint.
40674
40675 2009-11-27  Eric Blake  <ebb9@byu.net>
40676
40677         getopt-gnu: flush out another BSD bug
40678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40679         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40680         flush out BSD bug.
40681         * tests/test-getopt.h (test_getopt): End lists with NULL.
40682         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40683         (test_getopt_long_posix): Enhance test.
40684         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40685         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40686         getopt-gnu.
40687         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40688         Likewise.
40689
40690 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40691
40692         * modules/idpriv-droptemp-tests (Notice): Fix text.
40693
40694 2009-11-27  Jim Meyering  <meyering@redhat.com>
40695
40696         test-xalloc-die: avoid spurious failure due to libtool argv difference
40697         In a libtool-enabled project, this test would fail due to a difference
40698         in the emitted program name, e.g.,
40699         -test-xalloc-die: memory exhausted
40700         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40701         Use program to avoid that.
40702         * modules/xalloc-die-tests (Depends-on): Add progname.
40703         * tests/test-xalloc-die.c: Include progname.h".
40704         (program_name): Remove decl.
40705         (main): Call set_program_name.
40706         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40707
40708 2009-11-26  Richard Jones  <rjones@redhat.com>
40709
40710         w32sock: leave win32 error in place.
40711         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40712
40713 2009-11-26  Eric Blake  <ebb9@byu.net>
40714
40715         init.sh: suggest to use skip_ and fail_ functions in comments
40716         * tests/init.sh: Add a sentence.
40717
40718 2009-11-25  Bruno Haible  <bruno@clisp.org>
40719
40720         init.sh: add documentation in comments
40721         * tests/init.sh: Add some developer and user documentation.
40722
40723 2009-11-26  Jim Meyering  <meyering@redhat.com>
40724
40725         init.sh: accommodate even those who specify bogus srcdir manually
40726         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40727         configure-time tests to be sanitized, so that there is no need to
40728         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40729         (with no double quotes) suffices.  However, since tests may be
40730         invoked manually, and since you may explicitly set srcdir to the
40731         name of a directory containing spaces, do quote its uses here.
40732         * tests/test-pread.sh: Likewise.
40733         Suggested by Bruno Haible.
40734
40735         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40736         * tests/test-pread.sh: Write no data into the pipe, because
40737         test-pread actually reads none.  This avoids a diagnostic,
40738         "bash: echo: write error: Broken pipe", that arises in the unusual
40739         event something is ignoring SIGPIPE, and might be interpreted
40740         as some sort of failure.  Reported by Bruno Haible.
40741
40742 2009-11-25  Jim Meyering  <meyering@redhat.com>
40743
40744         test-pread: cover failure with ESPIPE and EINVAL
40745         * tests/test-pread.c (main): Test for failure, too.
40746         * tests/test-pread.sh: Invoke with stdin on a pipe.
40747         Suggested by Eric Blake.
40748
40749         pread: improvement and fix
40750         * modules/pread (Depends-on): Depend on lseek, for portability to
40751         e.g., mingw.  Suggested by Eric Blake.
40752         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40753
40754         unistd.in.h: correct declaration of pread
40755         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40756         Reported by Richard W.M. Jones.
40757
40758         test-pread.sh: distribute the test script
40759         * modules/pread-tests (Files): Include test-pread.sh.
40760
40761         test-pread.sh: clean up
40762         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40763         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40764         That is unnecessary, since it's always ".".
40765         Suggestion from Eric Blake.
40766
40767         test-pread.sh: make executable
40768         * tests/test-pread.sh: Set executable bit.
40769         Reported by Eric Blake.
40770
40771         correct typo in test-pread.sh
40772         * tests/test-pread.sh: Add #! line.
40773
40774         test pread
40775         * tests/test-pread.c: New file.
40776         * tests/test-pread.sh: Likewise.
40777         * modules/pread-tests: Likewise.
40778
40779         pread: new module
40780         * modules/pread: New file.
40781         * lib/unistd.in.h (pread): Define/declare.
40782         * lib/pread.c (pread): New file.
40783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40784         * modules/unistd (Makefile.am): Substitute witnesses.
40785         * doc/posix-functions/pread.texi (pread): Update.
40786         * MODULES.html.sh: Add pread.
40787
40788 2009-11-25  Jim Meyering  <meyering@redhat.com>
40789
40790         tests/init.sh: new file to be used via most *.sh tests
40791         * tests/init.sh: New file.
40792
40793 2009-11-25  Eric Blake  <ebb9@byu.net>
40794
40795         utimens: work around older Linux failure with symlinks
40796         * lib/utimens.c (lutimensat_works_really): New variable.
40797         (fdutimens, lutimens): Use it to manage kernels that support
40798         nanosecond times on files, but not on symlinks.
40799         Reported by OndÅ™ej Vašík.
40800
40801         utimes: fix configure grammar
40802         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40803
40804 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40805
40806         regex: Fix fastmap for multibyte character ranges.
40807         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40808         characters when a multibyte character range is included.
40809
40810 2009-11-22  Andy Wingo  <wingo@pobox.com>
40811
40812         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40813         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40814
40815 2009-11-24  Bruno Haible  <bruno@clisp.org>
40816
40817         doc: Most *_l functions exist in MacOS X 10.5.
40818         * doc/posix-functions/duplocale.texi: Update platforms list.
40819         * doc/posix-functions/freelocale.texi: Likewise.
40820         * doc/posix-functions/newlocale.texi: Likewise.
40821         * doc/posix-functions/uselocale.texi: Likewise.
40822         * doc/posix-functions/isalnum_l.texi: Likewise.
40823         * doc/posix-functions/isalpha_l.texi: Likewise.
40824         * doc/posix-functions/isblank_l.texi: Likewise.
40825         * doc/posix-functions/iscntrl_l.texi: Likewise.
40826         * doc/posix-functions/isdigit_l.texi: Likewise.
40827         * doc/posix-functions/isgraph_l.texi: Likewise.
40828         * doc/posix-functions/islower_l.texi: Likewise.
40829         * doc/posix-functions/isprint_l.texi: Likewise.
40830         * doc/posix-functions/ispunct_l.texi: Likewise.
40831         * doc/posix-functions/isspace_l.texi: Likewise.
40832         * doc/posix-functions/isupper_l.texi: Likewise.
40833         * doc/posix-functions/iswalnum_l.texi: Likewise.
40834         * doc/posix-functions/iswalpha_l.texi: Likewise.
40835         * doc/posix-functions/iswblank_l.texi: Likewise.
40836         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40837         * doc/posix-functions/iswctype_l.texi: Likewise.
40838         * doc/posix-functions/iswdigit_l.texi: Likewise.
40839         * doc/posix-functions/iswgraph_l.texi: Likewise.
40840         * doc/posix-functions/iswlower_l.texi: Likewise.
40841         * doc/posix-functions/iswprint_l.texi: Likewise.
40842         * doc/posix-functions/iswpunct_l.texi: Likewise.
40843         * doc/posix-functions/iswspace_l.texi: Likewise.
40844         * doc/posix-functions/iswupper_l.texi: Likewise.
40845         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40846         * doc/posix-functions/isxdigit_l.texi: Likewise.
40847         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
40848         * doc/posix-functions/strcasecmp_l.texi: Likewise.
40849         * doc/posix-functions/strcoll_l.texi: Likewise.
40850         * doc/posix-functions/strfmon_l.texi: Likewise.
40851         * doc/posix-functions/strftime_l.texi: Likewise.
40852         * doc/posix-functions/strncasecmp_l.texi: Likewise.
40853         * doc/posix-functions/strxfrm_l.texi: Likewise.
40854         * doc/posix-functions/tolower_l.texi: Likewise.
40855         * doc/posix-functions/toupper_l.texi: Likewise.
40856         * doc/posix-functions/towctrans_l.texi: Likewise.
40857         * doc/posix-functions/towlower_l.texi: Likewise.
40858         * doc/posix-functions/towupper_l.texi: Likewise.
40859         * doc/posix-functions/wcscoll_l.texi: Likewise.
40860         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40861         * doc/posix-functions/wctrans_l.texi: Likewise.
40862         * doc/posix-functions/wctype_l.texi: Likewise.
40863         * doc/glibc-functions/strptime_l.texi: Likewise.
40864         * doc/glibc-functions/strtod_l.texi: Likewise.
40865         * doc/glibc-functions/strtof_l.texi: Likewise.
40866         * doc/glibc-functions/strtol_l.texi: Likewise.
40867         * doc/glibc-functions/strtold_l.texi: Likewise.
40868         * doc/glibc-functions/strtoll_l.texi: Likewise.
40869         * doc/glibc-functions/strtoul_l.texi: Likewise.
40870         * doc/glibc-functions/strtoull_l.texi: Likewise.
40871         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40872         * doc/glibc-functions/wcstod_l.texi: Likewise.
40873         * doc/glibc-functions/wcstof_l.texi: Likewise.
40874         * doc/glibc-functions/wcstol_l.texi: Likewise.
40875         * doc/glibc-functions/wcstold_l.texi: Likewise.
40876         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40877         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40878         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40879
40880 2009-11-24  Bruno Haible  <bruno@clisp.org>
40881
40882         duplocale: Fix logic bug.
40883         * lib/duplocale.c: Don't include <langinfo.h>.
40884         (_NL_LOCALE_NAME): Remove macro.
40885         (rpl_duplocale): Use setlocale instead of nl_langinfo.
40886         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
40887
40888 2009-11-23  Jim Meyering  <meyering@redhat.com>
40889
40890         test-update-copyright: don't hard-code /usr/bin/perl
40891         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
40892         perl to print the current year.  Gilles Espinasse reported that
40893         the replaced use of perl was hard-coded as /usr/bin/perl.
40894
40895 2009-11-23  Bruno Haible  <bruno@clisp.org>
40896
40897         duplocale: Add support for glibc 2.3.x.
40898         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
40899
40900 2009-11-22  Bruno Haible  <bruno@clisp.org>
40901
40902         vasnprintf: Tiny optimization.
40903         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
40904         MacOS X.
40905
40906 2009-11-22  Bruno Haible  <bruno@clisp.org>
40907
40908         Tests for module 'duplocale'.
40909         * modules/duplocale-tests: New file.
40910         * tests/test-duplocale.c: New file.
40911
40912         New module 'duplocale'.
40913         * m4/duplocale.m4: New file.
40914         * lib/locale.in.h (duplocale): New declaration.
40915         * lib/duplocale.c: New file.
40916         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
40917         gl_LOCALE_H_DEFAULTS): New macros.
40918         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
40919         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
40920         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
40921         REPLACE_DUPLOCALE.
40922         * modules/duplocale: New file.
40923         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
40924
40925 2009-11-22  Bruno Haible  <bruno@clisp.org>
40926
40927         * modules/locale-tests (configure.ac): Test for newlocale function.
40928         * tests/test-locale.c: When the system has extended locale functions,
40929         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
40930
40931         locale: Make locale_t available when possible.
40932         * lib/locale.in.h: Include <xlocale.h> when it exists.
40933         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
40934         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
40935         * modules/locale (Depends-on): Add extensions.
40936         (Makefile.am): Also substitute HAVE_XLOCALE_H.
40937         * doc/posix-headers/locale.texi: Document the problem with locale_t.
40938
40939 2009-11-22  Bruno Haible  <bruno@clisp.org>
40940
40941         Add comments.
40942         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
40943         invocation.
40944         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40945         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40946         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40947
40948 2009-11-22  Bruno Haible  <bruno@clisp.org>
40949
40950         error: account for the possibility of freopen (stdout).
40951         * lib/error.c: Include <unistd.h>.
40952         (flush_stdout): New function, extracted from error and error_at_line.
40953         Determine stdout's fd dynamically.
40954         (error, error_at_line): Invoke flush_stdout.
40955         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
40956         * modules/error (Depends-on): Add unistd.
40957
40958 2009-11-22  Bruno Haible  <bruno@clisp.org>
40959
40960         diffseq: Add comment.
40961         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
40962
40963 2009-11-22  Jim Meyering  <meyering@redhat.com>
40964
40965         c-stack: avoid defining an unused static function
40966         * lib/c-stack.c (find_stack_direction): Do not define this function
40967         when it will not be used.
40968
40969         diffseq: avoid spurious gcc warnings
40970         * lib/diffseq.h (IF_LINT2): Define.
40971         (compareseq): Use it to initialize two members of "part".
40972         This avoids two used-uninitialized warnings.
40973
40974 2009-11-21  Jim Meyering  <meyering@redhat.com>
40975
40976         c-stack: avoid "ignoring return value of `write'" warning
40977         * lib/c-stack.c: Include "ignore-value.h".
40978         (die): Explicitly ignore each write return value.
40979         * modules/c-stack (Depends-on): Add ignore-value.
40980
40981 2009-11-21  Bruno Haible  <bruno@clisp.org>
40982
40983         diffseq: reduce scope of variable 'best'.
40984         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40985         variable, earlier used for two different purposes.
40986
40987 2009-11-21  Jim Meyering  <meyering@redhat.com>
40988
40989         diffseq: remove useless assignment to "best"
40990         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40991         assignment.  At that point "best" is already guaranteed to be zero.
40992
40993 2009-11-20  Eric Blake  <ebb9@byu.net>
40994
40995         build: mention ftp redirector in release announcements
40996         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40997         values that used to come from cfg.mk; mention FTP redirect URL.
40998         * build-aux/announce-gen: Mention the mirror list.
40999         Suggested by Karl Berry.
41000
41001         nanosleep: improve port to mingw
41002         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41004         LIB_NANOSLEEP, but only when needed.
41005         * modules/select (Link): Document LIBSOCKET.
41006         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41007         enough.
41008
41009         nanosleep: work around cygwin bug
41010         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41011         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41012         bug.
41013         (getnow): Delete, not needed.
41014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41015         LIB_CLOCK_GETTIME.
41016         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41017         clock-time, gettime.
41018         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41019         bug.
41020         * modules/nanosleep-tests: New test.
41021         * tests/test-nanosleep.c: New file.
41022
41023         sleep: work around cygwin bug
41024         * lib/sleep.c (rpl_sleep): Work around the bug.
41025         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41026         (gl_PREREQ_SLEEP): Delete unused macro.
41027         * modules/sleep (Depends-on): Add verify.
41028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41029         * modules/unistd (Makefile.am): Substitute witness.
41030         * lib/unistd.in.h (sleep): Update prototype.
41031         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41032         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41033         * modules/sleep-tests (Depends-on): Check for alarm.
41034
41035 2009-11-20  Jim Meyering  <meyering@redhat.com>
41036
41037         maint.mk: improve sc_prohibit_magic_number_exit
41038         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41039         so it does not match uses like System.exit(1).
41040         Add comments showing how to correct all offenders.
41041
41042 2009-11-19  Eric Blake  <ebb9@byu.net>
41043
41044         xalloc-die-tests: add missing library
41045         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41046
41047         test-xvasprintf: silence compiler warnings
41048         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41049         empty string from gcc.
41050
41051 2009-11-19  Jim Meyering  <meyering@redhat.com>
41052
41053         xfreopen: new module, from coreutils
41054         * modules/xfreopen: New module.
41055         * lib/xfreopen.c: New file.
41056         * lib/xfreopen.h: New file.
41057         * MODULES.html.sh (File stream based Input/Output"): Add it.
41058
41059 2009-11-19  Eric Blake  <ebb9@byu.net>
41060
41061         manywarnings: depend on warnings
41062         * modules/manywarnings (Depends-on): Add warnings.
41063
41064         build: avoid compiler warnings
41065         * lib/select.c (rpl_select): Delete unused variable.
41066         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41067
41068 2009-11-18  Eric Blake  <ebb9@byu.net>
41069
41070         tests: avoid false negative with --with-packager
41071         * tests/test-version-etc.sh: Discard packager information.
41072         * tests/test-argp-version-etc-1.sh: Likewise.
41073         Reported by Mike Frysinger.
41074
41075         utimens: fix regression on Solaris
41076         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41077         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41078         can only change fd timestamps via futimesat.  Instead, use an
41079         additional witness macro to avoid BSD bug.
41080         Reported by Jim Meyering.
41081
41082 2009-11-17  Eric Blake  <ebb9@byu.net>
41083
41084         usleep: use it to simplify tests
41085         * modules/stat-time-tests (Depends-on): Add usleep.
41086         (configure.ac): Drop usleep check.
41087         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41088         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41089         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41090         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41091         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41092         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41093         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41094         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41095         Likewise.
41096         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41097         * tests/test-lchown.h (nap): Likewise.
41098         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41099         * tests/test-stat-time.c (nap): Likewise.
41100         * tests/test-utimens-common.h (nap): Update comments.
41101
41102         usleep: new module
41103         * modules/usleep: New file.
41104         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41105         * lib/usleep.c (usleep): Likewise.
41106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41107         * modules/unistd (Makefile.am): Substitute witnesses.
41108         * lib/unistd.in.h (usleep): Add declaration.
41109         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41110         * MODULES.html.sh (Date and time): Likewise.
41111         * modules/usleep-tests (Depends-on): New test.
41112         * tests/test-usleep.c: New file.
41113
41114         chown: work around OpenBSD bug
41115         * lib/chown.c (rpl_chown): Work around the bug.
41116         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41117         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41118         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41119         * modules/chown (Depends-on): Add stdbool.
41120         * modules/lchown (Depends-on): Likewise.
41121         * doc/posix-functions/chown.texi (chown): Document the bug.
41122         * doc/posix-functions/lchown.texi (lchown): Likewise.
41123         * tests/test-lchown.h (test_chown): Relax test.
41124
41125         mkstemp: avoid conflict with C++ keyword template
41126         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41127         * lib/mkostemp.c (mkostemp): Likewise.
41128         * lib/mkostemps.c (mkostemps): Likewise.
41129         * lib/mkstemp.c (mkstemp): Likewise.
41130         * lib/mkstemps.c (mkstemps): Likewise.
41131
41132         xalloc-die-tests: optimize
41133         * tests/test-xalloc-die.sh: Reduce number of processes.
41134
41135 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41136
41137         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41138         patch from ludo@gnu.org (Ludovic Courtès).
41139
41140 2009-11-17  Jim Meyering  <meyering@redhat.com>
41141
41142         version-etc: use proper license string
41143         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41144         * modules/version-etc-fsf: Likewise.
41145
41146 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41147
41148         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41149         printed to stdout.  Deal with EOL differences.
41150
41151 2009-11-17  Eric Blake  <ebb9@byu.net>
41152
41153         unsetenv: work around Solaris bug
41154         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41155         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41156         Reported by Jim Meyering.
41157
41158         vasnprintf: avoid compiler warnings
41159         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41160         variables.
41161         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41162
41163 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41164
41165         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41166         settings since xalloc-die is no longer the self test,
41167         xalloc-die.sh is.
41168
41169 2009-11-17  Jim Meyering  <meyering@redhat.com>
41170
41171         test-xalloc-die.sh: make the code agree with the commit log
41172         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41173         at the end, just in case you happen to have a test-xalloc-die
41174         program in some other PATH directory.
41175
41176         test-xalloc-die.sh: fix a portability bug
41177         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41178         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41179         Otherwise, argv[0] (as often seen in diagnostics) would be too
41180         system-dependent, sometimes with, and sometimes without the leading "./".
41181
41182         version-etc-fsf: relax license to LGPLv3+
41183         * modules/version-etc-fsf (License): Relax license.
41184
41185 2009-11-16  Eric Blake  <ebb9@byu.net>
41186
41187         xalloc-die-tests: avoid printing null pointer
41188         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41189         shell script.
41190         * tests/test-xalloc-die.c (program_name): Declare.
41191         * tests/test-xalloc-die.sh (tmpfiles): New file.
41192
41193         setenv, unsetenv: work around various bugs
41194         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41195         (setenv) [HAVE_SETENV]: Work around bugs.
41196         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41197         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41198         for bugs.
41199         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41200         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41202         * modules/stdlib (Makefile.am): Update substitutions.
41203         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41204         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41205         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41206         * modules/setenv-tests: New test.
41207         * modules/unsetenv-tests: Likewise.
41208         * tests/test-setenv.c: New file.
41209         * tests/test-unsetenv.c: Likewise.
41210
41211 2009-11-16  Jim Meyering  <meyering@redhat.com>
41212
41213         version-etc: relax license to LGPLv3+
41214         * modules/version-etc (License): Relax license.
41215
41216         better AC_REQUIRE expanded-before-required-warning avoidance
41217         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41218         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41219         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41220         which is no longer needed.
41221
41222 2009-11-16  Eric Blake  <ebb9@byu.net>
41223
41224         test-freading: clean up temporary file
41225         * tests/test-freading.c (main): Remove file on success, and use
41226         ASSERT more liberally.
41227         Reported by Jim Meyering.
41228
41229 2009-11-16  Jim Meyering  <meyering@redhat.com>
41230
41231         avoid new AC_REQUIRE expanded-before-required warnings
41232         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41233         merely using it.
41234         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41235         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41236
41237 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41238
41239         * tests/test-xalloc-die.c: New file.
41240         * modules/xalloc-die-tests: New file.
41241         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41242         XFAIL_TESTS so it can be appended by modules.
41243
41244 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41245
41246         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41247         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41248
41249 2009-11-14  Eric Blake  <ebb9@byu.net>
41250
41251         fnmatch: avoid compiler warning
41252         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41253         to silence compiler warning about mismatch signedness in ?:.
41254         Reported by Robert Millan.
41255
41256         intprops: add double-inclusion guard
41257         * lib/intprops.h: Allow idempotent includes.
41258         Suggested by Bruce Korb.
41259
41260         openat: detect Solaris fchownat bug
41261         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41262         penalizing glibc chownat when only lchownat is broken.
41263         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41264         trailing slash bugs.
41265         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41266         * modules/openat-tests (Files): Include more files.
41267         (Depends-on): Add mgetgroups, sleep, stat-time.
41268         (configure.ac): Add additional checks.
41269         (Makefile.am): Build new test.
41270         * tests/test-fchownat.c: New file.
41271
41272         lchown: detect Solaris and FreeBSD bug
41273         * lib/lchown.c (rpl_lchown): Work around bug.
41274         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41276         * modules/unistd (Makefile.am): Populate it.
41277         * lib/unistd.in.h (lchown): Update declaration.
41278         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41279         * modules/lchown-tests: New file.
41280         * tests/test-lchown.h (test_lchown): Likewise.
41281         * tests/test-lchown.c (main): Likewise.
41282
41283         chown: detect Solaris and FreeBSD bug
41284         * lib/chown.c (rpl_chown): Work around bug.
41285         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41286         (gl_PREREQ_CHOWN): Delete.
41287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41288         * modules/unistd (Makefile.am): Populate it.
41289         * lib/unistd.in.h (chown): Update declaration.
41290         * lib/lchown.c (chown): Update client.
41291         * modules/lchown (Depends-on): Add lstat.
41292         * doc/posix-functions/chown.texi (chown): Document the bug.
41293         * doc/posix-functions/getgroups.texi (getgroups): Document
41294         getgroups pitfall.
41295         * modules/chown-tests: New file.
41296         * tests/test-chown.h (test_chown): Likewise.
41297         * tests/test-chown.c (main): Likewise.
41298
41299 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41300
41301         gnulib-tool: correctly detect absence of m4 directories
41302         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41303
41304 2009-11-14  Jim Meyering  <meyering@redhat.com>
41305
41306         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41307         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41308
41309 2009-11-14  John W. Eaton  <jwe@gnu.org>
41310
41311         strftime.h: wrap function declaration in extern "C" block
41312         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41313
41314 2009-11-13  Eric Blake  <ebb9@byu.net>
41315
41316         getgroups: avoid compiler warning
41317         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41318
41319         getgroups: work around FreeBSD bug
41320         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41321         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41322         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41323         * tests/test-getgroups.c (main): Fix buffer overrun.
41324
41325         getgroups: avoid compilation failure
41326         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41327         * modules/getgroups (Depends-on): Add stdint.
41328
41329 2009-11-13  Jim Meyering  <meyering@redhat.com>
41330
41331         test-getgroups: avoid compilation failure
41332         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41333
41334 2009-11-13  Eric Blake  <ebb9@byu.net>
41335
41336         mgetgroups: new module, taken from coreutils
41337         * modules/mgetgroups: New file.
41338         * lib/mgetgroups.h: Likewise.
41339         * lib/mgetgroups.c (mgetgroups): Likewise.
41340         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41341         * MODULES.html.sh (Users and groups): Mention it.
41342
41343         getgroups: don't expose GETGROUPS_T to user
41344         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41345         an element at a time if GETGROUPS_T is wrong size.
41346         * lib/getugroups.h (getugroups): Change signature.
41347         * lib/unistd.in.h (getgroups): Likewise.
41348         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41349         signature needs fixing.
41350         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41351         AC_TYPE_GETGROUPS.
41352         * modules/group-member (Depends-on): Add getgroups.
41353         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41354         (group_member): Rely on getgroups replacement.
41355         * lib/getugroups.c (getugroups): Use gid_t.
41356         * tests/test-getgroups.c (main): Likewise.
41357         * NEWS: Mention the signature change.
41358         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41359         problem with signature.
41360         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41361         GETGROUPS_T is still useful for setgroups.
41362
41363         getgroups, getugroups: provide stubs for mingw
41364         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41365         * lib/getugroups.c (getugroups): Likewise.
41366         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41367         function.  Modernize replacement scheme.
41368         (gl_PREREQ_GETGROUPS): Delete.
41369         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41370         * modules/getgroups (configure.ac): Declare witness.
41371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41372         * modules/unistd (Depends-on): Substitute witness.
41373         * lib/unistd.in.h (getgroups): Declare replacement.
41374
41375         getgroups: avoid calling exit
41376         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41377         drop xalloc.
41378         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41379         dependencies.
41380         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41381         exiting, in the rare case of malloc failure.
41382
41383         getgroups: fix logic error
41384         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41385         has more than 20 groups.
41386         * modules/getgroups-tests: New test.
41387         * tests/test-getgroups.c: New file.
41388
41389 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41390
41391         * tests/test-base64.c: Improve.
41392
41393 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41394
41395         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41396         Blake <ebb9@byu.net>.
41397
41398 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41399
41400         * tests/test-xvasprintf.c: Add %s%s related checks.
41401
41402 2009-11-12  Eric Blake  <ebb9@byu.net>
41403
41404         version-etc: match standards.texi style
41405         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41406         and use <> only for URLs.
41407
41408 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41409
41410         fts: do not fail on a submount during traversal
41411         * lib/fts.c (fts_build): Read the stat info again after opening
41412         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41413         Original report at http://bugzilla.redhat.com/501848.
41414
41415 2009-11-12  Jim Meyering  <meyering@redhat.com>
41416
41417         bootstrap: sync from coreutils
41418         * build-aux/bootstrap (bootstrap_epilogue): New function.
41419         Use git_modules_config in one more place.  This make bootstrap's
41420         --gnulib-srcdir option more useful for testing.
41421
41422         bootstrap: generalize autoheader check
41423         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41424         AC_CONFIG_HEADERS.
41425
41426 2009-11-11  Eric Blake  <ebb9@byu.net>
41427
41428         mkfifoat: use new modules for Solaris and BSD bugs
41429         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41430         * lib/mkfifoat.c (mknodat): Split...
41431         * lib/mknodat.c (mknodat): ...into new file.
41432         * modules/mkfifoat (Files): Ship new file.
41433         (Depends-on): Add mkfifo, mknod.
41434         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41435         (Depends-on): Add symlink.
41436         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41437         redundant with test_mkfifo.h.
41438         (do_mkfifoat, do_mknodat): New helpers.
41439
41440         mknod: new module
41441         * modules/mknod: New file.
41442         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41443         * lib/mknod.c (mknod): Likewise.
41444         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41445         defaults.
41446         * modules/sys_stat (Makefile.am): Substitute them.
41447         * lib/sys_stat.in.h (mknod): Declare replacement.
41448         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41449         Document it.
41450         * doc/posix-functions/mknod.texi (mknod): Likewise.
41451         * modules/mknod-tests: New test.
41452         * tests/test-mknod.c: Likewise.
41453
41454         mkfifo: new module
41455         * modules/mkfifo: New file.
41456         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41457         * lib/mkfifo.c (mkfifo): Likewise.
41458         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41459         defaults.
41460         * modules/sys_stat (Makefile.am): Substitute them.
41461         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41462         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41463         Document it.
41464         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41465         * modules/mkfifo-tests: New test.
41466         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41467         from test-mkfifoat.c.
41468         * tests/test-mkfifo.c: New file.
41469
41470         readlink: detect FreeBSD bug
41471         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41472         slash on symlink.
41473         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41474         * tests/test-readlink.h (test_readlink): Enhance test.
41475
41476         symlink: detect FreeBSD bug
41477         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41478         slash on symlink.
41479         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41480         * tests/test-symlink.h (test_symlink): Enhance test.
41481
41482 2009-11-10  Eric Blake  <ebb9@byu.net>
41483
41484         link: detect FreeBSD bug
41485         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41486         symlink.
41487         * doc/posix-functions/link.texi (link): Document the bug.
41488         * tests/test-link.h (test_link): Enhance test.
41489         * tests/test-linkat.c (main): Update caller.
41490
41491         unlink, remove: detect FreeBSD bug
41492         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41493         slash on symlink.
41494         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41495         * doc/posix-functions/remove.texi (remove): Likewise.
41496         * tests/test-unlink.h (test_unlink): Enhance test.
41497         * tests/test-remove.c (main): Likewise.
41498
41499 2009-11-09  Eric Blake  <ebb9@byu.net>
41500
41501         rename: detect FreeBSD bug
41502         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41503         slash on symlink.
41504         * modules/renameat-tests (Depends-on): Add filenamecat.
41505         * tests/test-rename.h (test_rename): Allow one more errno.
41506         * tests/test-renameat.c (main): Likewise.
41507         * doc/posix-functions/rename.texi (rename): Document the bug.
41508
41509         open: detect FreeBSD bug
41510         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41511         symlink.
41512         * doc/posix-functions/open.texi (open): Document the bug.
41513         * doc/posix-functions/utimes.texi (utimes): Likewise.
41514         * tests/test-open.h (test_open): Add parameters, and test symlink
41515         handling.
41516         * tests/test-open.c (main): Adjust caller.
41517         * tests/test-fcntl-safer.c (main): Likewise.
41518         * modules/open-tests (Depends-on): Add stdbool, symlink.
41519         * modules/fcntl-safer-tests (Depends-on): Likewise.
41520         * tests/test-openat.c (main): Add test-open tests.
41521
41522         stat: detect FreeBSD bug
41523         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41524         symlink.
41525         * doc/posix-functions/stat.texi (stat): Document the bug.
41526         * tests/test-stat.h (test_stat_func): Add argument.
41527         * tests/test-stat.c (main): Adjust caller.
41528         * tests/test-fstatat.c (main): Likewise.
41529         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41530         Reported by Jim Meyering.
41531
41532 2009-11-09  James Youngman  <jay@gnu.org>
41533
41534         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41535         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41536
41537 2009-11-08  Jim Meyering  <meyering@redhat.com>
41538
41539         utimens: remove invalid futimesat call
41540         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41541         It used the file descriptor of the target file as the DIR_FD
41542         parameter and NULL as the file name.  That caused failure with
41543         errno == EFAULT on FreeBSD-8.0-rc2
41544
41545 2009-11-07  Eric Blake  <ebb9@byu.net>
41546
41547         fflush, freadseek: use fseeko, not fseek
41548         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41549         (clear_ungetc_buffer): Avoid potential problems on large files.
41550         * lib/freadseek.c (freadseek): Likewise.
41551         * modules/freadseek (Depends-on): Add fseeko.
41552         * modules/fseek (configure.ac): Set a witness.
41553         * tests/test-fflush.c (main): Use fseeko.
41554         * tests/test-fpurge.c (fseek): Disable link warning.
41555         * tests/test-freadable.c (fseek): Likewise.
41556         * tests/test-freading.c (fseek): Likewise.
41557         * tests/test-fseeko.c (fseek): Likewise.
41558         * tests/test-ftell.c (fseek): Likewise.
41559         * tests/test-ftello.c (fseek): Likewise.
41560         * tests/test-fwritable.c (fseek): Likewise.
41561         * tests/test-fwriting.c (fseek): Likewise.
41562
41563 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41564
41565         * modules/memchr (Depends-on): Drop getpagesize dependency.
41566
41567 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41568
41569         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41570         Reported by Ludovic Courtès.
41571         * build-aux/pmccabe2html: Improve example usage.
41572         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41573
41574 2009-11-06  Jim Meyering  <meyering@redhat.com>
41575
41576         do-release-commit-and-tag: New module.
41577         Automate the release-commit and tag process.
41578         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41579         * modules/do-release-commit-and-tag: New file.
41580         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41581
41582 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41583
41584         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41585         because test-select.c uses inet_pton.
41586
41587 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41588
41589         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41590         GETADDRINFO_LIB.  Bump serial number.
41591         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41592         Suggested by Eric Blake <ebb9@byu.net>.
41593
41594 2009-11-05  Eric Blake  <ebb9@byu.net>
41595
41596         strtod: detect darwin bug
41597         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41598         Reported by Leo Davis.
41599
41600         freopen-safer: new module
41601         * modules/freopen-safer: New module.
41602         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41603         * lib/freopen-safer.c (freopen_safer): New file.
41604         * lib/stdio-safer.h (freopen_safer): New declaration.
41605         * lib/stdio--.h (freopen): New override.
41606         * MODULES.html.sh (File stream based Input/Output): Mention it.
41607         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41608         freopen-safer module.
41609         * doc/posix-functions/stderr.texi (stderr): Likewise.
41610         * doc/posix-functions/stdin.texi (stdin): Likewise.
41611         * doc/posix-functions/stdout.texi (stdout): Likewise.
41612         * modules/freopen-safer-tests: New test.
41613         * tests/test-reopen-safer.c: New file.
41614
41615 2009-11-05  Jim Meyering  <meyering@redhat.com>
41616
41617         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41618         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41619
41620 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41621
41622         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41623
41624 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41625
41626         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41627
41628 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41629
41630         Fix link error.
41631         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41632         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41633
41634 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41635
41636         * tests/test-func.c: Also test value of __func__.
41637
41638 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41639
41640         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41641         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41642
41643 2009-11-05  Bruno Haible  <bruno@clisp.org>
41644
41645         Fix link error.
41646         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41647         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41648         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41649
41650 2009-11-05  Bruno Haible  <bruno@clisp.org>
41651
41652         Tests for module 'inet_pton'.
41653         * modules/inet_pton-tests: New file.
41654         * tests/test-inet_pton.c: New file.
41655
41656 2009-11-05  Bruno Haible  <bruno@clisp.org>
41657
41658         Tests for module 'inet_ntop'.
41659         * modules/inet_ntop-tests: New file.
41660         * tests/test-inet_ntop.c: New file.
41661
41662 2009-11-04  Eric Blake  <ebb9@byu.net>
41663
41664         stdlib-safer: wrap all mkstemp variants
41665         * modules/mkostemp (configure.ac): Set witness.
41666         * modules/mkostemps (configure.ac): Likewise.
41667         * modules/mkstemps (configure.ac): Likewise.
41668         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41669         (mkstemps_safer): Wrap more functions.
41670         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41671         wrapping.
41672         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41673         (mkstemps_safer): Implement the wrappers.
41674
41675         mkstemps, mkostemps: new modules
41676         * modules/mkostemps: New module.
41677         * modules/mkstemps: Likewise.
41678         * lib/mkostemps.c (mkostemps): New file.
41679         * lib/mkstemps.c (mkstemps): Likewise.
41680         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41681         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41683         * modules/stdlib (Makefile.am): Substitute them.
41684         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41685         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41686         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41687         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41688         * MODULES.html.sh (File system functions): Mention them.
41689
41690         tempname: resync from glibc
41691         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41692         same values for __GT_FILE as glibc.  Abort even when assertions
41693         are disabled.
41694         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41695         match its value otherwise.  Allow idempotent inclusion.
41696         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41697         * lib/mkostemp.c (mkostemp): Likewise.
41698         * lib/mkstemp.c (mkstemp): Likewise.
41699         * lib/tmpfile.c (tmpfile): Likewise.
41700         * NEWS: Document this.
41701
41702         utimens: fix use of futimens on older Linux
41703         * lib/utimens.c (fdutimens): Use updated, rather than original,
41704         timespec to avoid bug in older Linux kernel.
41705         Reported by Simon Josefsson.
41706
41707 2009-11-04  Bruno Haible  <bruno@clisp.org>
41708
41709         Make num_processors more flexible and consistent.
41710         * lib/nproc.h (enum nproc_query): New type.
41711         (num_processors): Add a 'query' argument.
41712         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41713         (num_processors): Add a 'query' argument. Test the value of the
41714         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41715         mingw, count the number of CPUs available for the current process.
41716         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41717         Check for sched_getaffinity and sched_getaffinity_np.
41718         * modules/nproc (Depends-on): Add c-ctype, extensions.
41719         * NEWS: Mention the change.
41720
41721 2009-11-03  Bruno Haible  <bruno@clisp.org>
41722
41723         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41724
41725 2009-11-03  Jim Meyering  <meyering@redhat.com>
41726
41727         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41728         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41729         if it is defined.
41730
41731 2009-11-02  Eric Blake  <ebb9@byu.net>
41732
41733         mktime, timegm: share common declaration
41734         * lib/mktime-internal.h: New file.
41735         * lib/mktime.c: Use it rather than open-coding a declaration.
41736         * lib/timegm.c: Likewise.
41737         * modules/mktime (Files): Ship it.
41738         * modules/timegm (Files): Likewise.
41739         Suggested by Bruno Haible.
41740
41741         test-update-copyright: update test to match script changes
41742         * tests/test-update-copyright.sh: Avoid hard-coding perl
41743         location.  Don't update *.bak created by earlier runs.
41744
41745 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41746             Simon Josefsson  <simon@josefsson.org>
41747             Bruno Haible  <bruno@clisp.org>
41748
41749         Fix link error on Solaris 8.
41750         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41751         also in libnsl. Define also INET_PTON_LIB.
41752         * modules/inet_pton (Link): New section.
41753
41754 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41755             Bruno Haible  <bruno@clisp.org>
41756
41757         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41758         * modules/inet_ntop (Link): New section.
41759         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41760
41761 2009-11-02  Eric Blake  <ebb9@byu.net>
41762
41763         maint: avoid compiler warnings in m4 macros
41764         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41765         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41766
41767 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41768
41769         * m4/pmccabe2html.m4: Remove file.
41770         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41771         function.  Change maintainer.
41772         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41773         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41774         Courtès).
41775
41776 2009-10-31  Eric Blake  <ebb9@byu.net>
41777
41778         fseeko: fix m4 regression
41779         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41780         regression from 2009-10-27.
41781         Reported by Ralf Wildenhues.
41782
41783 2009-10-31  Jim Meyering  <meyering@redhat.com>
41784
41785         inttostr: aesthetics and improved (compile-time) safety
41786         Define inttype_is_signed rather than inttype_is_unsigned,
41787         since the sole use is via "#if inttype_is_signed".
41788         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41789         inttype_is_unsigned.
41790         * lib/offtostr.c (inttype_is_signed): Likewise.
41791         * lib/uinttostr.c (inttype_is_signed): Likewise.
41792         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41793         * lib/inttostr.c (inttostr): Use verify to cross-check the
41794         inttype_is_signed value and the signedness of the actual type.
41795         * modules/inttostr (Depends-on): Add verify.
41796
41797 2009-10-30  Eric Blake  <ebb9@byu.net>
41798
41799         build: avoid compiler warnings
41800         * lib/fchmodat.c (lchmod): Mark unused variables.
41801         * lib/getopt.c (_getopt_initialize): Likewise.
41802         * lib/mktime.c (__mktime_internal): Provide prototype.
41803         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41804         older gcc that do not understand #pragma GCC diagnostic.
41805         * lib/uinttostr.c (inttype_is_unsigned): Define.
41806         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41807
41808 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41809
41810         stat: fix compilation on AIX
41811         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41812         only see struct stat64.
41813
41814 2009-10-30  Eric Blake  <ebb9@byu.net>
41815
41816         exclude: make more robust
41817         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41818         rather than masking a coding bug.
41819         Suggested by Bruno Haible.
41820
41821 2009-10-30  Jim Meyering  <meyering@redhat.com>
41822
41823         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41824         Rather than putting #!/usr/bin/perl on the first line,
41825         start with a variant of what's recommended by "man perlrun" that
41826         invokes the first "perl" program from your shell's search path.
41827         * build-aux/gitlog-to-changelog: Replace #!... as above.
41828         Add a "Local Variables" perl mode setting.
41829         Prompted by a patch from Ludovic Courtès.
41830         Improved by Eric Blake.
41831         * build-aux/useless-if-before-free: Likewise.
41832         * build-aux/announce-gen: Likewise.
41833         * build-aux/update-copyright: Likewise.
41834
41835 2009-10-29  Eric Blake  <ebb9@byu.net>
41836
41837         filenamecat-lgpl: adjust clients
41838         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
41839         filenamecat.
41840         * modules/renameat (Depends-on): Likewise.
41841
41842         filenamecat: split into filenamecat-lgpl
41843         * modules/filenamecat-lgpl: New module.
41844         * modules/filenamecat (Files): Move library-safe files into
41845         filenamecat-lgpl.
41846         (Depends-on): Add filenamecat-lgpl.
41847         (configure.ac): Declare witness.
41848         * lib/filenamecat.h (file_name_concat): Only declare when using
41849         GPL module.
41850         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
41851         Move...
41852         * lib/filenamecat-lgpl.c: ...into new file.
41853         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
41854         (gl_FILE_NAME_CONCAT): Use it.
41855         * MODULES.html.sh (File system functions): Mention new module.
41856
41857         argp: avoid memory leak
41858         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
41859         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
41860         base_name, since the latter malloc()s and can call exit().
41861         Leak introduced 2006-07-03.
41862
41863         dirname-lgpl: adjust clients that don't need full dirname
41864         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
41865         * modules/filenamecat (Depends-on): Likewise.
41866         * modules/linkat (Depends-on): Likewise.
41867         * modules/mkancesdirs (Depends-on): Likewise.
41868         * modules/mkdir (Depends-on): Likewise.
41869         * modules/openat (Depends-on): Likewise.
41870         * modules/savewd (Depends-on): Likewise.
41871         * modules/rename (Depends-on): Likewise.
41872         (License): Relax license.
41873         * modules/mkdir-tests (Depends-on): Drop progname.
41874         (Makefile.am): Delete unneeded LDADD.
41875         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
41876
41877         dirname: split into dirname-lgpl
41878         * modules/dirname-lgpl: New module.
41879         * modules/dirname (Files): Move library-safe files into
41880         dirname-lgpl.
41881         (Depends-on): Add dirname-lgpl.
41882         (configure.ac): Declare witness.
41883         * modules/double-slash-root (License): Relax license.
41884         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
41885         module.
41886         * lib/dirname.c (dir_len, mdir_name): Move...
41887         * lib/dirname-lgpl.c: ...into new file.
41888         * lib/basename.c (last_component, base_len): Move...
41889         * lib/basename-lgpl.c: ...into new file.
41890         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
41891         (gl_DIRNAME): Use it.
41892         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
41893         Mention new module.
41894         * modules/dirname-tests (Depends-on): Add progname.
41895         * tests/test-dirname.c (program_name): Delete.
41896
41897         mkdir: make safe for libraries
41898         * modules/mkdir (Depends-on): Drop xalloc.
41899         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
41900         exit.
41901
41902         tests: avoid some compiler warnings
41903         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
41904         literals.
41905         * tests/test-memchr.c (main): Avoid type mismatch.
41906         * tests/test-arpa_inet.c (main): Avoid unused parameters.
41907         * tests/test-base64.c (main): Likewise.
41908         * tests/test-getdelim.c (main): Likewise.
41909         * tests/test-gethostname.c (main): Likewise.
41910         * tests/test-getline.c (main): Likewise.
41911         * tests/test-netinet_in.c (main): Likewise.
41912         * tests/test-select.c (open_server_socket, main): Likewise.
41913         * tests/test-select-stdin.c (main): Likewise.
41914         * tests/test-sockets.c (main): Likewise.
41915         * tests/test-strsignal.c (main): Likewise.
41916         * tests/test-sys_select.c (main): Likewise.
41917         * tests/test-sys_socket.c (main): Likewise.
41918         * tests/test-u64.c (main): Likewise.
41919         * tests/test-xfprintf-posix.c (main): Likewise.
41920         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
41921
41922         sockets: avoid compiler warning
41923         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
41924
41925         maint: detect usage(1) and other suspicious exits
41926         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
41927
41928 2009-10-29  Jim Meyering  <meyering@redhat.com>
41929
41930         timespec: long-to-int truncation could make timespec_cmp malfunction
41931         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
41932         a multiple of 2^32 nanoseconds as no difference.
41933
41934 2009-10-28  Jim Meyering  <meyering@redhat.com>
41935
41936         fprintftime: wrap macro code argument in "do {...} while(0)"
41937         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
41938         cpy macro must be a statement that can be followed by a semicolon.
41939         Now that the else clause contains a comment and is hence longer
41940         than one line, I require curly braces.  That in turn requires
41941         that we wrap this code block in the standard do...while(0).
41942
41943         fprintftime: remove stray semicolon from previous change
41944         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
41945
41946         fprintftime: avoid a warning about ignored fwrite return value
41947         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
41948         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
41949         that is unsafe.
41950         * modules/fprintftime (Depends-on): Add ignore-value.
41951
41952         exclude: avoid an unwarranted warning
41953         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
41954
41955 2009-10-27  Eric Blake  <ebb9@byu.net>
41956
41957         fseek: avoid compilation failure when fflush is replaced
41958         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
41959         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
41960         module is in use.
41961         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
41962         module is not in use; since REPLACE_FSEEK worked otherwise.
41963         (GNULIB_FTELLO): Likewise for ftell.
41964         Reported by Ian Beckwith and others.
41965
41966 2009-10-27  Bruno Haible  <bruno@clisp.org>
41967
41968         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
41969         Reported by Jim Meyering.
41970
41971 2009-10-27  Jim Meyering  <jim@meyering.net>
41972             Bruno Haible  <bruno@clisp.org>
41973
41974         Avoid warning despite dropping the return value of fwrite.
41975         * lib/unicodeio.c: Include ignore-value.h.
41976         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41977         * modules/unicodeio (Depends-on): Add ignore-value.
41978
41979 2009-10-26  Eric Blake  <ebb9@byu.net>
41980
41981         areadlinkat: fix fallback path
41982         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41983         pointer and zero.
41984
41985 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41986
41987         Use a better IO block size for modern systems
41988         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41989         * lib/md2.c: Likewise.
41990         * lib/md4.c: Likewise.
41991         * lib/md5.c: Likewise.
41992         * lib/sha1.c: Likewise.
41993         * lib/sha256.c: Likewise.
41994         * lib/sha512.c: Likewise.
41995
41996 2009-10-22  Eric Blake  <ebb9@byu.net>
41997
41998         tests: avoid several compiler warnings
41999         * tests/test-getcwd.c (main): Avoid buffer underflow.
42000         * tests/test-getdate.c (main): String literals are not safe with
42001         putenv, so use setenv.  Declare unused argument.
42002         * modules/getdate-tests (Depends-on): Add setenv.
42003         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42004         problems with string literals in char *.
42005         * tests/test-hash.c (main): Avoid shadowing declaration.
42006         (insert_new): Treat string literals as char const *.
42007         * tests/test-getopt.h (test_getopt): Likewise.
42008         (getopt_loop): Alter types to minimize casting elsewhere.
42009         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42010         (test_getopt_long_posix): Likewise.
42011         (do_getopt_long): Add wrapper to minimize casting.
42012         * tests/test-atexit.c (clear_temp_file): Use void.
42013         * tests/test-areadlink-with-size.c (main): Declare unused
42014         arguments.
42015         * tests/test-areadlink.c (main): Likewise.
42016         * tests/test-areadlinkat-with-size.c (main): Likewise.
42017         * tests/test-areadlinkat.c (main): Likewise.
42018         * tests/test-canonicalize-lgpl.c (main): Likewise.
42019         * tests/test-canonicalize.c (main): Likewise.
42020         * tests/test-dirent-safer.c (main): Likewise.
42021         * tests/test-dirname.c (main): Likewise.
42022         * tests/test-dup2.c (main): Likewise.
42023         * tests/test-fchdir.c (main): Likewise.
42024         * tests/test-fcntl-h.c (main): Likewise.
42025         * tests/test-fcntl-safer.c (main): Likewise.
42026         * tests/test-fdopendir.c (main): Likewise.
42027         * tests/test-fdutimensat.c (main): Likewise.
42028         * tests/test-fflush.c (main): Likewise.
42029         * tests/test-filenamecat.c (main): Likewise.
42030         * tests/test-filevercmp.c (main): Likewise.
42031         * tests/test-fopen-safer.c (main): Likewise.
42032         * tests/test-fopen.c (main): Likewise.
42033         * tests/test-fpending.c (main): Likewise.
42034         * tests/test-fpurge.c (main): Likewise.
42035         * tests/test-freading.c (main): Likewise.
42036         * tests/test-fstatat.c (main): Likewise.
42037         * tests/test-fsync.c (main): Likewise.
42038         * tests/test-futimens.c (main): Likewise.
42039         * tests/test-getndelim2.c (main): Likewise.
42040         * tests/test-gettimeofday.c (main): Likewise.
42041         * tests/test-getopt.c (main): Likewise.
42042         * tests/test-i-ring.c (main): Likewise.
42043         * tests/test-inttypes.c (main): Likewise.
42044         * tests/test-link.c (main): Likewise.
42045         * tests/test-lstat.c (main): Likewise.
42046         * tests/test-math.c (main): Likewise.
42047         * tests/test-md5.c (main): Likewise.
42048         * tests/test-memchr2.c (main): Likewise.
42049         * tests/test-memrchr.c (main): Likewise.
42050         * tests/test-mkdir.c (main): Likewise.
42051         * tests/test-mkdirat.c (main): Likewise.
42052         * tests/test-mkfifoat.c (main): Likewise.
42053         * tests/test-open.c (main): Likewise.
42054         * tests/test-openat-safer.c (main): Likewise.
42055         * tests/test-openat.c (main): Likewise.
42056         * tests/test-quotearg.c (main): Likewise.
42057         * tests/test-rawmemchr.c (main): Likewise.
42058         * tests/test-readlink.c (main): Likewise.
42059         * tests/test-remove.c (main): Likewise.
42060         * tests/test-rename.c (main): Likewise.
42061         * tests/test-renameat.c (main): Likewise.
42062         * tests/test-rmdir.c (main): Likewise.
42063         * tests/test-sha1.c (main): Likewise.
42064         * tests/test-signal.c (main): Likewise.
42065         * tests/test-sigaction.c (main): Likewise.
42066         * tests/test-stat.c (main): Likewise.
42067         * tests/test-stat-time.c (main): Likewise.
42068         * tests/test-stddef.c (main): Likewise.
42069         * tests/test-stdint.c (main): Likewise.
42070         * tests/test-stdio.c (main): Likewise.
42071         * tests/test-stdlib.c (main): Likewise.
42072         * tests/test-strchrnul.c (main): Likewise.
42073         * tests/test-strerror.c (main): Likewise.
42074         * tests/test-string.c (main): Likewise.
42075         * tests/test-strtod.c (main): Likewise.
42076         * tests/test-strverscmp.c (main): Likewise.
42077         * tests/test-symlink.c (main): Likewise.
42078         * tests/test-symlinkat.c (main): Likewise.
42079         * tests/test-sys_stat.c (main): Likewise.
42080         * tests/test-sys_time.c (main): Likewise.
42081         * tests/test-time.c (main): Likewise.
42082         * tests/test-unistd.c (main): Likewise.
42083         * tests/test-unlink.c (main): Likewise.
42084         * tests/test-unlinkat.c (main): Likewise.
42085         * tests/test-utimens.c (main): Likewise.
42086         * tests/test-utimensat.c (main): Likewise.
42087         * tests/test-version-etc.c (main): Likewise.
42088         * tests/test-wchar.c (main): Likewise.
42089         * tests/test-wctype.c (main): Likewise.
42090         * tests/test-xprintf-posix.c (main): Likewise.
42091         * tests/test-posixtm.c (main): Likewise.
42092         (STREQ): Delete unused macro.
42093         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42094         shadowed variables.
42095         * tests/test-memchr.c (main): Likewise.
42096
42097 2009-10-21  Eric Blake  <ebb9@byu.net>
42098
42099         areadlinkat: avoid failure on older glibc
42100         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42101         rather than mis-comparing 0 against FUNC_RESULT of char*.
42102
42103 2009-10-21  Bruno Haible  <bruno@clisp.org>
42104
42105         * modules/stpncpy (License): Relicense under LGPLv2+.
42106         Reported by David Lutterkort <lutter@redhat.com>.
42107
42108 2009-10-20  Eric Blake  <ebb9@byu.net>
42109
42110         utimensat: work around Solaris 9 bug
42111         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42112         has trailing slash bugs.
42113         * tests/test-lutimens.h (test_lutimens): Enhance test.
42114         * tests/test-utimens.h (test_utimens): Likewise.
42115         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42116         * doc/posix-functions/utimes.texi (utimes): Likewise.
42117         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42118         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42119         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42120         * doc/posix-functions/futimens.texi (futimens): Likewise.
42121
42122         fdutimensat: new module
42123         * modules/fdutimensat: New file.
42124         * lib/fdutimensat.c (fdutimensat): Likewise.
42125         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42126         * MODULES.html.sh (File system functions): Mention module.
42127         * modules/fdutimensat-tests: New test.
42128         * tests/test-fdutimensat.c: Likewise.
42129
42130         doc: regenerate INSTALL
42131         * doc/INSTALL: Reflect recent autoconf update.
42132         * doc/INSTALL.ISO: Likewise.
42133         * doc/INSTALL.UTF-8: Likewise.
42134
42135 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42136
42137         acl: warn if ACL support is not detected
42138         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42139
42140 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42141
42142         * lib/nproc.h: Add extern "C" block for C++.
42143
42144 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42145             Bruno Haible  <bruno@clisp.org>
42146
42147         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42148         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42149         * doc/posix-functions/isalpha.texi: Likewise.
42150         * doc/posix-functions/isblank.texi: Likewise.
42151         * doc/posix-functions/iscntrl.texi: Likewise.
42152         * doc/posix-functions/isdigit.texi: Likewise.
42153         * doc/posix-functions/isgraph.texi: Likewise.
42154         * doc/posix-functions/islower.texi: Likewise.
42155         * doc/posix-functions/isprint.texi: Likewise.
42156         * doc/posix-functions/ispunct.texi: Likewise.
42157         * doc/posix-functions/isspace.texi: Likewise.
42158         * doc/posix-functions/isupper.texi: Likewise.
42159         * doc/posix-functions/isxdigit.texi: Likewise.
42160
42161 2009-10-18  Bruno Haible  <bruno@clisp.org>
42162
42163         Tests for module 'isblank'.
42164         * modules/isblank-tests: New file.
42165         * tests/test-isblank.c: New file.
42166
42167         New module 'isblank'.
42168         * lib/isblank.c: New file.
42169         * m4/isblank.m4: New file.
42170         * modules/isblank: New file.
42171         * doc/posix-functions/isblank.texi: Mention the new module.
42172
42173 2009-10-18  Bruno Haible  <bruno@clisp.org>
42174
42175         New module 'ctype'.
42176         * lib/ctype.in.h: New file.
42177         * m4/ctype.m4: New file.
42178         * modules/ctype: New file.
42179         * doc/posix-headers/ctype.texi: Mention the new module.
42180
42181 2009-10-18  Jim Meyering  <meyering@redhat.com>
42182
42183         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42184         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42185         right after its initialization, rather than farther down.
42186         Keeping these in close proximity makes it easier to ensure
42187         that each such variable is initialized.  E.g.,
42188
42189             LIB_CLOCK_GETTIME=
42190             AC_SUBST([LIB_CLOCK_GETTIME])
42191
42192         This change also increments these serial numbers.
42193         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42194         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42196
42197 2009-10-18  Bruno Haible  <bruno@clisp.org>
42198
42199         Don't let environment variables perturb build.
42200         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42201         (gl_PREREQ_GETHRXTIME): ... not here.
42202
42203 2009-10-18  Bruno Haible  <bruno@clisp.org>
42204
42205         Avoid symlink attack in localcharset module.
42206         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42207         (O_NOFOLLOW): Define fallback.
42208         (get_charset_aliases): Don't open the file if it is a symbolic link.
42209         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42210         gl_FCNTL_H.
42211         (gl_FCNTL_H): Require it.
42212         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42213         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42214         Reported by Fergal Glynn <fglynn@veracode.com>.
42215
42216 2009-10-18  Bruno Haible  <bruno@clisp.org>
42217
42218         Implement nproc for mingw.
42219         * lib/nproc.c: Include <windows.h>
42220         (num_processors): On native Windows platforms, try GetSystemInfo.
42221
42222 2009-10-18  Bruno Haible  <bruno@clisp.org>
42223
42224         Implement nproc for IRIX.
42225         * lib/nproc.c: Include <sys/sysmp.h>.
42226         (num_processors): On IRIX systems, try sysmp.
42227         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42228
42229 2009-10-18  Bruno Haible  <bruno@clisp.org>
42230
42231         Implement nproc for HP-UX.
42232         * lib/nproc.c: Include <sys/pstat.h>
42233         (num_processors): On HP-UX systems, try pstat_getdynamic.
42234         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42235         pstat_getdynamic.
42236
42237 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42238             Bruno Haible  <bruno@clisp.org>
42239
42240         Implement nproc for NetBSD, OpenBSD.
42241         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42242         (ARRAY_SIZE): New macro.
42243         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42244         * m4/nproc.m4: New file.
42245         * modules/nproc (Files): Add m4/nproc.m4.
42246         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42247         (Makefile.am): Instead, augment lib_SOURCES.
42248
42249 2009-10-18  Bruno Haible  <bruno@clisp.org>
42250
42251         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42252         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42253         sys/param.h.
42254
42255 2009-10-16  Eric Blake  <ebb9@byu.net>
42256
42257         utimensat: new module
42258         * modules/utimensat: New file.
42259         * lib/utimensat.c (utimensat): Likewise.
42260         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42261         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42262         so we can work around Linux bugs.
42263         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42264         * modules/sys_stat (Makefile.am): Substitute them.
42265         * lib/sys_stat.in.h (utimensat): Declare it.
42266         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42267         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42268         * modules/utimensat-tests: New test.
42269         * tests/test-utimensat.c: Likewise.
42270
42271         utimens: let lutimens work on non-symlinks
42272         * lib/utimens.c (lutimens): Fall back to utimens rather than
42273         failing with ENOSYS, when file is not a symlink.
42274         (utimens): Reduce redirection.
42275         * tests/test-lutimens.h (test_lutimens): Update test to cover
42276         non-symlinks.
42277         * tests/test-utimens.h (test_utimens): Update test to cover
42278         symlinks.
42279         * tests/test-utimens.c (main): Update caller.
42280
42281         utimens: cache whether utimensat syscall works
42282         * lib/utimens.c (utimensat_works_really): New cache variable.
42283         (fdutimens, lutimens): Use it to avoid failing syscall.
42284
42285         test-stat-time, test-utimens: improve portability
42286         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42287         ext4 on alpha, and for cygwin.
42288         * tests/test-utimens-common.h: New file.
42289         (nap): Factor delays into single function.
42290         * tests/test-lutimens.h (test_lutimens): Use new header.
42291         * tests/test-futimens.h (test_futimens): Likewise.
42292         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42293         timestamps to occur from same machine, as was done previously for
42294         test_utimens.
42295         * modules/utimens-tests (Files): Ship new file.
42296         * modules/futimens-tests (Files): Likewise.
42297         Reported in part by Jim Meyering.
42298
42299         sys_stat: sort replacement declarations
42300         * lib/sys_stat.in.h: Sort declarations.
42301         * lib/futimens.c (futimens): Fix typo.
42302
42303 2009-10-15  Jim Meyering  <meyering@redhat.com>
42304
42305         don't let environment settings perturb build
42306         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42307         could cause a configure-time and/or build-time malfunction.
42308         Typically, a configure-time function-in-library test is performed
42309         via code like this:
42310
42311           LIB_VAR=
42312           AC_SUBST([LIB_VAR])
42313           prefix_saved_LIBS=$LIBS
42314             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42315                        [test "$ac_cv_search_FUNC" = "none required" ||
42316                         LIB_VAR=$ac_cv_search_FUNC])
42317           LIBS=$prefix_saved_LIBS
42318
42319         However, in each of the files affected by this change, the LIB_VAR=
42320         initialization was omitted.  Thus, when set in the environment, its
42321         value would propagate into generated Makefiles when FUNC is not found
42322         in LIB_NAME.
42323         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42324         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42325         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42326
42327 2009-10-14  Eric Blake  <ebb9@byu.net>
42328
42329         fchdir: avoid infinite recursion in mingw
42330         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42331         recursing.
42332
42333         test-stat-time: port to mingw
42334         * tests/test-stat-time.c (force_unlink): Return a value.
42335         (test_ctime) [W32]: Fix compilation error.
42336         (nap): Don't call usleep with too large an argument.  Use
42337         force_unlink.
42338         * doc/pastposix-functions/usleep.texi (usleep): Document the
42339         portability issue.
42340
42341 2009-10-13  Jim Meyering  <meyering@redhat.com>
42342
42343         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42344         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42345         * modules/pipe-filter-ii: Likewise.
42346         * modules/sys_socket-tests: Likewise.
42347         * modules/tsearch-tests: Likewise.
42348         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42349         (check): Depend on it.
42350
42351 2009-10-12  Eric Blake  <ebb9@byu.net>
42352
42353         utimens-tests: port to NFS file systems
42354         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42355         comparisons to avoid spurious failures from timestamp drift
42356         between NFS machines.
42357
42358 2009-10-12  Eric Blake  <ebb9@byu.net>
42359
42360         stat-time-tests: minor cleanups
42361         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42362         * tests/test-stat-time.c (nap): Separate assignment from call.
42363         Suggested by Paolo Bonzini and Bruno Haible.
42364
42365         sys_stat: guarantee struct timespec
42366         * lib/sys_stat.in.h (includes): Always include <time.h>
42367         * modules/sys_stat (Depends-on): Add time.
42368         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42369         mode_t permission values.
42370         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42371         get at subsecond timestamps.
42372
42373 2009-10-10  Eric Blake  <ebb9@byu.net>
42374
42375         futimens: new module
42376         * modules/futimens: New file.
42377         * lib/futimens.c (futimens): Likewise.
42378         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42379         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42380         we can work around Linux bugs.
42381         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42382         * modules/sys_stat (Makefile.am): Substitute them.
42383         * lib/sys_stat.in.h (futimens): Declare it.
42384         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42385         * doc/posix-functions/futimens.texi (futimens): Likewise.
42386         * modules/futimens-tests: New test.
42387         * tests/test-futimens.c: Likewise.
42388
42389         utimens: introduce fdutimens
42390         * lib/utimens.h (fdutimens): New prototype.
42391         * lib/utimens.c (gl_futimens): Move guts...
42392         (fdutimens): ...to new interface.
42393         * tests/test-utimens.c (do_fdutimens): Use it.
42394
42395         utimens: add UTIME_NOW and UTIME_OMIT support
42396         * lib/utimens.c (validate_timespec, update_timespec): New helper
42397         functions.
42398         (gl_futimens, lutimens): Use them.
42399         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42400         stdbool, sys_stat.
42401         (Link): Mention resulting library dependency.
42402         * modules/utimecmp (Link): Likewise.
42403         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42404         (Makefile.am): Pick up library dependency.
42405         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42406         definition.
42407         * tests/test-sys_stat.c: Test the definitions.
42408         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42409         * NEWS: Document library dependency.
42410
42411         utimecmp: support symlink timestamps
42412         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42413         hashing when possible.  Use pathconf when available.
42414         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42415         * modules/utimecmp (Depends-on): Add lstat.
42416
42417         utimens: add lutimens interface
42418         * lib/utimens.c (lutimens): New function.
42419         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42420         * lib/utimens.h (lutimens): Declare new interface.
42421         * tests/test-utimens.c (main): Enhance test.
42422         * tests/test-lutimens.h (test_lutimens): New file.
42423         * modules/utimens-tests (Files): Distribute it.
42424         (Depends-on): Add symlink.
42425         (configure.ac): Check for usleep.
42426
42427         utimens: validate futimens usage
42428         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42429         fewer syscalls on failure later on.  Avoid compiler warning on
42430         mingw.
42431         * modules/utimens (Depends-on): Add dup2.
42432
42433         utimens: add test
42434         * modules/utimens-tests: New test.
42435         * tests/test-utimens.h: New file.
42436         * tests/test-futimens.h: Likewise.
42437         * tests/test-utimens.c: Likewise.
42438
42439         doc: mention timestamp portability issues
42440         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42441         instead.
42442         * doc/posix-functions/utime.texi (utime): Likewise.
42443         * doc/posix-functions/utimes.texi (utimes): Likewise.
42444         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42445         instead.
42446         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42447         module.
42448         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42449         Mention weakness with symlink timestamps.
42450         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42451         to utimensat/futimens instead.
42452         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42453
42454         test-dup2: enhance test
42455         * tests/test-dup2.c (main): Also check AT_FDCWD.
42456
42457         test-stat-time: avoid more spurious failures
42458         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42459         xfs; and avoid race if the two timestamps cross quantization edge.
42460
42461         relocatable: prefer 'file system' over 'filesystem'
42462         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42463         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42464         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42465         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42466         * lib/relocatable.c (compute_curr_prefix): Likewise.
42467
42468 2009-10-10  Jim Meyering  <meyering@redhat.com>
42469
42470         stat-time-tests: check for the usleep function
42471         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42472
42473 2009-10-10  Bruno Haible  <bruno@clisp.org>
42474
42475         * modules/xnanosleep: Put the Link section after the Include section.
42476
42477 2009-10-09  Eric Blake  <ebb9@byu.net>
42478
42479         dup2: work around FreeBSD 6.1 bug
42480         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42481         * doc/posix-functions/dup2.texi (dup2): Document it.
42482         Reported by Nelson H. F. Beebe and Jim Meyering.
42483
42484         test-stat-time: port to buggy NFS clients
42485         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42486         (test_ctime): Also skip test if mtime and ctime are skewed.
42487
42488         maint: prefer 'file system' over 'filesystem'
42489         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42490         * doc/posix-functions/lstat.texi (lstat): Likewise.
42491         * lib/file-has-acl.c (file_has_acl): Likewise.
42492         * lib/fwriteerror.c [TEST]: Likewise.
42493         * tests/test-areadlink.h (test_areadlink): Likewise.
42494         * tests/test-areadlinkat-with-size.c (main): Likewise.
42495         * tests/test-areadlinkat.c (main): Likewise.
42496         * tests/test-canonicalize-lgpl.c (main): Likewise.
42497         * tests/test-canonicalize.c (main): Likewise.
42498         * tests/test-fstatat.c (main): Likewise.
42499         * tests/test-linkat.c (main): Likewise.
42500         * tests/test-lstat.h (test_lstat_func): Likewise.
42501         * tests/test-mkdir.h (test_mkdir): Likewise.
42502         * tests/test-readlink.h (test_readlink): Likewise.
42503         * tests/test-remove.c (main): Likewise.
42504         * tests/test-rename.h (test_rename): Likewise.
42505         * tests/test-renameat.c (main): Likewise.
42506         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42507         * tests/test-symlink.h (test_symlink): Likewise.
42508         * tests/test-symlinkat.c (main): Likewise.
42509         * tests/test-unlink.h (test_unlink_func): Likewise.
42510         * tests/test-unlinkat.c (main): Likewise.
42511
42512         maint: make realtime library usage explicit
42513         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42514         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42515         * modules/settime (Link): Likewise.
42516         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42517
42518         test-stat-time: speed up execution
42519         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42520         warning on mingw.
42521         (nap): New helper function.
42522         (prepare_test): Use it to reduce sleep time.
42523         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42524         execution.
42525         * modules/stat-time-tests (configure.ac): Check for usleep.
42526
42527 2009-10-09  Jim Meyering  <meyering@redhat.com>
42528
42529         selinux-h: always use getfilecon wrappers
42530         * lib/getfilecon.c: New file.
42531         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42532         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42533         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42534         (fgetfilecon): Provide a stub.
42535         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42536         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42537         file unconditionally.
42538         When <selinux/selinux.h> is found, arrange to use wrappers.
42539         * modules/selinux-h (Files): Add getfilecon.c.
42540         (Makefile.am): Substitute include-next-related bits
42541         into the now-always-generated selinux/selinux.h file.
42542         * doc/glibc-functions/lgetfilecon.texi: New file.
42543         * doc/glibc-functions/fgetfilecon.texi: New file.
42544         * doc/glibc-functions/getfilecon.texi: New file.
42545         * doc/glibc-functions/getfilecon-desc.texi: New file.
42546         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42547         which to pull in the new files.
42548         * MODULES.html.sh (Misc): Add selinux-h.
42549
42550 2009-10-08  Jim Meyering  <meyering@redhat.com>
42551
42552         unistd: fix comment typo
42553         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42554
42555 2009-10-08  Eric Blake  <ebb9@byu.net>
42556
42557         areadlink: use SIZE_MAX consistently
42558         * modules/areadlink (Depends-on): Add stdint.
42559         * modules/areadlink-with-size (Depends-on): Likewise.
42560         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42561         gives NULL; drop sys/types, since unistd gives size_t; and add
42562         stdint for SIZE_MAX.
42563         (SIZE_MAX): Rely on headers.
42564         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42565         and add stdint.
42566         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42567         (SIZE_MAX): Likewise.
42568         (INITIAL_BUF_SIZE): Turn into enum.
42569         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42570
42571 2009-10-08  Jim Meyering  <meyering@redhat.com>
42572
42573         areadlinkat: avoid compilation failure
42574         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42575         Fix typo in comment.
42576
42577 2009-10-07  Eric Blake  <ebb9@byu.net>
42578
42579         areadlinkat-with-size: new module
42580         * modules/areadlinkat-with-size: New module.
42581         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42582         * lib/areadlink.h (areadlinkat): Declare it.
42583         * MODULES.html.sh (File system functions): Mention it.
42584         * modules/areadlinkat-with-size-tests: New test.
42585         * tests/test-areadlinkat-with-size.c: New file.
42586
42587         xreadlinkat: new module
42588         * modules/xreadlinkat: New module.
42589         * lib/xreadlinkat.c (xreadlinkat): New file.
42590         * lib/xreadlink.h (xreadlinkat): Declare it.
42591         * MODULES.html.sh (File system functions): Mention it.
42592
42593         areadlinkat: new module
42594         * lib/at-func.c (FUNC_FAIL): New define.
42595         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42596         * modules/areadlinkat: New module.
42597         * lib/linkat.c (areadlinkat): Move...
42598         * lib/areadlinkat.c (areadlinkat): ...to new file.
42599         * lib/areadlink.h (areadlinkat): Declare it.
42600         * modules/linkat (Depends-on): Add areadlinkat.
42601         * MODULES.html.sh (File system functions): Mention it.
42602         * modules/areadlinkat-tests: New test.
42603         * tests/test-areadlinkat.c: New file.
42604
42605         areadlink, areadlink-with-size: add tests
42606         * modules/areadlink-tests: New test.
42607         * modules/areadlink-with-size-tests: Likewise.
42608         * tests/test-areadlink.h: New file.
42609         * tests/test-areadlink.c: Likewise.
42610         * tests/test-areadlink-with-size.c: Likewise.
42611
42612         maint: minor cleanups
42613         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42614         _UNUSED_PARAMETER_ instead.
42615         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42616         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42617         * modules/linkat-tests (Files): Distribute test-link.h.
42618
42619         openat, utimens: whitespace cleanup
42620         * lib/openat.c: Prefer space throughout, rather than mix of 8
42621         spaces vs. tabs.
42622         * lib/at-func.c: Likewise.
42623         * lib/utimens.c: Likewise.
42624
42625         openat: avoid using wrong fd
42626         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42627         working directory chooses same fd.
42628         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42629
42630         mkdir, mkdirat: fix cygwin 1.5.x bug
42631         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42632         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42633         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42634         bug.
42635         (gl_PREREQ_MKDIR): Delete unused macro.
42636         * modules/mkdir (Files): Track file rename.
42637         (configure.ac): Update macro name.
42638         * modules/openat (Depends-on): Add mkdir.
42639         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42640
42641         mkdir, mkdirat: add tests
42642         * modules/mkdir-tests: New test.
42643         * tests/test-mkdir.h: New file.
42644         * tests/test-mkdir.c: Likewise.
42645         * tests/test-mkdirat.c: Likewise.
42646         * modules/openat-tests (Files): Add new files.
42647         (Makefile.am): Run new test.
42648
42649 2009-10-06  Eric Blake  <ebb9@byu.net>
42650
42651         doc: tweak *at function documentation
42652         * doc/posix-functions/faccessat.texi (faccessat): Mention
42653         known issue with replacement.
42654         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42655         * doc/posix-functions/linkat.texi (linkat): Likewise.
42656         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42657         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42658         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42659         * doc/posix-functions/renameat.texi (renameat): Likewise.
42660         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42661
42662         openat: fix GNU/Hurd bug in unlinkat
42663         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42664         broken.
42665         * doc/posix-functions/unlink.texi (unlink): Document this.
42666         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42667
42668         fdopendir: fix GNU/Hurd bug
42669         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42670         allowing non-directory fds.
42671         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42672         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42673         * modules/dirent (Makefile.am): Substitute it.
42674         * lib/dirent.in.h (fdopendir): Declare replacement.
42675         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42676         * tests/test-fdopendir.c (main): Test something other than
42677         /dev/null, since on Hurd that behaves like a directory.
42678
42679         test-symlink: port to GNU/Hurd
42680         * tests/test-symlink.h (test_symlink): Relax expected errno.
42681
42682         doc: tweak more cygwin information
42683         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42684         now compatible with glibc.
42685         * doc/posix-functions/getopt.texi (getopt): Likewise.
42686
42687         getopt-gnu: add another test
42688         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42689         guarantee behavior relied on by m4.
42690         * tests/test-getopt.c (main): Use it.
42691         * modules/getopt-posix-tests (Depends-on): Add setenv.
42692         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42693
42694         getopt: fix compilation on darwin
42695         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42696         include.
42697         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42698         Reported by Ludovic Courtès.
42699
42700 2009-10-06  Bruno Haible  <bruno@clisp.org>
42701
42702         * modules/size_max (Description): Discourage its use.
42703         Reported by Simon Josefsson.
42704
42705 2009-10-06  Jim Meyering  <meyering@redhat.com>
42706
42707         linkat: avoid compilation failure
42708         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42709
42710 2009-10-05  Eric Blake  <ebb9@byu.net>
42711
42712         linkat: support Linux 2.6.17
42713         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42714         linkat on Linux, but allow cache variable override.
42715         * lib/linkat.c (rpl_linkat): Define override.
42716         * modules/linkat (Depends-on): Add symlinkat.
42717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42718         * modules/unistd (Makefile.am): Substitute it.
42719         * lib/unistd.in.h (linkat): Declare replacement.
42720         Reported by Pádraig Brady.
42721
42722         quotearg: port test to systems with C.UTF-8 locale
42723         * tests/test-quotearg.c (struct result_strings): Add another
42724         member, differentiating between C.ASCII and C.UTF-8 handling.
42725         (compare_strings): Add parameter.
42726         (main): Adjust all callers.
42727
42728         getopt: avoid clash with FreeBSD _getopt_internal
42729         * lib/getopt.in.h (_getopt_internal): Override the name.
42730         * lib/getopt_int.h (includes): Pick up any overrides.
42731         Reported by Reuben Thomas.
42732
42733         hash: allow C89 compilation
42734         * lib/hash.c (check_tuning): Move declaration before statement.
42735         Reported by Reuben Thomas.
42736
42737 2009-10-05  Karl Berry  <karl@gnu.org>
42738
42739         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42740
42741 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42742             Bruno Haible  <bruno@clisp.org>
42743
42744         * lib/uname.c (uname): Use a table-driven algorithm to compute
42745         Windows NT versions.
42746
42747 2009-10-04  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42750         program_invocation_short_name.
42751         * modules/progname (configure.ac): Test for presence of
42752         program_invocation_short_name.
42753         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42754
42755 2009-10-04  Bruno Haible  <bruno@clisp.org>
42756
42757         * lib/progname.c (set_program_name): Fix comment.
42758         Reported by Jim Meyering.
42759
42760 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42761             Bruno Haible  <bruno@clisp.org>
42762
42763         * lib/uname.c: Include <string.h>.
42764         (uname): Do only one call to GetVersionEx in the common case.
42765
42766 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42767             Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42770         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42771         (uname): Add support for Windows CE and various non-x86 CPU types.
42772
42773 2009-10-03  Bruno Haible  <bruno@clisp.org>
42774
42775         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42776         invocation to tests/configure.ac.
42777         Reported by Ian Beckwith <ianb@erislabs.net>.
42778
42779 2009-10-02  Eric Blake  <ebb9@byu.net>
42780
42781         fchdir: avoid compiler warning
42782         * lib/fchdir.c (canonicalize_file_name)
42783         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42784
42785         test-open: support mingw errno values
42786         * tests/test-open.h (test_open): Relax test.
42787         * tests/test-fopen.h (test_fopen): Likewise.
42788         * tests/test-openat-safer.c (main): Likewise.
42789
42790         open: fix opening directory on mingw
42791         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42792
42793         test-open: on GNU/Hurd, /dev/null is a directory
42794         * tests/test-fopen.h (main): Rename...
42795         (test_fopen): ...to this.  Use a guaranteed non-directory when
42796         confirming open behavior on trailing slash.
42797         * tests/test-openat-safer.c (main): Likewise.
42798         * tests/test-open.h (main): Likewise....
42799         (test_open): ...to this.
42800         * tests/test-fopen.c (main): Adjust caller.
42801         * tests/test-fopen-safer.c (main): Likewise.
42802         * tests/test-open.c (main): Likewise.
42803         * tests/test-fcntl-safer.c (main): Likewise.
42804         Reported by Samuel Thibault.
42805
42806         rename, fchdir: don't ignore chdir failure
42807         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42808         * lib/rename.c (rpl_rename) [W32]: Likewise.
42809         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42810         an empty destination directory if source cannot be renamed,
42811         although there is still possibility for failure.
42812         * doc/posix-functions/rename.texi (rename): Document the race.
42813         Reported by Jim Meyering.
42814
42815         maint: cleanup whitespace in recent commits
42816         * lib/rename.c (rpl_rename): Remove tabs.
42817         * tests/test-link.h (test_link): Likewise.
42818         * lib/fchdir.c (get_name): Likewise.
42819         Reported by Jim Meyering.
42820
42821 2009-10-02  Ben Pfaff  <blp@gnu.org>
42822
42823         relocatable-prog-wrapper: Add missing dependency on
42824         double-slash-root.
42825         * modules/relocatable-prog-wrapper: Add dependency.
42826         Reported by Ian Beckwith <ianb@erislabs.net>.
42827
42828 2009-10-02  Eric Blake  <ebb9@byu.net>
42829
42830         renameat: fix Solaris bugs
42831         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
42832         needed fixing.
42833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
42834         * modules/stdio (Makefile.am): Substitute it.
42835         * lib/stdio.in.h (renameat): Declare replacement.
42836         * lib/renameat.c (rpl_renameat): Implement fix.
42837
42838         renameat: new module
42839         * modules/renameat: New file.
42840         * lib/renameat.c (renameat): Likewise.
42841         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
42842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42843         * modules/stdio (Makefile.am): Substitute them.
42844         * lib/stdio.in.h (renameat): Declare it.
42845         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42846         * doc/posix-functions/renameat.texi (renameat): Likewise.
42847         * modules/renameat-tests: New test.
42848         * tests/test-renameat.c: Likewise.
42849
42850         rename: fix mingw bugs
42851         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
42852         directory overwrite bugs.
42853
42854         rename: fix another cygwin 1.5 bug
42855         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
42856         checks.
42857         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
42858         unnecessary cygwin workarounds.  Also work around bug with moving
42859         full directory onto an empty one.
42860         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
42861
42862         rename-dest-slash: merge into rename module
42863         * modules/rename-dest-slash (Status): Mark obsolete.
42864         (Depends-on): Add rename.
42865         (Files): Let rename do it all.
42866         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
42867         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
42868         * m4/rename-dest-slash.m4: ...so this file can be deleted.
42869         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
42870         * lib/rename.c (rpl_rename): Update comments.
42871
42872         rename: fix cygwin 1.5.x bugs
42873         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
42874         * lib/rename.c (rpl_rename): Work around them.
42875         * modules/rename (Depends-on): Add same-inode.
42876
42877         rename: fix Solaris 10 bug
42878         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42879         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
42880         was the only bug.
42881
42882         rename: fix Solaris 9 bug
42883         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
42884         on non-directory.  Avoid calling exit.
42885         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
42886         strdup.
42887         * modules/rename-tests (Depends-on): Drop lstat.
42888         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42889         (gl_PREREQ_RENAME): Delete unused macro.
42890
42891         rename-dest-slash: fix NetBSD bug
42892         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
42893         links.
42894         * modules/rename-dest-slash (Depends-on): Add same-inode.
42895
42896         rename-tests: new test, exposes several platform bugs
42897         * modules/rename-tests: New file.
42898         * tests/test-rename.h: Likewise.
42899         * tests/test-rename.c: Likewise.
42900         * doc/posix-functions/rename.texi (rename): Improve documentation,
42901         including bugs that will eventually be fixed in gnulib.
42902
42903 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
42904
42905         * lib/uname.c: Include <stdlib.h>
42906         (uname): Assume version info is available.
42907
42908 2009-10-02  Jim Meyering  <meyering@redhat.com>
42909
42910         gnu-web-doc-update: correct --help output
42911         * build-aux/gnu-web-doc-update: Make --help output relevant.
42912
42913         gnu-web-doc-update: add standard options
42914         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
42915
42916         gnu-web-doc-update: New module.
42917         Use this script to automatically update the on-line web documentation
42918         for your GNU project at http://www.gnu.org/software/$pkg/manual/
42919         * modules/gnu-web-doc-update: New file, from coreutils.
42920         * build-aux/gnu-web-doc-update: New script.
42921
42922 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
42923
42924         link: LoadLibrary is not needed.
42925         * lib/link.c: Use GetModuleHandle.
42926
42927 2009-10-01  Eric Blake  <ebb9@byu.net>
42928
42929         getopt: bump serial number
42930         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
42931         change.
42932
42933         tests: tighten link, rmdir, and remove tests
42934         * tests/test-link.h (includes): No need to use <config.h> here.
42935         Clean up if directory hard link was created, otherwise test for
42936         trailing '.'.
42937         * tests/test-linkat.c (main): Simplify.
42938         * tests/test-remove.c (main): Enhance test for trailing '.'.
42939         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42940
42941 2009-10-01  Jim Meyering  <meyering@redhat.com>
42942
42943         maint.mk: requiring "make major" was annoying, for a "minor" release.
42944         What is intended is "stable", to contrast with alpha and beta,
42945         so require "make stable", not "make major".
42946         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
42947         (get_tool_versions): Likewise.
42948         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
42949
42950 2009-09-30  Ben Pfaff  <blp@gnu.org>
42951
42952         Fix broken build of replacement for Windows tmpfile().
42953         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
42954         flags argument added along with the 'mkostemp' module.
42955
42956 2009-09-28  Bruno Haible  <bruno@clisp.org>
42957
42958         Avoid identifier clash with POSIX function 'remove' defined as a macro.
42959         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
42960         to 'remove_elt'.
42961         (gl_list_remove): Update.
42962         * lib/gl_list.c (gl_list_remove): Update.
42963         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
42964         to 'remove_elt'.
42965         (gl_oset_remove): Update.
42966         * lib/gl_list.c (gl_oset_remove): Update.
42967         Reported by Eric Blake.
42968
42969 2009-09-28  Eric Blake  <ebb9@byu.net>
42970
42971         doc: mention yet more cygwin 1.7 status
42972         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
42973         cygwin.
42974         * doc/glibc-functions/execvpe.texi (execvpe): New file.
42975         * doc/gnulib.texi (Glibc unistd.h): Mention it.
42976
42977         argp: fix test failure
42978         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42979         that are not upper-case.  Pass correct range to tolower.
42980
42981 2009-09-27  Jim Meyering  <meyering@redhat.com>
42982
42983         test-yesno: work around sparc-dash here-document infelicity
42984         Without this change, the literal \177 byte in a here document
42985         would make dash 0.5.5.1-3 access uninitialized memory.
42986         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42987         Instead, use a marker, "@", and filter through tr to create the desired
42988         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42989
42990 2009-09-27  Bruno Haible  <bruno@clisp.org>
42991
42992         Disable untested support for new flavours of ACLs on AIX.
42993         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42994         progress.
42995         * lib/set-mode-acl.c (qset_acl): Likewise.
42996
42997 2008-12-07  Bruno Haible  <bruno@clisp.org>
42998
42999         Add support for new flavours of ACLs on AIX. (Untested.)
43000         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43001         (file_has_acl): Add support for newer AIX.
43002         * lib/set-mode-acl.c (qset_acl): Likewise.
43003         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43004         Rainer Tammer <tammer@tammer.net>.
43005
43006 2009-09-26  Eric Blake  <ebb9@byu.net>
43007
43008         argp: fix compilation of getopt
43009         * lib/getopt.in.h (includes): Use different guard than glibc.
43010         Reported by Sergey Poznyakoff.
43011
43012         doc: mention more cygwin 1.7 status
43013         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43014         bug.
43015         * doc/posix-functions/execl.texi (execl): Likewise.
43016         * doc/posix-functions/execle.texi (execle): Likewise.
43017         * doc/posix-functions/execlp.texi (execlp): Likewise.
43018         * doc/posix-functions/execv.texi (execv): Likewise.
43019         * doc/posix-functions/execve.texi (execve): Likewise.
43020         * doc/posix-functions/execvp.texi (execvp): Likewise.
43021         * doc/glibc-functions/canonicalize_file_name.texi
43022         (canonicalize_file_name): Cygwin 1.7 now provides this.
43023         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43024         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43025         on AT_SYMLINK_NOFOLLOW.
43026
43027 2009-09-24  Eric Blake  <ebb9@byu.net>
43028
43029         test-linkat: make test more robust
43030         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43031
43032         getopt: fix inclusion guards for cygwin
43033         * modules/getopt-posix (Depends-on): Add include-next.
43034         (Makefile.am): Substitute more items in replacement header.
43035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43036         <getopt.h>.
43037         * lib/getopt.in.h (includes): Use split inclusion guard, and
43038         prefer <getopt.h> over include <unistd.h> when one is present.
43039         (option): Also override name of 'struct option'.
43040
43041         same-inode: revert prior change; it is not yet ready
43042         * NEWS: Undo mention of this change.
43043         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43044         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43045         * lib/cycle-check.c (cycle_check): Likewise.
43046         * lib/same.c (same_name): Likewise.
43047         * lib/at-func2.c (at_func2): Likewise.
43048
43049 2009-09-23  Eric Blake  <ebb9@byu.net>
43050
43051         linkat: new module
43052         * modules/linkat: New file.
43053         * lib/at-func2.c (at_func2): Likewise.
43054         * lib/linkat.c (linkat): Likewise.
43055         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43056         * lib/openat-priv.h (at_func2): Add declaration.
43057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43058         * modules/unistd (Makefile.am): Substitute them.
43059         * lib/unistd.in.h (linkat): Declare it.
43060         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43061         * doc/posix-functions/linkat.texi (linkat): Likewise.
43062         * doc/posix-functions/link.texi (link): Tweak wording.
43063         * tests/test-link.c (main): Move guts...
43064         * tests/test-link.h (test_link): ...into new file.
43065         * modules/linkat-tests: New test.
43066         * tests/test-linkat.c: Likewise.
43067         * modules/link-tests (Files): Ship new file.
43068         (Depends-on): Add stdbool.
43069
43070         dirname: add library-safe mdir_name
43071         * lib/dirname.h (mdir_name): New prototype.
43072         * lib/dirname.c (dir_name): Move guts...
43073         (mdir_name): ...to new function that avoids xalloc_die.
43074
43075         fchdir: another mingw fix
43076         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43077         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43078         on mingw (where it has not yet been ported), and make it optional
43079         elsewhere.
43080         (_gl_register_fd): Use it.
43081
43082         same-inode: make SAME_INODE tri-state, to port to mingw
43083         * NEWS: Mention this change.
43084         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43085         st_ino always being 0.
43086         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43087         * lib/cycle-check.c (cycle_check): Likewise.
43088         * lib/same.c (same_name): Likewise.
43089
43090         lstat: avoid mingw compilation error
43091         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43092         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43093         lstat ourselves.
43094         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43095         was adequate.
43096         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43097         the checks for lstat.
43098         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43099
43100         link: fix test failure on Solaris 9
43101         * lib/link.c (rpl_link): Don't assume link will catch bogus
43102         trailing slash on source.
43103
43104         test-symlinkat: enhance test
43105         * tests/test-readlink.c (main): Move guts...
43106         * tests/test-readlink.h (test_readlink): ...into new file.
43107         * tests/test-symlink.c (main): Move guts...
43108         * tests/test-symlink.h (test_symlink): ...into new file.
43109         * tests/test-symlinkat.c (main): Use new files for further
43110         coverage.
43111         (do_symlink, do_readlink): New helper functions.
43112         * modules/symlink-tests (Files): Ship new file.
43113         (Depends-on): Add stdbool.
43114         * modules/readlink-tests (Files): Ship new file.
43115         (Depends-on): Add stdbool.
43116         * modules/symlinkat-tests (Files): Use new files.
43117
43118 2009-09-23  Eric Blake  <ebb9@byu.net>
43119
43120         readlink: document portability issue with symlink length
43121         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43122         systems have bogus st_size on symlinks, and mention the
43123         areadlink-with-size module.
43124         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43125         * doc/posix-functions/readlink.texi (readlink): Mention the
43126         areadlink module, and ERANGE failure.
43127         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43128         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43129
43130         readlink: fix Solaris 9 bug with trailing slash
43131         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43132         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43133         * doc/posix-functions/readlink.texi (readlink): Document this.
43134         * modules/readlink-tests: New test.
43135         * tests/test-readlink.c: Likewise.
43136
43137         readlink: fix cygwin 1.5.x bug with return type
43138         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43139         * lib/unistd.in.h (readlink): Use ssize_t.
43140         * lib/readlink.c (readlink): Likewise.
43141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43142         * modules/unistd (Makefile.am): Substitute it.
43143         * lib/unistd.in.h (readlink): Declare replacement.
43144         * doc/posix-functions/readlink.texi (readlink): Document this.
43145
43146         symlink: use throughout gnulib
43147         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43148         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43149         symlink is not used.
43150         * modules/symlinkat (Depends-on): Add symlink.
43151         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43152         * modules/canonicalize-tests (Depends-on): Likewise.
43153         * modules/lstat-tests (Depends-on): Likewise.
43154         * modules/openat-tests (Depends-on): Likewise.
43155         * modules/remove-tests (Depends-on): Likewise.
43156         * modules/rmdir-tests (Depends-on): Likewise.
43157         * modules/unlink-tests (Depends-on): Likewise.
43158         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43159         * tests/test-canonicalize.c (symlink): Likewise.
43160         * tests/test-fstatat.c (symlink): Likewise.
43161         * tests/test-lstat.c (symlink): Likewise.
43162         * tests/test-remove.c (symlink): Likewise.
43163         * tests/test-rmdir.c (symlink): Likewise.
43164         * tests/test-unlink.c (symlink): Likewise.
43165         * tests/test-unlinkat.c (symlink): Likewise.
43166
43167         symlink: new module, for Solaris 9 bug
43168         * modules/symlink: New file.
43169         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43170         * lib/symlink.c: Likewise.
43171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43172         * modules/unistd (Makefile.am): Substitute them.
43173         * lib/unistd.in.h (symlink): Declare replacement.
43174         * MODULES.html.sh (File system functions): Mention it.
43175         * doc/posix-functions/symlink.texi (symlink): Likewise.
43176         * modules/symlink-tests: New test.
43177         * tests/test-symlink.c: Likewise.
43178
43179 2009-09-23  Bruno Haible  <bruno@clisp.org>
43180
43181         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43182         when needed.
43183         Test case: gnulib-tool --import --with-tests atexit inttypes.
43184         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43185
43186 2009-09-23  Bruno Haible  <bruno@clisp.org>
43187
43188         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43189         subcommand, not in a subshell.
43190
43191 2009-09-22  Eric Blake  <ebb9@byu.net>
43192
43193         unistd: sort replacement declarations
43194         * lib/unistd.in.h: Sort declarations.
43195
43196         open, openat: minor optimization
43197         * lib/open.c (open): If open succeeded, len is non-zero.
43198         * lib/openat.c (rpl_openat): Likewise.
43199
43200         link-follow: ensure correct result
43201         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43202         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43203         distinguish between possible failures.
43204
43205 2009-09-21  Eric Blake  <ebb9@byu.net>
43206
43207         fts: avoid compiler warning
43208         * lib/fts.c (dirent_inode_sort_may_be_useful)
43209         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43210
43211 2009-09-19  Bruno Haible  <bruno@clisp.org>
43212
43213         * lib/progreloc.c (canonicalize_file_name): New declaration.
43214
43215 2009-09-19  Eric Blake  <ebb9@byu.net>
43216
43217         link: fix quoting
43218         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43219
43220         openat: fix openat bugs on Solaris 9
43221         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43222         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43223         * modules/openat (Depends-on): Add open.
43224         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43225         * modules/fcntl-h (Makefile.am): Substitute it.
43226         * lib/fcntl.in.h (openat): Declare replacement.
43227         * doc/posix-functions/openat.texi (openat): Document this.
43228
43229         openat: move fstatat and unlinkat into correct files
43230         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43231         compiled.
43232         * lib/openat.c (fstatat, unlinkat): Move...
43233         * lib/fstatat.c (fstatat): ...into correct files.
43234         * lib/unlinkat.c (unlinkat): Likewise.
43235
43236         openat: fix unlinkat bugs on Solaris 9
43237         * lib/unlinkat.c (unlinkat): New file.
43238         * modules/openat (Depends-on): Add unlink.
43239         (Files): Distribute it.
43240         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43241         trailing slash behavior is broken.
43242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43243         * modules/unistd (Makefile.am): Substitute it.
43244         * lib/unistd.in.h (unlinkat): Declare replacement.
43245         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43246
43247         openat: fix fstatat bugs on Solaris 9
43248         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43249         stat.
43250         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43251
43252         test-unlinkat: enhance test, to expose Solaris 9 bug
43253         * tests/test-unlink.c (main): Factor guts...
43254         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43255         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43256         * tests/test-rmdir.c (main): Adjust caller.
43257         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43258         (unlinker): New helper function.
43259         (rmdirat): Enhance check.
43260         * modules/rmdir-tests (Depends-on): Add stdbool.
43261         * modules/unlink-tests (Depends-on): Likewise.
43262         (Files): Add test-unlink.h.
43263         * modules/openat-tests (Files): Likewise.
43264         (Depends-on): Add unlinkdir.
43265
43266         test-fstatat: new test, to expose Solaris 9 bugs
43267         * tests/test-stat.c (main): Factor guts...
43268         * tests/test-stat.h (test_stat_func): ...into new file.
43269         * tests/test-lstat.c (main): Factor guts...
43270         * tests/test-lstat.h (test_lstat_func): ...into new file.
43271         * tests/test-fstatat.c: New file.
43272         * modules/stat-tests (Files): Add test-stat.h.
43273         * modules/lstat-tests (Files): Add test-lstat.h.
43274         (Depends-on): Add stdbool.
43275         * modules/openat-tests (Depends-on): Add pathmax.
43276         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43277         (Makefile.am): Run new test.
43278
43279         remove: new module, for mingw and Solaris 9 bugs
43280         * modules/remove: New file.
43281         * lib/remove.c: Likewise.
43282         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43284         * modules/stdio (Makefile.am): Use them.
43285         * lib/stdio.in.h (remove): Declare replacement.
43286         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43287         * doc/posix-functions/remove.texi (remove): Likewise.
43288         * modules/remove-tests: New test.
43289         * tests/test-remove.c: Likewise.
43290
43291         unlink: new module, for Solaris 9 bug
43292         * modules/unlink: New file.
43293         * lib/unlink.c: Likewise.
43294         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43296         * modules/unistd (Makefile.am): Use them.
43297         * lib/unistd.in.h (stat): Declare replacement.
43298         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43299         * doc/posix-functions/unlink.texi (unlink): Likewise.
43300         * modules/unlink-tests: New test.
43301         * tests/test-unlink.c: Likewise.
43302
43303         lstat: fix Solaris 9 bug
43304         * lib/lstat.c (lstat): Also check for trailing slash on
43305         non-symlink, non-directories.  Use stat module to simplify logic.
43306         * doc/posix-functions/lstat.texi (lstat): Document it.
43307         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43308         (configure.ac): Check for symlink.
43309         * tests/test-lstat.c (main): Add more tests.
43310
43311         stat: add as dependency to other modules
43312         * modules/chown (Depends-on): Add stat.
43313         * modules/euidaccess (Depends-on): Likewise.
43314         * modules/fchdir (Depends-on): Likewise.
43315         * modules/isdir (Depends-on): Likewise.
43316         * modules/link (Depends-on): Likewise.
43317         * modules/lstat (Depends-on): Likewise.
43318         * modules/mkdir-p (Depends-on): Likewise.
43319         * modules/modechange (Depends-on): Likewise.
43320         * modules/open (Depends-on): Likewise.
43321         * modules/readlink (Depends-on): Likewise.
43322         * modules/same (Depends-on): Likewise.
43323
43324         stat: fix Solaris 9 bug
43325         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43326         slash.
43327         * lib/stat.c (rpl_stat): Work around it.
43328         * doc/posix-functions/stat.texi (stat): Update documentation.
43329
43330         stat: new module, for mingw bug
43331         * modules/stat: New file.
43332         * lib/stat.c: Likewise.
43333         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43334         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43335         * modules/sys_stat (Makefile.am): Use them.
43336         * lib/sys_stat.in.h (stat): Declare replacement.
43337         * lib/openat.c (fstatat): Deal with lstat and stat being function
43338         macros.
43339         * modules/openat (Depends-on): Add inline.
43340         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43341         * doc/posix-functions/stat.texi (stat): Likewise.
43342         * modules/stat-tests: New test.
43343         * tests/test-stat.c: Likewise.
43344
43345 2009-09-19  Jim Meyering  <meyering@redhat.com>
43346
43347         syntax-check: detect unnecessary inclusion of canonicalize.h
43348         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43349
43350 2009-09-19  Eric Blake  <ebb9@byu.net>
43351
43352         canonicalize-lgpl: adjust clients to use correct header
43353         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43354         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43355         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43356         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43357         * lib/progreloc.c (includes): Likewise.
43358
43359 2009-09-19  Jim Meyering  <meyering@redhat.com>
43360
43361         test-posixtm.c: correct a comment
43362         * tests/test-posixtm.c: Correct first-line comment.
43363         Spotted by Eric Blake.
43364
43365 2009-09-16  Jim Meyering  <meyering@redhat.com>
43366
43367         posixtm-tests: make T const-correct; add a test case
43368         * tests/test-posixtm.c (T): Declare const.
43369         Add a test for -(2^31+1).
43370         Remove useless can-succeed-only-in-2002 test.
43371
43372         posixtm-tests: adjust the sole failing test
43373         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43374         expected output matches what mktime now produces.  Cross-checked via
43375         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43376
43377         posixtm: move #ifdef'd tests into a new module
43378         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43379         * tests/test-posixtm.c: ... this new file.
43380         * modules/posixtm-tests: New module.
43381
43382 2009-09-19  Eric Blake  <ebb9@byu.net>
43383
43384         openat: simplify use of at-func.c
43385         * lib/at-func.c (includes): Include prerequisites here, to
43386         simplify requirements on client files.
43387         * lib/openat-priv.h: Add double-inclusion guard.
43388         * lib/faccessat.c (includes): Simplify.
43389         * lib/fchmodat.c (includes): Likewise.
43390         * lib/fchownat.c (includes): Likewise.
43391         * lib/mkdirat.c (includes): Likewise.
43392         * lib/mkfifoat.c (includes): Likewise.
43393         * lib/symlinkat.c (includes): Likewise.
43394
43395         openat: allow return of fd 0
43396         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43397         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43398         unistd-safer.
43399         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43400         <fcntl.h>; this module does not leak fds.
43401         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43402         must be allowed to return 0, leaving openat_safer to add the
43403         safety.
43404         (openat_permissive): Avoid writing to just-opened fd 2 if
43405         restoring the current directory fails.
43406         * lib/openat-die.c (openat_restore_fail): Add comment.
43407         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43408         (save_cwd): Guarantee safe fd, but without use of open_safer.
43409         * tests/test-openat.c: New test.
43410         * modules/openat-tests (Files, Makefile.am): Distribute and build
43411         new file.
43412
43413         relocatable-prog-wrapper: fix build
43414         * modules/relocatable-prog-wrapper (Files): Update name of
43415         canonicalize m4 file, broken on 2009-09-17.
43416         Reported by emad hajjar <aleppos@hotmail.com>.
43417
43418 2009-09-19  Bruno Haible  <bruno@clisp.org>
43419
43420         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43421         * lib/safe-alloc.c: Likewise.
43422         Reported by Ian Beckwith <ianb@erislabs.net>.
43423
43424 2009-09-18  Bruno Haible  <bruno@clisp.org>
43425
43426         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43427         Reported by <erobles@sensacd.com.mx>.
43428
43429 2009-09-17  Eric Blake  <ebb9@byu.net>
43430
43431         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43432         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43433         slashes when checking if last component is missing.
43434         * tests/test-canonicalize.c (main): Test this.
43435
43436         canonicalize, canonicalize-lgpl: honor // if distinct from /
43437         * modules/canonicalize (Files): Add double-slash-root.m4.
43438         * modules/canonicalize-lgpl (Files): Likewise.
43439         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43440         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43441         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43442         fallback definition.
43443         (canonicalize_filename_mode): Use it to protect //.
43444         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43445         (__realpath): Likewise.
43446         * tests/test-canonicalize.c (main): Test this.
43447         * tests/test-canonicalize-lgpl.c (main): Likewise.
43448         * modules/canonicalize-tests (Depends-on): Add same-inode.
43449         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43450
43451         canonicalize-lgpl: fix glibc bug with trailing slash
43452         * m4/canonicalize-lgpl.m4: Move contents...
43453         * m4/canonicalize.m4: ...here.
43454         (gl_CANONICALIZE_LGPL): Factor realpath check...
43455         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43456         glibc 2.3.5 bug, fixed 2005-04-27.
43457         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43458         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43459         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43460         * modules/canonicalize-lgpl (Files): Manage file rename.
43461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43462         * modules/stdlib (Makefile.am): Substitute witness.
43463         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43464         is needed.
43465         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43466         replacement is required.
43467         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43468         * doc/glibc-functions/canonicalize_file_name.texi
43469         (canonicalize_file_name): Document this.
43470         * doc/posix-functions/realpath.texi (realpath): Likewise.
43471
43472         canonicalize-lgpl: reject non-directory with trailing slash
43473         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43474         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43475         catches failures in glibc 2.3.5.
43476         * tests/test-canonicalize.c (main): Likewise.
43477
43478         canonicalize-lgpl: use native realpath if it works
43479         * lib/canonicalize-lgpl.c (realpath): Guard with
43480         FUNC_REALPATH_WORKS.
43481         * lib/stdlib.in.h (realpath): Make declaration optional based on
43482         HAVE_REALPATH.
43483         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43484         native realpath works.
43485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43486         * modules/stdlib (Makefile.am): Substitute witness.
43487
43488         canonicalize, canonicalize-lgpl: use <stdlib.h>
43489         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43490         (Include): Mention <stdlib.h>.
43491         (configure.ac): Mention functions we provide.
43492         * modules/canonicalize (configure.ac): Likewise.
43493         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43494         realpath if canonicalize_file_name is missing.
43495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43496         * modules/stdlib (Makefile.am): Substitute witnesses.
43497         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43498         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43499         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43500         * NEWS: Document this.
43501         * doc/glibc-functions/canonicalize_file_name.texi
43502         (canonicalize_file_name): Likewise.
43503         * doc/posix-functions/realpath.texi (realpath): Likewise.
43504         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43505
43506         test-canonicalize: consolidate into single C program
43507         * tests/test-canonicalize.sh: Delete; move setup into...
43508         * tests/test-canonicalize.c (main): ...the program, making it
43509         easier to run in debugger.  Add some tests.
43510         * modules/canonicalize-tests (Files): Remove unused file.
43511         (Depends-on): Add progname.
43512         (configure.ac, Makefile.am): Simplify.
43513
43514         test-canonicalize-lgpl: consolidate into single C program
43515         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43516         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43517         easier to run in debugger.  Add some tests.
43518         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43519         (configure.ac, Makefile.am): Simplify.
43520
43521         canonicalize: avoid resolvepath
43522         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43523         unnecessary checks.
43524         * lib/canonicalize.c (includes): Simplify.
43525         (canonicalize_file_name): Drop resolvepath implementation.
43526         * modules/canonicalize (Depends-on): Drop filenamecat.
43527
43528         canonicalize: don't lose errno
43529         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43530         over calls to free.
43531
43532         canonicalize: simplify errno handling
43533         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43534         assignment.
43535
43536         canonicalize, canonicalize-lgpl: update module dependencies
43537         * modules/canonicalize (Depends-on): Add extensions, lstat,
43538         pathmax, stdlib.
43539         (Files): Drop pathmax.h.
43540         (configure.ac): Adjust macro name.
43541         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43542         lstat, stdlib, sys_stat.
43543         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43544         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43545         extensions.
43546         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43547         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43548         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43549         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43550         declaration, if available.
43551         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43552         we can rely on the readlink module.
43553         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43554         (includes): Use <unistd.h> unconditionally.
43555
43556 2009-09-17  Eric Blake  <ebb9@byu.net>
43557
43558         maint: make Include sections of modules consistent
43559         * modules/alloca: Use only header name; no need to list #include.
43560         * modules/alloca-opt: Likewise.
43561         * modules/arpa_inet: Likewise.
43562         * modules/canon-host: Likewise.
43563         * modules/configmake: Likewise.
43564         * modules/dirent: Likewise.
43565         * modules/eealloc: Likewise.
43566         * modules/environ: Likewise.
43567         * modules/fchdir: Likewise.
43568         * modules/fcntl: Likewise.
43569         * modules/fcntl-h: Likewise.
43570         * modules/gethrxtime: Likewise.
43571         * modules/gettime: Likewise.
43572         * modules/ignore-value: Likewise.
43573         * modules/inet_ntop: Likewise.
43574         * modules/inet_pton: Likewise.
43575         * modules/inttypes: Likewise.
43576         * modules/isnand-nolibm: Likewise.
43577         * modules/isnanf-nolibm: Likewise.
43578         * modules/mbchar: Likewise.
43579         * modules/mbfile: Likewise.
43580         * modules/mbiter: Likewise.
43581         * modules/mbuiter: Likewise.
43582         * modules/netdb: Likewise.
43583         * modules/netinet_in: Likewise.
43584         * modules/nproc: Likewise.
43585         * modules/pagealign_alloc: Likewise.
43586         * modules/poll: Likewise.
43587         * modules/printf-frexp: Likewise.
43588         * modules/pthread: Likewise.
43589         * modules/putenv: Likewise.
43590         * modules/random_r: Likewise.
43591         * modules/relocatable-prog: Likewise.
43592         * modules/search: Likewise.
43593         * modules/select: Likewise.
43594         * modules/selinux-h: Likewise.
43595         * modules/settime: Likewise.
43596         * modules/signal: Likewise.
43597         * modules/size_max: Likewise.
43598         * modules/socklen: Likewise.
43599         * modules/ssize_t: Likewise.
43600         * modules/stdarg: Likewise.
43601         * modules/stdbool: Likewise.
43602         * modules/stddef: Likewise.
43603         * modules/stdint: Likewise.
43604         * modules/stdio: Likewise.
43605         * modules/stdlib: Likewise.
43606         * modules/string: Likewise.
43607         * modules/strings: Likewise.
43608         * modules/sys_file: Likewise.
43609         * modules/sys_ioctl: Likewise.
43610         * modules/sys_select: Likewise.
43611         * modules/sys_socket: Likewise.
43612         * modules/sys_stat: Likewise.
43613         * modules/sys_time: Likewise.
43614         * modules/sys_times: Likewise.
43615         * modules/sys_utsname: Likewise.
43616         * modules/sys_wait: Likewise.
43617         * modules/sysexits: Likewise.
43618         * modules/time: Likewise.
43619         * modules/times: Likewise.
43620         * modules/tmpfile: Likewise.
43621         * modules/trim: Likewise.
43622         * modules/unistd: Likewise.
43623         * modules/wchar: Likewise.
43624         * modules/wctype: Likewise.
43625
43626 2009-09-17  Bruno Haible  <bruno@clisp.org>
43627
43628         Make getdate.y compile on QNX and NetBSD 5 / i386.
43629         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43630         TIME_T_FITS_IN_LONG_INT.
43631         * lib/getdate.y (long_time_t): New type.
43632         (relative_time): Change type of 'seconds' field to long_time_t.
43633         (get_date): Update types of local variables. Check against overflow
43634         during conversion from long_time_t to time_t.
43635         Reported by Matt Kraai <kraai@ftbfs.org>
43636         and Hasso Tepper <hasso@netbsd.org>.
43637
43638 2009-09-17  Bruno Haible  <bruno@clisp.org>
43639
43640         * modules/COPYING: Update copyright years.
43641         * modules/README: Likeiwse.
43642         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43643         Reported by Ian Beckwith <ianb@erislabs.net>.
43644
43645 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43646
43647         * users.txt: Update references for gnuit package.
43648
43649 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43650
43651         * m4/getdelim.m4: Fix typo in copyright line.
43652
43653 2009-09-17  Bruno Haible  <bruno@clisp.org>
43654
43655         * lib/atoll.c: Use the standard header with GPL copyright.
43656         * lib/argz.in.h: Likewise.
43657         * lib/glob.c: Likewise.
43658         * lib/glob-libc.h: Likewise.
43659         * lib/random_r.c: Likewise.
43660         * lib/siglist.h: Likewise.
43661         * lib/strsignal.c: Likewise.
43662         Reported by Ian Beckwith <ianb@erislabs.net>.
43663
43664 2009-09-17  Eric Blake  <ebb9@byu.net>
43665
43666         rmdir: ensure correct dependency order
43667         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43668
43669 2009-09-17  Bruno Haible  <bruno@clisp.org>
43670
43671         Disable assertion that fails on NetBSD 5 / i386.
43672         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43673         Reported by Sam Steingold <sds@gnu.org>
43674         and Hasso Tepper <hasso@netbsd.org>.
43675
43676 2009-09-16  Eric Blake  <ebb9@byu.net>
43677
43678         unlinkdir: port to mingw
43679         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43680         on which no one can unlink a directory.
43681
43682         stdlib: sort witness names
43683         * modules/stdlib (Makefile.am): Sort replacements.
43684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43685         * lib/stdlib.in.h: Likewise.
43686
43687         parse-duration-tests: avoid link failure
43688         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43689         LIBINTL.
43690         Reported by Tom G. Christensen.
43691
43692         openat-tests: ensure unlinkat behaves like rmdir
43693         * tests/test-rmdir.c (main): Factor guts...
43694         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43695         * modules/rmdir-tests (Files): Ship new file.
43696         * modules/openat-tests: New test.
43697         * tests/test-unlinkat.c: Likewise.
43698
43699         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43700         * modules/rmdir-errno (Status, Notice): Now obsolete.
43701
43702         rmdir: work around cygwin 1.5.x and mingw bugs
43703         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43704         * lib/rmdir.c (rmdir): Work around it.
43705         * modules/rmdir (Status, Notice): No longer obsolete.
43706         (Files): Add dos.m4.
43707         (Depends-on): Add unistd.
43708         (configure.ac): Set witnesses.
43709         (License): Relax to LGPLv2+.
43710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43711         * modules/unistd (Makefile.am): Substitute witnesses.
43712         * lib/unistd.in.h (rmdir): Declare replacement.
43713         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43714         * modules/rmdir-tests: New tests.
43715         * tests/test-rmdir.c: Likewise.
43716
43717 2009-09-15  Eric Blake  <ebb9@byu.net>
43718
43719         fchdir: improve use of replacement functions
43720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43721         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43722         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43723         REPLACE_CLOSEDIR.
43724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43725         * modules/sys_stat (Makefile.am): Substitute correct witness.
43726         * modules/dirent (Makefile.am): Likewise.
43727         * modules/unistd (Makefile.am): Likewise.
43728         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43729         * lib/unistd.in.h (dup): Likewise.
43730         * lib/sys_stat.in.h (fstat): Likewise.
43731
43732         maint: ignore gnulib-tool temp files
43733         * .gitignore: Ignore files created during gnulib-tool --test.
43734
43735 2009-09-13  Jim Meyering  <meyering@redhat.com>
43736
43737         posixtm: don't reject a time that specify "60" as the number of seconds
43738         * lib/posixtm.c (posixtime): The code to reject invalid dates
43739         would also reject a time specified with the .60 suffix.
43740         But POSIX allows that, in order to accommodate leap seconds.
43741         So don't reject it.
43742         (main): Adjust tests accordingly.
43743         * modules/posixtm (Depends-on): Add stpcpy.
43744
43745 2009-09-11  Jim Meyering  <meyering@redhat.com>
43746
43747         announce-gen: include [$release_type] in emitted Subject:
43748         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43749         e.g., [stable] in the emitted Subject: line.
43750
43751 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43752
43753         Remove obsolete macros from several modules.
43754         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43755         obsolete Autoconf macros with their modern counterparts.
43756         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43757         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43759         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43760         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43761         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43763         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43764         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43765         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43766         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43767         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43768         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43769         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43770         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43771         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43772         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43773         * m4/time_r.m4 (gl_TIME_R): Likewise.
43774         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43775         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43776         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43777
43778         Fix copyright header in build-aux scripts.
43779         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43780         recommendation.
43781         * build-aux/ncftpput-ftp: Likewise.
43782         * build-aux/update-copyright: Likewise.
43783
43784 2009-09-09  Eric Blake  <ebb9@byu.net>
43785
43786         test-link: allow Linux choice of errno
43787         * tests/test-link.c (main): Relax test for alternate error.
43788
43789         strndup: fix improper m4 caching
43790         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43791         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43792         (gl_PREREQ_STRNDUP): Delete.
43793         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43794         * modules/string (Makefile.am): Substitute it.
43795         * lib/string.in.h (strndup): Modernize prototype.
43796
43797         getcwd: port to mingw
43798         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43799         different from the POSIX assumptions made throughout the getcwd
43800         module; fortunately, the mingw getcwd does not need replacement.
43801         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43802         * modules/getcwd-tests: New test.
43803         * tests/test-getcwd.c: Likewise.
43804
43805         link: fix platform bugs
43806         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43807         * lib/link.c (link): Work around them.  Fix related mingw bug.
43808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43809         * modules/unistd (Makefile.am): Substitute it.
43810         * lib/unistd.in.h (link): Declare replacement.
43811         * doc/posix-functions/link.texi (link): Document this.
43812         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43813
43814         test-link: consolidate into single C program, test more cases
43815         * tests/test-link.sh: Delete.
43816         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43817         at least Cygwin and Solaris.
43818         * modules/link-tests (Files): Remove unused file.
43819         (Depends-on): Add errno, sys_stat.
43820         (Makefile.am): Simplify.
43821
43822 2009-09-08  Bruno Haible  <bruno@clisp.org>
43823
43824         Work around towlower, towupper bug on mingw.
43825         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43826         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43827         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43828         * doc/posix-functions/towupper.texi: Likewise.
43829         Reported by Eric Blake.
43830
43831 2009-09-08  Jim Meyering  <meyering@redhat.com>
43832
43833         build: don't try to run autoheader if we don't use it
43834         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
43835         is not used in configure.ac.
43836
43837 2009-09-08  Eric Blake  <ebb9@byu.net>
43838
43839         euidaccess: fix compilation error
43840         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
43841
43842         rawmemchr: relax license
43843         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
43844         okay.
43845         Reported by Jim Meyering.
43846
43847         mkfifoat: new module
43848         * modules/mkfifoat: New file.
43849         * lib/mkfifoat.c: Likewise.
43850         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
43851         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43852         * modules/sys_stat (Makefile.am): Use them.
43853         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
43854         * MODULES.html.sh (File system functions): Mention module.
43855         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43856         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43857         * modules/mkfifoat-tests: New test.
43858         * tests/test-mkfifoat.c: Likewise.
43859
43860         strchrnul: relax license
43861         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
43862         okay.
43863         Reported by Jim Meyering.
43864
43865 2009-09-08  Eric Blake  <ebb9@byu.net>
43866
43867         fstatat: fix compilation on Solaris
43868         * lib/fstatat.c (includes): Add fcntl.h.
43869         Reported by Pádraig Brady.
43870
43871 2009-09-07  Eric Blake  <ebb9@byu.net>
43872
43873         rename: modernize replacement
43874         * modules/rename (Depends-on): Add stdio.
43875         (configure.ac): Declare witness.
43876         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
43877         stdio take care of replacement.
43878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43879         * modules/stdio (Makefile.am): Substitute them.
43880         * lib/stdio.in.h (rename): Declare replacement.
43881         * lib/rename.c (includes): Allow cross-compilation to non-windows
43882         machines.
43883         * doc/posix-functions/rename.texi (rename): Improve
43884         documentation.
43885
43886         stdio: sort witness names
43887         * modules/stdio (Makefile.am): Sort replacements.
43888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43889         * lib/stdio.in.h: Likewise.
43890
43891         getcwd: minor cleanups
43892         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
43893         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
43894
43895         openat: provide more convenience names
43896         * modules/faccessat (configure.ac): Add C witness.
43897         * lib/unistd.in.h (readlinkat): Fix typo.
43898         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
43899         convenience wrappers.
43900         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
43901         wrappers in syntax checks.
43902
43903 2009-09-06  Eric Blake  <ebb9@byu.net>
43904
43905         doc: fix comments in recent patches
43906         * lib/faccessat.c: Mention correct function.
43907         * lib/fchmodat.c: Likewise.
43908         * lib/fchownat.c: Likewise.
43909         * lib/symlinkat.c: Likewise.
43910         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
43911         constants.
43912
43913         faccessat, symlinkat: continue cleanup of previous patch
43914         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
43915         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43916         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
43917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
43918         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
43919         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
43920         set.
43921
43922 2009-09-06  Bruno Haible  <bruno@clisp.org>
43923
43924         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
43925         (fstatat): Declare if GNULIB_FSTATAT is set.
43926         (mkdirat): Declare if GNULIB_MKDIRAT is set.
43927         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
43928         (unlinkat): Declare if GNULIB_UNLINKAT is set.
43929         * modules/fcntl-h (Files): Remove m4/openat.m4.
43930         * modules/sys_stat (Files): Remove m4/openat.m4.
43931         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
43932         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
43933         * modules/unistd (Files): Remove m4/openat.m4.
43934         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
43935         GNULIB_OPENAT.
43936         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
43937         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
43938         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
43939         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
43940         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
43941         gl_OPENAT_DEFAULTS.
43942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
43943         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
43944         Don't require gl_OPENAT_DEFAULTS.
43945         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
43946         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
43947         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
43948         (gl_OPENAT_DEFAULTS): Remove macro.
43949
43950 2009-09-06  Bruno Haible  <bruno@clisp.org>
43951
43952         * modules/openat (configure.ac): Remove unneeded witness.
43953
43954 2009-09-06  Bruno Haible  <bruno@clisp.org>
43955
43956         Set errno to ENOSYS when a function is entirely unsupported.
43957         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
43958         EOPNOTSUPP.
43959         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43960         * modules/chown (Depends-on): Remove errno.
43961
43962 2009-09-06  Bruno Haible  <bruno@clisp.org>
43963
43964         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
43965
43966 2009-09-06  Bruno Haible  <bruno@clisp.org>
43967
43968         * lib/sys_stat.in.h: Fix preprocessor command indentation.
43969
43970 2009-09-06  Ben Pfaff  <blp@gnu.org>
43971             Bruno Haible  <bruno@clisp.org>
43972
43973         Work around a glibc bug in strtok_r.
43974         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
43975         Undefine if UNDEFINE_STRTOK_R is set.
43976         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43978         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43979         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43980         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43981         UNDEFINE_STRTOK_R.
43982         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43983
43984 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43985
43986         exclude: minor fix
43987         * lib/exclude.c: Include wctype.h
43988
43989 2009-09-06  Akim Demaille  <demaille@gostai.com>
43990
43991         bootstrap: improve error message
43992         * build-aux/bootstrap (find_tool): Upon failure, report the list
43993         of candidates.
43994         Honor the initial value of the envvar.
43995
43996 2009-09-05  Eric Blake  <ebb9@byu.net>
43997
43998         symlinkat: new module
43999         * modules/symlinkat: New file.
44000         * lib/symlinkat.c: Likewise.
44001         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44003         * modules/unistd (Makefile.am): Use them.
44004         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44005         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44006         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44007         * MODULES.html.sh (File system functions): Mention module.
44008         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44009         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44010         * modules/symlinkat-tests: New test.
44011         * tests/test-symlinkat.c: Likewise.
44012
44013         test-openat-safer: add more checks
44014         * tests/test-openat-safer.c (main): Check more code paths.
44015
44016 2009-09-05  Jim Meyering  <meyering@redhat.com>
44017
44018         syntax-check: detect unnecessary inclusion of openat.h
44019         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44020
44021 2009-09-05  Bruno Haible  <bruno@clisp.org>
44022
44023         Support towlower, towupper.
44024         * doc/posix-functions/towlower.texi: Mention module wctype.
44025         * doc/posix-functions/towupper.texi: Likewise.
44026         * lib/wctype.in.h (towlower, towupper): New functions.
44027         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44028         (ASSERT): New macro.
44029         (e): New variable.
44030         (main): Test also towlower, towupper. Test WEOF argument.
44031         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44032
44033 2009-09-05  Bruno Haible  <bruno@clisp.org>
44034
44035         Fix conversion behaviour when the input is invalid.
44036         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44037         mark occurring in first pass of indirect conversion.
44038         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44039         input.
44040         Found by clang's static analyzer.
44041
44042 2009-09-05  Bruno Haible  <bruno@clisp.org>
44043
44044         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44045         where direct conversion is possible.
44046
44047 2009-09-04  Eric Blake  <ebb9@byu.net>
44048
44049         openat: fail with ENOENT on empty name
44050         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44051         buffer.
44052
44053         link-follow: fix logic bug in prior patch
44054         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44055         reversed sense of yes and no in prior patch.  Avoid confusing
44056         compilation failure with desired semantics.
44057
44058         link-follow: accommodate mingw and cross-compilation
44059         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44060         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44061         cross-compilation results to -1, to make linkat easier to
44062         implement when cross-compiling.  Trivially support mingw.
44063         * modules/link-follow (configure.ac): Call new name.
44064         * NEWS: Mention this.
44065
44066 2009-09-03  Eric Blake  <ebb9@byu.net>
44067
44068         faccessat: compile replacement
44069         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44070         needed.
44071
44072         fts: fix compilation error
44073         * lib/fts.c (includes): Re-add "openat.h", for
44074         openat_needs_fchdir.
44075
44076         faccessat: new module
44077         * modules/faccessat: New file.
44078         * lib/faccessat.c: Likewise.
44079         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44081         * modules/unistd (Makefile.am): Use it.
44082         * lib/unistd.in.h (faccessat): Declare it.
44083         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44084         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44085         * MODULES.html.sh (File system functions): Mention it.
44086         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44087         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44088
44089         euidaccess: prefer POSIX over non-standard implementation
44090         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44091         * lib/euidaccess.c (euidaccess): Use it if available.
44092
44093         openat: make template easier to use
44094         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44095         AT_FUNC_F2 to be undefined.
44096         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44097         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44098         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44099         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44100         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44101         Likewise.
44102         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44103         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44104         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44105         Likewise.
44106
44107         openat: declare in POSIX headers
44108         * NEWS: Mention this.
44109         * modules/openat (configure.ac): Declare witnesses.
44110         (Depends-on): Add fcntl-h, sys_stat, unistd.
44111         (Include): Mention correct headers.
44112         * modules/fcntl-h (Depends-on): Add link-warning.
44113         (Files): Add openat.m4.
44114         (Makefile.am): Substitute witnesses.
44115         * modules/sys_stat (Files, Makefile.am): Likewise.
44116         * modules/unistd (Files, Makefile.am): Likewise.
44117         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44118         (gl_OPENAT_DEFAULTS): New macro.
44119         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44121         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44122         (SYS_STAT_H): Remove unused variable.
44123         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44124         * lib/fcntl--.h (includes): Remove unneeded header.
44125         * lib/openat-safer.c (includes): Likewise.
44126         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44127         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44128         appropriate headers.
44129         (__OPENAT_PREFIX): Delete.
44130         * lib/fcntl.in.h (openat): Provide declaration.
44131         (AT_FDCWD): Fix Solaris bug.
44132         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44133         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44134         * lib/fchmodat.c (includes):  Adjust to find declaration.
44135         * lib/fchownat.c (includes): Likewise.
44136         * lib/mkdirat.c (includes): Likewise.
44137         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44138         still visible.
44139
44140 2009-09-02  Eric Blake  <ebb9@byu.net>
44141
44142         errno: use consistently
44143         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44144         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44145         * lib/canonicalize.c (ELOOP): Likewise.
44146         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44147         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44148         * lib/lchown.c (EOPNOTSUPP): Likewise.
44149         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44150         * lib/savewd.c (ESTALE): Likewise.
44151         * lib/settime.c (ENOSYS): Likewise.
44152         * lib/utimens.c (ENOSYS): Likewise.
44153         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44154         * lib/chdir-safer.c (ELOOP): Likewise.
44155         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44156         * modules/c-stack (Depends-on): Add errno.
44157         * modules/canonicalize (Depends-on): Likewise.
44158         * modules/chdir-safer (Depends-on): Likewise.
44159         * modules/fdopendir (Depends-on): Likewise.
44160         * modules/inet_ntop (Depends-on): Likewise.
44161         * modules/inet_pton (Depends-on): Likewise.
44162         * modules/lchown (Depends-on): Likewise.
44163         * modules/openat (Depends-on): Likewise.
44164         * modules/savewd (Depends-on): Likewise.
44165         * modules/settime (Depends-on): Likewise.
44166         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44167
44168         fts: avoid leaking fds
44169         * modules/fts (Depends-on): Add cloexec.
44170         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44171         flag.
44172
44173         fts: make directory fds more robust
44174         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44175         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44176
44177         backupfile, chdir-long, fts, savedir: make safer
44178         * lib/backupfile.c (includes): Use "dirent--.h", since
44179         numbered_backup can write to stderr during readdir.
44180         * lib/savedir.c (includes): Likewise.
44181         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44182         emulation can write to stderr on failure.
44183         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44184         * lib/getcwd.c: Document why opendir_safer is unused.
44185         * lib/glob.c: Likewise.
44186         * lib/scandir.c: Likewise.
44187         * lib/openat-proc.c: Likewise, for open_safer.
44188         * modules/backupfile (Depends-on): Add dirent-safer.
44189         * modules/savedir (Depends-on): Likewise.
44190         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44191         * modules/chdir-long (Depends-on): Add openat-safer.
44192
44193         openat-safer: new module
44194         * modules/openat-safer: New file.
44195         * lib/openat-safer.c: Likewise.
44196         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44197         * lib/fcntl-safer.h (openat_safer): Declare.
44198         * lib/fcntl--.h (openat): Override.
44199         * MODULES.html.sh (File descriptor based I/O): Mention it.
44200         * lib/openat.h: Add double-inclusion guards.
44201         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44202         "fcntl--.h", so we can implement openat.
44203         * modules/openat-safer-tests: New test.
44204         * tests/test-openat-safer.c: New file.
44205
44206         dirent-safer: new module
44207         * modules/dirent-safer: New file.
44208         * lib/dirent--.h: Likewise.
44209         * lib/dirent-safer.h: Likewise.
44210         * lib/opendir-safer.c: Likewise.
44211         * m4/dirent-safer.m4: Likewise.
44212         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44213         * modules/dirent-safer-tests: New test.
44214         * tests/test-dirent-safer.c: New file.
44215         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44216
44217         fdopendir: optimize on mingw
44218         * lib/unistd.in.h (_gl_directory_name): New prototype.
44219         * lib/fchdir.c (_gl_directory_name): Implement it.
44220         (fchdir): Use it to simplify implementation.
44221         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44222         fchdir, when available, to avoid calling [f]chdir().
44223
44224         fdopendir: split into its own module
44225         * lib/openat.c (fdopendir): Move...
44226         * lib/fdopendir.c: ...into new file.
44227         * modules/fdopendir: New module.
44228         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44229         * modules/openat (Depends-on): Add fdopendir.
44230         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44231         fdopendir here.
44232         * modules/savedir (Depends-on): Only need fdopendir, not full
44233         openat.
44234         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44235         * lib/openat.h (fdopendir): Drop prototype.
44236         * lib/dirent.in.h (fdopendir): Provide prototype.
44237         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44238         * modules/dirent (Makefile.am): Substitute them.
44239         * MODULES.html.sh (File system functions): Mention it.
44240         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44241         * modules/fdopendir-tests: New file.
44242         * tests/test-fdopendir.c: Likewise.
44243
44244         fchdir: use more consistent macro convention
44245         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44246         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44247         REPLACE_FCHDIR, rather than relying on config.h macros.
44248         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44249         inside a single make-time REPLACE_FCHDIR block, rather than using
44250         the config.h FCHDIR_REPLACEMENT.
44251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44252         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44253         Manage fstat replacement.
44254         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44255         REPLACE_FCHDIR.
44256         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44257         (Makefile.am): Substitute REPLACE_FCHDIR.
44258         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44259         FCHDIR_REPLACEMENT.
44260         * lib/dup-safer.c (dup_safer): Likewise.
44261         * lib/dup2.c (rpl_dup2): Likewise.
44262         * lib/dup3.c (rpl_dup3): Likewise.
44263         * lib/open.c (rpl_open): Likewise.
44264
44265         fchdir: simplify error handling, and support dup3
44266         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44267         stdbool, malloc-posix, realloc-posix.
44268         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44269         (ensure_dirs_slot): Return false on allocation failure.
44270         (rpl_dup2): Delete.
44271         (_gl_register_dup): New function.
44272         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44273         (_gl_register_fd): Close fd on allocation failure.
44274         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44275         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44276         prototype.
44277         (rpl_dup2_fchdir): Delete prototype.
44278         * lib/open.c (open): Update caller.
44279         * lib/dup2.c (dup2): Track fchdir metadata.
44280         * lib/dup3.c (dup3): Likewise.
44281         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44283
44284 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44285
44286         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44287         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44288         don't pass arguments to AC_OUTPUT.
44289
44290 2009-09-02  Bruno Haible  <bruno@clisp.org>
44291
44292         * modules/mkdtemp (License): Relicense under LGPLv2+.
44293         Reported by Paolo Bonzini.
44294
44295 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44296
44297         Replace uses of obsolete autoconf macros in Jim's modules.
44298         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44299         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44300         can evoke a warning from autoconf when run with -Wobsolete
44301         enabled.  They were declared obsolete for good reasons (see
44302         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44303         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44304         should not continue using the deprecated macros.
44305         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44306         obsolete Autoconf macros with modern counterparts.
44307         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44308         * m4/dos.m4 (gl_AC_DOS): Likewise.
44309         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44310         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44311         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44312         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44313         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44314         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44315         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44316         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44317         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44318         Likewise.
44319         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44320         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44321         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44322         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44323         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44324         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44325
44326 2009-09-01  Eric Blake  <ebb9@byu.net>
44327
44328         fchdir: fix off-by-one bug in previous patch
44329         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44330         (_gl_unregister_fd): Delete useless if.
44331
44332 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44333
44334         maint.mk: sort the list of syntax-check rules
44335         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44336         easier to get a sense of progress when the rules are run sequentially
44337         and take a long time.
44338
44339 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44340
44341         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44342         * modules/netinet_in: Likewise.
44343         * modules/sys_file: Likewise.
44344         * modules/sys_ioctl: Likewise.
44345         * modules/sys_select: Likewise.
44346         * modules/sys_socket: Likewise.
44347         * modules/sys_stat: Likewise.
44348         * modules/sys_time: Likewise.
44349         * modules/sys_times: Likewise.
44350         * modules/sys_utsname: Likewise.
44351         * modules/sys_wait: Likewise.
44352
44353 2009-09-01  Jim Meyering  <meyering@redhat.com>
44354
44355         fts: help ensure that return values are not ignored
44356         * lib/fts_.h (__GNUC_PREREQ): Define.
44357         (__attribute_warn_unused_result__): Define.
44358         (fts_children, fts_close, fts_open, fts_read): Declare with
44359         __attribute_warn_unused_result__.
44360
44361         fts: fts_close now fails also when closing a dir file descriptor fails
44362         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44363         and propagate to caller, along with errno.
44364
44365         announce-gen: correct formatting in --help output
44366         * build-aux/announce-gen (usage): Move the one-line description in
44367         --help output "up", to where it belongs, just after Usage:.
44368
44369 2009-08-31  Eric Blake  <ebb9@byu.net>
44370
44371         fchdir: port to mingw
44372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44373         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44374         opened, then use a substitute.
44375         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44376         replacement.
44377         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44378         (_gl_register_fd): No need to check stat if open already filters
44379         all directories.
44380         (fchdir): Fix error condition to match POSIX.
44381         * modules/fchdir (Depends-on): Add sys_stat.
44382         * doc/posix-functions/open.texi (open): Document the limitation.
44383         * modules/fchdir-tests: New file.
44384         * tests/test-fchdir.c: Likewise.
44385
44386         canonicalize: allow cross-testing from cygwin to mingw
44387         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44388         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44389         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44390         Likewise.
44391         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44392         target does not support symlinks.
44393         * tests/test-canonicalize-lgpl.sh: Likewise.
44394
44395         chown: avoid compilation warning on mingw
44396         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44397         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44398         mingw.
44399         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44400         * modules/chown (Depends-on): Add errno.
44401
44402 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44403
44404         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44405         command.
44406
44407 2009-08-31  Jim Meyering  <meyering@redhat.com>
44408
44409         canonicalize: remove useless initialization
44410         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44411         initialization of local, "end".
44412
44413 2009-08-30  Bruno Haible  <bruno@clisp.org>
44414
44415         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44416         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44417         ENOSYS.
44418
44419 2009-08-30  Bruno Haible  <bruno@clisp.org>
44420
44421         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44422         /usr/xpg4/bin/tr when it exists.
44423         * tests/test-pipe-filter-gi1.sh: Likewise.
44424
44425 2009-08-30  Bruno Haible  <bruno@clisp.org>
44426
44427         Work around deficient /usr/bin/id program on Solaris.
44428         * tests/test-file-has-acl.sh (ID): New variable.
44429         * tests/test-set-mode-acl.sh (ID): Likewise.
44430         * tests/test-copy-acl.sh (ID): Likewise.
44431         * tests/test-copy-file.sh (ID): Likewise.
44432
44433 2009-08-30  Bruno Haible  <bruno@clisp.org>
44434
44435         New module 'xstriconveh'.
44436         * lib/xstriconveh.h: New file.
44437         * lib/xstriconveh.c: New file.
44438         * modules/xstriconveh: New file.
44439
44440 2009-08-30  Bruno Haible  <bruno@clisp.org>
44441
44442         Make it easier to use mem_cd_iconveh.
44443         * lib/striconveh.h (iconveh_t): New type.
44444         (iconveh_open, iconveh_close): New declarations.
44445         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44446         with a single 'const iconveh_t *' argument.
44447         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44448         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44449         with a single 'const iconveh_t *' argument.
44450         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44451         * tests/test-striconveh.c (main): Update.
44452         * NEWS: Mention the change.
44453
44454 2009-08-30  Bruno Haible  <bruno@clisp.org>
44455
44456         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44457         problem.
44458
44459 2009-08-30  Bruno Haible  <bruno@clisp.org>
44460
44461         Work around iconv_open problem on Solaris.
44462         * lib/iconv_open-solaris.gperf: New file.
44463         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44464         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44465         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44466         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44467         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44468         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44469
44470 2009-08-29  Jim Meyering  <meyering@redhat.com>
44471
44472         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44473         * top/maint.mk (cvs-check): Remove target; it was just an alias
44474         to the better-named vc-diff-check.
44475         (maintainer-distcheck): Remove rule.  It was used only from
44476         the (alpha/beta/major) target, and all of its commands but one
44477         were coreutils-specific.
44478         (vc-dist): Remove rule.
44479         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44480         Run vc-diff-check, not vc-dist.
44481         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44482
44483 2009-08-27  Bruno Haible  <bruno@clisp.org>
44484
44485         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44486         of 0.
44487
44488 2009-08-27  Bruno Haible  <bruno@clisp.org>
44489
44490         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44491         compilers.
44492         * doc/func.texi: Document the SunPRO C bug.
44493
44494 2009-08-27  Bruno Haible  <bruno@clisp.org>
44495
44496         Fix link error on Solaris.
44497         * tests/test-parse-duration.c (xstrdup): Remove function.
44498
44499 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44500
44501         ignore-value: handle pointer types, too
44502         * lib/ignore-value.h (__attribute__): Remove definition.
44503         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44504         of a more concise and more-often effective "(void) i" statement.
44505         (ignore_ptr): New function to suppress warnings from functions that
44506         return pointers, and to make it explicit that one function doesn't
44507         handle all cases.
44508
44509 2009-08-25  Bruno Haible  <bruno@clisp.org>
44510
44511         dup2: work around a Linux bug.
44512         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44513         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44514         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44515         Reported by Simon Josefsson.
44516
44517 2009-08-25  Jim Meyering  <meyering@redhat.com>
44518
44519         libguestfs uses gnulib
44520         * users.txt: Add libguestfs.
44521
44522 2009-08-24  Eric Blake  <ebb9@byu.net>
44523
44524         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44525         * lib/pipe2.c (includes): Add binary-io.h.
44526         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44527
44528 2009-08-24  Bruno Haible  <bruno@clisp.org>
44529
44530         Tolerate declared but missing accept4 syscall.
44531         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44532         available.
44533         * lib/sys_socket.in.h (accept4): If the function is already present,
44534         override it.
44535         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44536         * modules/accept4 (Makefile.am): Compile accept4.c always.
44537         Reported by Paolo Bonzini and Eric Blake.
44538
44539 2009-08-23  Bruno Haible  <bruno@clisp.org>
44540
44541         New module 'accept4'.
44542         * lib/sys_socket.in.h (accept4): New declaration.
44543         * lib/accept4.c: New file.
44544         * m4/accept4.m4: New file.
44545         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44546         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44547         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44548         HAVE_ACCEPT4.
44549         * modules/accept4: New file.
44550         * doc/glibc-functions/accept4.texi: Mention the new module.
44551
44552 2009-08-24  Jim Meyering  <meyering@redhat.com>
44553
44554         progname: also set global program_invocation_name, when possible
44555         Before this change, a libtool-enabled program that calls glibc's
44556         error function would report the program name as
44557         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44558         * modules/progname (configure.ac): Check for a declaration of
44559         program_invocation_name.
44560         * lib/progname.c:  Include <errno.h>.
44561         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44562         Set program_invocation_name.
44563
44564 2009-08-23  Bruno Haible  <bruno@clisp.org>
44565
44566         * lib/dup3.c: Include <string.h>.
44567
44568 2009-08-23  Bruno Haible  <bruno@clisp.org>
44569
44570         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44571         * lib/pipe2.c (pipe2): Likewise.
44572         Suggested by Eric Blake.
44573
44574 2009-08-23  Bruno Haible  <bruno@clisp.org>
44575
44576         Tolerate declared but missing dup3 syscall.
44577         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44578         * lib/unistd.in.h (dup3): If the function is already present,
44579         override it.
44580         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44581         * modules/dup3 (Makefile.am): Compile dup3.c always.
44582         Reported by Paolo Bonzini.
44583
44584 2009-08-23  Bruno Haible  <bruno@clisp.org>
44585
44586         Tolerate declared but missing pipe2 syscall.
44587         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44588         available.
44589         * lib/unistd.in.h (pipe2): If the function is already present,
44590         override it.
44591         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44592         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44593         Reported by Paolo Bonzini.
44594
44595 2009-08-23  Bruno Haible  <bruno@clisp.org>
44596
44597         * lib/pipe2.c (pipe2): Move #ifs inside function.
44598
44599 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44600
44601         quotearg: document limitations of quote_these_too
44602         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44603         those limitations are created.
44604         * lib/quotearg.h (set_char_quoting): Document that digits and
44605         letters that are special after backslash are not permitted.
44606         (quotearg_char): Cross-reference set_char_quoting documentation.
44607
44608 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44609
44610         quotearg: implement custom_quoting_style
44611         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44612         right_quote fields.
44613         (set_custom_quoting): New public function.
44614         (quotearg_buffer_restyled): Add left_quote and right_quote
44615         arguments, handle them very much like locale quoting, and update
44616         all uses.
44617         (quotearg_n_custom): New public function.
44618         (quotearg_n_custom_mem): New public function.
44619         (quotearg_custom): New public function.
44620         (quotearg_custom_mem): New public function.
44621         * lib/quotearg.h: Prototype and document new public functions.
44622         (enum quoting_style): For escape_quoting_style and
44623         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44624         ignored even though they're otherwise like c_quoting_style.
44625         Add custom_quoting_style member and document with comparison to
44626         clocale_quoting_style.
44627         * tests/test-quotearg.c (custom_quotes): New array.
44628         (custom_results): New array.
44629         (main): Extend to test custom quoting.
44630
44631 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44632
44633         quotearg: fix right quote escaping when it's in quote_these_too
44634         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44635         quote, be sure to prepend only one backslash.
44636         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44637         (main): Test it.
44638
44639 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44640
44641         quotearg-tests: test escaping of embedded locale quotes
44642         * tests/test-quotearg.c (struct result_strings): Add member for
44643         new input.
44644         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44645         (inputs): Add new input.
44646         (results_g): Add expected results.
44647         (flag_results): Likewise.
44648         (locale_results): Likewise.
44649         (compare_strings): Check those.
44650
44651 2009-08-23  Bruno Haible  <bruno@clisp.org>
44652
44653         Tests for module 'dup3'.
44654         * modules/dup3-tests: New file.
44655         * tests/test-dup3.c: New file.
44656
44657         New module 'dup3'.
44658         * lib/unistd.in.h (dup3): New declaration.
44659         * lib/dup3.c: New file.
44660         * m4/dup3.m4: New file.
44661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44662         HAVE_DUP3.
44663         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44664         * modules/dup3: New file.
44665         * doc/glibc-functions/dup3.texi: Mention the new module.
44666
44667 2009-08-23  Bruno Haible  <bruno@clisp.org>
44668
44669         Tweak the dup2 test.
44670         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44671         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44672         the test file is still empty. Fix argument order of lseek.
44673
44674 2009-08-23  Bruno Haible  <bruno@clisp.org>
44675
44676         Avoid test link errors when the modules getopt-gnu, gettext are used.
44677         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44679
44680 2009-08-23  Bruno Haible  <bruno@clisp.org>
44681
44682         Fix getdtablesize() on mingw.
44683         * lib/getdtablesize.c (getdtablesize): Implement differently.
44684         * lib/unistd.in.h (getdtablesize): Improve comment.
44685
44686 2009-08-23  Bruno Haible  <bruno@clisp.org>
44687
44688         New module 'mkostemp'.
44689         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44690         * lib/stdlib.in.h (mksotemp): New declaration.
44691         * lib/mkostemp.c: New file, from glibc with modifications.
44692         * lib/tempname.h (GT_FILE): Remove outdated comment.
44693         (gen_tempname): Add flags argument.
44694         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44695         (__GT_FILE): Map to 1.
44696         (small_open, large_open): Remove macros.
44697         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44698         * lib/mkstemp.c (mkstemp): Update.
44699         * lib/mkdtemp.c (mkdtemp): Likewise.
44700         * m4/mkostemp.m4: New file.
44701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44702         HAVE_MKOSTEMP.
44703         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44704         HAVE_MKOSTEMP.
44705         * modules/mkostemp: New file, based on modules/mkstemp.
44706         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44707         * NEWS: Mention the change.
44708
44709 2009-08-23  Bruno Haible  <bruno@clisp.org>
44710
44711         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44712         Reported by Eric Blake.
44713
44714 2009-08-23  Bruno Haible  <bruno@clisp.org>
44715
44716         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44717         Reported by Eric Blake.
44718
44719 2009-08-23  Bruno Haible  <bruno@clisp.org>
44720
44721         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44722         * modules/pipe2 (Depends-on): Likewise.
44723
44724 2009-08-23  Eric Blake  <ebb9@byu.net>
44725
44726         fcntl-h: add O_TTY_INIT support
44727         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44728         * tests/test-fcntl-h.c (o): Test it.
44729         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44730
44731         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44732         * modules/fcntl: Move <fcntl.h> header replacement...
44733         * modules/fcntl-h: ...to new name, so as not to collide with
44734         like-named function.
44735         * tests/test-fcntl.c: Rename...
44736         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44737         * modules/fcntl-tests: Rename...
44738         * modules/fcntl-h-tests: ...to this.  Update test file name.
44739         * modules/chdir-long (Depends-on): Update clients.
44740         * modules/chdir-safer (Depends-on): Likewise.
44741         * modules/fcntl-safer (Depends-on): Likewise.
44742         * modules/fts (Depends-on): Likewise.
44743         * modules/mkancesdirs (Depends-on): Likewise.
44744         * modules/mkdir-p (Depends-on): Likewise.
44745         * modules/open (Depends-on): Likewise.
44746         * modules/savewd (Depends-on): Likewise.
44747         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44748         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44749
44750 2009-08-22  Bruno Haible  <bruno@clisp.org>
44751
44752         * modules/binary-io (License): Relicense under LGPL.
44753         * modules/pipe2 (License): Likewise.
44754
44755 2009-08-22  Bruno Haible  <bruno@clisp.org>
44756
44757         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44758         return value.
44759         * lib/pipe-filter-gi.c (filter_init): Likewise.
44760         Reported by Eric Blake.
44761
44762 2009-08-22  Bruno Haible  <bruno@clisp.org>
44763
44764         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44765         * modules/pipe (Depends-on): Add pipe2.
44766
44767 2009-08-22  Bruno Haible  <bruno@clisp.org>
44768
44769         Tests for module 'pipe2'.
44770         * modules/pipe2-tests: New file.
44771         * tests/test-pipe2.c: New file.
44772
44773         New module 'pipe2'.
44774         * lib/unistd.in.h (pipe2): New declaration.
44775         * lib/pipe2.c: New file.
44776         * m4/pipe2.m4: New file.
44777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44778         HAVE_PIPE2.
44779         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44780         * modules/pipe2: New file.
44781         * doc/glibc-functions/pipe2.texi: Mention the new module.
44782
44783 2009-08-22  Bruno Haible  <bruno@clisp.org>
44784
44785         Reference some new glibc functions.
44786         * doc/glibc-functions/accept4.texi: New file.
44787         * doc/glibc-functions/dup3.texi: New file.
44788         * doc/glibc-functions/mkostemp.texi: New file.
44789         * doc/glibc-functions/pipe2.texi: New file.
44790         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44791         (Glibc sys/socket.h): Refer to accept4.
44792         (Glibc unistd.h): Refer to dup3, pipe2.
44793         Reported by Eric Blake.
44794
44795 2009-08-22  Jim Meyering  <meyering@redhat.com>
44796             Bruno Haible  <bruno@clisp.org>
44797
44798         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44799         This makes it so packages using automake-1.11's silent-rules option
44800         can print e.g., a single "GEN    configmake.h" line, rather than
44801         the 30+ statements that perform the job.  If you want to see the
44802         actual commands, you can still run "make V=1".
44803         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44804         so that make output is abbreviated when those variables are defined
44805         appropriately.
44806         * modules/argz: Likewise.
44807         * modules/arpa_inet: Likewise.
44808         * modules/byteswap: Likewise.
44809         * modules/configmake: Likewise.
44810         * modules/dirent: Likewise.
44811         * modules/errno: Likewise.
44812         * modules/fcntl: Likewise.
44813         * modules/float: Likewise.
44814         * modules/fnmatch: Likewise.
44815         * modules/getopt-posix: Likewise.
44816         * modules/glob: Likewise.
44817         * modules/iconv_open: Likewise.
44818         * modules/inttypes: Likewise.
44819         * modules/localcharset: Likewise.
44820         * modules/locale: Likewise.
44821         * modules/math: Likewise.
44822         * modules/netdb: Likewise.
44823         * modules/netinet_in: Likewise.
44824         * modules/poll: Likewise.
44825         * modules/posix_spawnp-tests: Likewise.
44826         * modules/sched: Likewise.
44827         * modules/search: Likewise.
44828         * modules/selinux-h: Likewise.
44829         * modules/signal: Likewise.
44830         * modules/spawn: Likewise.
44831         * modules/stdarg: Likewise.
44832         * modules/stdbool: Likewise.
44833         * modules/stddef: Likewise.
44834         * modules/stdint: Likewise.
44835         * modules/stdio: Likewise.
44836         * modules/stdlib: Likewise.
44837         * modules/string: Likewise.
44838         * modules/strings: Likewise.
44839         * modules/sys_file: Likewise.
44840         * modules/sys_ioctl: Likewise.
44841         * modules/sys_select: Likewise.
44842         * modules/sys_socket: Likewise.
44843         * modules/sys_stat: Likewise.
44844         * modules/sys_time: Likewise.
44845         * modules/sys_times: Likewise.
44846         * modules/sys_utsname: Likewise.
44847         * modules/sys_wait: Likewise.
44848         * modules/sysexits: Likewise.
44849         * modules/time: Likewise.
44850         * modules/unistd: Likewise.
44851         * modules/wchar: Likewise.
44852         * modules/wctype: Likewise.
44853
44854 2009-08-22  Jim Meyering  <meyering@redhat.com>
44855
44856         announce-gen: detect write failure
44857         * build-aux/announce-gen: Add Coda at end.
44858         Remove equivalent-but-more-verbose block at top.
44859
44860 2009-08-19  Akim Demaille  <demaille@gostai.com>
44861
44862         bootstrap: --help to stdout.
44863         * bootstrap (usage): Don't send --help to stderr.
44864         Use a here doc instead of a long string.
44865
44866 2009-08-21  Eric Blake  <ebb9@byu.net>
44867
44868         test-popen-safer: split from test-popen
44869         * tests/test-popen.c (main): Move...
44870         * tests/test-popen.h: ...into new file.
44871         * tests/test-popen-safer2.c: New file.
44872         * modules/popen-tests (Files): Add test-popen.h.
44873         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
44874         Suggested by Bruno Haible.
44875
44876         test-fcntl-safer: split from test-open
44877         * tests/test-open.c (main): Move...
44878         * tests/test-open.h: ...into new file.
44879         * tests/test-fcntl-safer.c: New file.
44880         * modules/open-tests (Files): Add test-open.h.
44881         * modules/fcntl-safer-tests: New file.
44882         Suggested by Bruno Haible.
44883
44884         test-fopen-safer: split from test-fopen
44885         * tests/test-fopen.c (main): Move...
44886         * tests/test-fopen.h: ...into new file.
44887         * tests/test-fopen-safer.c: New file.
44888         * modules/fopen-tests (Files): Add test-fopen.h.
44889         * modules/fopen-safer-tests: New file.
44890         Suggested by Bruno Haible.
44891
44892 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44893
44894         popen-safer: test O_CLOEXEC at run-time.
44895         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
44896
44897 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44898
44899         fcntl: move more flags to the header
44900         * lib/cloexec.c: Do not define FD_CLOEXEC here.
44901         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
44902         * lib/fcntl.in.h: Do both things here.
44903
44904 2009-08-21  Jim Meyering  <meyering@redhat.com>
44905
44906         consistently remove $@-t before redirecting to it
44907         * modules/argz: Remove $@-t and $@ before redirecting to the former.
44908         * modules/alloca-opt: Likewise.
44909         * modules/byteswap: Likewise.
44910         * modules/fnmatch: Likewise.
44911         * modules/getopt-posix: Likewise.
44912         * modules/glob: Likewise.
44913         * modules/poll: Likewise.
44914         * modules/posix_spawnp-tests: Likewise.
44915         * modules/sys_socket: Likewise.
44916         * modules/sysexits: Likewise.
44917
44918 2009-08-21  Eric Blake  <ebb9@byu.net>
44919
44920         popen: simplify access to original popen
44921         * lib/popen.c (rpl_popen): No need to worry about popen being a
44922         macro.
44923         Reported by Bruno Haible.
44924
44925 2009-08-20  Eric Blake  <ebb9@byu.net>
44926
44927         build: avoid some compiler warnings
44928         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
44929         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
44930         type.
44931         (new_exclude_segment, excluded_file_pattern_p)
44932         (excluded_file_name_p): Reduce scope.
44933         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
44934         old-style declaration.
44935
44936 2009-08-20  Simon Josefsson  <simon@josefsson.org>
44937
44938         * tests/test-exclude1.sh: Handle Windows EOL.
44939         * tests/test-exclude2.sh: Likewise.
44940         * tests/test-exclude3.sh: Likewise.
44941         * tests/test-exclude4.sh: Likewise.
44942         * tests/test-exclude5.sh: Likewise.
44943         * tests/test-exclude6.sh: Likewise.
44944         * tests/test-exclude7.sh: Likewise.
44945
44946 2009-08-19  Akim Demaille  <demaille@gostai.com>
44947
44948         bootstrap: find sha1sum when named gsha1sum.
44949         * bootstrap (find_tool): New.
44950         ($SHA1SUM): New.
44951         Use it.
44952
44953 2009-08-20  Jim Meyering  <meyering@redhat.com>
44954
44955         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
44956         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
44957         expression that converts "." in a file name to "\." in the resulting
44958         regexp.  Start with a dummy statement, so that prior shell variable
44959         definitions are expanded portably.  Reported by Simon Josefsson.
44960
44961 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
44962
44963         Fix polling for writeability of a screen buffer.
44964         * lib/poll.c: Distinguish input and screen buffers for the
44965         Win32 implementation.
44966         * lib/select.c: Likewise.
44967
44968 2009-08-19  Eric Blake  <ebb9@byu.net>
44969
44970         popen-safer: prevent popen from clobbering std descriptors
44971         * modules/popen-safer: New file.
44972         * lib/popen-safer.c: Likewise.
44973         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
44974         * lib/stdio--.h (popen): Provide override.
44975         * lib/stdio-safer.h (popen_safer): Provide declaration.
44976         * tests/test-popen.c (includes): Partially test this.
44977         * modules/popen-safer-tests: New file, for more tests.
44978         * tests/test-popen-safer.c: Likewise.
44979         * MODULES.html.sh (file stream based Input/Output): Mention it.
44980
44981         tests: test some of the *-safer modules
44982         * modules/fopen-safer (Depends-on): Add fopen.
44983         * modules/fcntl-safer (Depends-on): Add fcntl.
44984         * modules/stdlib-safer (Depends-on): Add stdlib.
44985         (configure.ac): Set indicator.
44986         * modules/unistd-safer (configure.ac): Likewise.
44987         * modules/tmpfile-safer (configure.ac): Likewise.
44988         (Depends-on): Add tmpfile.
44989         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44990         active.
44991         * tests/test-fopen.c (includes): Test safer versions when they are
44992         in use.
44993         * tests/test-open.c (includes): Likewise.
44994
44995         popen: fix cygwin 1.5 bug when stdin closed
44996         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44997         * modules/popen: New file.
44998         * modules/popen-tests: Likewise.
44999         * tests/test-popen.c: Likewise.
45000         * m4/popen.m4: Likewise.
45001         * lib/popen.c: Likewise.
45002         * lib/stdio.in.h (popen): New declaration.
45003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45004         * modules/stdio (Makefile.am): Likewise.
45005         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45006
45007 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45008
45009         maint.mk: give full control over update-copyright exclusions
45010         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45011         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45012         (update-copyright): Don't force inclusion of top-level
45013         ChangeLog.  Don't force exclusion of all COPYING files, but make
45014         them the default exclusion instead.
45015
45016 2009-08-16  Bruno Haible  <bruno@clisp.org>
45017
45018         Fix test failures on Solaris 10.
45019         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45020         tests when Solaris iconv() is used.
45021         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45022         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45023         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45024         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45025         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45026
45027 2009-08-16  Bruno Haible  <bruno@clisp.org>
45028
45029         Fix test failures on Solaris 10.
45030         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45031         'tr' program and pass it as first argument.
45032         * tests/test-pipe-filter-gi1.sh: Likewise.
45033         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45034         program as first argument.
45035         * tests/test-pipe-filter-gi1.c (main): Likewise.
45036
45037 2009-08-16  Eric Blake  <ebb9@byu.net>
45038
45039         fpurge: fix previous commits
45040         * modules/fpurge (Makefile.am): Make replacement conditional,
45041         partially reverting 2007-04-29 change; missed in previous
45042         attempt.
45043         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45044         is missing.
45045
45046 2009-08-16  Bruno Haible  <bruno@clisp.org>
45047
45048         Clarify fpurge's effect on the file position.
45049         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45050         * tests/test-fpurge.c (main): Make a second pass for checking the file
45051         position.
45052
45053 2009-08-16  Bruno Haible  <bruno@clisp.org>
45054
45055         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45056         declaration of fpurge is missing.
45057         * tests/test-fpurge.c (main): Check that the file has not more contents
45058         than expected. Close the file before removing it.
45059
45060 2009-08-15  Eric Blake  <ebb9@byu.net>
45061
45062         fpurge: don't wrap working cygwin implementation
45063         * lib/fpurge.c (fpurge): Fix comment typo.
45064         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45065         1.7 to avoid replacement.
45066         * tests/test-fpurge.c (main): Enhance test.
45067
45068 2009-08-15  Eric Blake  <ebb9@byu.net>
45069         and Jim Meyering  <meyering@redhat.com>
45070
45071         test-update-copyright: skip if perl is insufficient
45072         * tests/test-update-copyright.sh: Failure to run maintainer tool
45073         should not cause testsuite failure on cygwin 1.5.
45074
45075 2009-08-14  Eric Blake  <ebb9@byu.net>
45076
45077         doc: mention more functions added in cygwin 1.7.0
45078         * doc/posix-headers/limits.texi (limits.h): Update for recent
45079         cygwin additions.
45080         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45081         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45082         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45083         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45084         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45085
45086 2009-08-14  Eric Blake  <ebb9@byu.net>
45087
45088         maint.mk: simplify update-copyright rule
45089         * top/maint.mk (update-copyright-local): Delete, and document how
45090         to do it in cfg.mk instead.
45091         (update-copyright-exclude-regexp): Delete, and document how to do
45092         it in .x-update-copyright instead.
45093         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45094         exclude ChangeLog.
45095
45096 2009-08-14  Bruno Haible  <bruno@clisp.org>
45097
45098         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45099
45100 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45101
45102         maint.mk: support update-copyright-env
45103         * top/maint.mk (update-copyright-env): Define place-holder.
45104         (update-copyright): Expand $(update-copyright-env) before
45105         invoking update-copyright.
45106
45107 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45108
45109         update-copyright: implement forced reformatting
45110         * build-aux/update-copyright: Implement and document
45111         UPDATE_COPYRIGHT_FORCE.
45112         * tests/test-update-copyright.sh: Test it.
45113
45114 2009-08-14  Eric Blake  <ebb9@byu.net>
45115         and Bruno Haible  <bruno@clisp.org>
45116
45117         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45118         * tests/test-locale.c: Revert previous patch related to NULL.
45119         * tests/test-stdio.c: Likewise.
45120         * tests/test-stdlib.c: Likewise.
45121         * tests/test-string.c: Likewise.
45122         * tests/test-unistd.c: Likewise.
45123         * modules/time-tests (Depends-on): Add verify.
45124         * modules/wchar-tests (Depends-on): Likewise.
45125         * tests/test-time.c: Test for NULL compliance.
45126         * tests/test-wchar.c: Likewise.
45127         * modules/locale (Depends-on): Add stddef.
45128         * modules/stdio (Depends-on): Likewise.
45129         * modules/stdlib (Depends-on): Likewise.
45130         * modules/string (Depends-on): Likewise.
45131         * modules/time (Depends-on): Likewise.
45132         * modules/unistd (Depends-on): Likewise.
45133         * modules/wchar (Depends-on): Likewise.
45134         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45135         * lib/stdlib.in.h (includes): Likewise.
45136         * lib/string.in.h (includes): Likewise.
45137         * lib/time.in.h (includes): Likewise.
45138         * lib/unistd.in.h (includes): Likewise.
45139         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45140         replaced.
45141         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45142         * m4/stddef_h.m4: New file.
45143         * modules/stddef: Likewise.
45144         * lib/stddef.in.h: Likewise.
45145         * modules/stddef-tests: Likewise.
45146         * tests/test-stddef.c: Likewise.
45147         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45148         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45149         * doc/posix-headers/locale.texi (locale.h): Likewise.
45150         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45151         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45152         * doc/posix-headers/string.texi (string.h): Likewise.
45153         * doc/posix-headers/time.texi (time.h): Likewise.
45154         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45155         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45156
45157 2009-08-14  Eric Blake  <ebb9@byu.net>
45158
45159         doc: improve git diff of texinfo files
45160         * .gitattributes: Add rule for *.texi files, with hint on how to
45161         use it.
45162         Copied from m4, and based on a report by Bruno Haible.
45163
45164 2009-08-14  Bruno Haible  <bruno@clisp.org>
45165
45166         Disable multithread support by default on Cygwin 1.5.x for real.
45167         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45168
45169 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45170
45171         update-copyright: much ado about intervals
45172         * build-aux/update-copyright: Implement and document
45173         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45174         of copyright year intervals.
45175         Also, document UPDATE_COPYRIGHT_YEAR.
45176         * tests/test-update-copyright.sh: Test it.
45177
45178         update-copyright: convert 2-digit to 4-digit years
45179         * build-aux/update-copyright: Implement and document.
45180         * tests/test-update-copyright.sh: Update.
45181
45182 2009-08-14  Jim Meyering  <meyering@redhat.com>
45183
45184         test-exclude: avoid coreutils "make check" failure
45185         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45186         just as in test-argmatch.c.
45187
45188 2009-08-13  Eric Blake  <ebb9@byu.net>
45189
45190         test-dup2: fix bad assumption
45191         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45192         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45193
45194         test-version-etc: fix CRLF portability issue
45195         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45196         recognize \r.
45197         * tests/test-argp-version-etc-1.sh: Likewise.
45198
45199         getopt: update client modules
45200         * modules/argp (Depends-on): Use getopt-gnu.
45201         * modules/git-merge-changelog (Depends-on): Likewise.
45202         * modules/long-options (Depends-on): Likewise.
45203         * modules/xstrtol (Depends-on): Likewise.
45204
45205 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45206
45207         * tests/test-version-etc.sh: Don't fail on different
45208         project/version.  Don't fail on CRLF differences.  Rewrite to use
45209         multiple -e instead of multiple sed forks, suggested by Eric Blake
45210         <ebb9@byu.net>.
45211         * tests/test-argp-version-etc-1.sh: Likewise.
45212
45213 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45214
45215         * tests/test-version-etc.sh: Don't fail on different
45216         project/version.
45217
45218 2009-08-12  Bruno Haible  <bruno@clisp.org>
45219
45220         Tests for modules 'getopt-posix', 'getopt-gnu'.
45221         * modules/getopt-posix-tests: New file.
45222         * tests/test-getopt.c: New file.
45223         * tests/test-getopt.h: New file.
45224         * tests/test-getopt_long.h: New file.
45225
45226         New modules 'getopt-posix', 'getopt-gnu'.
45227         * modules/getopt-gnu: New file, renamed from modules/getopt.
45228         * modules/getopt-posix: New file.
45229         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45230         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45231         (gl_GETOPT): Remove macro.
45232         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45233         Disable the test against BSD systems that declare optreset. Test
45234         against mingw bug. Test against lack of support of optional arguments
45235         on many platforms.
45236         * doc/glibc-headers/getopt.texi: Update module name and list of
45237         relevant platforms.
45238         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45239         'getopt-gnu' and more portability problems.
45240         * NEWS: Mention the changes.
45241
45242 2009-08-12  Bruno Haible  <bruno@clisp.org>
45243
45244         Ensure that optarg etc. get declared by <unistd.h>.
45245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45246         AC_USE_SYSTEM_EXTENSIONS.
45247         * modules/getopt (Depends-on): Add 'extensions'.
45248
45249 2009-08-12  Bruno Haible  <bruno@clisp.org>
45250
45251         Avoid test link errors.
45252         * modules/pipe-filter-ii-tests (Makefile.am): Define
45253         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45254         * modules/pipe-filter-gi-tests (Makefile.am): Define
45255         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45257
45258 2009-08-12  Bruno Haible  <bruno@clisp.org>
45259
45260         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45261         gl_GETOPT_SUBSTITUTE before.
45262         (gl_GETOPT): Use it.
45263         * m4/argp.m4 (gl_ARGP): Update.
45264         Reported by Sergey Poznyakoff.
45265
45266         * m4/getopt.m4: Reorder macros.
45267         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45268         (gl_GETOPT_SUBSTITUTE): Remove macro.
45269
45270 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45271
45272         Minor improvement in gitlog-to-changelog
45273
45274         * build-aux/gitlog-to-changelog: New option `--format' makes
45275         output format string configurable.
45276
45277 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45278
45279         Optimize exclude: use hash tables for non-wildcard patterns.
45280
45281         * lib/exclude.c: Include hash.h and mbuiter.h
45282         (struct exclude_pattern, exclude_segment): New data types.
45283         (struct exclude): Rewrite.
45284         (fnmatch_pattern_has_wildcards): New function.
45285         (new_exclude_segment, free_exclude_segment): New functions.
45286         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45287         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45288         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45289         * modules/exclude: Depend on hash and mbuiter.
45290
45291         * modules/exclude-tests: New file.
45292         * tests/test-exclude.c: New file.
45293         * tests/test-exclude1.sh: New file.
45294         * tests/test-exclude2.sh: New file.
45295         * tests/test-exclude3.sh: New file.
45296         * tests/test-exclude4.sh: New file.
45297         * tests/test-exclude5.sh: New file.
45298         * tests/test-exclude6.sh: New file.
45299         * tests/test-exclude7.sh: New file.
45300
45301 2009-08-12  Bruno Haible  <bruno@clisp.org>
45302
45303         Ensure that getopt() gets declared by <unistd.h>.
45304         * lib/unistd.in.h: Conditionally include getopt.h.
45305         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45306         Set GNULIB_UNISTD_H_GETOPT.
45307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45308         GNULIB_UNISTD_H_GETOPT.
45309         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45310
45311 2009-08-12  Bruno Haible  <bruno@clisp.org>
45312
45313         Clarify logic.
45314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45315         gl_replace_getopt instead of GETOPT_H.
45316
45317 2009-08-12  Bruno Haible  <bruno@clisp.org>
45318
45319         * m4/getopt.m4: Add comments.
45320
45321 2009-08-12  Bruno Haible  <bruno@clisp.org>
45322
45323         Disable multithread support by default on Cygwin 1.5.x.
45324         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45325         set gl_use_threads=no if not specified otherwise.
45326
45327 2009-08-11  Bruno Haible  <bruno@clisp.org>
45328
45329         Avoid compilation error on NetBSD 5.0.
45330         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45331         * tests/test-stdio.c: Likewise.
45332         * tests/test-stdlib.c: Likewise.
45333         * tests/test-string.c: Likewise.
45334         * tests/test-unistd.c: Likewise.
45335         Reported by Greg Troxel <gdt@ir.bbn.com>
45336         at <https://savannah.gnu.org/support/?106973>.
45337
45338 2009-08-11  Bruno Haible  <bruno@clisp.org>
45339
45340         * modules/dup2-tests (Depends-on): Remove close.
45341
45342         Undo 2009-07-19 commit.
45343         * modules/acl-tests (Depends-on): Remove close.
45344         * modules/binary-io-tests (Depends-on): Likewise.
45345         * modules/closein-tests (Depends-on): Likewise.
45346         * modules/flock-tests (Depends-on): Likewise.
45347         * modules/fsync-tests (Depends-on): Likewise.
45348         * modules/lseek-tests (Depends-on): Likewise.
45349         * modules/pipe-tests (Depends-on): Likewise.
45350         * modules/posix_spawn-tests (Depends-on): Likewise.
45351         * modules/posix_spawnp-tests (Depends-on): Likewise.
45352         * modules/stat-time-tests (Depends-on): Likewise.
45353         * modules/yesno-tests (Depends-on): Likewise.
45354
45355 2009-08-10  Bruno Haible  <bruno@clisp.org>
45356
45357         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45358
45359 2009-08-10  Bruno Haible  <bruno@clisp.org>
45360
45361         Fix a gcc warning.
45362         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45363
45364 2009-08-10  Bruno Haible  <bruno@clisp.org>
45365
45366         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45367         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45368         not only the first time.
45369         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45370         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45371         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45372         is 1, not only the the first time.
45373
45374 2009-08-10  Bruno Haible  <bruno@clisp.org>
45375
45376         Make it possible to use module 'gethostname' without module 'close'.
45377         * lib/unistd.in.h (close): Evoke a link error only if
45378         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45380         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45381         * modules/unistd (Makefile.am): Substitute
45382         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45383         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45384         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45385         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45386         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45387         * modules/sys_ioctl (Makefile.am): Substitute
45388         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45389         * modules/socket (configure.ac): On native Windows, set
45390         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45391         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45392         Reported by Sam Steingold <sds@gnu.org>.
45393
45394 2009-08-10  Bruno Haible  <bruno@clisp.org>
45395
45396         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45397         * modules/ioctl (configure.ac): Likewise.
45398
45399 2009-08-10  Bruno Haible  <bruno@clisp.org>
45400
45401         Avoid collision between gnulib wrapper and libintl wrapper.
45402         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45403         already defined in intl/printf.c.
45404         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45405         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45406
45407 2009-08-09  Bruno Haible  <bruno@clisp.org>
45408
45409         Make <sys/select.h> really self-contained, also on Solaris 10.
45410         * lib/sys_select.in.h: Include <string.h>.
45411         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45412         Solaris 10 problem.
45413         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45414         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45415         Reported by Jim Meyering.
45416
45417 2009-08-09  Bruno Haible  <bruno@clisp.org>
45418
45419         Avoid warnings from 'aclocal' that are due to a use of macro name
45420         AM_XGETTEXT_OPTION that is not defined in automake.
45421         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45422         automake.
45423         * modules/error (configure.ac): Likewise.
45424         * modules/propername (configure.ac): Likewise.
45425         * modules/vasprintf (configure.ac): Likewise.
45426         * modules/verror (configure.ac): Likewise.
45427         * modules/xprintf (configure.ac): Likewise.
45428         * modules/xvasprintf (configure.ac): Likewise.
45429
45430 2009-08-08  Bruno Haible  <bruno@clisp.org>
45431
45432         Avoid compilation error in C++ mode.
45433         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45434         Reported by Sam Steingold <sds@gnu.org>.
45435
45436 2009-08-08  Bruno Haible  <bruno@clisp.org>
45437
45438         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45439         for the various Unix platforms.
45440         * doc/posix-headers/limits.texi: Update platforms list regarding
45441         HOST_NAME_MAX.
45442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45443
45444 2009-08-07  Jim Meyering  <meyering@redhat.com>
45445
45446         selinux-at: fix typo in a comment
45447         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45448         Spotted by Paolo Bonzini.
45449
45450         selinux-at: remove redundant m4 code, add documentation
45451         * modules/selinux-at (configure.ac): Remove redundant code.
45452         LIB_SELINUX is already set via the dependent module, selinux-h.
45453         (Include): Add quotes around selinux-at.h.
45454         * lib/selinux-at.h: Add documentation.
45455         Reported by Bruno Haible in
45456         http://marc.info/?l=gnulib-bug&m=124958988300749
45457
45458 2009-08-07  Bruno Haible  <bruno@clisp.org>
45459
45460         Avoid link error on MacOS X 10.3 and 10.4.
45461         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45462         on non-ELF systems.
45463         * lib/argp-pv.c (argp_program_version): Likewise.
45464         Reported by Simon Josefsson.
45465
45466 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45467
45468         * tests/test-version-etc.sh: Use $EXEEXT.
45469
45470 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45471
45472         update-copyright: update documentation to point to maint.mk
45473         * build-aux/update-copyright: Here.
45474
45475 2009-08-06  Jim Meyering  <meyering@redhat.com>
45476
45477         maint.mk: support update-copyright-local
45478         * top/maint.mk (update-copyright-local): Define place-holder.
45479         (update-copyright): Depend on $(update-copyright-local).
45480
45481 2009-08-06  Jim Meyering  <meyering@redhat.com>
45482
45483         selinux-at: new module
45484         Initially written for coreutils, this module will soon be
45485         used by findutils, too.
45486         * MODULES.html.sh [Misc]: Add selinux-at.
45487         * lib/selinux-at.h: New file, from coreutils.
45488         * lib/selinux-at.c: Likewise.
45489         * modules/selinux-at: Likewise.
45490         (License): Change from LGPL to GPL, since it depends
45491         on the GPL'd openat module.
45492
45493         doc: update README
45494         * README: Remove references to cogito.
45495         Remove cvs-repo-updating instructions from 2007.
45496         Don't imply that CVS is better if you have limited disk space.
45497
45498 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45499
45500         update-copyright: support C-style comments
45501         * build-aux/update-copyright: Implement and document.
45502         * tests/test-update-copyright.sh: Test.
45503
45504 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45505
45506         update-copyright: support omitted "(C)"
45507         * build-aux/update-copyright: Implement and document.  Also,
45508         allow variable whitespace before "(C)".
45509         * tests/test-update-copyright.sh: Test.
45510
45511 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45512
45513         update-copyright: don't trip on non-FSF copyright statements
45514         * build-aux/update-copyright: Fix so that the first correctly
45515         formatted FSF copyright statement is recognized no matter what
45516         appears before it.  Update documentation.
45517         * tests/test-update-copyright.sh: Test that.
45518
45519 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45520
45521         update-copyright: clean up code a little
45522         * build-aux/update-copyright: Append "_re" to the name of any
45523         variable holding a regular expression.
45524         Replace "old" and "new" with "stmt" in variable names.
45525         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45526         handled correctly.
45527         Format code more consistently.
45528
45529 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45530
45531         update-copyright-tests: improve portability
45532         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45533         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45534
45535 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45536
45537         update-copyright: support @copyright{} and &copy;
45538         * build-aux/update-copyright: Implement and document.
45539         * tests/test-update-copyright.sh: Test.
45540
45541 2009-08-04  Jim Meyering  <meyering@redhat.com>
45542
45543         update-copyright-tests: correctly test EOL=\r\n handling
45544         * tests/test-update-copyright.sh: Put \r at the end of some lines
45545         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45546
45547         maint.mk: make update-copyright exclusion list more configurable
45548         * top/maint.mk (update-copyright): Default to excluding COPYING,
45549         but allow an override, in case someone does want to update that file.
45550
45551         maint.mk: don't update copyright date in COPYING
45552         * top/maint.mk (update-copyright): Exclude COPYING.
45553
45554         maint.mk: add a copyright-updating rule
45555         * top/maint.mk (update-copyright): New rule.
45556         Derived from coreutils/Makefile.am.
45557
45558         update-copyright: rename some variables
45559         * build-aux/update-copyright: Rename a few variables for clarity.
45560         Tweak syntax.  List Joel E. Denny as coauthor.
45561
45562 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45563
45564         update-copyright: fix bug for 2-digit last year and add tests
45565         * build-aux/update-copyright: Fix bug.
45566         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45567         specified.
45568         * modules/update-copyright-tests: New
45569         * tests/test-update-copyright.sh: New.
45570
45571 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45572
45573         update-copyright: handle leading tabs in line prefix
45574         * build-aux/update-copyright: Count leading tabs as 8 spaces
45575         when computing margin.  This helps with the formatting of
45576         ChangeLogs, for example.
45577         Fix documentation a little.
45578
45579 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45580
45581         update-copyright: support EOL=\r\n
45582         * build-aux/update-copyright: Implement that.
45583
45584 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45585
45586         update-copyright: automatically format copyright statements
45587         * build-aux/update-copyright: Implement that.
45588         Also, be a little more predictable and safer by always failing
45589         when the full copyright format is not perfectly recognized as an
45590         unbroken whole.  Discussed at
45591         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45592         Rewrite documentation.
45593
45594 2009-08-03  Bruno Haible  <bruno@clisp.org>
45595
45596         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45597
45598 2009-08-02  Bruno Haible  <bruno@clisp.org>
45599
45600         Tests for module 'uname'.
45601         * modules/uname-tests: New file.
45602         * tests/test-uname.c: New file.
45603
45604         New module 'uname'.
45605         * lib/uname.c: New file.
45606         * m4/uname.m4: New file.
45607         * modules/uname: New file.
45608         * doc/posix-functions/uname.texi: Mention the new module.
45609
45610 2009-08-02  Bruno Haible  <bruno@clisp.org>
45611
45612         Tests for module 'sys_utsname'.
45613         * modules/sys_utsname-tests: New file.
45614         * tests/test-sys_utsname.c: New file.
45615
45616         New module 'sys_utsname'.
45617         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45618         * m4/sys_utsname_h.m4: New file.
45619         * modules/sys_utsname: New file.
45620         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45621
45622 2009-08-02  Bruno Haible  <bruno@clisp.org>
45623
45624         Implicitly initialize the sockets library.
45625         * lib/gethostname.c: Include sockets.h.
45626         (rpl_gethostname): Invoke gl_sockets_startup.
45627         * lib/socket.c: Include sockets.h.
45628         (rpl_socket): Invoke gl_sockets_startup.
45629         * modules/gethostname (Depends-on): Add sockets.
45630         * modules/socket (Depends-on): Likewise.
45631         * tests/test-poll.c: Don't include sockets.h.
45632         (main): Don't invoke gl_sockets_startup.
45633         * tests/test-select.c: Don't include sockets.h.
45634         (main): Don't invoke gl_sockets_startup.
45635
45636 2009-08-02  Bruno Haible  <bruno@clisp.org>
45637
45638         Allow multiple calls to gl_sockets_startup.
45639         * lib/sockets.c (initialized_sockets_version): New variable.
45640         (gl_sockets_startup): Do nothing if already called for this or a higher
45641         version.
45642         (gl_sockets_cleanup): Reset initialized_sockets_version.
45643
45644 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45645
45646         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45647         different project/version.
45648
45649 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45650             Bruno Haible  <bruno@clisp.org>
45651
45652         Tests for module 'pipe-filter-gi'.
45653         * modules/pipe-filter-gi-tests: New file.
45654         * tests/test-pipe-filter-gi1.sh: New file.
45655         * tests/test-pipe-filter-gi1.c: New file.
45656         * tests/test-pipe-filter-gi2.sh: New file.
45657         * tests/test-pipe-filter-gi2-main.c: New file.
45658         * tests/test-pipe-filter-gi2-child.c: New file.
45659
45660         New module 'pipe-filter-gi'.
45661         * lib/pipe-filter-gi.c: New file.
45662         * modules/pipe-filter-gi: New file.
45663
45664 2009-08-02  Bruno Haible  <bruno@clisp.org>
45665             Paolo Bonzini  <bonzini@gnu.org>
45666
45667         Tests for module 'pipe-filter-ii'.
45668         * modules/pipe-filter-ii-tests: New file.
45669         * tests/test-pipe-filter-ii1.sh: New file.
45670         * tests/test-pipe-filter-ii1.c: New file.
45671         * tests/test-pipe-filter-ii2.sh: New file.
45672         * tests/test-pipe-filter-ii2-main.c: New file.
45673         * tests/test-pipe-filter-ii2-child.c: New file.
45674
45675         New module 'pipe-filter-ii'.
45676         * lib/pipe-filter.h: New file.
45677         * lib/pipe-filter-ii.c: New file.
45678         * lib/pipe-filter-aux.h: New file.
45679         * modules/pipe-filter-ii: New file.
45680
45681 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45682
45683         * lib/gc-libgcrypt.c: Change copyright to FSF.
45684         * lib/gc-gnulib.c: Likewise.
45685
45686 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45687
45688         * lib/gethostname.c: Include limits.h.
45689
45690 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45691             Bruno Haible  <bruno@clisp.org>
45692
45693         Ensure HOST_NAME_MAX as part of the gethostname module.
45694         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45695         define also HOST_NAME_MAX.
45696         * tests/test-gethostname.c: Include <limits.h>.
45697         (main): Check also HOST_NAME_MAX.
45698         * doc/posix-headers/limits.texi: Document the mingw problem.
45699
45700 2009-08-02  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45703         Add comments.
45704
45705 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45706
45707         * lib/gethostname.c: Add Windows wrapper.
45708         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45709         * modules/gethostname: Depend on sys_socket & errno, for also
45710         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45711         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45712
45713 2009-07-31  Jim Meyering  <meyering@redhat.com>
45714
45715         getloadavg: fix symbol name in comment
45716         * lib/getloadavg.c: Correct a typo I introduced when adding
45717         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45718         Matt Kraai spotted the problem.
45719
45720 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45721
45722         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45723         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45724         code also if ! defined N_NAME_POINTER.
45725         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45726         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45727         but the n_name member is a 12-byte array.
45728
45729 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45730
45731         update-copyright: generalize comment handling
45732         * build-aux/update-copyright: Handle copyright statements
45733         within more comment styles.
45734         Document usage.
45735         Report any file with an external copyright holder or parse failure.
45736
45737 2009-07-29  Jim Meyering  <meyering@redhat.com>
45738
45739         mktime: correct setting of REPLACE_MKTIME
45740         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45741
45742         update-copyright: new module
45743         * modules/update-copyright: New file.
45744         * build-aux/update-copyright: New file.
45745         * MODULES.html.sh (maint+release support): Add update-copyright.
45746
45747 2009-07-27  Bruno Haible  <bruno@clisp.org>
45748
45749         Fix compilation error when <ctime> is used and mktime is replaced.
45750         * lib/time.in.h (mktime): New declaration.
45751         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45752         REPLACE_MKTIME instead of defining mktime in config.h.
45753         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45754         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45755         Reported by Ross McFarland <rwmcfa1@neces.com>.
45756
45757 2009-07-27  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45760         Reported by Matt Kraai <mkraai@beckman.com>.
45761
45762 2009-07-25  Jim Meyering  <meyering@redhat.com>
45763
45764         maint.mk: avoid warnings about missing files
45765         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45766         diagnostic when .prev-version does not exist.
45767         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45768         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45769         nonexistent cfg.mk.
45770         Suggestions from Simon Josefsson.
45771
45772 2009-07-25  Bruno Haible  <bruno@clisp.org>
45773
45774         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45775         defined as macros. Needed on QNX 6.4.1.
45776         Reported by Matt Kraai <mkraai@beckman.com>.
45777
45778 2009-07-23  Jim Meyering  <meyering@redhat.com>
45779
45780         maint.mk: invoke "make dist" with a working value of XZ_OPT
45781         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45782
45783 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45784
45785         Make fseeko.c compile on QNX.
45786         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45787
45788 2009-07-22  Peter Simons  <simons@cryp.to>
45789
45790         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45791         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45792         * lib/md4.h: Likewise.
45793         * lib/md5.h: Likewise.
45794         * lib/sha1.h: Likewise.
45795         * lib/sha256.h: Likewise.
45796         * lib/sha512.h: Likewise.
45797
45798         tests-sha1: don't assign literal string to 'char *' variable
45799         * tests/test-sha1.c (main): Declare locals with "const" to match
45800         attributes of the right hand side.
45801
45802 2009-07-21  Eric Blake  <ebb9@byu.net>
45803
45804         dup2: fix more mingw problems
45805         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45806         fd to itself.
45807         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45808         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45809         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45810         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45811         care of mingw bugs.
45812
45813 2009-07-21  Jim Meyering  <meyering@redhat.com>
45814
45815         vc-list-files: avoid failure when /bin/sh is dash
45816         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45817         On some Debian based systems, /bin/sh is a symlink to dash, and running
45818         this command would omit the "/" following each 'tests' prefix:
45819           dash -x build-aux/vc-list-files -C . tests
45820         That is because bash and dash work differently:
45821           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45822           bash ok
45823           dash odd
45824
45825 2009-07-21  Eric Blake  <ebb9@byu.net>
45826
45827         dup2-tests: test previous patch
45828         * modules/dup2-tests: New file.
45829         * tests/test-dup2.c: Likewise.
45830         * tests/test-open.c (main): Avoid unspecified behavior.
45831         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
45832         test.
45833
45834         dup2: work around mingw and cygwin 1.5 bug
45835         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
45836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45837         * modules/unistd (Makefile.am): Substitute it.
45838         * lib/unistd.in.h (dup2): Declare the replacement.
45839         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
45840         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
45841         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
45842         * modules/execute (Depends-on): Add dup2.
45843         * modules/fseterr (Depends-on): Likewise.
45844         * modules/pipe (Depends-on): Likewise.
45845         * modules/posix_spawn-internal (Depends-on): Likewise.
45846
45847 2009-07-21  Bruno Haible  <bruno@clisp.org>
45848
45849         * modules/.gitattributes: New file.
45850
45851 2009-07-20  Bruno Haible  <bruno@clisp.org>
45852
45853         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
45854         (main): Use it.
45855
45856 2009-07-20  Eric Blake  <ebb9@byu.net>
45857
45858         test-pipe: make a bit more robust.
45859         * tests/test-pipe.c (myerr): Allow error messages regardless of
45860         what we do to stderr.
45861         (test_pipe): Rearrange to avoid deadlock.
45862         (child_main): Try a larger read, to ensure we avoided deadlock.
45863         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
45864         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
45865         if misused.
45866
45867 2009-07-19  Jim Meyering  <meyering@redhat.com>
45868
45869         fts: avoid false-positive cycle-detection
45870         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
45871         for each new command line argument.
45872
45873 2009-07-19  Bruno Haible  <bruno@clisp.org>
45874
45875         Fix build error on mingw with the modules sys_select and unistd.
45876         * modules/acl-tests (Depends-on): Add close.
45877         * modules/binary-io-tests (Depends-on): Likewise.
45878         * modules/closein-tests (Depends-on): Likewise.
45879         * modules/flock-tests (Depends-on): Likewise.
45880         * modules/fsync-tests (Depends-on): Likewise.
45881         * modules/lseek-tests (Depends-on): Likewise.
45882         * modules/pipe-tests (Depends-on): Likewise.
45883         * modules/posix_spawn-tests (Depends-on): Likewise.
45884         * modules/posix_spawnp-tests (Depends-on): Likewise.
45885         * modules/stat-time-tests (Depends-on): Likewise.
45886         * modules/yesno-tests (Depends-on): Likewise.
45887
45888 2009-07-19  Bruno Haible  <bruno@clisp.org>
45889
45890         Unify conditionals.
45891         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
45892         macros, not at the compiler macros.
45893         * lib/pipe.c: Likewise.
45894         * lib/execute.c: Likewise.
45895         * lib/spawni.c: Likewise.
45896
45897 2009-07-19  Bruno Haible  <bruno@clisp.org>
45898
45899         Fix handling of closed stdin/stdout/stderr on mingw.
45900         * lib/w32spawn.h: Include unistd.h.
45901         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
45902         file descriptor with O_NOINHERIT flag.
45903         (fd_safer_noinherit): New function, based on fd-safer.c.
45904         (dup_safer_noinherit): New function, based on dup-safer.c.
45905         (undup_safer_noinherit): New function.
45906         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
45907         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
45908         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
45909         instead of fd_safer.
45910         * tests/test-pipe.c: Include <windows.h>.
45911         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
45912         result.
45913
45914         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
45915         from main.
45916         (test_pipe): Pass an extra argument for disambiguation.
45917         (main): Invoke parent_main or child_main.
45918
45919         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
45920         consistently.
45921
45922 2009-07-18  Eric Blake  <ebb9@byu.net>
45923
45924         test-pipe: fix mingw build
45925         * tests/test-pipe.c (main): Avoid fcntl on mingw.
45926
45927 2009-07-18  Bruno Haible  <bruno@clisp.org>
45928
45929         * modules/pipe-tests (Makefile.am): Fix typo.
45930
45931 2009-07-18  Eric Blake  <ebb9@byu.net>
45932
45933         error: fix mingw build
45934         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
45935         Reported by Bruno Haible.
45936
45937         error: avoid undefined use of stdout
45938         * lib/error.c (error, error_at_line): Check that fd 1 is open
45939         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
45940         is handling faults and the close_stdout module wants to report the
45941         detection of closed stdout as an error.
45942
45943 2009-07-17  Eric Blake  <ebb9@byu.net>
45944
45945         pipe: be robust in face of closed fds
45946         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
45947         should cause child to misbehave.
45948         * modules/pipe-tests: New module.
45949         * tests/test-pipe.c: New file.
45950         * tests/test-pipe.sh: New file.
45951         Reported by Akim Demaille.
45952
45953 2009-07-14  Bruno Haible  <bruno@clisp.org>
45954
45955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
45956         Reported by anonymous kc.
45957
45958 2009-07-07  Jim Meyering  <meyering@redhat.com>
45959
45960         maint.mk: don't look for translatable strings in *.m4 or *.mk
45961         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
45962         when searching for translatable strings.
45963
45964 2009-07-05  Jim Meyering  <meyering@redhat.com>
45965
45966         remove superfluous parentheses in STREQ definition
45967         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
45968         * lib/getugroups.c (STREQ): Likewise.
45969         * lib/fnmatch.c (STREQ): Likewise.
45970         Spotted by Bruno Haible.
45971
45972 2009-07-04  Jim Meyering  <meyering@redhat.com>
45973
45974         argv-iter: new module
45975         * MODULES.html.sh: Add argv-iter.
45976         * lib/argv-iter.c, lib/argv-iter.h: New files.
45977         * modules/argv-iter: New file.
45978         * modules/argv-iter-tests: New file.
45979         * tests/test-argv-iter.c: Test it.
45980
45981 2009-07-04  Bruno Haible  <bruno@clisp.org>
45982
45983         Fix assertion.
45984         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45985         contains more exact copies of a given entry than file2, leave the extra
45986         copies unpaired rather than aborting.
45987         Reported by Eric Blake.
45988
45989 2009-07-02  Bruno Haible  <bruno@clisp.org>
45990
45991         Speedup git-merge-changelog for git cherry-pick.
45992         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45993         (entries_mapping_get): New function, extracted from compute_mapping.
45994         (entries_mapping_reverse_get): New function.
45995         (compute_mapping): Add a 'full' argument. Return the result in a
45996         'struct entries_mapping'.
45997         (main): Update. Access the mappings through entries_mapping_get.
45998         Reported by Eric Blake.
45999
46000 2009-07-02  Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46003         best_i.
46004
46005 2009-07-02  Bruno Haible  <bruno@clisp.org>
46006
46007         Speed up approximate search for matching ChangeLog entries.
46008         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46009         argument. Call fstrcmp_bounded instead of fstrcmp.
46010         (compute_mapping, try_split_merged_entry, main): Update callers.
46011
46012 2009-07-02  Bruno Haible  <bruno@clisp.org>
46013
46014         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46015
46016 2009-06-30  Bruno Haible  <bruno@clisp.org>
46017
46018         Reduce the number of uc_is_cased calls.
46019         * lib/unicase.h (casing_suffix_context_t): Add
46020         'first_char_except_ignorable' field.
46021         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46022         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46023         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46024         Update initializer.
46025         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46026         case-ignorable characters.
46027         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46028         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46029         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46030         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46031         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46032
46033 2009-06-30  Bruno Haible  <bruno@clisp.org>
46034
46035         Tests for module 'unicase/ignorable'.
46036         * modules/unicase/ignorable-tests: New file.
46037         * tests/unicase/test-ignorable.c: New file, generated by
46038         gen-uni-tables.
46039
46040         Tests for module 'unicase/cased'.
46041         * modules/unicase/cased-tests: New file.
46042         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46043         * tests/unicase/test-predicate-part1.h: New file, derived from
46044         tests/unictype/test-predicate-part1.h.
46045         * tests/unicase/test-predicate-part2.h: New file, same as
46046         tests/unictype/test-predicate-part2.h.
46047
46048         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46049         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46050         (output_casing_properties): New function.
46051         (main): Call it.
46052         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46053         * lib/unicase/cased.c: Include unictype/bitmap.h.
46054         (uc_is_cased): Define through a bitmap lookup.
46055         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46056         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46057         (uc_is_case_ignorable): Define through a bitmap lookup.
46058         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46059         lib/unictype/bitmap.h.
46060         (Depends-on): Add inline. Clean up.
46061         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46062         lib/unictype/bitmap.h.
46063         (Depends-on): Add inline. Clean up.
46064         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46065         recognition.
46066         * tests/unicase/test-u16-tolower.c (main): Likewise.
46067         * tests/unicase/test-u32-tolower.c (main): Likewise.
46068
46069 2009-06-30  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46072         * lib/unicase/u16-casemap.c: Likewise.
46073         * lib/unicase/u32-casemap.c: Likewise.
46074
46075 2009-06-29  Bruno Haible  <bruno@clisp.org>
46076
46077         Define u32_casefold as a wrapper around u32_ct_casefold.
46078         * lib/unicase/u32-casefold.c: Update.
46079         * modules/unicase/u32-casefold (Depends-on): Add
46080         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46081         unicase/empty-suffix-context. Clean up.
46082
46083         Define u16_casefold as a wrapper around u16_ct_casefold.
46084         * lib/unicase/u16-casefold.c: Update.
46085         * modules/unicase/u16-casefold (Depends-on): Add
46086         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46087         unicase/empty-suffix-context. Clean up.
46088
46089         Define u8_casefold as a wrapper around u8_ct_casefold.
46090         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46091         * lib/unicase/u8-casefold.c: Update.
46092         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46093         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46094
46095         Define u32_totitle as a wrapper around u32_ct_totitle.
46096         * lib/unicase/u32-totitle.c: Update.
46097         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46098         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46099
46100         Define u16_totitle as a wrapper around u16_ct_totitle.
46101         * lib/unicase/u16-totitle.c: Update.
46102         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46103         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46104
46105         Define u8_totitle as a wrapper around u8_ct_totitle.
46106         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46107         functions.
46108         (FUNC): Delegate to U_CT_TOTITLE.
46109         * lib/unicase/u8-totitle.c: Update.
46110         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46111         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46112
46113         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46114         invocation.
46115         * modules/unicase/u32-tolower (Depends-on): Add
46116         unicase/empty-prefix-context, unicase/empty-suffix-context.
46117
46118         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46119         invocation.
46120         * modules/unicase/u16-tolower (Depends-on): Add
46121         unicase/empty-prefix-context, unicase/empty-suffix-context.
46122
46123         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46124         * modules/unicase/u8-tolower (Depends-on): Add
46125         unicase/empty-prefix-context, unicase/empty-suffix-context.
46126
46127         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46128         invocation.
46129         * modules/unicase/u32-toupper (Depends-on): Add
46130         unicase/empty-prefix-context, unicase/empty-suffix-context.
46131
46132         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46133         invocation.
46134         * modules/unicase/u16-toupper (Depends-on): Add
46135         unicase/empty-prefix-context, unicase/empty-suffix-context.
46136
46137         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46138         * modules/unicase/u8-toupper (Depends-on): Add
46139         unicase/empty-prefix-context, unicase/empty-suffix-context.
46140
46141         New module 'unicase/u32-ct-casefold'.
46142         * lib/unicase/u32-ct-casefold.c: New file.
46143         * modules/unicase/u32-ct-casefold: New file.
46144
46145         New module 'unicase/u16-ct-casefold'.
46146         * lib/unicase/u16-ct-casefold.c: New file.
46147         * modules/unicase/u16-ct-casefold: New file.
46148
46149         New module 'unicase/u8-ct-casefold'.
46150         * lib/unicase/u8-ct-casefold.c: New file.
46151         * lib/unicase/u-ct-casefold.h: New file, derived from
46152         lib/unicase/u-casefold.h.
46153         * modules/unicase/u8-ct-casefold: New file.
46154
46155         New module 'unicase/u32-ct-totitle'.
46156         * lib/unicase/u32-ct-totitle.c: New file.
46157         * modules/unicase/u32-ct-totitle: New file.
46158
46159         New module 'unicase/u16-ct-totitle'.
46160         * lib/unicase/u16-ct-totitle.c: New file.
46161         * modules/unicase/u16-ct-totitle: New file.
46162
46163         New module 'unicase/u8-ct-totitle'.
46164         * lib/unicase/u8-ct-totitle.c: New file.
46165         * lib/unicase/u-ct-totitle.h: New file, derived from
46166         lib/unicase/u-totitle.h.
46167         * modules/unicase/u8-ct-totitle: New file.
46168
46169         New module 'unicase/u32-ct-tolower'.
46170         * lib/unicase/u32-ct-tolower.c: New file.
46171         * modules/unicase/u32-ct-tolower: New file.
46172
46173         New module 'unicase/u16-ct-tolower'.
46174         * lib/unicase/u16-ct-tolower.c: New file.
46175         * modules/unicase/u16-ct-tolower: New file.
46176
46177         New module 'unicase/u8-ct-tolower'.
46178         * lib/unicase/u8-ct-tolower.c: New file.
46179         * modules/unicase/u8-ct-tolower: New file.
46180
46181         New module 'unicase/u32-ct-toupper'.
46182         * lib/unicase/u32-ct-toupper.c: New file.
46183         * modules/unicase/u32-ct-toupper: New file.
46184
46185         New module 'unicase/u16-ct-toupper'.
46186         * lib/unicase/u16-ct-toupper.c: New file.
46187         * modules/unicase/u16-ct-toupper: New file.
46188
46189         New module 'unicase/u8-ct-toupper'.
46190         * lib/unicase/u8-ct-toupper.c: New file.
46191         * modules/unicase/u8-ct-toupper: New file.
46192
46193         Add context arguments to u*_casemap functions.
46194         * lib/unicase/unicasemap.h: Include unicase.h.
46195         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46196         suffix_context arguments.
46197         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46198         functions.
46199         (FUNC): Add prefix_context and suffix_context arguments. Use
46200         uc_is_cased and uc_is_case_ignorable.
46201         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46202         * lib/unicase/u16-casemap.c: Likewise.
46203         * lib/unicase/u32-casemap.c: Likewise.
46204         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46205         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46206         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46207         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46208         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46209         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46210
46211         New module 'unicase/u32-suffix-context'.
46212         * lib/unicase/u32-suffix-context.c: New file.
46213         * modules/unicase/u32-suffix-context: New file.
46214
46215         New module 'unicase/u16-suffix-context'.
46216         * lib/unicase/u16-suffix-context.c: New file.
46217         * modules/unicase/u16-suffix-context: New file.
46218
46219         New module 'unicase/u8-suffix-context'.
46220         * lib/unicase/u8-suffix-context.c: New file.
46221         * lib/unicase/u-suffix-context.h: New file.
46222         * modules/unicase/u8-suffix-context: New file.
46223
46224         New module 'unicase/empty-suffix-context'.
46225         * lib/unicase/empty-suffix-context.c: New file.
46226         * modules/unicase/empty-suffix-context: New file.
46227
46228         New module 'unicase/u32-prefix-context'.
46229         * lib/unicase/u32-prefix-context.c: New file.
46230         * modules/unicase/u32-prefix-context: New file.
46231
46232         New module 'unicase/u16-prefix-context'.
46233         * lib/unicase/u16-prefix-context.c: New file.
46234         * modules/unicase/u16-prefix-context: New file.
46235
46236         New module 'unicase/u8-prefix-context'.
46237         * lib/unicase/u8-prefix-context.c: New file.
46238         * lib/unicase/u-prefix-context.h: New file.
46239         * lib/unicase/context.h: New file.
46240         * modules/unicase/u8-prefix-context: New file.
46241
46242         New module 'unicase/empty-prefix-context'.
46243         * lib/unicase/empty-prefix-context.c: New file.
46244         * modules/unicase/empty-prefix-context: New file.
46245
46246         New module 'unicase/ignorable'.
46247         * lib/unicase/ignorable.c: New file.
46248         * modules/unicase/ignorable: New file.
46249
46250         New module 'unicase/cased'.
46251         * lib/unicase/caseprop.h: New file.
46252         * lib/unicase/cased.c: New file.
46253         * modules/unicase/cased: New file.
46254
46255         New functions for case mapping of substrings.
46256         * lib/unicase.h (casing_prefix_context_t): New type.
46257         (unicase_empty_prefix_context): New variable.
46258         (u8_casing_prefix_context, u16_casing_prefix_context,
46259         u32_casing_prefix_context, u8_casing_prefixes_context,
46260         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46261         declarations.
46262         (casing_suffix_context_t): New type.
46263         (unicase_empty_suffix_context): New variable.
46264         (u8_casing_suffix_context, u16_casing_suffix_context,
46265         u32_casing_suffix_context, u8_casing_suffixes_context,
46266         u16_casing_suffixes_context, u32_casing_suffixes_context,
46267         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46268         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46269         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46270         declarations.
46271
46272 2009-06-28  Jim Meyering  <meyering@redhat.com>
46273
46274         boostrap: indent only with spaces
46275         * build-aux/bootstrap: Indent only with spaces, never TABs.
46276
46277         bootstrap: split long lines
46278         * build-aux/bootstrap: Keep line length < 80.
46279
46280         bootstrap: sync from coreutils
46281         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46282         just as autoreconf does.  Verify a list of prerequisite
46283         package-name,version-number pairs if defined in bootstrap.conf.
46284         Refer to README-prereq, if prerequisites are not satisfied.
46285
46286 2009-06-27  Eric Blake  <ebb9@byu.net>
46287
46288         tests: add test for bogus NULL definition
46289         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46290         * tests/test-stdlib.c: Likewise.
46291         * tests/test-string.c: Likewise.
46292         * tests/test-locale.c: Likewise.
46293         * tests/test-unistd.c: Likewise.
46294         * modules/stdio-tests (Depends-on): Add verify.
46295         * modules/stdlib-tests (Depends-on): Likewise.
46296         * modules/string-tests (Depends-on): Likewise.
46297         * modules/locale-tests (Depends-on): Likewise.
46298         * modules/unistd-tests (Depends-on): Likewise.
46299
46300 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46301
46302         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46303         self-explaining comment.
46304         * m4/selinux-selinux-h: Update serial.
46305         (gl_LIBSELINUX): New macro, adding a warning for missing development
46306         packages to code extracted from...
46307         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46308         Add warning for missing development packages here, too.
46309
46310 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46311
46312         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46313
46314 2009-06-25  Eric Blake  <ebb9@byu.net>
46315
46316         version-etc: fix regression
46317         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46318         gcc.
46319         (version_etc): Use it, to catch bugs with trailing NULL.
46320         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46321         (version_etc_va): Fix logic bug.
46322         * modules/version-etc-tests: Add test.
46323         * tests/test-version-etc.c: New file.
46324         * tests/test-version-etc.sh: Likewise.
46325
46326 2009-06-25  Sam Steingold  <sds@gnu.org>
46327
46328         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46329         mbtowc declaration.
46330
46331 2009-06-25  Eric Blake  <ebb9@byu.net>
46332
46333         fpurge: migrate into <stdio.h>
46334         * lib/fpurge.h: Delete...
46335         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46336         * lib/fpurge.c (fpurge): Change declaring header.
46337         * modules/fpurge (Files): Drop deleted file.
46338         (Depends-on): Add stdio.
46339         (configure.ac): Set witness.
46340         * modules/stdio (Makefile.am): Support fpurge macros.
46341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46342         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46343         * lib/fflush.c: Update client.
46344         * tests/test-fpurge.c: Likewise.
46345         * NEWS: Mention the change.
46346
46347 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46348
46349         * lib/argp-version-etc.c (program_authors): Add const
46350         qualifier.
46351         * lib/version-etc.c: Fix typos in the comments.
46352         * modules/argp-version-etc: Depends on version-etc.
46353
46354 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46355
46356         argp-version-etc: new module.
46357
46358         * lib/argp-version-etc.c: New file.
46359         * lib/argp-version-etc.h: New file.
46360         * modules/argp-version-etc: New file.
46361         * modules/argp-version-etc-tests: New file.
46362         * tests/test-argp-version-etc.c: New test.
46363         * tests/test-argp-version-etc-1.sh: New test.
46364
46365 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46366
46367         Provide additional interfaces and documentation for version-etc
46368         module.
46369
46370         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46371         interfaces.
46372         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46373         prototypes.
46374
46375 2009-06-24  Bruno Haible  <bruno@clisp.org>
46376
46377         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46378         HAVE_LIB${NAME} macro.
46379         Reported by Sam Steingold <sds@gnu.org>.
46380
46381 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46382
46383         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46384         needed.
46385
46386 2009-06-21  Bruno Haible  <bruno@clisp.org>
46387
46388         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46389         work.
46390         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46391         together with LIB${NAME}, LTLIB${NAME}.
46392         Reported by Sam Steingold <sds@gnu.org>.
46393
46394 2009-06-20  Jim Meyering  <meyering@redhat.com>
46395
46396         tests: make sc_require_test_exit_idiom more generic
46397         * top/maint.mk (Exit_witness_file): New overridable variable.
46398         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46399         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46400
46401 2009-06-19  Jim Meyering  <meyering@redhat.com>
46402
46403         hash: reverse order of src/dst parameters in an internal interface
46404         * lib/hash.c (transfer_entries): Reverse order of parameters to
46405         put DST before SRC.  Adjust callers.
46406
46407         tests: test-hash: avoid wholesale duplication
46408         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46409         Instead, use a loop and add a single conditional.
46410
46411         tests: test-hash: allow seed selection via a command line argument
46412         * tests/test-hash.c (get_seed): New function.
46413         (main): Use it.
46414
46415 2009-06-19  Eric Blake  <ebb9@byu.net>
46416
46417         hash: avoid memory leak on allocation failure
46418         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46419         failure.  Factor repeated algorithm...
46420         (transfer_entries): ...into new helper routine.
46421         (hash_delete): React to hash_rehash return value.
46422
46423         hash: reduce memory pressure in hash_rehash no-op case
46424         * lib/hash.c (next_prime): Avoid overflow.
46425         (hash_initialize): Factor bucket size computation...
46426         (compute_bucket_size): ...into new helper function.
46427         (hash_rehash): Use new function and open coding to reduce memory
46428         pressure, and avoid a memory leak in USE_OBSTACK code.
46429         Reported by Jim Meyering.
46430
46431 2009-06-18  Eric Blake  <ebb9@byu.net>
46432
46433         hash: make rotation more obvious
46434         * modules/hash (Depends-on): Add bitrotate and stdint.
46435         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46436         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46437         (SIZE_MAX): Rely on headers for definition.
46438         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46439         (raw_hasher): Use rotr_sz.
46440         Suggested by Jim Meyering.
46441
46442         hash: fix memory leak in last patch
46443         * lib/hash.c (hash_rehash): Avoid memory leak.
46444
46445         hash: avoid no-op rehashing
46446         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46447
46448         hash: provide default callback functions
46449         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46450         (hash_initialize): Use them as defaults.
46451         * tests/test-hash.c (main): Test this.
46452
46453         hash: minor optimization
46454         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46455         when possible.
46456         (hash_initialize): Document this promise.
46457         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46458         * tests/test-hash.c (hash_compare_strings): Test this.
46459
46460 2009-06-18  Bruno Haible  <bruno@clisp.org>
46461
46462         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46463         going to be replaced anyway.
46464
46465 2009-06-18  Bruno Haible  <bruno@clisp.org>
46466
46467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46468         in one place.
46469         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46470         be replaced anyway.
46471
46472 2009-06-18  Eric Blake  <ebb9@byu.net>
46473
46474         hash: check for resize before insertion
46475         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46476         threshold before insertion, so that a pathological hash_rehash
46477         that fills every bucket can still trigger another rehash.
46478
46479 2009-06-18  Jim Meyering  <meyering@redhat.com>
46480
46481         hash-tests: add a loop around the small tests
46482         * tests/test-hash.c (main): Repeat small tests with selected
46483         small initial table sizes.
46484
46485 2009-06-17  Eric Blake  <ebb9@byu.net>
46486
46487         hash: minor cleanups
46488         * lib/hash.h (hash_entry): Make opaque, by moving...
46489         * lib/hash.c (hash_entry): ...here.
46490         (hash_insert): Clarify restrictions on what can be inserted.
46491         (hash_get_next): Clarify when it is safe to remove an element
46492         during traversal.
46493         (check_tuning): Skip verification when tuning is known safe.
46494         (hash_initialize): Clarify restrictions on tuning.
46495
46496 2009-06-17  Jim Meyering  <jim@meyering.net>
46497         and Eric Blake  <ebb9@byu.net>
46498
46499         hash-tests: new module
46500         * modules/hash-tests: New file.
46501         * tests/test-hash.c: New file.
46502
46503 2009-06-17  Eric Blake  <ebb9@byu.net>
46504
46505         strstr-simple: document new module
46506         * MODULES.html.sh: Document new module.
46507
46508         strstr, strcasestr: replace on platforms with broken memchr
46509         * modules/strstr: Split into...
46510         * modules/strstr-simple: ...new module that does not care about
46511         performance, but does care about glibc bug.
46512         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46513         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46514         if platform memchr is broken, per Debian bug 521737.
46515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46516         memchr.
46517         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46518         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46519         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46520         * modules/mountlist (Depends-on): Add strstr-simple.
46521         * modules/gen-uni-tables (Depends-on): Likewise.
46522         * modules/argz (Depends-on): Add strstr.
46523
46524 2009-06-17  Bruno Haible  <bruno@clisp.org>
46525
46526         * modules/posix_spawn-internal (Depends-on): Add errno.
46527
46528 2009-06-17  Bruno Haible  <bruno@clisp.org>
46529
46530         Define missing ESTALE on Interix 3.5.
46531         * lib/errno.in.h (ESTALE): Assign a value if missing.
46532         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46533         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46534         missing.
46535         * doc/posix-headers/errno.texi: Mention the Interix bug.
46536         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46537
46538 2009-06-15  Eric Blake  <ebb9@byu.net>
46539
46540         memchr, memchr2: add valgrind exception
46541         * lib/memchr.valgrind: New file.
46542         * lib/memchr2.valgrind: New file.
46543         * modules/memchr (Files): Distribute valgrind file.
46544         * modules/memchr2 (Files): Likewise.
46545
46546         docs: memchr is no longer obsolete
46547         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46548         * lib/string.in.h (memchr): Simplify logic.
46549
46550 2009-06-14  Jim Meyering  <meyering@redhat.com>
46551
46552         link-follow: fix the "checking..." message to not mention trailing slash
46553         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46554         never considered trailing slashes.
46555
46556 2009-06-14  Bruno Haible  <bruno@clisp.org>
46557
46558         * m4/memchr.m4: Mention also the bug on IA-64.
46559         * doc/posix-functions/memchr.texi: Likewise.
46560
46561 2009-06-12  Eric Blake  <ebb9@byu.net>
46562
46563         memchr: detect broken x86_64 and alpha implementations
46564         * modules/memchr-tests (Depends-on): Move mmap detection...
46565         * modules/memchr (Depends-on): ...here.
46566         (configure.ac): Set indicator.
46567         * lib/string.in.h (memchr): Declare replacement.
46568         * modules/string (Makefile.am): Trigger replacement.
46569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46570         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46571         bugs.
46572         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46573         * modules/getpagesize (License): Relax license.
46574
46575 2009-06-11  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/idpriv.h: Add more references.
46578
46579 2009-06-08  Bruno Haible  <bruno@clisp.org>
46580
46581         Tests for module 'idpriv-droptemp'.
46582         * modules/idpriv-droptemp-tests: New file.
46583         * tests/test-idpriv-droptemp.sh: New file.
46584         * tests/test-idpriv-droptemp.su.sh: New file.
46585         * tests/test-idpriv-droptemp.c: New file.
46586
46587         New module 'idpriv-droptemp'.
46588         * lib/idpriv-droptemp.c: New file.
46589         * modules/idpriv-droptemp: New file.
46590
46591 2009-06-08  Bruno Haible  <bruno@clisp.org>
46592
46593         Tests for module 'idpriv-drop'.
46594         * modules/idpriv-drop-tests: New file.
46595         * tests/test-idpriv-drop.sh: New file.
46596         * tests/test-idpriv-drop.su.sh: New file.
46597         * tests/test-idpriv-drop.c: New file.
46598
46599         New module 'idpriv-drop'.
46600         * lib/idpriv.h: New file.
46601         * lib-idpriv-drop.c: New file.
46602         * m4/idpriv.m4: New file.
46603         * modules/idpriv-drop: New file.
46604
46605 2009-06-08  Bruno Haible  <bruno@clisp.org>
46606
46607         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46608         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46609         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46610         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46611         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46612         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46613         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46614
46615 2009-06-08  Eric Blake  <ebb9@byu.net>
46616
46617         test-strstr: use memory fence, when possible
46618         * tests/test-strstr.c (main): Use memory fence, in order to be
46619         more likely to trigger Debian bug 521737.
46620         * modules/strstr-tests (Files): Pull in additional files.
46621
46622         memchr: no longer obsolete, for wider field testing
46623         * modules/memchr (Status, Notice): Delete, this module is no
46624         longer obsolete.
46625         * modules/vasnprintf (Depends-on): Add memchr.
46626
46627 2009-06-07  Jim Meyering  <meyering@redhat.com>
46628
46629         hash: declare some functions with the warn_unused_result attribute
46630         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46631
46632 2009-06-07  Bruno Haible  <bruno@clisp.org>
46633
46634         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46635         Reported by Eric Blake.
46636
46637 2009-06-06  Eric Blake  <ebb9@byu.net>
46638
46639         test-alignof: fix typo with long double
46640         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46641         compiler error.
46642
46643 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46644
46645         Escape non-texinfo { and }s.
46646         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46647         markup error.
46648
46649 2009-06-04  Jim Meyering  <meyering@redhat.com>
46650
46651         gitlog-to-changelog: don't infloop on an empty commit log
46652         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46653         Reported by Boris Petersen <transacid@centerim.org>.
46654
46655 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46656
46657         version-etc: extend for packagers
46658         Add three new configure options, intended for packagers:
46659           --with-packager="packager name"
46660           --with-packager-version="packager-specific version"
46661           --with-packager-bug-reports="packager bug reporting"
46662         An example with coreutils:
46663           $ ./configure \
46664             --with-packager=Gentoo \
46665             --with-packager-bug-report=http://bugs.gentoo.org/ \
46666             --with-packager-version="patchset 1.6"
46667           $ ./src/ls --version | head -n2
46668           ls (GNU coreutils) 7.1-dirty
46669           Packaged by Gentoo (patchset 1.6)
46670         Note that the bug reporting info via --help doesn't show up because
46671         coreutils uses its own custom emit_bug_reporting_address() implementation
46672         in src/system.h.  If it didn't, it'd look like:
46673           $ ./src/ls --help | tail -n4
46674           Report bugs to <bug-coreutils@gnu.org>.
46675           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46676           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46677           General help using GNU software: <http://www.gnu.org/gethelp/>.
46678         * lib/version-etc.c: Print new information, if provided.
46679         * m4/version-etc.m4: New file.
46680         * modules/version-etc (Files): Add m4/version-etc.m4.
46681         (configure.ac): Add gl_VERSION_ETC.
46682
46683 2009-05-31  Bruno Haible  <bruno@clisp.org>
46684
46685         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46686         and 'int64_t'.
46687         * modules/alignof-tests (Dependencies): Add stdint.
46688         Reported by Eric Blake.
46689
46690 2009-05-31  Bruno Haible  <bruno@clisp.org>
46691
46692         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46693         restriction due to compiler bugs.
46694         Reported by Eric Blake.
46695
46696 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46697             Bruno Haible  <bruno@clisp.org>
46698
46699         Fix test-alignof failure.
46700         * lib/alignof.h (alignof_slot): New macro.
46701         (alignof_type): New macro, with the same semantics as the previous
46702         'alignof'.
46703         (alignof): Alias to alignof_slot.
46704         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46705         check that the results are usable as constant expressions.
46706
46707 2009-05-31  Bruno Haible  <bruno@clisp.org>
46708
46709         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46710         * tests/test-memchr.c (main): Check that memchr does not read past the
46711         first occurrence of the byte.
46712         * tests/test-strstr.c (main): Update comment.
46713         Suggested by Eric Blake.
46714
46715 2009-05-30  Bruno Haible  <bruno@clisp.org>
46716
46717         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46718         detail how to use dumpbin.
46719         Reported by David Byron <dbyron@dbyron.com>.
46720
46721 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46722
46723         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46724
46725 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46726
46727         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46728
46729 2009-05-28  Bruno Haible  <bruno@clisp.org>
46730
46731         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46732         build-aux/ files.
46733
46734 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46735
46736         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46737
46738 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46739
46740         * gnulib-tool (sed_transform_main_lib_file)
46741         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46742         regexps.
46743
46744 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46745
46746         * tests/test-strstr.c: Add another self-test.
46747         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46748         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46749
46750 2009-05-23  Bruno Haible  <bruno@clisp.org>
46751
46752         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46753         change.
46754
46755 2009-05-21  Bruno Haible  <bruno@clisp.org>
46756
46757         Simplify use of mode_t varargs.
46758         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46759         uses 'mode_t' or 'int'.
46760         * lib/openat.c (openat): Likewise.
46761         * lib/open-safer.c (open_safer): Likewise.
46762         * m4/mode_t.m4: New file.
46763         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46764         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46765         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46766         * modules/open (Files): Add m4/mode_t.m4.
46767         * modules/openat (Files): Likewise.
46768         * modules/fcntl-safer (Files): Likewise.
46769         Suggested by Eric Blake.
46770
46771 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46772
46773         * doc/glibc-functions/fallocate.texi: New file.
46774         * doc/gnulib.texi: Include it.
46775
46776 2009-05-21  Eric Blake  <ebb9@byu.net>
46777             Bruno Haible  <bruno@clisp.org>
46778
46779         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46780         invocations.
46781         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46782
46783 2009-05-21  Eric Blake  <ebb9@byu.net>
46784             Bruno Haible  <bruno@clisp.org>
46785
46786         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46787         include_next. Fix of 2008-11-20 commit.
46788         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46789         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46790         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46791         NEXT_MATH_H.
46792         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46793         instead of NEXT_MATH_H.
46794
46795 2009-05-21  Bruno Haible  <bruno@clisp.org>
46796
46797         Avoid redefinition warnings for SIZE_MAX.
46798         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46799         Reported by Simon Josefsson.
46800
46801 2009-05-21  Bruno Haible  <bruno@clisp.org>
46802
46803         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46804         AC_CACHE_VAL.
46805
46806 2009-05-20  Bruno Haible  <bruno@clisp.org>
46807
46808         Make zeroptr.h work on mingw.
46809         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46810         mprotect.
46811         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46812         * modules/memchr2-tests (configure.ac): Likewise.
46813         * modules/memcmp-tests (configure.ac): Likewise.
46814         * modules/memmem-tests (configure.ac): Likewise.
46815         * modules/memrchr-tests (configure.ac): Likewise.
46816         Reported by Simon Josefsson.
46817
46818 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46819
46820         * tests/test-glob.c: Include string.h for strcmp prototype.
46821
46822 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46823
46824         * modules/getdelim (Depends-on): Add explicit stdint, although it
46825         was implicitly already pulled in via realloc-posix.
46826         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46827
46828 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46829
46830         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46831         G. Christensen" <tgc@jupiterrise.com>.
46832         * m4/sys_socket_h.m4: Check for sa_family_t.
46833         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
46834         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
46835         * tests/test-sys_socket.c: Check that sa_family_t works.
46836
46837 2009-05-18  Eric Blake  <ebb9@byu.net>
46838
46839         maint.mk: allow gnulib_dir in VPATH build
46840         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
46841
46842 2009-05-15  Jim Meyering  <meyering@redhat.com>
46843
46844         maint.mk: Give gnulib_dir a default definition.
46845         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
46846         Thus, most packages no longer need to specify this variable in cfg.mk
46847
46848 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
46849
46850         rename.m4: fix typos that would make non-mingw cross-configure fail
46851         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
46852
46853 2009-05-13  Eric Blake  <ebb9@byu.net>
46854
46855         mmap-anon: avoid out-of-order autoconf expansion
46856         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
46857         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
46858         * modules/memchr-tests (Depends-on): Add extensions.
46859         * modules/memchr2-tests (Depends-on): Add extensions.
46860         * modules/memcmp-tests (Depends-on): Add extensions.
46861         * modules/memmem-tests (Depends-on): Add extensions.
46862         * modules/memrchr-tests (Depends-on): Add extensions.
46863
46864 2009-05-13  Bruno Haible  <bruno@clisp.org>
46865
46866         Make some tests ISO C 99 compliant.
46867         * tests/zerosize-ptr.h: New file.
46868         * tests/test-memchr.c: Include zerosize-ptr.h.
46869         (main): Use a zero-size object pointer instead of NULL.
46870         * tests/test-memchr2.c: Include zerosize-ptr.h.
46871         (main): Use a zero-size object pointer instead of NULL.
46872         * tests/test-memcmp.c: Include zerosize-ptr.h.
46873         (main): Use a zero-size object pointer instead of NULL.
46874         * tests/test-memmem.c: Include zerosize-ptr.h.
46875         (main): Use a zero-size object pointer instead of NULL.
46876         * tests/test-memrchr.c: Include zerosize-ptr.h.
46877         (main): Use a zero-size object pointer instead of NULL.
46878         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
46879         m4/mmap-anon.m4.
46880         (Depends-on): Add getpagesize.
46881         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46882         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
46883         m4/mmap-anon.m4.
46884         (Depends-on): Add getpagesize.
46885         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46886         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
46887         m4/mmap-anon.m4.
46888         (Depends-on): Add getpagesize.
46889         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46890         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
46891         m4/mmap-anon.m4.
46892         (Depends-on): Add getpagesize.
46893         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46894         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
46895         m4/mmap-anon.m4.
46896         (Depends-on): Add getpagesize.
46897         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46898
46899 2009-05-12  Bruno Haible  <bruno@clisp.org>
46900
46901         Tests for module 'alignof'.
46902         * modules/alignof-tests: New file.
46903         * tests/test-alignof.c: New file.
46904
46905 2009-05-12  Bruno Haible  <bruno@clisp.org>
46906
46907         Fix alignof macro.
46908         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
46909         vendor compilers that are always correct.
46910
46911 2009-05-12  Bruno Haible  <bruno@clisp.org>
46912
46913         Make the MAP_ANONYMOUS detection work on HP-UX 11.
46914         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
46915         not whether its fully works.
46916
46917 2009-05-12  Bruno Haible  <bruno@clisp.org>
46918
46919         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
46920
46921 2009-05-12  Jim Meyering  <meyering@redhat.com>
46922
46923         * top/maint.mk: Adjust backslash alignment.
46924
46925 2009-05-11  Simon Josefsson  <simon@josefsson.org>
46926
46927         * top/maint.mk: Make $(srcdir)/build-aux configurable.
46928
46929 2009-05-11  Eric Blake  <ebb9@byu.net>
46930
46931         argp: avoid undefined behavior
46932         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
46933         macros.
46934
46935 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46936
46937         * tests/test-vc-list-files-git.sh: Do git config of user.email and
46938         user.name to prevent git commit from complaining.
46939
46940 2009-05-10  Bruno Haible  <bruno@clisp.org>
46941
46942         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
46943         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
46944         it rewrites every file name only once.
46945         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
46946
46947 2009-05-08  Bruno Haible  <bruno@clisp.org>
46948
46949         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
46950         instead of 'max'.
46951
46952 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46953
46954         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
46955         sockaddr_storage test.
46956
46957 2009-05-07  Simon Josefsson  <simon@josefsson.org>
46958
46959         * modules/sys_socket (Makefile.am): Substitute
46960         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
46961         * m4/sys_socket_h.m4: Check for sockaddr_storage.
46962         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
46963         * tests/test-sys_socket.c: Check sockaddr_storage.
46964
46965 2009-05-08  Bruno Haible  <bruno@clisp.org>
46966
46967         New module 'alignof'.
46968         * lib/alignof.h: New file.
46969         * modules/alignof: New file.
46970
46971 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46972             Bruno Haible  <bruno@clisp.org>
46973
46974         Fix test-file-has-acl on FreeBSD.
46975         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
46976         mask is implicitly added.
46977         * tests/test-file-has-acl.c: Include <signal.h>.
46978         (main): Terminate the test after 5 seconds.
46979         * modules/acl-tests (configure.ac): Check for alarm function.
46980
46981 2009-05-04  Bruno Haible  <bruno@clisp.org>
46982
46983         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46984         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46985         * modules/errno (configure.ac): Drop AC_REQUIRE.
46986         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46987         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46988
46989 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46990
46991         * modules/glob-tests: New module.
46992         * tests/test-glob.c: Add.
46993
46994 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46995
46996         * modules/fnmatch-tests: New module.
46997         * tests/test-fnmatch.c: Add.
46998
46999 2009-05-04  Eric Blake  <ebb9@byu.net>
47000
47001         maint: make the new no-submodule-changes rule VPATH-safe
47002         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47003
47004 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47005             Bruno Haible  <bruno@clisp.org>
47006
47007         acl: Fix infinite loop on FreeBSD.
47008         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47009         of return value from acl_get_entry.
47010         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47011         Likewise.
47012
47013 2009-05-03  Bruno Haible  <bruno@clisp.org>
47014
47015         * lib/acl-internal.h (acl_entries): Clarify return value.
47016         * lib/acl_entries.c (acl_entries): Likewise.
47017
47018 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47019
47020         Bug fix in acl module.
47021         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47022
47023 2009-05-03  Bruno Haible  <bruno@clisp.org>
47024
47025         Create gperf-generated file in the source dir, not in the build dir.
47026         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47027         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47028         * modules/unicase/locale-language (unicase/locale-languages.h):
47029         Likewise.
47030         * modules/unicase/special-casing (unicase/special-casing-table.h):
47031         Likewise.
47032         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47033         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47034         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47035         Reported by Ralf Wildenhues.
47036
47037 2009-05-03  Bruno Haible  <bruno@clisp.org>
47038
47039         * modules/fnmatch (Description, configure.ac): Taken from
47040         fnmatch-posix.
47041         * modules/fnmatch-posix: Turn into a symbolic reference to the
47042         'fnmatch' module, and deprecate.
47043         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47044
47045 2009-05-03  Bruno Haible  <bruno@clisp.org>
47046
47047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47048         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47049         Reported by Ralf Wildenhues.
47050
47051 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47052
47053         * m4/fnmatch.m4: Fix fnmatch re-define.
47054
47055 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47056
47057         priv-set: new module and tests; adapt write-any-file
47058         * lib/priv-set.c: New file.
47059         * lib/priv-set.h: New file.
47060         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47061         * lib/write-any-file.c: Simplify by using priv-set module.
47062         * m4/priv-set.m4: New file.
47063         * modules/priv-set: New file.
47064         * modules/unlinkdir: Add dependency on priv-set module.
47065         * modules/write-any-file: Likewise.
47066
47067         Tests for module 'priv-set'.
47068         * modules/priv-set-tests: New file.
47069         * tests/test-priv-set.c: New file.
47070
47071 2009-05-03  Jim Meyering  <meyering@redhat.com>
47072             Bruno Haible  <bruno@clisp.org>
47073
47074         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47075         use the converted UTF-8 variant of the name instead.
47076
47077 2009-05-03  Jim Meyering  <meyering@redhat.com>
47078
47079         tests: tighten some getdate tests
47080         * tests/test-getdate.c (main): Tighten tests: require equality,
47081         not just greater than.  Set TZ envvar to UTC0.
47082
47083 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47084
47085         getdate: correctly interpret "next monday" when run on a Monday
47086         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47087         that e.g., "next tues" (when run on a tuesday) results in a date
47088         that is one week in the future, and not today's date.
47089         I.e., add a week when the wday is the same as the current one.
47090         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47091         and earlier by Martin Bernreuther and Jan Minář.
47092         * tests/test-getdate.c (main): Check that "next DAY" is always in
47093         the future and that "last DAY" is always in the past.
47094
47095 2009-05-02  Jim Meyering  <meyering@redhat.com>
47096
47097         build: ensure that a release build fails when a submodule is unclean
47098         * top/maint.mk (no-submodule-changes): New rule.
47099         (alpha beta major): Depend on it.
47100
47101 2009-05-02  Bruno Haible  <bruno@clisp.org>
47102
47103         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47104         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47105         shell variable gl_fnmatch_required to detect which variant is
47106         requested.
47107         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47108         gl_FUNC_FNMATCH_POSIX.
47109         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47110         exclude fnmatch-posix.
47111
47112 2009-05-02  Bruno Haible  <bruno@clisp.org>
47113
47114         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47115         * modules/mbsrtowcs (License): Change to LGPLv2+.
47116         * modules/strnlen1 (License): Likewise.
47117         Reported by Simon Josefsson.
47118
47119 2009-05-02  Bruno Haible  <bruno@clisp.org>
47120
47121         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47122         "cross".
47123         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47124         gnulib-tool was called with option --source-base=lib.
47125
47126 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47127
47128         Use automake *-local hooks without commands, for extensibility.
47129         * modules/localcharset (Makefile.am): Rename install-exec-local
47130         rule to install-exec-localcharset, and make it a prerequisite of
47131         install-exec-local.  Likewise, rename the uninstall-local rule to
47132         uninstall-localcharset, and make it a prerequisite of the former.
47133
47134 2009-05-01  Bruno Haible  <bruno@clisp.org>
47135
47136         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47137         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47138         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47140         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47141         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47142         m4/locale-zh.m4, m4/codeset.m4.
47143
47144         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47145         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47146         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47147         m4/locale-zh.m4.
47148
47149         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47150         REPLACE_WCRTOMB if mbstate_t must be replaced.
47151         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47152         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47153
47154 2009-05-01  Bruno Haible  <bruno@clisp.org>
47155
47156         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47157         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47158         dngettext, dcngettext, textdomain, bindtextdomain,
47159         bind_textdomain_codeset): Undefine before redefining.
47160
47161 2009-04-30  Bruno Haible  <bruno@clisp.org>
47162
47163         Fix bug introduced on 2009-04-25.
47164         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47165         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47166         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47167         is defined.
47168         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47169         is defined.
47170         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47171         is defined.
47172         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47173
47174 2009-04-28  Bruno Haible  <bruno@clisp.org>
47175
47176         Comment tweaks.
47177         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47178         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47179         * lib/unicase.h (u*_casexfrm): Likewise.
47180         Reported by Paolo Bonzini.
47181
47182 2009-04-28  Bruno Haible  <bruno@clisp.org>
47183
47184         Fix a compilation error.
47185         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47186         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47187         Reported by Jim Meyering.
47188
47189 2009-04-27  Bruno Haible  <bruno@clisp.org>
47190
47191         New module 'libunistring'.
47192         * modules/libunistring: New file.
47193         * m4/libunistring.m4: New file.
47194         * MODULES.html.sh (Unicode string functions): Add it.
47195
47196 2009-04-27  Eric Blake  <ebb9@byu.net>
47197
47198         maint.mk: allow package-specific header to provide <config.h>
47199         * top/maint.mk (sc_require_config_h): New variable.
47200         (sc_require_config_h, sc_require_config_h_first): Use it.
47201
47202 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47203
47204         * top/maint.mk (sc_avoid_if_before_free): Except
47205         useless-if-before-free script.
47206
47207 2009-04-27  Eric Blake  <ebb9@byu.net>
47208
47209         maintainer-makefile: depend on all required helper scripts
47210         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47211         useless-if-before-free.
47212         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47213         version, rather than assuming gnulib checkout is available.
47214         Reported by Simen Josefsson.
47215
47216 2009-04-26  Bruno Haible  <bruno@clisp.org>
47217
47218         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47219         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47220         "../" or "..".
47221
47222 2009-04-26  Bruno Haible  <bruno@clisp.org>
47223
47224         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47225         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47226         AC_LIB_HAVE_LINKFLAGS.
47227
47228 2009-04-26  Bruno Haible  <bruno@clisp.org>
47229
47230         Simplify calling convention of u*_conv_from_encoding.
47231         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47232         u32_conv_from_encoding): Expect a resultbuf argument and return the
47233         result directly as a pointer.
47234         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47235         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47236         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47237         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47238         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47239         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47240         Update.
47241         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47242         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47243         * lib/vasnprintf.c (VASNPRINTF): Update.
47244         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47245         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47246         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47247         * NEWS: Mention the change.
47248
47249 2009-04-26  Bruno Haible  <bruno@clisp.org>
47250
47251         Simplify calling convention of u*_conv_to_encoding.
47252         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47253         u32_conv_to_encoding): Expect a resultbuf argument and return the
47254         result directly as a pointer.
47255         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47256         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47257         freeing scaled_offsets if mem_iconveha failed.
47258         * lib/unicase/u-casexfrm.h (FUNC): Update.
47259         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47260         * lib/vasnprintf.c (VASNPRINTF): Update.
47261         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47262         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47263         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47264         * NEWS: Mention the change.
47265
47266 2009-04-26  Bruno Haible  <bruno@clisp.org>
47267
47268         Avoid test failures on AIX and OSF/1.
47269         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47270         malloc(0).
47271         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47272         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47273         Likewise.
47274         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47275         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47276         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47277         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47278         * doc/posix-functions/malloc.texi: Document the portability problem
47279         related to malloc(0).
47280
47281 2009-04-26  Bruno Haible  <bruno@clisp.org>
47282
47283         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47284         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47285         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47286
47287 2009-04-25  Bruno Haible  <bruno@clisp.org>
47288
47289         Avoid link error when creating a namespace clean library.
47290         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47291         as macro with arguments if already defined as an alias.
47292         * lib/signbitf.c (gl_signbitf): Don't undefine.
47293         * lib/signbitd.c (gl_signbitd): Don't undefine.
47294         * lib/signbitl.c (gl_signbitl): Don't undefine.
47295
47296 2009-04-25  Jim Meyering  <meyering@redhat.com>
47297
47298         vc-list-files: fix another quoting bug
47299         * build-aux/vc-list-files: Avoid sed backslash expansion
47300         of pathological directory names.
47301
47302 2009-04-25  Eric Blake  <ebb9@byu.net>
47303
47304         vc-list-files: fix shell quoting error
47305         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47306         timestamp.
47307
47308 2009-04-25  Jim Meyering  <meyering@redhat.com>
47309
47310         vc-list-files: restore lost functionality with subdir argument
47311         * build-aux/vc-list-files: When given a non-"." sub-directory
47312         argument, substitute the $dir/ prefix back onto each resulting name.
47313         Otherwise, coreutils' root_tests check would fail.
47314
47315 2009-04-24  Eric Blake  <ebb9@byu.net>
47316
47317         vc-list-files: ignore git symlinks
47318         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47319         than ls-files, to ignore git symlinks.
47320
47321         maint.mk: import improvements from m4
47322         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47323         (move_if_change): Delete unused macro.
47324         (news-date-check, vc-diff-check): Support VPATH builds.
47325         (announcement): Likewise.  Split --bootstrap-tools list...
47326         (boostrap-tools): ...into separate list, which can be overridden
47327         in cfg.mk.
47328         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47329         requiring dependency on useless-if-before-free module.
47330         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47331         Support VPATH builds.
47332
47333 2009-04-24  Jim Meyering  <meyering@redhat.com>
47334
47335         maint.mk: remove coreutils-specific rules and variables
47336         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47337         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47338         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47339
47340         maint.mk: remove obsolete rule
47341         * top/maint.mk (rel-check): Remove rule.
47342         (WGET, WGETFLAGS): Remove now-unused variables.
47343
47344 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47345
47346         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47347         consistency.
47348
47349         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47350         '$(PATH_SEPARATOR)' instead of ':'.
47351
47352 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47353
47354         * lib/getopt1.c (main): Use 'const' for static array.
47355
47356 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47357
47358         * top/maint.mk: Sync with coreutils.
47359         * NEWS: Explain incompatibilities.
47360
47361 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47362             Bruno Haible  <bruno@clisp.org>
47363
47364         Fix cross-compilation results.
47365         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47366         statement, as third argument of AC_TRY_RUN.
47367         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47368         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47369         Likewise.
47370         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47371         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47372         Likewise.
47373         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47374         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47375         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47376
47377 2009-04-20  Bruno Haible  <bruno@clisp.org>
47378
47379         Avoid test failure on mingw.
47380         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47381
47382 2009-04-20  Bruno Haible  <bruno@clisp.org>
47383
47384         Avoid compilation error on mingw.
47385         * modules/localename-tests (Depends-on): Add locale.
47386
47387 2009-04-19  Bruno Haible  <bruno@clisp.org>
47388
47389         Support for building a shared library on Windows platforms.
47390         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47391         (main): Test the presence of UNINORM_NFC here.
47392         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47393         (main): Test the presence of UNINORM_NFD here.
47394         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47395         (main): Test the presence of UNINORM_NFKC here.
47396         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47397         (main): Test the presence of UNINORM_NFKD here.
47398
47399 2009-04-19  Bruno Haible  <bruno@clisp.org>
47400
47401         Avoid a compiler warning.
47402         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47403         Change type of variable 'sequence'.
47404
47405 2009-04-19  Bruno Haible  <bruno@clisp.org>
47406
47407         * modules/configmake (Makefile.am): When the contents of configmake.h
47408         does not change, arrange to preserve its modification time.
47409
47410 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47411
47412         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47413         gettext domain.
47414
47415 2009-04-16  Jim Meyering  <meyering@redhat.com>
47416
47417         useless-if-before-free: improve conversion code
47418         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47419         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47420
47421 2009-04-14  Bruno Haible  <bruno@clisp.org>
47422
47423         * modules/fcntl (Depends-on): Add extensions.
47424         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47425
47426 2009-04-12  Ben Pfaff  <blp@gnu.org>
47427
47428         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47429         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47430
47431 2009-03-20  Ben Pfaff  <blp@gnu.org>
47432
47433         Make rename replace existing destinations on Windows.
47434         * m4/rename.m4: Add test for Mingw.
47435         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47436         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47437         * doc/posix-functions/rename.texi: Document.
47438
47439 2009-04-10  Bruno Haible  <bruno@clisp.org>
47440
47441         New include file "iconveh.h".
47442         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47443         * lib/striconveh.h: Include it.
47444         (enum iconv_ilseq_handler): Remove definition.
47445         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47446         striconveh.h.
47447         * lib/striconveha.c: Include striconveh.h.
47448         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47449         * modules/striconveh (Files): Add lib/iconveh.h.
47450         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47451         lib/striconveh.h.
47452
47453 2009-04-10  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/uniconv.h: Update comment.
47456
47457 2009-04-10  Bruno Haible  <bruno@clisp.org>
47458
47459         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47460         always.
47461         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47462         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47463         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47464         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47465         "unistring-notinline.h", so that the function gets defined always.
47466         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47467         * lib/unistr/u8-uctomb.c: Likewise.
47468         * lib/unistr/u16-mbtouc.c: Likewise.
47469         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47470         * lib/unistr/u16-uctomb.c: Likewise.
47471         * lib/unistr/u32-mbtouc.c: Likewise.
47472         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47473         * lib/unistr/u32-uctomb.c: Likewise.
47474
47475 2009-04-10  Bruno Haible  <bruno@clisp.org>
47476
47477         Mark 'utime' obsolete.
47478         * modules/utime (Status, Notice): New sections.
47479         Suggested by Jim Meyering.
47480
47481         Fix cross-compile guess for utime test.
47482         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47483         autoconf.
47484         * doc/posix-functions/utime.texi: Give more precisions.
47485         Reported by Jan <ipif@ymail.com>.
47486
47487 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47488
47489         filevercmp: correct today's change
47490         * lib/filevercmp.c: Also handle coreutils' test inputs.
47491         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47492
47493         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47494         for reporting it.
47495         * lib/filevercmp.c: Special handle for "", "." and "..".
47496         * tests/test-filevercmp.c: Enlarge the set suite.
47497
47498 2009-04-07  Jim Meyering  <meyering@redhat.com>
47499
47500         useless-if-before-free: show how to remove braced useless free, too
47501         * build-aux/useless-if-before-free: still only in a comment, though.
47502
47503 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47504
47505         maint.mk: import changes to syntax-check macros from coreutils
47506         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47507         Use them in the relevant macros.
47508
47509 2009-04-06  Bruno Haible  <bruno@clisp.org>
47510
47511         Fix unportable use of bit-fields.
47512         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47513         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47514         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47515
47516 2009-04-06  Bruno Haible  <bruno@clisp.org>
47517
47518         Avoid test failures on AIX and OSF/1.
47519         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47520         that malloc(0) = NULL.
47521         * tests/unicase/test-u8-tolower.c (check): Likewise.
47522         * tests/unicase/test-u8-totitle.c (check): Likewise.
47523         * tests/unicase/test-u8-toupper.c (check): Likewise.
47524         * tests/unicase/test-u16-casefold.c (check): Likewise.
47525         * tests/unicase/test-u16-tolower.c (check): Likewise.
47526         * tests/unicase/test-u16-totitle.c (check): Likewise.
47527         * tests/unicase/test-u16-toupper.c (check): Likewise.
47528         * tests/unicase/test-u32-casefold.c (check): Likewise.
47529         * tests/unicase/test-u32-tolower.c (check): Likewise.
47530         * tests/unicase/test-u32-totitle.c (check): Likewise.
47531         * tests/unicase/test-u32-toupper.c (check): Likewise.
47532         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47533         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47534         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47535         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47536         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47537         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47538         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47539         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47540         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47541         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47542         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47543         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47544
47545 2009-04-05  Bruno Haible  <bruno@clisp.org>
47546
47547         Work around an autoconf limitation.
47548         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47549         comment line if it would be longer than 3 KB.
47550
47551 2009-04-05  Bruno Haible  <bruno@clisp.org>
47552
47553         Avoid test failure with libiconv-1.13.
47554         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47555         of the expected test results.
47556
47557 2009-04-05  Bruno Haible  <bruno@clisp.org>
47558
47559         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47560         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47561         that it should be installed.
47562
47563 2009-04-05  Bruno Haible  <bruno@clisp.org>
47564
47565         * gnulib-tool: New option --copy-file.
47566         (func_usage): Document it.
47567         (func_dest_tmpfilename): Moved out of func_import.
47568         (func_add_file, func_update_file): New functions, extracted from
47569         func_import.
47570         (func_import): Update.
47571
47572 2009-04-05  Karl Berry  <karl@gnu.org>
47573
47574         * README: prominently mention gnulib-tool.
47575         Rearrange sections so getting the code is near the top.
47576
47577 2009-04-05  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/unicase.h: Mention u*_cmp2.
47580         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47581         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47582         * lib/unicase/ulc-casecmp.c: Likewise.
47583         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47584         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47585         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47586         unistr/u8-cmp.
47587         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47588         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47589         unistr/u16-cmp.
47590         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47591         unistr/u32-cmp.
47592
47593         * lib/uninorm.h: Mention u*_cmp2.
47594         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47595         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47596         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47597         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47598         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47599         unistr/u8-cmp.
47600         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47601         unistr/u16-cmp.
47602         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47603         unistr/u32-cmp.
47604
47605         New module 'unistr/u32-cmp2'.
47606         * lib/unistr/u32-cmp2.c: New file.
47607         * modules/unistr/u32-cmp2: New file.
47608
47609         New module 'unistr/u16-cmp2'.
47610         * lib/unistr/u16-cmp2.c: New file.
47611         * modules/unistr/u16-cmp2: New file.
47612
47613         New module 'unistr/u8-cmp2'.
47614         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47615         * lib/unistr/u8-cmp2.c: New file.
47616         * lib/unistr/u-cmp2.h: New file.
47617         * modules/unistr/u8-cmp2: New file.
47618
47619 2009-04-05  Bruno Haible  <bruno@clisp.org>
47620
47621         * lib/unictype.h (uc_property_is_valid): New macro.
47622         * tests/unictype/test-pr_byname.c (main): Use it.
47623
47624         * lib/unistr.h: Doc fixes.
47625         * lib/uniconv.h: Doc fixes.
47626         * lib/unictype.h: Doc fixes.
47627
47628 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47629
47630         Port coreutils 7.2 to Solaris 8.
47631
47632         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47633         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47634         for Solaris 8.  This is a bit of a hack, as it means it's the
47635         caller's responsibility to add -lnsl if needed, but most likely it
47636         won't be needed since only getaddrinfo uses this and getaddrinfo
47637         isn't needed on Solaris 8.
47638
47639         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47640         problem to Solaris 8 encountered with coreutils 7.2, which
47641         resulted in a message "fnmatch.c:292: warning: passing argument 4
47642         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47643         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47644
47645 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47646
47647         * m4/ld-version-script.m4: Add FIXME comment.
47648
47649 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47650
47651         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47652         SOVERSION variable.
47653
47654 2009-04-02  Bruno Haible  <bruno@clisp.org>
47655
47656         * Makefile (info, html, dvi, pdf): Combine the rules.
47657         Suggested by Jim Meyering.
47658
47659 2009-04-01  Bruno Haible  <bruno@clisp.org>
47660
47661         * Makefile (info, html, dvi, pdf): New targets.
47662         Reported by Reuben Thomas <rrt@sc3d.org>.
47663
47664 2009-04-01  Bruno Haible  <bruno@clisp.org>
47665
47666         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47667         can be put into PATH.
47668         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47669
47670 2009-04-01  Bruno Haible  <bruno@clisp.org>
47671
47672         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47673
47674 2009-04-01  Bruno Haible  <bruno@clisp.org>
47675
47676         Rename module 'visibility'.
47677         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47678         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47679         * doc/gnulib.texi: Update.
47680         * MODULES.html.sh (Misc): Update.
47681         * NEWS: Mention the change.
47682
47683 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47684
47685         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47686         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47687         Eric Blake <ebb9@byu.net> for review.
47688         * MODULES.html.sh: Add lib-msvc-compat.
47689         * doc/gnulib.texi: Link to new section.
47690         * m4/ld-output-def.m4: New file.
47691         * doc/ld-output-def.texi: New file.
47692
47693 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47694
47695         Rename ld-version-script to lib-symbol-versions.  Suggested by
47696         Bruno Haible <bruno@clisp.org>.
47697         * modules/ld-version-script: Renamed to lib-symbol-versions.
47698         * doc/ld-version-script.texi: Fix module name.
47699         * MODULES.html.sh: Add lib-symbol-versions.
47700
47701 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47702
47703         * modules/u64-tests: New file.
47704         * tests/test-u64.c: New file.
47705
47706 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47707
47708         * MODULES.html.sh: Mention u64.
47709         * modules/u64: New module.
47710         * modules/crypto/sha512: Depend on u64 module instead of providing
47711         u64.h.
47712
47713 2009-03-27  Eric Blake  <ebb9@byu.net>
47714
47715         test-strerror: make debugging EAI_SYSTEM easier
47716         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47717         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47718         failure was EAI_SYSTEM.
47719
47720 2009-03-25  Bruno Haible  <bruno@clisp.org>
47721
47722         Fix a problem with --enable-relocatable on Solaris 7.
47723         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47724         since 2008-02-24.
47725
47726 2009-03-25  Eric Blake  <ebb9@byu.net>
47727
47728         test-sockets: avoid gcc warning
47729         * tests/test-sockets.c (main): Silence compiler warning.
47730
47731 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47732
47733         New modules nproc, pthread, contributed by Glen Lenker.
47734
47735         * MODULES.html.sh: Add pthread, nproc.
47736         * lib/nproc.c: New file.
47737         * lib/nproc.h: New file.
47738         * lib/pthread.in.h: New file.
47739         * m4/pthread.m4: New file.
47740         * modules/nproc: New file.
47741         * modules/pthread: New file.
47742
47743 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47744
47745         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47746         New variable.
47747
47748 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47749
47750         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47751         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47752         * tests/test-filevercmp.c: Add tests for backup suffixes.
47753
47754 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47755
47756         * modules/stdlib (Depends-on): Add stdint, needed when defining
47757         struct random_data on, for example, HP-UX 10.20.  Reported by
47758         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47759
47760 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47761
47762         * lib/readline.c (readline): Call fflush on stdout after printing
47763         prompt.
47764
47765 2009-03-20  Bruno Haible  <bruno@clisp.org>
47766
47767         Remove dependency from 'close' module to -lws2_32 on native Windows.
47768         * lib/close-hook.h: New file.
47769         * lib/close-hook.c: New file.
47770         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47771         w32sock.h.
47772         (_gl_close_fd_maybe_socket): Remove function.
47773         (rpl_close): Invoke execute_all_close_hooks instead of
47774         _gl_close_fd_maybe_socket.
47775         * lib/sockets.c: Include close-hook.h, w32sock.h.
47776         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47777         (close_sockets_hook): New variable.
47778         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47779         (gl_sockets_cleanup): Unregister it.
47780         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47781         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47782         * modules/close-hook: New file.
47783         * modules/close (Files): Remove lib/w32sock.h.
47784         (Depends-on): Add close-hook.
47785         (Link): Remove section.
47786         * modules/sockets (Files): Add lib/w32sock.h.
47787         (Depends-on): Add close-hook.
47788         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47789         invocation.
47790         * NEWS: Mention that LIB_CLOSE is gone.
47791
47792 2009-03-23  Eric Blake  <ebb9@byu.net>
47793
47794         signal-tests: test previous patch
47795         * tests/test-signal.c: New file.
47796         * modules/signal-tests: Likewise.
47797
47798         signal.h: always support 'volatile sig_atomic_t'
47799         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47800         (gl_SIGNAL_H_DEFAULTS): Add a default.
47801         * modules/signal (Makefile.am): Substitute if needed.
47802         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47803         users can blindly add volatile.
47804         * doc/posix-headers/signal.texi (signal.h): Document it.
47805         Reported by Matthew Woehlke.
47806
47807 2009-03-23  Jim Meyering  <meyering@redhat.com>
47808
47809         pathmax: PATH_MAX: use pathconf only when available
47810         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47811         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47812         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47813         This avoids a link failure in a PSP cross-compilation environment
47814         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47815
47816         * lib/vasnprintf.c (divide): Fix typo in comment.
47817
47818 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47819
47820         * gnulib-tool (func_filter_filelist): Fix comment.
47821
47822 2009-03-20  Bruno Haible  <bruno@clisp.org>
47823
47824         Make sockets.h self-contained.
47825         * lib/sockets.c: Include sockets.h first.
47826         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47827
47828 2009-03-19  Eric Blake  <ebb9@byu.net>
47829
47830         doc: mention more functions added in cygwin 1.7.0
47831         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
47832         addition.
47833         * doc/posix-functions/log2f.texi: Likewise.
47834
47835 2009-03-19  Jim Meyering  <meyering@redhat.com>
47836
47837         fsusage: avoid syntax error due to statement-before-declaration
47838         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
47839         after all declarations.  Reported by Matthew Woehlke in
47840         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
47841
47842 2009-03-18  Eric Blake  <ebb9@byu.net>
47843
47844         build-aux/compile: sync from automake
47845         * build-aux/compile: New file, from automake.
47846         * config/srclist.txt: Mention build-aux/compile.
47847
47848 2009-03-17  Bruno Haible  <bruno@clisp.org>
47849
47850         * lib/git-merge-changelog.c: Fix typo in comment.
47851         Reported by Reuben Thomas <rrt@sc3d.org>.
47852
47853 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
47854
47855         * m4/regex.m4: update and improve help for
47856         --without-included-regex.
47857
47858 2009-03-17  Simon Josefsson  <simon@josefsson.org>
47859
47860         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
47861         failure on missing include files.
47862
47863 2009-03-17  Eric Blake  <ebb9@byu.net>
47864
47865         doc: mention more functions added in cygwin 1.7.0
47866         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
47867         addition.
47868         * doc/posix-functions/fwscanf.texi: Likewise.
47869         * doc/posix-functions/swprintf.texi: Likewise.
47870         * doc/posix-functions/swscanf.texi: Likewise.
47871         * doc/posix-functions/vfwprintf.texi: Likewise.
47872         * doc/posix-functions/vfwscanf.texi: Likewise.
47873         * doc/posix-functions/vswprintf.texi: Likewise.
47874         * doc/posix-functions/vswscanf.texi: Likewise.
47875         * doc/posix-functions/vwprintf.texi: Likewise.
47876         * doc/posix-functions/vwscanf.texi: Likewise.
47877         * doc/posix-functions/wcscasecmp.texi: Likewise.
47878         * doc/posix-functions/wcsdup.texi: Likewise.
47879         * doc/posix-functions/wcsftime.texi: Likewise.
47880         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47881         * doc/posix-functions/wprintf.texi: Likewise.
47882         * doc/posix-functions/wscanf.texi: Likewise.
47883         * doc/glibc-functions/gethostbyname2.texi: Likewise.
47884
47885 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47886
47887         maint.mk: really add $(AM_MAKEFLAGS)
47888         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
47889         was inadvertently omitted in the last commit.
47890         Spotted by Bruno Haible.
47891
47892         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
47893         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
47894         $(AM_MAKEFLAGS)' rather than plain `make'.
47895
47896         gnulib-tool: execute $MAKE not make
47897         * gnulib-tool: Default $MAKE to 'make'.
47898         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
47899         than make.  Initialize $MAKE in the do-autobuild script.
47900
47901         gnulib-tool: use $MAKE not make in generated files
47902         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
47903         make, in generated files.  Initialize $MAKE in the do-autobuild
47904         script.
47905
47906         * top/GNUmakefile (_have-git-version-gen): Fix typo.
47907
47908         GNUmakefile: disable parallelism only for multiple, recursive targets
47909         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
47910         additions in the Makefile.
47911         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
47912         by Automake.
47913         (.NOTPARALLEL): Only disable parallel builds if multiple targets
47914         are listed on the command line and at least one of them is
47915         listed in $(ALL_RECURSIVE_TARGETS).
47916
47917 2009-03-14  Bruno Haible  <bruno@clisp.org>
47918
47919         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
47920         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
47921         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
47922         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
47923         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
47924         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
47925         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
47926         unistr/u8-uctomb.
47927         * modules/unistr/u8-strchr (Depends-on): Likewise.
47928         * modules/unistr/u8-strrchr (Depends-on): Likewise.
47929         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
47930         unistr/u16-uctomb.
47931         * modules/unistr/u16-strchr (Depends-on): Likewise.
47932         * modules/unistr/u16-strrchr (Depends-on): Likewise.
47933
47934 2009-03-12  Bruno Haible  <bruno@clisp.org>
47935
47936         Work around select() bug on Interix 3.5.
47937         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
47938         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
47939         * m4/select.m4: New file.
47940         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
47941         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
47942         * modules/select (Files): Add m4/select.m4.
47943         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
47944         * modules/nanosleep (Depends-on): Add select.
47945         * modules/poll (Depends-on): Likewise.
47946         * doc/posix-functions/select.texi: Mention the Interix bug.
47947         Reported by Markus Duft <mduft@gentoo.org>.
47948
47949         * lib/select.c: Renamed from lib/winsock-select.c.
47950         * modules/select (Files): Add lib/select.c, remove
47951         lib/winsock-select.c.
47952         (configure.ac): Update.
47953
47954 2009-03-12  Jim Meyering  <meyering@redhat.com>
47955
47956         avoid gcc warnings about unused macro definitions
47957         * lib/readtokens.c (STREQ): Remove unused definition.
47958         * lib/xmalloc.c (SIZE_MAX): Likewise.
47959         * lib/openat-die.c (N_): Likewise.
47960         * lib/mountlist.c (SIZE_MAX): Remove definition.
47961         Instead, include <stdint.h>.
47962         * lib/readutmp.c: Likewise.
47963         * modules/readutmp (Depends-on): Add stdint.
47964         * modules/mountlist (Depends-on): Add stdint.
47965         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
47966
47967 2009-03-10  Bruno Haible  <bruno@clisp.org>
47968
47969         Tests for module 'mbmemcasecoll'.
47970         * modules/mbmemcasecoll-tests: New file.
47971         * tests/test-mbmemcasecoll1.sh: New file.
47972         * tests/test-mbmemcasecoll2.sh: New file.
47973         * tests/test-mbmemcasecoll3.sh: New file.
47974         * tests/test-mbmemcasecoll.c: New file.
47975
47976         New module 'mbmemcasecoll'.
47977         * lib/mbmemcasecoll.h: New file.
47978         * lib/mbmemcasecoll.c: New file.
47979         * modules/mbmemcasecoll: New file.
47980
47981         * tests/test-mbmemcasecmp.h: New file, extracted from
47982         tests/test-mbmemcasecmp.c.
47983         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47984         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47985         (main): Update.
47986         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47987
47988 2009-03-09  Bruno Haible  <bruno@clisp.org>
47989
47990         Tests for module 'mbmemcasecmp'.
47991         * modules/mbmemcasecmp-tests: New file.
47992         * tests/test-mbmemcasecmp1.sh: New file.
47993         * tests/test-mbmemcasecmp2.sh: New file.
47994         * tests/test-mbmemcasecmp3.sh: New file.
47995         * tests/test-mbmemcasecmp.c: New file.
47996
47997         New module 'mbmemcasecmp'.
47998         * lib/mbmemcasecmp.h: New file.
47999         * lib/mbmemcasecmp.c: New file.
48000         * modules/mbmemcasecmp: New file.
48001
48002 2009-03-09  Bruno Haible  <bruno@clisp.org>
48003
48004         Tests for module 'unicase/ulc-casecoll'.
48005         * modules/unicase/ulc-casecoll-tests: New file.
48006         * tests/unicase/test-ulc-casecoll1.sh: New file.
48007         * tests/unicase/test-ulc-casecoll2.sh: New file.
48008         * tests/unicase/test-ulc-casecoll.c: New file.
48009
48010         New module 'unicase/ulc-casecoll'.
48011         * lib/unicase.h (ulc_casecoll): New declaration.
48012         * lib/unicase/ulc-casecoll.c: New file.
48013         * modules/unicase/ulc-casecoll: New file.
48014
48015         New module 'unicase/ulc-casexfrm'.
48016         * lib/unicase.h (ulc_casexfrm): New declaration.
48017         * lib/unicase/ulc-casexfrm.c: New file.
48018         * modules/unicase/ulc-casexfrm: New file.
48019
48020 2009-03-09  Bruno Haible  <bruno@clisp.org>
48021
48022         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48023         invocations.
48024
48025         * m4/mbscasecmp.m4: Remove file.
48026         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48027         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48028
48029         * m4/mbscasestr.m4: Remove file.
48030         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48031         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48032
48033         * m4/mbschr.m4: Remove file.
48034         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48035         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48036
48037         * m4/mbscspn.m4: Remove file.
48038         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48039         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48040
48041         * m4/mbslen.m4: Remove file.
48042         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48043         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48044
48045         * m4/mbsncasecmp.m4: Remove file.
48046         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48047         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48048
48049         * m4/mbsnlen.m4: Remove file.
48050         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48051         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48052
48053         * m4/mbspbrk.m4: Remove file.
48054         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48055         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48056
48057         * m4/mbspcasecmp.m4: Remove file.
48058         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48059         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48060
48061         * m4/mbsrchr.m4: Remove file.
48062         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48063         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48064
48065         * m4/mbssep.m4: Remove file.
48066         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48067         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48068
48069         * m4/mbsspn.m4: Remove file.
48070         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48071         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48072
48073         * m4/mbsstr.m4: Remove file.
48074         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48075         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48076
48077         * m4/mbstok_r.m4: Remove file.
48078         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48079         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48080
48081         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48082
48083         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48084         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48085
48086         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48087
48088 2009-03-08  Bruno Haible  <bruno@clisp.org>
48089
48090         Tests for module 'unicase/ulc-casecmp'.
48091         * modules/unicase/ulc-casecmp-tests: New file.
48092         * tests/unicase/test-ulc-casecmp1.sh: New file.
48093         * tests/unicase/test-ulc-casecmp2.sh: New file.
48094         * tests/unicase/test-ulc-casecmp.c: New file.
48095
48096         New module 'unicase/ulc-casecmp'.
48097         * lib/unicase.h (ulc_casecmp): New declaration.
48098         * lib/unicase/ulc-casecmp.c: New file.
48099         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48100         'const SRC_UNIT *'.
48101         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48102         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48103         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48104         * modules/unicase/ulc-casecmp: New file.
48105
48106         Tests for module 'unicase/u32-is-cased'.
48107         * modules/unicase/u32-is-cased-tests: New file.
48108         * tests/unicase/test-u32-is-cased.c: New file.
48109
48110         Tests for module 'unicase/u16-is-cased'.
48111         * modules/unicase/u16-is-cased-tests: New file.
48112         * tests/unicase/test-u16-is-cased.c: New file.
48113
48114         Tests for module 'unicase/u8-is-cased'.
48115         * modules/unicase/u8-is-cased-tests: New file.
48116         * tests/unicase/test-u8-is-cased.c: New file.
48117         * tests/unicase/test-is-cased.h: New file.
48118
48119         New module 'unicase/u32-is-cased'.
48120         * lib/unicase/u32-is-cased.c: New file.
48121         * modules/unicase/u32-is-cased: New file.
48122
48123         New module 'unicase/u16-is-cased'.
48124         * lib/unicase/u16-is-cased.c: New file.
48125         * modules/unicase/u16-is-cased: New file.
48126
48127         New module 'unicase/u8-is-cased'.
48128         * lib/unicase/u8-is-cased.c: New file.
48129         * lib/unicase/u-is-cased.h: New file.
48130         * modules/unicase/u8-is-cased: New file.
48131
48132         Tests for module 'unicase/u32-is-casefolded'.
48133         * modules/unicase/u32-is-casefolded-tests: New file.
48134         * tests/unicase/test-u32-is-casefolded.c: New file.
48135
48136         Tests for module 'unicase/u16-is-casefolded'.
48137         * modules/unicase/u16-is-casefolded-tests: New file.
48138         * tests/unicase/test-u16-is-casefolded.c: New file.
48139
48140         Tests for module 'unicase/u8-is-casefolded'.
48141         * modules/unicase/u8-is-casefolded-tests: New file.
48142         * tests/unicase/test-u8-is-casefolded.c: New file.
48143         * tests/unicase/test-is-casefolded.h: New file.
48144
48145         New module 'unicase/u32-is-casefolded'.
48146         * lib/unicase/u32-is-casefolded.c: New file.
48147         * modules/unicase/u32-is-casefolded: New file.
48148
48149         New module 'unicase/u16-is-casefolded'.
48150         * lib/unicase/u16-is-casefolded.c: New file.
48151         * modules/unicase/u16-is-casefolded: New file.
48152
48153         New module 'unicase/u8-is-casefolded'.
48154         * lib/unicase/u8-is-casefolded.c: New file.
48155         * modules/unicase/u8-is-casefolded: New file.
48156
48157         Tests for module 'unicase/u32-is-titlecase'.
48158         * modules/unicase/u32-is-titlecase-tests: New file.
48159         * tests/unicase/test-u32-is-titlecase.c: New file.
48160
48161         Tests for module 'unicase/u16-is-titlecase'.
48162         * modules/unicase/u16-is-titlecase-tests: New file.
48163         * tests/unicase/test-u16-is-titlecase.c: New file.
48164
48165         Tests for module 'unicase/u8-is-titlecase'.
48166         * modules/unicase/u8-is-titlecase-tests: New file.
48167         * tests/unicase/test-u8-is-titlecase.c: New file.
48168         * tests/unicase/test-is-titlecase.h: New file.
48169
48170         New module 'unicase/u32-is-titlecase'.
48171         * lib/unicase/u32-is-titlecase.c: New file.
48172         * modules/unicase/u32-is-titlecase: New file.
48173
48174         New module 'unicase/u16-is-titlecase'.
48175         * lib/unicase/u16-is-titlecase.c: New file.
48176         * modules/unicase/u16-is-titlecase: New file.
48177
48178         New module 'unicase/u8-is-titlecase'.
48179         * lib/unicase/u8-is-titlecase.c: New file.
48180         * modules/unicase/u8-is-titlecase: New file.
48181
48182         Tests for module 'unicase/u32-is-lowercase'.
48183         * modules/unicase/u32-is-lowercase-tests: New file.
48184         * tests/unicase/test-u32-is-lowercase.c: New file.
48185
48186         Tests for module 'unicase/u16-is-lowercase'.
48187         * modules/unicase/u16-is-lowercase-tests: New file.
48188         * tests/unicase/test-u16-is-lowercase.c: New file.
48189
48190         Tests for module 'unicase/u8-is-lowercase'.
48191         * modules/unicase/u8-is-lowercase-tests: New file.
48192         * tests/unicase/test-u8-is-lowercase.c: New file.
48193         * tests/unicase/test-is-lowercase.h: New file.
48194
48195         New module 'unicase/u32-is-lowercase'.
48196         * lib/unicase/u32-is-lowercase.c: New file.
48197         * modules/unicase/u32-is-lowercase: New file.
48198
48199         New module 'unicase/u16-is-lowercase'.
48200         * lib/unicase/u16-is-lowercase.c: New file.
48201         * modules/unicase/u16-is-lowercase: New file.
48202
48203         New module 'unicase/u8-is-lowercase'.
48204         * lib/unicase/u8-is-lowercase.c: New file.
48205         * modules/unicase/u8-is-lowercase: New file.
48206
48207         Tests for module 'unicase/u32-is-uppercase'.
48208         * modules/unicase/u32-is-uppercase-tests: New file.
48209         * tests/unicase/test-u32-is-uppercase.c: New file.
48210
48211         Tests for module 'unicase/u16-is-uppercase'.
48212         * modules/unicase/u16-is-uppercase-tests: New file.
48213         * tests/unicase/test-u16-is-uppercase.c: New file.
48214
48215         Tests for module 'unicase/u8-is-uppercase'.
48216         * modules/unicase/u8-is-uppercase-tests: New file.
48217         * tests/unicase/test-u8-is-uppercase.c: New file.
48218         * tests/unicase/test-is-uppercase.h: New file.
48219
48220         New module 'unicase/u32-is-uppercase'.
48221         * lib/unicase/u32-is-uppercase.c: New file.
48222         * modules/unicase/u32-is-uppercase: New file.
48223
48224         New module 'unicase/u16-is-uppercase'.
48225         * lib/unicase/u16-is-uppercase.c: New file.
48226         * modules/unicase/u16-is-uppercase: New file.
48227
48228         New module 'unicase/u8-is-uppercase'.
48229         * lib/unicase/u8-is-uppercase.c: New file.
48230         * modules/unicase/u8-is-uppercase: New file.
48231
48232         New module 'unicase/u32-is-invariant'.
48233         * lib/unicase/u32-is-invariant.c: New file.
48234         * modules/unicase/u32-is-invariant: New file.
48235
48236         New module 'unicase/u16-is-invariant'.
48237         * lib/unicase/u16-is-invariant.c: New file.
48238         * modules/unicase/u16-is-invariant: New file.
48239
48240         New module 'unicase/u8-is-invariant'.
48241         * lib/unicase/u8-is-invariant.c: New file.
48242         * lib/unicase/invariant.h: New file.
48243         * lib/unicase/u-is-invariant.h: New file.
48244         * modules/unicase/u8-is-invariant: New file.
48245
48246         Tests for module 'unicase/u32-casecoll'.
48247         * modules/unicase/u32-casecoll-tests: New file.
48248         * tests/unicase/test-u32-casecoll.c: New file.
48249
48250         Tests for module 'unicase/u16-casecoll'.
48251         * modules/unicase/u16-casecoll-tests: New file.
48252         * tests/unicase/test-u16-casecoll.c: New file.
48253
48254         Tests for module 'unicase/u8-casecoll'.
48255         * modules/unicase/u8-casecoll-tests: New file.
48256         * tests/unicase/test-u8-casecoll.c: New file.
48257
48258         New module 'unicase/u32-casecoll'.
48259         * lib/unicase/u32-casecoll.c: New file.
48260         * modules/unicase/u32-casecoll: New file.
48261
48262         New module 'unicase/u16-casecoll'.
48263         * lib/unicase/u16-casecoll.c: New file.
48264         * modules/unicase/u16-casecoll: New file.
48265
48266         New module 'unicase/u8-casecoll'.
48267         * lib/unicase/u8-casecoll.c: New file.
48268         * lib/unicase/u-casecoll.h: New file.
48269         * modules/unicase/u8-casecoll: New file.
48270
48271         New module 'unicase/u32-casexfrm'.
48272         * lib/unicase/u32-casexfrm.c: New file.
48273         * modules/unicase/u32-casexfrm: New file.
48274
48275         New module 'unicase/u16-casexfrm'.
48276         * lib/unicase/u16-casexfrm.c: New file.
48277         * modules/unicase/u16-casexfrm: New file.
48278
48279         New module 'unicase/u8-casexfrm'.
48280         * lib/unicase/u8-casexfrm.c: New file.
48281         * lib/unicase/u-casexfrm.h: New file.
48282         * modules/unicase/u8-casexfrm: New file.
48283
48284         Tests for module 'unicase/u32-casecmp'.
48285         * modules/unicase/u32-casecmp-tests: New file.
48286         * tests/unicase/test-u32-casecmp.c: New file.
48287
48288         Tests for module 'unicase/u16-casecmp'.
48289         * modules/unicase/u16-casecmp-tests: New file.
48290         * tests/unicase/test-u16-casecmp.c: New file.
48291
48292         Tests for module 'unicase/u8-casecmp'.
48293         * modules/unicase/u8-casecmp-tests: New file.
48294         * tests/unicase/test-u8-casecmp.c: New file.
48295         * tests/unicase/test-casecmp.h: New file.
48296
48297         New module 'unicase/u32-casecmp'.
48298         * lib/unicase/u32-casecmp.c: New file.
48299         * modules/unicase/u32-casecmp: New file.
48300
48301         New module 'unicase/u16-casecmp'.
48302         * lib/unicase/u16-casecmp.c: New file.
48303         * modules/unicase/u16-casecmp: New file.
48304
48305         New module 'unicase/u8-casecmp'.
48306         * lib/unicase/u8-casecmp.c: New file.
48307         * lib/unicase/u-casecmp.h: New file.
48308         * modules/unicase/u8-casecmp: New file.
48309
48310         Tests for module 'unicase/u32-casefold'.
48311         * modules/unicase/u32-casefold-tests: New file.
48312         * tests/unicase/test-u32-casefold.c: New file.
48313
48314         Tests for module 'unicase/u16-casefold'.
48315         * modules/unicase/u16-casefold-tests: New file.
48316         * tests/unicase/test-u16-casefold.c: New file.
48317
48318         Tests for module 'unicase/u8-casefold'.
48319         * modules/unicase/u8-casefold-tests: New file.
48320         * tests/unicase/test-u8-casefold.c: New file.
48321
48322         New module 'unicase/u32-casefold'.
48323         * lib/unicase/u32-casefold.c: New file.
48324         * modules/unicase/u32-casefold: New file.
48325
48326         New module 'unicase/u16-casefold'.
48327         * lib/unicase/u16-casefold.c: New file.
48328         * modules/unicase/u16-casefold: New file.
48329
48330         New module 'unicase/u8-casefold'.
48331         * lib/unicase/u8-casefold.c: New file.
48332         * lib/unicase/u-casefold.h: New file.
48333         * modules/unicase/u8-casefold: New file.
48334
48335         New module 'unicase/tocasefold'.
48336         * lib/unicase/casefold.h: New file.
48337         * lib/unicase/tocasefold.c: New file.
48338         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48339         * modules/unicase/tocasefold: New file.
48340
48341         Tests for module 'unicase/u32-totitle'.
48342         * modules/unicase/u32-totitle-tests: New file.
48343         * tests/unicase/test-u32-totitle.c: New file.
48344
48345         Tests for module 'unicase/u16-totitle'.
48346         * modules/unicase/u16-totitle-tests: New file.
48347         * tests/unicase/test-u16-totitle.c: New file.
48348
48349         Tests for module 'unicase/u8-totitle'.
48350         * modules/unicase/u8-totitle-tests: New file.
48351         * tests/unicase/test-u8-totitle.c: New file.
48352
48353         New module 'unicase/u32-totitle'.
48354         * lib/unicase/u32-totitle.c: New file.
48355         * modules/unicase/u32-totitle: New file.
48356
48357         New module 'unicase/u16-totitle'.
48358         * lib/unicase/u16-totitle.c: New file.
48359         * modules/unicase/u16-totitle: New file.
48360
48361         New module 'unicase/u8-totitle'.
48362         * lib/unicase/u8-totitle.c: New file.
48363         * lib/unicase/u-totitle.h: New file.
48364         * modules/unicase/u8-totitle: New file.
48365
48366         Tests for module 'unicase/u32-tolower'.
48367         * modules/unicase/u32-tolower-tests: New file.
48368         * tests/unicase/test-u32-tolower.c: New file.
48369
48370         Tests for module 'unicase/u16-tolower'.
48371         * modules/unicase/u16-tolower-tests: New file.
48372         * tests/unicase/test-u16-tolower.c: New file.
48373
48374         Tests for module 'unicase/u8-tolower'.
48375         * modules/unicase/u8-tolower-tests: New file.
48376         * tests/unicase/test-u8-tolower.c: New file.
48377
48378         New module 'unicase/u32-tolower'.
48379         * lib/unicase/u32-tolower.c: New file.
48380         * modules/unicase/u32-tolower: New file.
48381
48382         New module 'unicase/u16-tolower'.
48383         * lib/unicase/u16-tolower.c: New file.
48384         * modules/unicase/u16-tolower: New file.
48385
48386         New module 'unicase/u8-tolower'.
48387         * lib/unicase/u8-tolower.c: New file.
48388         * modules/unicase/u8-tolower: New file.
48389
48390         Tests for module 'unicase/u32-toupper'.
48391         * modules/unicase/u32-toupper-tests: New file.
48392         * tests/unicase/test-u32-toupper.c: New file.
48393
48394         Tests for module 'unicase/u16-toupper'.
48395         * modules/unicase/u16-toupper-tests: New file.
48396         * tests/unicase/test-u16-toupper.c: New file.
48397
48398         Tests for module 'unicase/u8-toupper'.
48399         * modules/unicase/u8-toupper-tests: New file.
48400         * tests/unicase/test-u8-toupper.c: New file.
48401
48402         New module 'unicase/u32-toupper'.
48403         * lib/unicase/u32-toupper.c: New file.
48404         * modules/unicase/u32-toupper: New file.
48405
48406         New module 'unicase/u16-toupper'.
48407         * lib/unicase/u16-toupper.c: New file.
48408         * modules/unicase/u16-toupper: New file.
48409
48410         New module 'unicase/u8-toupper'.
48411         * lib/unicase/u8-toupper.c: New file.
48412         * modules/unicase/u8-toupper: New file.
48413
48414         New module 'unicase/u32-casemap'.
48415         * lib/unicase/u32-casemap.c: New file.
48416         * modules/unicase/u32-casemap: New file.
48417
48418         New module 'unicase/u16-casemap'.
48419         * lib/unicase/u16-casemap.c: New file.
48420         * modules/unicase/u16-casemap: New file.
48421
48422         New module 'unicase/u8-casemap'.
48423         * lib/unicase/unicasemap.h: New file.
48424         * lib/unicase/u8-casemap.c: New file.
48425         * lib/unicase/u-casemap.h: New file.
48426         * modules/unicase/u8-casemap: New file.
48427
48428         New module 'unicase/special-casing'.
48429         * lib/unicase/special-casing.h: New file.
48430         * lib/unicase/special-casing.c: New file.
48431         * lib/unicase/special-casing-table.gperf: New file, generated by
48432         gen-uni-tables.c.
48433         * modules/unicase/special-casing: New file.
48434
48435         Tests for module 'unicase/locale-language'.
48436         * modules/unicase/locale-language-tests: New file.
48437         * tests/unicase/test-locale-language.sh: New file.
48438         * tests/unicase/test-locale-language.c: New file.
48439
48440         New module 'unicase/locale-language'.
48441         * lib/unicase/locale-language.c: New file.
48442         * lib/unicase/locale-languages.gperf: New file.
48443         * modules/unicase/locale-language: New file.
48444
48445         Generate more tables for case conversion and case folding.
48446         * lib/gen-uni-tables.c (SCC_*): New enum items.
48447         (struct special_casing_rule): New type.
48448         (casing_rules, num_casing_rules, allocated_casing_rules): New
48449         variables.
48450         (add_casing_rule, fill_casing_rules): New functions.
48451         (struct casefold_rule): New type.
48452         (casefolding_rules, num_casefolding_rules,
48453         allocated_casefolding_rules): New variables.
48454         (fill_casefolding_rules): New function.
48455         (unicode_casefold): New variable.
48456         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48457         sort_casing_rules, output_casing_rules): New functions.
48458         (main): Accept to more arguments: SpecialCasing.txt and
48459         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48460         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48461         Output mapping for casefolding.
48462
48463         * lib/unicase.h: Include stdbool.h, uninorm.h.
48464         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48465         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48466         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48467         arguments.
48468         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48469         resultp arguments.
48470         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48471         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48472         resultp arguments.
48473         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48474         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48475         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48476         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48477         declarations.
48478         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48479
48480 2009-03-08  Bruno Haible  <bruno@clisp.org>
48481
48482         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48483         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48484         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48485         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48486
48487 2009-03-07  Bruno Haible  <bruno@clisp.org>
48488
48489         Adjust u*_normcmp, u*_normcoll API.
48490         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48491         u16_normcoll, u32_normcoll): Change failure conventions.
48492         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48493         errno and return -1.
48494         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48495
48496 2009-03-07  Bruno Haible  <bruno@clisp.org>
48497
48498         Tests for module 'uninorm/u32-normcoll'.
48499         * modules/uninorm/u32-normcoll-tests: New file.
48500         * tests/uninorm/test-u32-normcoll.c: New file.
48501
48502         Tests for module 'uninorm/u16-normcoll'.
48503         * modules/uninorm/u16-normcoll-tests: New file.
48504         * tests/uninorm/test-u16-normcoll.c: New file.
48505
48506         Tests for module 'uninorm/u8-normcoll'.
48507         * modules/uninorm/u8-normcoll-tests: New file.
48508         * tests/uninorm/test-u8-normcoll.c: New file.
48509
48510 2009-03-07  Bruno Haible  <bruno@clisp.org>
48511
48512         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48513         tests/uninorm/test-u32-normcmp.c.
48514         * tests/uninorm/test-u32-normcmp.c: Include it.
48515         (test_nonascii): New function, extracted from main. Add some more
48516         tests.
48517         (main): Invoke test_ascii and test_nonascii.
48518         * modules/uninorm/u32-normcmp-tests (Files): Add
48519         tests/uninorm/test-u32-normcmp.h.
48520         (Depends-on): Remove uninorm/u32-normcmp.
48521
48522         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48523         tests/uninorm/test-u16-normcmp.c.
48524         * tests/uninorm/test-u16-normcmp.c: Include it.
48525         (test_nonascii): New function, extracted from main. Add some more
48526         tests.
48527         (main): Invoke test_ascii and test_nonascii.
48528         * modules/uninorm/u16-normcmp-tests (Files): Add
48529         tests/uninorm/test-u16-normcmp.h.
48530         (Depends-on): Remove uninorm/u16-normcmp.
48531
48532         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48533         tests/uninorm/test-u8-normcmp.c.
48534         * tests/uninorm/test-u8-normcmp.c: Include it.
48535         (test_nonascii): New function, extracted from main. Add some more
48536         tests.
48537         (main): Invoke test_ascii and test_nonascii.
48538         * modules/uninorm/u8-normcmp-tests (Files): Add
48539         tests/uninorm/test-u8-normcmp.h.
48540         (Depends-on): Remove uninorm/u8-normcmp.
48541
48542 2009-03-07  Bruno Haible  <bruno@clisp.org>
48543
48544         New module 'uninorm/u32-normcoll'.
48545         * lib/uninorm/u32-normcoll.c: New file.
48546         * modules/uninorm/u32-normcoll: New file.
48547
48548         New module 'uninorm/u16-normcoll'.
48549         * lib/uninorm/u16-normcoll.c: New file.
48550         * modules/uninorm/u16-normcoll: New file.
48551
48552         New module 'uninorm/u8-normcoll'.
48553         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48554         declarations.
48555         * lib/uninorm/u8-normcoll.c: New file.
48556         * lib/uninorm/u-normcoll.h: New file.
48557         * modules/uninorm/u8-normcoll: New file.
48558
48559         New module 'uninorm/u32-normxfrm'.
48560         * lib/uninorm/u32-normxfrm.c: New file.
48561         * modules/uninorm/u32-normxfrm: New file.
48562
48563         New module 'uninorm/u16-normxfrm'.
48564         * lib/uninorm/u16-normxfrm.c: New file.
48565         * modules/uninorm/u16-normxfrm: New file.
48566
48567         New module 'uninorm/u8-normxfrm'.
48568         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48569         declarations.
48570         * lib/uninorm/u8-normxfrm.c: New file.
48571         * lib/uninorm/u-normxfrm.h: New file.
48572         * modules/uninorm/u8-normxfrm: New file.
48573
48574 2009-03-07  Bruno Haible  <bruno@clisp.org>
48575
48576         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48577         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48578         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48579
48580 2009-03-07  Bruno Haible  <bruno@clisp.org>
48581
48582         New module 'memxfrm'.
48583         * lib/memxfrm.h: New file.
48584         * lib/memxfrm.c: New file.
48585         * modules/memxfrm: New file.
48586
48587 2009-03-07  Bruno Haible  <bruno@clisp.org>
48588
48589         New module 'memcmp2'.
48590         * lib/memcmp2.h: New file.
48591         * lib/memcmp2.c: New file.
48592         * modules/memcmp2: New file.
48593
48594 2009-03-07  Bruno Haible  <bruno@clisp.org>
48595
48596         Tests for module 'uninorm/decomposing-form'.
48597         * modules/uninorm/decomposing-form-tests: New file.
48598         * tests/uninorm/test-decomposing-form.c: New file.
48599
48600         New module 'uninorm/decomposing-form'.
48601         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48602         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48603         Add 'decomposing_variant' field.
48604         * lib/uninorm/decomposing-form.c: New file.
48605         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48606         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48607         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48608         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48609         * modules/uninorm/decomposing-form: New file.
48610         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48611         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48612
48613 2009-03-07  Bruno Haible  <bruno@clisp.org>
48614
48615         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48616         strings.
48617
48618 2009-03-06  Bruno Haible  <bruno@clisp.org>
48619
48620         Tests for module 'uninorm/u32-normcmp'.
48621         * tests/uninorm/test-u32-normcmp.c: New file.
48622         * modules/uninorm/u32-normcmp-tests: New file.
48623
48624         Tests for module 'uninorm/u16-normcmp'.
48625         * tests/uninorm/test-u16-normcmp.c: New file.
48626         * modules/uninorm/u16-normcmp-tests: New file.
48627
48628         Tests for module 'uninorm/u8-normcmp'.
48629         * tests/uninorm/test-u8-normcmp.c: New file.
48630         * modules/uninorm/u8-normcmp-tests: New file.
48631
48632         New module 'uninorm/u32-normcmp'.
48633         * lib/uninorm/u32-normcmp.c: New file.
48634         * modules/uninorm/u32-normcmp: New file.
48635
48636         New module 'uninorm/u16-normcmp'.
48637         * lib/uninorm/u16-normcmp.c: New file.
48638         * modules/uninorm/u16-normcmp: New file.
48639
48640         New module 'uninorm/u8-normcmp'.
48641         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48642         declarations.
48643         * lib/uninorm/u8-normcmp.c: New file.
48644         * lib/uninorm/u-normcmp.h: New file.
48645         * modules/uninorm/u8-normcmp: New file.
48646
48647 2009-03-06  Bruno Haible  <bruno@clisp.org>
48648
48649         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48650         Reported by Eric Blake.
48651
48652 2009-03-06  Eric Blake  <ebb9@byu.net>
48653             Bruno Haible  <bruno@clisp.org>
48654
48655         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48656         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48657         condition.
48658         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48659         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48660         condition.
48661         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48662
48663 2009-03-06  Eric Blake  <ebb9@byu.net>
48664
48665         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48666         to avoid compiler warnings.
48667         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48668
48669 2009-03-05  Bruno Haible  <bruno@clisp.org>
48670
48671         * tests/test-ftell.c (main): Disable test beyond end of file on
48672         FreeMiNT.
48673         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48674
48675 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48676
48677         * lib/filevercmp.c: Move hidden files up in ordering.
48678         * tests/test-filevercmp.c: Add tests for hidden files.
48679
48680 2009-03-04  Bruno Haible  <bruno@clisp.org>
48681
48682         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48683         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48684         AM_CFLAGS.
48685         Reported by Simon Josefsson.
48686
48687 2009-03-03  Bruno Haible  <bruno@clisp.org>
48688
48689         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48690         Reported by Simon Josefsson.
48691
48692         * doc/ld-version-script.texi: Update node reference.
48693
48694 2009-03-03  Bruno Haible  <bruno@clisp.org>
48695
48696         * modules/visibility (License): Change to 'unlimited'.
48697         Suggested by Simon Josefsson.
48698
48699 2009-03-03  Jim Meyering  <meyering@redhat.com>
48700
48701         unlinkdir: cannot_unlink_dir may modify process state
48702         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48703         it's neither thread-safe nor appropriate for use in a library.
48704
48705 2009-03-03  Eric Blake  <ebb9@byu.net>
48706
48707         test-closein: silence test under Darwin
48708         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48709         care if it dies from EPIPE or EBADF.
48710
48711 2009-03-03  Bruno Haible  <bruno@clisp.org>
48712
48713         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48714         earlier.
48715         * doc/visibility.texi: Fix @node and @section.
48716
48717 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48718
48719         * doc/gnulib.texi: Link to sections for ld version script and
48720         visibility.
48721         * doc/visibility.texi: Add @node and @section.
48722         * modules/ld-version-script: New module.
48723         * m4/ld-version-script.m4: New file.
48724         * doc/ld-version-script.texi: New file.
48725
48726 2009-03-02  David Lutterkort  <lutter@redhat.com>
48727
48728         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48730
48731 2009-03-02  Bruno Haible  <bruno@clisp.org>
48732
48733         * doc/visibility.texi: Mention libtool's -export-symbols option.
48734
48735 2009-03-02  Jim Meyering  <meyering@redhat.com>
48736
48737         announce-gen: new option: --no-print-checksums
48738         * build-aux/announce-gen (usage): Describe it.
48739         (print_checksums): Print a newline here, not in the [*] footnote.
48740         (main): Honor it.
48741
48742 2009-03-01  Bruno Haible  <bruno@clisp.org>
48743
48744         Use socklen_t in the native Windows replacements prototypes.
48745         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48746         instead of 'int'.
48747         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48748         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48749         * modules/getsockopt (Depends-on): Add socklen.
48750         * modules/setsockopt (Depends-on): Add socklen.
48751
48752 2009-03-01  Bruno Haible  <bruno@clisp.org>
48753
48754         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48755         least 4.2.
48756
48757 2009-03-01  Eric Blake  <ebb9@byu.net>
48758             Bruno Haible  <bruno@clisp.org>
48759
48760         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48761         error messages.
48762         * lib/wait-process.c (wait_subprocess): Omit error message about
48763         deadly signal sent to the child of termsigp != NULL.
48764
48765 2009-03-01  Eric Blake  <ebb9@byu.net>
48766
48767         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48768
48769 2009-03-01  Bruno Haible  <bruno@clisp.org>
48770
48771         Avoid a gcc warning.
48772         * tests/test-sched.c (b): Make global.
48773         Reported by Eric Blake.
48774
48775 2009-01-19  Martin Lambers  <marlam@marlam.de>
48776
48777         Provide POSIX semantics for socket timeout options on W32.
48778         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48779         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48780         * modules/setsockopt: Depend on sys_time module for struct timeval.
48781         * modules/getsockopt: Depend on sys_time module for struct timeval.
48782
48783 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48784
48785         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48786         __USE_GNU, for consistency with netdb.in.h.
48787         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48788
48789 2009-03-01  Bruno Haible  <bruno@clisp.org>
48790
48791         More support for FreeMiNT.
48792         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48793         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48794
48795 2009-03-01  Bruno Haible  <bruno@clisp.org>
48796
48797         More support for FreeMiNT.
48798         * lib/fpurge.c (fpurge): Correct last commit.
48799         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48800
48801 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48802
48803         Fix unportable awk script in vc-list-files.
48804         * build-aux/vc-list-files: In the replacement awk script, use
48805         substr with a second argument of 1, not zero.
48806         Report by Simon Josefsson.
48807
48808 2009-02-28  Bruno Haible  <bruno@clisp.org>
48809
48810         More support for FreeMiNT.
48811         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48812         to FreeMiNT today.
48813         * lib/fwriting.c (fwriting): Likewise.
48814         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48815
48816 2009-02-28  Bruno Haible  <bruno@clisp.org>
48817
48818         * tests/test-freadseek.c (main): Disable test beyond end of file on
48819         FreeMiNT.
48820         * tests/test-ftello.c (main): Likewise.
48821         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48822
48823 2009-02-28  Bruno Haible  <bruno@clisp.org>
48824
48825         Add tentative support for FreeMiNT.
48826         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48827         * lib/fpurge.c (fpurge): Likewise.
48828         * lib/freadable.c (freadable): Likewise.
48829         * lib/freading.c (freading): Likewise.
48830         * lib/freadptr.c (freadptr): Likewise.
48831         * lib/freadseek.c (freadptrinc): Likewise.
48832         * lib/fseeko.c (rpl_fseeko): Likewise.
48833         * lib/fseterr.c (fseterr): Likewise.
48834         * lib/fwritable.c (fwritable): Likewise.
48835         * lib/fwriting.c (fwriting): Likewise.
48836         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
48837         Hourihane.
48838         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48839
48840 2009-02-28  Bruno Haible  <bruno@clisp.org>
48841
48842         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
48843         SIGCHLD.
48844         Reported by Jim Meyering.
48845
48846 2009-02-28  Bruno Haible  <bruno@clisp.org>
48847
48848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
48849         Mention the results of these tests on various platforms.
48850         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
48851         order.
48852         * doc/posix-functions/printf.texi: Likewise.
48853         * doc/posix-functions/snprintf.texi: Likewise.
48854         * doc/posix-functions/sprintf.texi: Likewise.
48855         * doc/posix-functions/vfprintf.texi: Likewise.
48856         * doc/posix-functions/vprintf.texi: Likewise.
48857         * doc/posix-functions/vsnprintf.texi: Likewise.
48858         * doc/posix-functions/vsprintf.texi: Likewise.
48859         * doc/glibc-functions/obstack_printf.texi: Likewise.
48860         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48861
48862 2009-02-28  Bruno Haible  <bruno@clisp.org>
48863
48864         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
48865         Reported by Loïc Minier <lool@dooz.org>.
48866
48867 2009-02-27  Bruno Haible  <bruno@clisp.org>
48868
48869         * gnulib-tool (func_import): Make the sed expression used to create the
48870         sed script for updating the .gitignore file POSIX compliant.
48871         Reported by Eric Blake.
48872
48873 2009-02-27  Bruno Haible  <bruno@clisp.org>
48874
48875         * gnulib-tool (sed): Don't alias as "sed --posix".
48876         Reported by Eric Blake.
48877
48878 2009-02-27  Bruno Haible  <bruno@clisp.org>
48879
48880         Avoid test link errors.
48881         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
48882         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
48883         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
48884         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
48885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48886
48887 2009-02-27  Bruno Haible  <bruno@clisp.org>
48888
48889         Avoid spurious "(cached)" in configure output.
48890         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
48891         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
48892         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48893         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48894         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48895         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
48896         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48897         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
48898         Reported by Eric Blake.
48899
48900 2009-02-27  Eric Blake  <ebb9@byu.net>
48901
48902         printf: fix regression in previous patch
48903         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
48904
48905 2009-02-27  Bruno Haible  <bruno@clisp.org>
48906
48907         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
48908         value.
48909         * lib/stdint.in.h: Likewise.
48910         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
48911
48912 2009-02-27  Eric Blake  <ebb9@byu.net>
48913
48914         doc: mention more functions added in cygwin 1.7.0
48915         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
48916         addition.
48917         * doc/posix-functions/open_wmemstream.texi: Likewise.
48918         * doc/posix-functions/wcsnlen.texi: Likewise.
48919         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48920         * doc/posix-functions/wcstod.texi: Likewise.
48921         * doc/posix-functions/wcstof.texi: Likewise.
48922         * doc/posix-functions/wcstoimax.texi: Likewise.
48923         * doc/posix-functions/wcstok.texi: Likewise.
48924         * doc/posix-functions/wcstoumax.texi: Likewise.
48925
48926         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
48927         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
48928         * doc/posix-functions/fprintf.texi: Update.
48929         * doc/posix-functions/printf.texi: Update.
48930         * doc/posix-functions/snprintf.texi: Update.
48931         * doc/posix-functions/sprintf.texi: Update.
48932         * doc/posix-functions/vfprintf.texi: Update.
48933         * doc/posix-functions/vprintf.texi: Update.
48934         * doc/posix-functions/vsnprintf.texi: Update.
48935         * doc/posix-functions/vsprintf.texi: Update.
48936         * doc/glibc-functions/obstack_printf.texi: Update.
48937         * doc/glibc-functions/obstack_vprintf.texi: Update.
48938
48939 2009-02-26  Eric Blake  <ebb9@byu.net>
48940
48941         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
48942         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
48943         compilation bug by using runtime conversion.
48944         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48945         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
48946         * modules/ceill-tests (Files): Use nan.h.
48947         * modules/floorl-tests (Files): Likewise.
48948         * modules/frexpl-tests (Files): Likewise.
48949         * modules/isnanl-tests (Files): Likewise.
48950         * modules/ldexpl-tests (Files): Likewise.
48951         * modules/roundl-tests (Files): Likewise.
48952         * modules/truncl-tests (Files): Likewise.
48953         * tests/test-ceill.c (main): Use a working NaN.
48954         * tests/test-floorl.c (main): Likewise.
48955         * tests/test-frexpl.c (main): Likewise.
48956         * tests/test-isnan.c (test_long_double): Likewise.
48957         * tests/test-isnanl.h (main): Likewise.
48958         * tests/test-ldexpl.h (main): Likewise.
48959         * tests/test-roundl.h (main): Likewise.
48960         * tests/test-truncl.h (main): Likewise.
48961         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
48962
48963 2009-02-26  Eric Blake  <ebb9@byu.net>
48964             Bruno Haible  <bruno@clisp.org>
48965
48966         Work around a *printf bug with %ls on Solaris.
48967         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
48968         precision is specified, sprintf stops converting the wide string
48969         argument when the number of bytes that have been produced by this
48970         conversion equals or exceeds the precision.
48971         * doc/posix-functions/fprintf.texi: Update.
48972         * doc/posix-functions/printf.texi: Update.
48973         * doc/posix-functions/snprintf.texi: Update.
48974         * doc/posix-functions/sprintf.texi: Update.
48975         * doc/posix-functions/vfprintf.texi: Update.
48976         * doc/posix-functions/vprintf.texi: Update.
48977         * doc/posix-functions/vsnprintf.texi: Update.
48978         * doc/posix-functions/vsprintf.texi: Update.
48979         * doc/glibc-functions/obstack_printf.texi: Update.
48980         * doc/glibc-functions/obstack_vprintf.texi: Update.
48981
48982 2009-02-26  Eric Blake  <ebb9@byu.net>
48983
48984         stdlib: favor compiler check of random.h
48985         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48986         to avoid an ObjC random.h installed by Swarm.
48987
48988 2009-02-26  Bruno Haible  <bruno@clisp.org>
48989
48990         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48991         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48992         Reported by Gary V. Vaughan <gary@gnu.org>.
48993
48994 2009-02-26  Bruno Haible  <bruno@clisp.org>
48995
48996         Fix *printf behaviour regarding the %ls directive.
48997         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48998         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48999         NEED_PRINTF_DIRECTIVE_LS.
49000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49001         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49002         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49003         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49004         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49005         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49006         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49007         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49009         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49010         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49011         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49015         * doc/posix-functions/fprintf.texi: Update.
49016         * doc/posix-functions/printf.texi: Update.
49017         * doc/posix-functions/snprintf.texi: Update.
49018         * doc/posix-functions/sprintf.texi: Update.
49019         * doc/posix-functions/vfprintf.texi: Update.
49020         * doc/posix-functions/vprintf.texi: Update.
49021         * doc/posix-functions/vsnprintf.texi: Update.
49022         * doc/posix-functions/vsprintf.texi: Update.
49023         * doc/glibc-functions/obstack_printf.texi: Update.
49024         * doc/glibc-functions/obstack_vprintf.texi: Update.
49025         Reported by Eric Blake.
49026
49027 2009-02-25  Bruno Haible  <bruno@clisp.org>
49028
49029         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49030         with known value.
49031         Reported by Gary V. Vaughan <gary@gnu.org>.
49032
49033 2009-02-25  Bruno Haible  <bruno@clisp.org>
49034
49035         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49036         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49037         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49038         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49039         Reported by Gary V. Vaughan <gary@gnu.org>.
49040
49041 2009-02-25  Bruno Haible  <bruno@clisp.org>
49042
49043         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49044         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49045         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49046         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49047         Reported by Gary V. Vaughan <gary@gnu.org>.
49048
49049 2009-02-25  Eric Blake  <ebb9@byu.net>
49050
49051         tests: skip fseek/ftell tests if ungetc is broken
49052         * m4/ungetc.m4: New file.
49053         * modules/fseek-tests: Split test, so ungetc dependency is
49054         separate from rest of test.
49055         * modules/fseeko-tests: Likewise.
49056         * modules/ftell-tests: Likewise.
49057         * modules/ftello-tests: Likewise.
49058         * tests/test-fseek.c (main): Isolate ungetc dependency.
49059         * tests/test-fseeko.c (main): Likewise.
49060         * tests/test-ftell.c (main): Likewise.
49061         * tests/test-ftello.c (main): Likewise.
49062         * tests/test-fseek2.sh: New file.
49063         * tests/test-fseeko2.sh: Likewise.
49064         * tests/test-ftell2.sh: Likewise.
49065         * tests/test-ftello2.sh: Likewise.
49066
49067 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49068
49069         test-getaddrinfo: fix usage of skip return code 77
49070         * tests/test-gettaddrinfo.c: Return skip code 77 only
49071         for first occurrence of skip (4x77 is not 77)
49072
49073 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49074
49075         strtod: avoid C99 decl-after-statement
49076         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49077
49078 2009-02-24  Eric Blake  <ebb9@byu.net>
49079
49080         strtod: detect HP-UX 11.31 bug
49081         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49082         Reported by Gary V. Vaughan.
49083
49084 2009-02-23  Bruno Haible  <bruno@clisp.org>
49085
49086         Fix invalid read past end of memory block.
49087         * lib/vasnprintf.c (DCHAR_SET): Define.
49088         (local_wcslen): Define only when needed.
49089         (local_strnlen, local_wcsnlen): New functions.
49090         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49091         directives that involve a conversion ourselves.
49092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49093         wcsnlen, mbrtowc, wcrtomb.
49094         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49095         * tests/test-vasprintf-posix.c (test_function): Likewise.
49096         * tests/test-snprintf-posix.h (test_function): Likewise.
49097         * tests/test-sprintf-posix.h (test_function): Likewise.
49098         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49099
49100 2009-02-22  Bruno Haible  <bruno@clisp.org>
49101
49102         Implement new clarified decomposition of Hangul syllables.
49103         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49104         of type LTV, return only a pairwise decomposition.
49105         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49106         Likewise.
49107         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49108         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49109         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49110
49111 2009-02-22  Bruno Haible  <bruno@clisp.org>
49112
49113         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49114         zero-length results and shrink excess allocated memory.
49115         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49116         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49117         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49118         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49119         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49120         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49121         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49122         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49123         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49124         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49125         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49126         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49127
49128 2009-02-21  Bruno Haible  <bruno@clisp.org>
49129
49130         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49131         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49132         spaces after a period. Put a space between a macro name and its
49133         argument list. Trivial rewordings.
49134         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49135         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49136         (main): Return 0 explicitly.
49137
49138 2009-02-21  Bruno Haible  <bruno@clisp.org>
49139
49140         Tests for module 'uninorm/filter'.
49141         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49142         * modules/uninorm/filter-tests: New file.
49143
49144         New module 'uninorm/filter'.
49145         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49146         uninorm_filter_flush, uninorm_filter_free): New declarations.
49147         * lib/uninorm/uninorm-filter.c: New file.
49148         * modules/uninorm/filter: New file.
49149
49150 2009-02-21  Bruno Haible  <bruno@clisp.org>
49151
49152         Tests for module 'uninorm/nfkc'.
49153         * tests/uninorm/test-nfkc.c: New file.
49154         * tests/uninorm/test-u8-nfkc.c: New file.
49155         * tests/uninorm/test-u16-nfkc.c: New file.
49156         * tests/uninorm/test-u32-nfkc.c: New file.
49157         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49158         * tests/uninorm/test-u32-nfkc-big.c: New file.
49159         * modules/uninorm/nfkc-tests: New file.
49160
49161         New module 'uninorm/nfkc'.
49162         * lib/uninorm/nfkc.c: New file.
49163         * modules/uninorm/nfkc: New file.
49164
49165         Tests for module 'uninorm/nfkd'.
49166         * tests/uninorm/test-nfkd.c: New file.
49167         * tests/uninorm/test-u8-nfkd.c: New file.
49168         * tests/uninorm/test-u16-nfkd.c: New file.
49169         * tests/uninorm/test-u32-nfkd.c: New file.
49170         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49171         * tests/uninorm/test-u32-nfkd-big.c: New file.
49172         * modules/uninorm/nfkd-tests: New file.
49173
49174         New module 'uninorm/nfkd'.
49175         * lib/uninorm/nfkd.c: New file.
49176         * modules/uninorm/nfkd: New file.
49177
49178         Tests for module 'uninorm/nfc'.
49179         * tests/uninorm/test-nfc.c: New file.
49180         * tests/uninorm/test-u8-nfc.c: New file.
49181         * tests/uninorm/test-u16-nfc.c: New file.
49182         * tests/uninorm/test-u32-nfc.c: New file.
49183         * tests/uninorm/test-u32-nfc-big.sh: New file.
49184         * tests/uninorm/test-u32-nfc-big.c: New file.
49185         * modules/uninorm/nfc-tests: New file.
49186
49187         New module 'uninorm/nfc'.
49188         * lib/uninorm/nfc.c: New file.
49189         * modules/uninorm/nfc: New file.
49190
49191         Tests for module 'uninorm/nfd'.
49192         * tests/uninorm/test-nfd.c: New file.
49193         * tests/uninorm/test-u8-nfd.c: New file.
49194         * tests/uninorm/test-u16-nfd.c: New file.
49195         * tests/uninorm/test-u32-nfd.c: New file.
49196         * tests/uninorm/test-u32-nfd-big.sh: New file.
49197         * tests/uninorm/test-u32-nfd-big.c: New file.
49198         * tests/uninorm/test-u32-normalize-big.h: New file.
49199         * tests/uninorm/test-u32-normalize-big.c: New file.
49200         * tests/uninorm/NormalizationTest.txt: New file, created from
49201         Unicode 5.1.0 NormalizationTest.txt.
49202         * modules/uninorm/nfd-tests: New file.
49203
49204         New module 'uninorm/nfd'.
49205         * lib/uninorm/nfd.c: New file.
49206         * modules/uninorm/nfd: New file.
49207
49208         New module 'uninorm/u32-normalize'.
49209         * lib/uninorm/u32-normalize.c: New file.
49210         * modules/uninorm/u32-normalize: New file.
49211
49212         New module 'uninorm/u16-normalize'.
49213         * lib/uninorm/u16-normalize.c: New file.
49214         * modules/uninorm/u16-normalize: New file.
49215
49216         New module 'uninorm/u8-normalize'.
49217         * lib/uninorm/u8-normalize.c: New file.
49218         * lib/uninorm/normalize-internal.h: New file.
49219         * lib/uninorm/u-normalize-internal.h: New file.
49220         * modules/uninorm/u8-normalize: New file.
49221
49222         New module 'uninorm/decompose-internal'.
49223         * lib/uninorm/decompose-internal.c: New file.
49224         * modules/uninorm/decompose-internal: New file.
49225
49226         Tests for module 'uninorm/composition'.
49227         * tests/uninorm/test-composition.c: New file.
49228         * modules/uninorm/composition-tests: New file.
49229
49230         New module 'uninorm/composition'.
49231         * lib/uninorm/composition.c: New file.
49232         * lib/uninorm/composition-table.gperf: New file, generated by
49233         gen-uni-tables.
49234         * modules/uninorm/composition: New file.
49235
49236         Tests for module 'uninorm/compat-decomposition'.
49237         * tests/uninorm/test-compat-decomposition.c: New file.
49238         * modules/uninorm/compat-decomposition-tests: New file.
49239
49240         New module 'uninorm/compat-decomposition'.
49241         * lib/uninorm/decompose-internal.h: New file.
49242         * lib/uninorm/compat-decomposition.c: New file.
49243         * modules/uninorm/compat-decomposition: New file.
49244
49245         Tests for module 'uninorm/canonical-decomposition'.
49246         * tests/uninorm/test-canonical-decomposition.c: New file.
49247         * modules/uninorm/canonical-decomposition-tests: New file.
49248
49249         New module 'uninorm/canonical-decomposition'.
49250         * lib/uninorm/canonical-decomposition.c: New file.
49251         * modules/uninorm/canonical-decomposition: New file.
49252
49253         Tests for module 'uninorm/decomposition'.
49254         * tests/uninorm/test-decomposition.c: New file.
49255         * modules/uninorm/decomposition-tests: New file.
49256
49257         New module 'uninorm/decomposition'.
49258         * lib/uninorm/decomposition.c: New file.
49259         * modules/uninorm/decomposition: New file.
49260
49261         New module 'uninorm/decomposition-table'.
49262         * lib/uninorm/decomposition-table.h: New file.
49263         * lib/uninorm/decomposition-table.c: New file.
49264         * lib/uninorm/decomposition-table1.h: New file, generated by
49265         gen-uni-tables.
49266         * lib/uninorm/decomposition-table2.h: New file, generated by
49267         gen-uni-tables.
49268         * modules/uninorm/decomposition-table: New file.
49269
49270         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49271         (UC_DECOMP_*): New enumeration items.
49272         (get_decomposition): New function.
49273         (struct decomp_table): New type.
49274         (output_decomposition, output_decomposition_tables): New functions.
49275         (unicode_composition_exclusions): New variable.
49276         (fill_composition_exclusions, debug_output_composition_tables): New
49277         functions.
49278         (main): Accept one more argument. Invoke fill_composition_exclusions.
49279         Output decomposition and composition tables.
49280
49281         New module 'uninorm/base'.
49282         * lib/uninorm.h: New file.
49283         * lib/unictype.h: Update comment.
49284         * modules/uninorm/base: New file.
49285
49286 2009-02-21  David Lutterkort  <lutter@redhat.com>
49287
49288         Tests for module 'safe-alloc'.
49289         * tests/test-safe-alloc.c: New file.
49290         * modules/safe-alloc-tests: New file.
49291
49292         New module 'safe-alloc'.
49293         * lib/safe-alloc.h: New file.
49294         * lib/safe-alloc.c: New file.
49295         * m4/safe-alloc.m4: New file.
49296         * modules/safe-alloc: New file.
49297         * doc/safe-alloc.texi: New file.
49298         * doc/gnulib.texi: Include it.
49299         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49300         safe-alloc.
49301
49302 2009-02-18  Bruno Haible  <bruno@clisp.org>
49303
49304         Fix link error on non-glibc systems.
49305         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49306         variable.
49307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49308
49309 2009-02-18  Jim Meyering  <meyering@redhat.com>
49310
49311         fts: avoid used-uninitialized error due to recent change
49312         * lib/fts.c (fts_read): Guard uses of the new member,
49313         parent->fts_n_dirs_remaining, since it's not relevant for
49314         the parent of a directory specified on the command-line.
49315
49316 2009-02-17  James Youngman  <jay@gnu.org>
49317             Bruno Haible  <bruno@clisp.org>
49318
49319         * m4/include_next.m4: Reformulate comment.
49320
49321 2009-02-16  Jim Meyering  <meyering@redhat.com>
49322
49323         fts: add #if guards so that the fts_lgpl module still builds
49324         * lib/fts.c: Guard just-added hash-table-using parts with
49325         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49326         Reported by Simon Josefsson.
49327
49328 2009-02-15  Bruno Haible  <bruno@clisp.org>
49329
49330         * modules/array-mergesort-tests: New file.
49331         * tests/test-array-mergesort.c: New file.
49332
49333         New module 'array-mergesort'.
49334         * modules/array-mergesort: New file.
49335         * lib/array-mergesort.h: New file.
49336
49337 2009-02-15  Bruno Haible  <bruno@clisp.org>
49338
49339         Fix 2009-02-07 commit.
49340         * lib/gen-uni-tables.c (output_predicate, output_category,
49341         output_combclass, output_bidi_category, output_decimal_digit,
49342         output_digit, output_numeric, output_mirror, output_scripts,
49343         output_ident_category, output_simple_mapping): Fix format directives.
49344         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49345
49346 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49347
49348         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49349         fixes are available from IBM.
49350
49351 2009-02-13  Jim Meyering  <meyering@redhat.com>
49352
49353         fts: arrange not to stat non-directories in more cases
49354         This makes GNU find (when it doesn't need to stat each file)
49355         *much* more efficient at traversing reiserfs file systems.
49356         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49357         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49358         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49359         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49360         (leaf_optimization_applies): New function.
49361         (LCO_hash, LCO_compare): New helper functions.
49362         (link_count_optimize_ok): New function.
49363         (fts_stat): Initialize new member (if dir).
49364         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49365         we've just stat'ed a directory.  Skip the stat call when possible.
49366         ---
49367         Note this AFS-related exchange:
49368         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49369         and note find's pioctl call in find/fstype.c.
49370         But that is necessary only if you want to enable the
49371         optimization for AFS, and for now, I don't.
49372
49373         fts: move a function definition "up" (no semantic change)
49374         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49375         "up" to precede upcoming use of a related function.
49376
49377 2009-02-11  Jim Meyering  <meyering@redhat.com>
49378
49379         fts: correct internal computation of nlinks (optimization-related)
49380         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49381         whether the current entry is a directory, so don't test it.
49382
49383 2009-02-10  Bruno Haible  <bruno@clisp.org>
49384
49385         Tests for module 'uniwbrk/ulc-wordbreaks'.
49386         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49387         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49388         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49389
49390         Tests for module 'uniwbrk/u32-wordbreaks'.
49391         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49392         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49393
49394         Tests for module 'uniwbrk/u16-wordbreaks'.
49395         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49396         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49397
49398         Tests for module 'uniwbrk/u8-wordbreaks'.
49399         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49400         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49401
49402 2009-02-10  Bruno Haible  <bruno@clisp.org>
49403
49404         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49405         property.
49406         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49407         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49408         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49409
49410 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49411
49412         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49413         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49414
49415 2009-02-10  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49418         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49419         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49420         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49421         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49422         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49423
49424 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49425
49426         * lib/sockets.h (gl_fd_to_handle): New function.
49427
49428         * tests/test-sockets.c: Call gl_fd_to_handle.
49429
49430 2009-02-09  Bruno Haible  <bruno@clisp.org>
49431
49432         * doc/havelib.texi: Document the conventions on bi-arch systems.
49433
49434 2009-02-08  Bruno Haible  <bruno@clisp.org>
49435
49436         Document the AC_LIB_LINKFLAGS macro.
49437         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49438         * doc/gnulib.texi: Include it.
49439
49440 2009-02-08  Bruno Haible  <bruno@clisp.org>
49441
49442         Fix wrong order of sections, compared to TOC.
49443         * doc/gnulib.texi: Include relocatable-maint.texi after the
49444         "Regular expressions" node, not before.
49445
49446 2009-02-08  Bruno Haible  <bruno@clisp.org>
49447
49448         Tests for module 'unicase/totitle'.
49449         * modules/unicase/totitle-tests: New file.
49450
49451         Tests for module 'unicase/tolower'.
49452         * modules/unicase/tolower-tests: New file.
49453
49454         Tests for module 'unicase/toupper'.
49455         * modules/unicase/toupper-tests: New file.
49456         * tests/unicase/test-mapping-part1.h: New file.
49457         * tests/unicase/test-mapping-part2.h: New file.
49458
49459         New module 'unicase/totitle'.
49460         * modules/unicase/totitle: New file.
49461         * lib/unicase/totitle.c: New file.
49462
49463         New module 'unicase/tolower'.
49464         * modules/unicase/tolower: New file.
49465         * lib/unicase/tolower.c: New file.
49466
49467         New module 'unicase/toupper'.
49468         * modules/unicase/toupper: New file.
49469         * lib/unicase/toupper.c: New file.
49470         * lib/unicase/simple-mapping.h: New file.
49471
49472         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49473         (mapping_table): New structure.
49474         (output_simple_mapping): New function.
49475         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49476         * modules/gen-uni-tables (Description): Update.
49477         * lib/unicase/toupper.h: New file, automatically generated by
49478         gen-uni-tables.
49479         * lib/unicase/tolower.h: New file, automatically generated by
49480         gen-uni-tables.
49481         * lib/unicase/totitle.h: New file, automatically generated by
49482         gen-uni-tables.
49483         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49484         gen-uni-tables.
49485         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49486         gen-uni-tables.
49487         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49488         gen-uni-tables.
49489
49490         New module 'unicase/base'.
49491         * modules/unicase/base: New file.
49492         * lib/unicase.h: New file.
49493
49494 2009-02-08  Bruno Haible  <bruno@clisp.org>
49495
49496         New module 'uniwbrk/ulc-wordbreaks'.
49497         * modules/uniwbrk/ulc-wordbreaks: New file.
49498         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49499
49500         New module 'uniwbrk/u32-wordbreaks'.
49501         * modules/uniwbrk/u32-wordbreaks: New file.
49502         * lib/uniwbrk/u32-wordbreaks.c: New file.
49503
49504         New module 'uniwbrk/u16-wordbreaks'.
49505         * modules/uniwbrk/u16-wordbreaks: New file.
49506         * lib/uniwbrk/u16-wordbreaks.c: New file.
49507
49508         New module 'uniwbrk/u8-wordbreaks'.
49509         * modules/uniwbrk/u8-wordbreaks: New file.
49510         * lib/uniwbrk/u8-wordbreaks.c: New file.
49511         * lib/uniwbrk/u-wordbreaks.h: New file.
49512
49513         New module 'uniwbrk/table'.
49514         * modules/uniwbrk/table: New file.
49515         * lib/uniwbrk/wbrktable.h: New file.
49516         * lib/uniwbrk/wbrktable.c: New file.
49517
49518         New module 'uniwbrk/wordbreak-property'.
49519         * modules/uniwbrk/wordbreak-property: New file.
49520         * lib/uniwbrk/wordbreak-property.c: New file.
49521
49522         * lib/gen-uni-tables.c (WBP_*): New enum items.
49523         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49524         (unicode_org_wbp): New variable.
49525         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49526         New functions.
49527         (wbp_table): New structure.
49528         (output_wbp, output_wbrk_tables): New functions.
49529         (main): Accept additional argument. Invoke fill_org_wbp,
49530         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49531         output_wbrk_tables.
49532         * modules/gen-uni-tables (Description): Update.
49533         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49534         gen-uni-tables.
49535
49536         New module 'uniwbrk/base'.
49537         * modules/uniwbrk/base: New file.
49538         * lib/uniwbrk.h: New file.
49539
49540 2009-02-08  Bruno Haible  <bruno@clisp.org>
49541
49542         Update to Unicode 5.1.0.
49543         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49544         U+2185..U+2188.
49545         (is_property_default_ignorable_code_point): Don't include characters
49546         of category Cc or Cs and not-a-characters.
49547         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49548         U+0D79, U+109E, U+109F, U+A60C.
49549         * lib/unictype/bidi_of.h: Regenerated.
49550         * lib/unictype/blocks.h: Regenerated.
49551         * lib/unictype/categ_C.h: Regenerated.
49552         * lib/unictype/categ_Cf.h: Regenerated.
49553         * lib/unictype/categ_Cn.h: Regenerated.
49554         * lib/unictype/categ_L.h: Regenerated.
49555         * lib/unictype/categ_Ll.h: Regenerated.
49556         * lib/unictype/categ_Lm.h: Regenerated.
49557         * lib/unictype/categ_Lo.h: Regenerated.
49558         * lib/unictype/categ_Lu.h: Regenerated.
49559         * lib/unictype/categ_M.h: Regenerated.
49560         * lib/unictype/categ_Mc.h: Regenerated.
49561         * lib/unictype/categ_Me.h: Regenerated.
49562         * lib/unictype/categ_Mn.h: Regenerated.
49563         * lib/unictype/categ_N.h: Regenerated.
49564         * lib/unictype/categ_Nd.h: Regenerated.
49565         * lib/unictype/categ_Nl.h: Regenerated.
49566         * lib/unictype/categ_No.h: Regenerated.
49567         * lib/unictype/categ_P.h: Regenerated.
49568         * lib/unictype/categ_Pd.h: Regenerated.
49569         * lib/unictype/categ_Pe.h: Regenerated.
49570         * lib/unictype/categ_Pf.h: Regenerated.
49571         * lib/unictype/categ_Pi.h: Regenerated.
49572         * lib/unictype/categ_Po.h: Regenerated.
49573         * lib/unictype/categ_Ps.h: Regenerated.
49574         * lib/unictype/categ_S.h: Regenerated.
49575         * lib/unictype/categ_Sk.h: Regenerated.
49576         * lib/unictype/categ_Sm.h: Regenerated.
49577         * lib/unictype/categ_So.h: Regenerated.
49578         * lib/unictype/categ_of.h: Regenerated.
49579         * lib/unictype/combining.h: Regenerated.
49580         * lib/unictype/ctype_alnum.h: Regenerated.
49581         * lib/unictype/ctype_alpha.h: Regenerated.
49582         * lib/unictype/ctype_graph.h: Regenerated.
49583         * lib/unictype/ctype_lower.h: Regenerated.
49584         * lib/unictype/ctype_print.h: Regenerated.
49585         * lib/unictype/ctype_punct.h: Regenerated.
49586         * lib/unictype/ctype_upper.h: Regenerated.
49587         * lib/unictype/decdigit.h: Regenerated.
49588         * lib/unictype/digit.h: Regenerated.
49589         * lib/unictype/mirror.h: Regenerated.
49590         * lib/unictype/numeric.h: Regenerated.
49591         * lib/unictype/pr_alphabetic.h: Regenerated.
49592         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49593         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49594         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49595         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49596         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49597         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49598         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49599         * lib/unictype/pr_combining.h: Regenerated.
49600         * lib/unictype/pr_dash.h: Regenerated.
49601         * lib/unictype/pr_decimal_digit.h: Regenerated.
49602         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49603         * lib/unictype/pr_deprecated.h: Regenerated.
49604         * lib/unictype/pr_diacritic.h: Regenerated.
49605         * lib/unictype/pr_extender.h: Regenerated.
49606         * lib/unictype/pr_format_control.h: Regenerated.
49607         * lib/unictype/pr_grapheme_base.h: Regenerated.
49608         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49609         * lib/unictype/pr_grapheme_link.h: Regenerated.
49610         * lib/unictype/pr_id_continue.h: Regenerated.
49611         * lib/unictype/pr_id_start.h: Regenerated.
49612         * lib/unictype/pr_ideographic.h: Regenerated.
49613         * lib/unictype/pr_ignorable_control.h: Regenerated.
49614         * lib/unictype/pr_lowercase.h: Regenerated.
49615         * lib/unictype/pr_math.h: Regenerated.
49616         * lib/unictype/pr_numeric.h: Regenerated.
49617         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49618         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49619         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49620         * lib/unictype/pr_other_id_continue.h: Regenerated.
49621         * lib/unictype/pr_other_lowercase.h: Regenerated.
49622         * lib/unictype/pr_other_math.h: Regenerated.
49623         * lib/unictype/pr_punctuation.h: Regenerated.
49624         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49625         * lib/unictype/pr_soft_dotted.h: Regenerated.
49626         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49627         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49628         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49629         * lib/unictype/pr_uppercase.h: Regenerated.
49630         * lib/unictype/pr_xid_continue.h: Regenerated.
49631         * lib/unictype/pr_xid_start.h: Regenerated.
49632         * lib/unictype/pr_zero_width.h: Regenerated.
49633         * lib/unictype/scripts.h: Regenerated.
49634         * lib/unictype/scripts_byname.gperf: Regenerated.
49635         * lib/unictype/sy_java_ident.h: Regenerated.
49636         * lib/unilbrk/lbrkprop1.h: Regenerated.
49637         * lib/unilbrk/lbrkprop2.h: Regenerated.
49638         * tests/unictype/test-categ_C.c: Regenerated.
49639         * tests/unictype/test-categ_Cf.c: Regenerated.
49640         * tests/unictype/test-categ_Cn.c: Regenerated.
49641         * tests/unictype/test-categ_L.c: Regenerated.
49642         * tests/unictype/test-categ_Ll.c: Regenerated.
49643         * tests/unictype/test-categ_Lm.c: Regenerated.
49644         * tests/unictype/test-categ_Lo.c: Regenerated.
49645         * tests/unictype/test-categ_Lu.c: Regenerated.
49646         * tests/unictype/test-categ_M.c: Regenerated.
49647         * tests/unictype/test-categ_Mc.c: Regenerated.
49648         * tests/unictype/test-categ_Me.c: Regenerated.
49649         * tests/unictype/test-categ_Mn.c: Regenerated.
49650         * tests/unictype/test-categ_N.c: Regenerated.
49651         * tests/unictype/test-categ_Nd.c: Regenerated.
49652         * tests/unictype/test-categ_Nl.c: Regenerated.
49653         * tests/unictype/test-categ_No.c: Regenerated.
49654         * tests/unictype/test-categ_P.c: Regenerated.
49655         * tests/unictype/test-categ_Pd.c: Regenerated.
49656         * tests/unictype/test-categ_Pe.c: Regenerated.
49657         * tests/unictype/test-categ_Pf.c: Regenerated.
49658         * tests/unictype/test-categ_Pi.c: Regenerated.
49659         * tests/unictype/test-categ_Po.c: Regenerated.
49660         * tests/unictype/test-categ_Ps.c: Regenerated.
49661         * tests/unictype/test-categ_S.c: Regenerated.
49662         * tests/unictype/test-categ_Sk.c: Regenerated.
49663         * tests/unictype/test-categ_Sm.c: Regenerated.
49664         * tests/unictype/test-categ_So.c: Regenerated.
49665         * tests/unictype/test-ctype_alnum.c: Regenerated.
49666         * tests/unictype/test-ctype_alpha.c: Regenerated.
49667         * tests/unictype/test-ctype_graph.c: Regenerated.
49668         * tests/unictype/test-ctype_lower.c: Regenerated.
49669         * tests/unictype/test-ctype_print.c: Regenerated.
49670         * tests/unictype/test-ctype_punct.c: Regenerated.
49671         * tests/unictype/test-ctype_upper.c: Regenerated.
49672         * tests/unictype/test-decdigit.h: Regenerated.
49673         * tests/unictype/test-digit.h: Regenerated.
49674         * tests/unictype/test-numeric.h: Regenerated.
49675         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49676         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49677         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49678         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49679         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49680         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49681         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49682         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49683         * tests/unictype/test-pr_combining.c: Regenerated.
49684         * tests/unictype/test-pr_dash.c: Regenerated.
49685         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49686         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49687         * tests/unictype/test-pr_deprecated.c: Regenerated.
49688         * tests/unictype/test-pr_diacritic.c: Regenerated.
49689         * tests/unictype/test-pr_extender.c: Regenerated.
49690         * tests/unictype/test-pr_format_control.c: Regenerated.
49691         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49692         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49693         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49694         * tests/unictype/test-pr_id_continue.c: Regenerated.
49695         * tests/unictype/test-pr_id_start.c: Regenerated.
49696         * tests/unictype/test-pr_ideographic.c: Regenerated.
49697         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49698         * tests/unictype/test-pr_lowercase.c: Regenerated.
49699         * tests/unictype/test-pr_math.c: Regenerated.
49700         * tests/unictype/test-pr_numeric.c: Regenerated.
49701         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49702         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49703         Regenerated.
49704         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49705         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49706         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49707         * tests/unictype/test-pr_other_math.c: Regenerated.
49708         * tests/unictype/test-pr_punctuation.c: Regenerated.
49709         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49710         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49711         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49712         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49713         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49714         * tests/unictype/test-pr_uppercase.c: Regenerated.
49715         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49716         * tests/unictype/test-pr_xid_start.c: Regenerated.
49717         * tests/unictype/test-pr_zero_width.c: Regenerated.
49718
49719         Update to Unicode 5.1.0.
49720         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49721         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49722         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49723         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49724         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49725         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49726         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49727         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49728         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49729         (nonspacing_table_ind): Update.
49730         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49731
49732         Update to Unicode 5.1.0.
49733         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49734         code transform.
49735         * lib/uniname/uniname.c (unicode_character_name,
49736         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49737         * lib/uniname/uninames.h: Regenerated.
49738         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49739
49740 2009-02-07  Bruno Haible  <bruno@clisp.org>
49741
49742         Merge gen-ctype and gen-lbrk into a single program.
49743         * lib/gen-uni-tables.c: New file, incorporating
49744         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49745         Add directory prefixes to the names of the generated files.
49746         * lib/unictype/gen-ctype.c: Remove file.
49747         * lib/unilbrk/gen-lbrk.c: Remove file.
49748         * modules/gen-uni-tables: New file.
49749         * modules/unictype/gen-ctype: Remove file.
49750         * modules/unilbrk/gen-lbrk: Remove file.
49751
49752 2009-02-07  Bruno Haible  <bruno@clisp.org>
49753
49754         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49755
49756         New module 'unistr/u32-strcoll'.
49757         * modules/unistr/u32-strcoll: New file.
49758         * lib/unistr/u32-strcoll.c: New file.
49759
49760         New module 'unistr/u16-strcoll'.
49761         * modules/unistr/u16-strcoll: New file.
49762         * lib/unistr/u16-strcoll.c: New file.
49763
49764         New module 'unistr/u8-strcoll'.
49765         * modules/unistr/u8-strcoll: New file.
49766         * lib/unistr/u8-strcoll.c: New file.
49767         * lib/unistr/u-strcoll.h: New file.
49768
49769 2009-02-07  Bruno Haible  <bruno@clisp.org>
49770
49771         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49772         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49773         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49774         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49775         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49776         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49777
49778 2009-02-07  Bruno Haible  <bruno@clisp.org>
49779
49780         Make 64-bit clean.
49781         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49782         output_combclass, output_bidi_category, output_decimal_digit,
49783         output_digit, output_numeric, output_mirror, output_scripts,
49784         output_ident_category): Use proper width specifier in format strings.
49785
49786 2009-02-07  Bruno Haible  <bruno@clisp.org>
49787
49788         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49789         failure behaviour.
49790
49791 2009-02-07  Jim Meyering  <meyering@redhat.com>
49792
49793         regex: avoid compilation failure with upcoming gcc-4.4
49794         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49795         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49796         "... error: integer overflow in preprocessor expression".
49797
49798 2009-02-05  Ben Pfaff  <blp@gnu.org>
49799
49800         Fix link errors on Windows when close module is used.
49801         * modules/close: Add $(LIB_CLOSE) to Link section.
49802         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49803         $(LIB_CLOSE) on Windows.
49804
49805 2009-02-05  Jim Meyering  <meyering@redhat.com>
49806
49807         still avoid unused-parameter warnings, but do it cleanly
49808         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49809         (get_fs_usage): Cast to void instead.
49810         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49811         (dev_from_mount_options, read_file_system_list): Cast to void.
49812         Prompted by Bruno Haible.
49813
49814 2009-02-04  Jim Meyering  <meyering@redhat.com>
49815
49816         fsusage.c: correct copyright year
49817         * lib/fsusage.c: Reflect year in which the change is pushed into
49818
49819         avoid misc. warnings
49820         * lib/fsusage.c (UNUSED_PARAM): Define.
49821         (get_fs_usage): Mark parameter "disk" as unused.
49822         * lib/getugroups.c (getgrent): Use "void" in prototype.
49823         * lib/mountlist.c: Mark unused parameters.
49824         (read_file_system_list): Declare a local with "const".
49825         * lib/nanosleep.c (getnow): Declare static.
49826         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49827
49828         dirfd: set errno upon failure
49829         * lib/dirfd.c: Include <errno.h>.
49830         Set errno to ENOTSUP when returning -1.
49831         * modules/dirfd (Depends-on): Add errno.
49832         Suggested by John Kodis <kodis@comcast.net>.
49833
49834 2009-02-01  Bruno Haible  <bruno@clisp.org>
49835
49836         Don't assume sizeof (long) >= sizeof (void *).
49837         * lib/memcmp.c: Include stdint.h.
49838         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
49839         srcp2 to 'const byte *'.
49840         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
49841         types to uintptr_t.
49842         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
49843         * modules/memcmp (Depends-on): Add stdint.
49844         Reported by Ozkan Sezer <sezeroz@gmail.com>.
49845
49846 2009-01-30  Eric Blake  <ebb9@byu.net>
49847
49848         fix more require-before-expand issues
49849         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
49850         expand, AC_PROG_AWK.
49851         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
49852
49853 2009-01-28  Eric Blake  <ebb9@byu.net>
49854
49855         version-etc: use consistent URL formatting
49856         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
49857         Improve formatting.  Use fputs for string without %.
49858
49859 2009-01-28  Jim Meyering  <meyering@redhat.com>
49860
49861         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
49862         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
49863         "underquoted definition of NAME" from autoconf-2.59.
49864
49865 2009-01-28  Bruno Haible  <bruno@clisp.org>
49866
49867         * doc/gnulib.texi: Add "Obsolete modules" to index.
49868
49869 2009-01-28  Jim Meyering  <meyering@redhat.com>
49870
49871         useless-if-before-free: recognize more variants
49872         * build-aux/useless-if-before-free: Also recognize e.g.,
49873         if (NULL != p) free (p);
49874
49875 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
49876
49877         test-getaddrinfo: skip (don't fail) this test when there's no network
49878         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
49879         on the presumption that it means you lack network access.
49880
49881 2009-01-26  Jim Meyering  <meyering@redhat.com>
49882
49883         fflush: avoid warnings on modern systems
49884         * lib/fflush.c (rpl_fflush): Move declarations of locals,
49885         pos and result, into scopes where they're used.
49886
49887 2009-01-26  Eric Blake  <ebb9@byu.net>
49888
49889         Silence warning reintroduced by recent extensions patch.
49890         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
49891         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
49892         autoconf.
49893
49894         Backport improved autoconf semantics of AC_DEFUN_ONCE.
49895         * m4/00gnulib.m4: New file.
49896         * gnulib-tool (func_get_filelist): Always use it.
49897         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
49898         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
49899
49900 2009-01-25  Bruno Haible  <bruno@clisp.org>
49901
49902         Make test-quotearg work on MacOS X and AIX.
49903         * tests/test-quotearg.sh: New file.
49904         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
49905         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
49906         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
49907         include <libintl.h>.
49908         (fake_locale): Remove variable.
49909         (gettext, dgettext, dcgettext): Remove functions.
49910         (main): Instead of setting a fake locale, set a real locale. Call
49911         textdomain and bindtextdomain.
49912         * modules/quotearg-tests (Files): Add the new files.
49913         (Depends-on): Add gettext, setenv, unsetenv.
49914         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49915         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
49916         Augment TESTS_ENVIRONMENT.
49917
49918 2009-01-25  Bruno Haible  <bruno@clisp.org>
49919
49920         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
49921         fr_FR.ISO8859-1 locale on MacOS X.
49922         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
49923         ja_JP.eucJP locale on MacOS X.
49924         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
49925         zh_CN.GB18030 locale on MacOS X.
49926
49927 2009-01-25  Bruno Haible  <bruno@clisp.org>
49928
49929         Avoid link errors on MacOS X 10.3.
49930         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
49931         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49932
49933 2009-01-25  Bruno Haible  <bruno@clisp.org>
49934
49935         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49936         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
49937         * modules/pipe (Files): Remove m4/posix_spawn.m4.
49938         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49939         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
49940         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49941         posix_spawnattr_init, posix_spawnattr_setsigmask,
49942         posix_spawnattr_setflags, posix_spawnattr_destroy.
49943
49944         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49945         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
49946         * modules/execute (Files): Remove m4/posix_spawn.m4.
49947         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49948         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49949         posix_spawnattr_init, posix_spawnattr_setsigmask,
49950         posix_spawnattr_setflags, posix_spawnattr_destroy.
49951
49952 2009-01-25  Bruno Haible  <bruno@clisp.org>
49953
49954         * lib/glthread/threadlib.c: Include <stdlib.h>.
49955
49956 2009-01-25  Bruno Haible  <bruno@clisp.org>
49957
49958         * lib/glthread/threadlib.c (dummy): New declaration.
49959
49960 2009-01-25  Bruno Haible  <bruno@clisp.org>
49961
49962         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
49963         multibyte characters also for the GB18030 encoding. Don't crash when
49964         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
49965
49966 2009-01-25  Bruno Haible  <bruno@clisp.org>
49967
49968         Avoid redefining 'struct random_data' on OSF/1 5.1.
49969         * lib/stdlib.in.h: Include <random.h> if it exists.
49970         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
49971         HAVE_RANDOM_H. Include <random.h> when testing whether
49972         'struct random_data' exists.
49973         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
49974
49975 2009-01-25  Bruno Haible  <bruno@clisp.org>
49976
49977         Don't install charset.alias on MacOS X >= 10.3.
49978         * lib/localcharset.c (DARWIN7): New macro.
49979         (get_charset_aliases): Hardcode the result for Darwin7.
49980         * modules/localcharset (install-exec-local): Don't install
49981         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49982
49983 2009-01-25  Bruno Haible  <bruno@clisp.org>
49984
49985         Don't install charset.alias on mingw and Cygwin.
49986         * modules/localcharset (install-exec-local): Don't install
49987         charset.alias on mingw and Cygwin, if the file does not yet exist.
49988         The result for these platforms is hardcoded in localcharset.c.
49989
49990 2009-01-25  Bruno Haible  <bruno@clisp.org>
49991
49992         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49993         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49994         before requiring AC_USE_SYSTEM_EXTENSIONS.
49995
49996 2009-01-25  Jim Meyering  <meyering@redhat.com>
49997
49998         c-strtod: avoid warnings
49999         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50000         "assignment discards qualifiers from pointer target type" warnings.
50001
50002 2009-01-24  Bruno Haible  <bruno@clisp.org>
50003
50004         Add support for non-UTF-8 locales on MacOS X.
50005         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50006         canonical encodings. For Darwin 7 and newer, don't map traditional
50007         encodings to UTF-8.
50008         Reported by Vincent Lefevre <vincent@vinc17.org>
50009         at <http://savannah.gnu.org/bugs/?25235>.
50010
50011 2009-01-24  Bruno Haible  <bruno@clisp.org>
50012
50013         * doc/gnulib.texi (Obsolete modules): New section.
50014         Reported by Mike Frysinger <vapier@gentoo.org>.
50015
50016 2009-01-24  Bruno Haible  <bruno@clisp.org>
50017
50018         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50019         (%.dvi): New rule.
50020
50021 2009-01-24  Bruno Haible  <bruno@clisp.org>
50022
50023         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50024         Reported by Eric Blake.
50025
50026 2009-01-24  Bruno Haible  <bruno@clisp.org>
50027
50028         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50029         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50030         Reported by Gary V. Vaughan <gary@gnu.org>.
50031
50032 2009-01-24  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50035
50036 2009-01-23  Bruno Haible  <bruno@clisp.org>
50037
50038         Make c-strtod, c-strtold usable in libraries.
50039         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50040         (C_STRTOD): Call strdup instead of xstrdup.
50041         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50042         * modules/c-strtold (Depends-on): Likewise.
50043         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50044         * NEWS: Mention the change.
50045         Reported by Michael Gold <mgold@ncf.ca>.
50046
50047 2009-01-23  Jim Meyering  <meyering@redhat.com>
50048
50049         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50050         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50051         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50052
50053 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50054
50055         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50056         GNU CoreUtils.
50057         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50058         * modules/version-etc (Description): Update.
50059
50060 2009-01-22  Bruno Haible  <bruno@clisp.org>
50061
50062         Cache the C locale object.
50063         * lib/c-strtod.c (c_locale_cache): New variable.
50064         (c_locale): New function.
50065         (C_STRTOD): Use it, and don't call freelocale.
50066         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50067         Suggested by Paolo Bonzini.
50068
50069 2009-01-21  Bruno Haible  <bruno@clisp.org>
50070
50071         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50072         conditions other than overflow.
50073
50074 2009-01-21  Bruno Haible  <bruno@clisp.org>
50075
50076         * lib/c-strtod.c: Include errno.h.
50077         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50078         value from STRTOD_L and STRTOD.
50079
50080 2009-01-21  Bruno Haible  <bruno@clisp.org>
50081         and Jim Meyering  <meyering@redhat.com>
50082
50083         nanosleep: skip configure test (fail it) for apple universal builds
50084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50085         universal builds, assume that nanosleep does not work.
50086         * modules/nanosleep (Depends-on): Add multiarch.
50087
50088         mktime: skip configure test (fail it) for apple universal builds
50089         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50090         universal builds, assume that mktime does not work.
50091         * modules/mktime (Depends-on): Add multiarch.
50092
50093 2009-01-21  Eric Blake  <ebb9@byu.net>
50094
50095         multiarch: avoid expand-before-require warning
50096         * modules/multiarch (configure.ac): Require, rather than expand,
50097         gl_MULTIARCH.
50098         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50099         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50100         enforce that all clients require it.  Partial reversion of
50101         2008-12-29 patch.
50102
50103         error: avoid expand-before-require warning
50104         * modules/errno (configure.ac): Require, rather than expand,
50105         gl_HEADER_ERRNO_H.
50106         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50107         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50108         enforce that all clients require it.
50109
50110         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50111         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50112         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50113         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50114
50115 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50116
50117         Revert:
50118         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50119
50120         regex: do not depend on obsolete modules.
50121         * modules/regex: Remove memcmp and memmove.
50122
50123 2009-01-20  Bruno Haible  <bruno@clisp.org>
50124
50125         Make the 'link' module link on Windows NT 4.
50126         * lib/link.c (_WIN32_WINNT): Don't define.
50127         (CreateHardLinkFuncType): New type.
50128         (CreateHardLinkFunc, initialized): New variables.
50129         (initialize): New function.
50130         (link): Invoke CreateHardLink indirectly through the function pointer.
50131
50132 2009-01-20  Bruno Haible  <bruno@clisp.org>
50133
50134         Fix compilation failure on mingw.
50135         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50136
50137 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50138
50139         * doc/c-strtod.texi: Mention a couple of restrictions.
50140
50141 2009-01-20  Jim Meyering  <meyering@redhat.com>
50142
50143         gettimeofday: move more declarations out of functions
50144         * lib/gettimeofday.c: Move extern declarations of tzset and
50145         gmtime out of containing functions.  Prompted by Bruno Haible.
50146
50147 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50148
50149         regex: do not depend on obsolete modules.
50150         * modules/regex: Remove memcmp and memmove.
50151
50152 2009-01-19  Bruno Haible  <bruno@clisp.org>
50153
50154         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50155         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50156         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50157         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50158         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50159
50160 2009-01-19  Bruno Haible  <bruno@clisp.org>
50161
50162         * tests/test-link.c: Include <errno.h>.
50163         (main): Exit with code 77 when a hard link cannot be created due to
50164         the file system.
50165         * tests/test-link.sh: Skip test when a hard link cannot be created due
50166         to the file system.
50167         Suggested by Eric Blake.
50168
50169 2009-01-19  Martin Lambers  <marlam@marlam.de>
50170
50171         * modules/link-tests: New file.
50172         * tests/test-link.sh: New file.
50173         * tests/test-link.c: New file.
50174
50175 2009-01-19  Eric Blake  <ebb9@byu.net>
50176
50177         doc: mention another function added in cygwin 1.7.0
50178         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50179         Another new function in cygwin 1.7.
50180
50181 2009-01-19  Bruno Haible  <bruno@clisp.org>
50182
50183         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50184         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50185         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50186         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50187         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50188         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50189         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50190         * m4/md4.m4 (gl_MD4): Likewise.
50191         * m4/md5.m4 (gl_MD5): Likewise.
50192         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50193         * m4/sha1.m4 (gl_SHA1): Likewise.
50194         * m4/sha256.m4 (gl_SHA256): Likewise.
50195         * m4/sha512.m4 (gl_SHA512): Likewise.
50196
50197 2009-01-19  Bruno Haible  <bruno@clisp.org>
50198
50199         * modules/uniname/uniname-tests (Depends-on): Add progname.
50200         * tests/uniname/test-uninames.c: Include progname.h.
50201         (main): Call set_program_name.
50202
50203         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50204         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50205         (main): Call set_program_name.
50206
50207         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50208         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50209         (main): Call set_program_name.
50210
50211         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50212         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50213         (main): Call set_program_name.
50214
50215         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50216         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50217         (main): Call set_program_name.
50218
50219         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50220         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50221         (main): Call set_program_name.
50222
50223         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50224         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50225         (main): Call set_program_name.
50226
50227         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50228         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50229         (main): Call set_program_name.
50230
50231         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50232         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50233         (main): Call set_program_name.
50234
50235 2009-01-19  Eric Blake  <ebb9@byu.net>
50236
50237         test-unistd: test previous patch
50238         * tests/test-unistd.c: Test *_FILENO macros.
50239
50240         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50241         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50242         Guarantee a definition.
50243         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50244         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50245         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50246         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50247         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50248         Likewise.
50249         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50250         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50251         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50252         Likewise.
50253         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50254         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50255         (STDERR_FILENO): Likewise.
50256         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50257         (STDERR_FILENO): Likewise.
50258         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50259         (STDERR_FILENO): Likewise.
50260         Reported by Elbert Pol.
50261
50262 2009-01-19  Eric Blake  <ebb9@byu.net>
50263
50264         doc: mention more functions added in cygwin 1.7.0
50265         * doc/posix-functions/abort.texi (abort): Update wording related
50266         to cygwin.
50267         * doc/posix-functions/daylight.texi (daylight): Likewise.
50268         * doc/posix-functions/optarg.texi (optarg): Likewise.
50269         * doc/posix-functions/optarg.texi (opterr): Likewise.
50270         * doc/posix-functions/optarg.texi (optind): Likewise.
50271         * doc/posix-functions/optarg.texi (optopt): Likewise.
50272         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50273         worked in 1.5.x, and was withdrawn in 1.7.
50274         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50275         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50276         cygwin versions.
50277         * doc/posix-functions/perror.texi (perror): Likewise.
50278         * doc/posix-functions/printf.texi (printf): Likewise.
50279         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50280         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50281         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50282         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50283         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50284         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50285         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50286         Likewise.
50287         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50288         Likewise.
50289         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50290         this function.
50291         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50292         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50293         Likewise.
50294         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50295         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50296         * doc/posix-functions/confstr.texi (confstr): Likewise.
50297         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50298         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50299         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50300         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50301         * doc/posix-functions/fputws.texi (fputws): Likewise.
50302         * doc/posix-functions/fwide.texi (fwide): Likewise.
50303         * doc/posix-functions/getwc.texi (getwc): Likewise.
50304         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50305         * doc/posix-functions/putwc.texi (putwc): Likewise.
50306         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50307         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50308         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50309         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50310         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50311         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50312         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50313         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50314         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50315         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50316         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50317
50318 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50319
50320         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50321         * lib/ioctl.c: Include <sys/ioctl.h>.
50322
50323 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50324
50325         * modules/getdate-tests (Depends-on): Add progname.
50326         * tests/test-getdate.c: Use progname module, to avoid link errors
50327         on non-glibc systems.
50328
50329 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50330
50331         * modules/filenamecat-tests (Depends-on): Add progname.
50332         * modules/fstrcmp-tests (Depends-on): Likewise.
50333
50334         * tests/test-filenamecat.c: Use progname module, to avoid link
50335         errors on non-glibc systems.
50336         * tests/test-fstrcmp.c: Likewise.
50337
50338 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50339
50340         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50341         * lib/gettimeofday.c: Move extern declaration out of function.
50342
50343 2009-01-18  Bruno Haible  <bruno@clisp.org>
50344
50345         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50346         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50347         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50348
50349 2009-01-18  Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/strftime.c (MEMPCPY): Remove unused macro.
50352         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50353
50354 2009-01-18  Martin Lambers  <marlam@marlam.de>
50355
50356         New module 'link'.
50357         * lib/unistd.in.h (link): New declaration.
50358         * lib/link.c: New file.
50359         * m4/link.m4: New file.
50360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50361         HAVE_LINK.
50362         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50363         * modules/link: New file.
50364         * doc/posix-functions/link.texi: Mention the new module.
50365
50366 2009-01-18  Bruno Haible  <bruno@clisp.org>
50367
50368         * tests/test-avltree_list.c (main): Call set_program_name.
50369         * tests/test-avltree_oset.c (main): Likewise.
50370         * tests/test-obstack-printf.c: Include progname.h.
50371         (main): Call set_program_name.
50372         * tests/test-quotearg.c: Include progname.h.
50373         (main): Call set_program_name.
50374         * tests/test-xmemdup0.c: Include progname.h.
50375         (main): Call set_program_name.
50376
50377 2009-01-18  Bruno Haible  <bruno@clisp.org>
50378
50379         New module 'alphasort'.
50380         * lib/dirent.in.h (alphasort): New declaration.
50381         * lib/alphasort.c: New file, from glibc with modifications.
50382         * m4/alphasort.m4: New file.
50383         * modules/alphasort: New file.
50384         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50385         HAVE_ALPHASORT.
50386         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50387         HAVE_ALPHASORT.
50388         * doc/posix-functions/alphasort.texi: Mention the new module and the
50389         portability problems.
50390
50391 2009-01-18  Bruno Haible  <bruno@clisp.org>
50392
50393         New module 'scandir'.
50394         * lib/dirent.in.h (scandir): New declaration.
50395         * lib/scandir.c: New file, from glibc with modifications.
50396         * m4/scandir.m4: New file.
50397         * modules/scandir: New file.
50398         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50399         HAVE_SCANDIR.
50400         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50401         HAVE_SCANDIR.
50402         * doc/posix-functions/scandir.texi: Mention the new module and the
50403         portability problems.
50404
50405 2009-01-17  Bruno Haible  <bruno@clisp.org>
50406
50407         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50408         Update documentation.
50409         (func_remove_suffix): Escape all dots in the suffix. Update
50410         documentation.
50411         (func_filter_filelist): Update documentation.
50412         Reported by Ralf Wildenhues.
50413
50414 2009-01-17  Bruno Haible  <bruno@clisp.org>
50415
50416         * modules/dprintf-posix-tests: New file.
50417         * tests/test-dprintf-posix.sh: New file.
50418         * tests/test-dprintf-posix.c: New file.
50419
50420         New modules 'dprintf', 'dprintf-posix'.
50421         * lib/stdio.in.h (dprintf): New declaration.
50422         * lib/dprintf.c: New file.
50423         * m4/dprintf.m4: New file.
50424         * m4/dprintf-posix.m4: New file.
50425         * modules/dprintf: New file.
50426         * modules/dprintf-posix: New file.
50427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50428         HAVE_DPRINTF, REPLACE_DPRINTF.
50429         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50430         HAVE_DPRINTF, REPLACE_DPRINTF.
50431         * doc/posix-functions/dprintf.texi: Mention the new modules.
50432
50433 2009-01-17  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/vdprintf-posix-tests: New file.
50436         * tests/test-vdprintf-posix.sh: New file.
50437         * tests/test-vdprintf-posix.c: New file.
50438
50439         New modules 'vdprintf', 'vdprintf-posix'.
50440         * lib/stdio.in.h (vdprintf): New declaration.
50441         * lib/vdprintf.c: New file.
50442         * m4/vdprintf.m4: New file.
50443         * m4/vdprintf-posix.m4: New file.
50444         * modules/vdprintf: New file.
50445         * modules/vdprintf-posix: New file.
50446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50447         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50448         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50449         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50450         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50451
50452 2009-01-17  Bruno Haible  <bruno@clisp.org>
50453
50454         Fix replacement of fopen on mingw.
50455         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50456         mingw.
50457
50458 2009-01-17  Bruno Haible  <bruno@clisp.org>
50459
50460         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50461         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50462
50463 2009-01-17  Bruno Haible  <bruno@clisp.org>
50464
50465         Avoid test-fflush2.sh failure on mingw.
50466         * tests/test-fflush2.c: Include binary-io.h.
50467         (main): Put standard input into binary mode.
50468         * modules/fflush-tests (Depends-on): Add binary-io.
50469
50470 2009-01-17  Bruno Haible  <bruno@clisp.org>
50471
50472         * lib/wchar.in.h: In another particular situation, include only the
50473         system's <wchar.h> file.
50474         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50475         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50476         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50477
50478 2009-01-17  Bruno Haible  <bruno@clisp.org>
50479
50480         Support for stripping executables in --enable-relocatable.
50481         * build-aux/install-reloc: Expect one more argument, or an environment
50482         variable RELOC_STRIP_PROG. If set, strip the destination program and
50483         its wrapper.
50484         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50485         RELOC_STRIP_PROG.
50486         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50487         to set RELOCATABLE_STRIP.
50488         * NEWS: Mention the new Makefile requirement.
50489
50490 2009-01-17  Bruno Haible  <bruno@clisp.org>
50491
50492         * build-aux/install-reloc: Remove debugging information left over by
50493         C compiler on MacOS X.
50494
50495 2009-01-17  Bruno Haible  <bruno@clisp.org>
50496
50497         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50498         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50499         _NSGetExecutablePath.
50500
50501 2009-01-16  Jim Meyering  <meyering@redhat.com>
50502
50503         strerror: avoid warnings about discarding "const"
50504         * lib/strerror.c (rpl_strerror): Instead of returning a const
50505         string from each and every "case", use a variable, and add a single
50506         cast after the switch.
50507
50508 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50509
50510         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50511
50512 2009-01-16  Bruno Haible  <bruno@clisp.org>
50513
50514         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50515         array initializer syntax that also works in C++ mode.
50516         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50517
50518 2009-01-16  Jim Meyering  <meyering@redhat.com>
50519
50520         poll: suppress a warning
50521         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50522         to ignore "...unsigned expression < 0 is always false" warnings.
50523
50524 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50525
50526         poll: remove declarations of unused variables
50527         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50528         sockbuf and optlen.
50529
50530 2009-01-15  Bruno Haible  <bruno@clisp.org>
50531
50532         Make fflush-after-ungetc POSIX compliant on BSD systems.
50533         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50534         (clear_ungetc_buffer): Implement also for other systems.
50535         (rpl_fflush): On glibc systems, invoke
50536         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50537         clear_ungetc_buffer after fetching the stream's position, not before.
50538
50539 2009-01-15  Bruno Haible  <bruno@clisp.org>
50540
50541         Make fflush-after-ungetc POSIX compliant on glibc systems.
50542         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50543         after ungetc.
50544         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50545         (rpl_fflush): On glibc systems, simply call the system's fflush
50546         function after clearing the ungetc buffer.
50547         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50548         Instead, lseek only to the end of file, then use the system's fseeko
50549         for the rest. On glibc systems, reset the EOF indicator bit.
50550
50551 2009-01-15  Jim Meyering  <meyering@redhat.com>
50552
50553         openmp.m4: revert quote-adding change, for portability to older autoconf
50554         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50555         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50556         Simon Josefsson noticed the problem when using autoconf-2.61.
50557
50558 2009-01-15  Bruno Haible  <bruno@clisp.org>
50559
50560         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50561         * tests/test-fflush2.c (ASSERT): Always fail.
50562         (main): Add two tests for fflush() after ungetc(), taking into account
50563         the Austin Group's clarification.
50564         Suggested by Eric Blake.
50565
50566 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50567
50568         mktime.m4: remove K&R-style function prototypes
50569         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50570         for the Sun C++ compiler.
50571
50572 2009-01-14  Bruno Haible  <bruno@clisp.org>
50573
50574         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50575         while including <wchar.h>.
50576         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50577         the system's <wchar.h> file.
50578         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50579
50580 2009-01-14  Bruno Haible  <bruno@clisp.org>
50581
50582         * m4/csharp.m4: Don't mention gettext on the serial number line.
50583         * m4/csharpexec.m4: Likewise.
50584         * m4/eaccess.m4: Likewise.
50585         * m4/javaexec.m4: Likewise.
50586         * m4/sig_atomic_t.m4: Likewise.
50587         * m4/tmpdir.m4: Likewise.
50588         * m4/intldir.m4: Bump gettext version.
50589         * m4/lib-ld.m4: Likewise.
50590
50591 2009-01-14  Bruno Haible  <bruno@clisp.org>
50592
50593         * lib/progname.c (set_program_name): Add more comments.
50594         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50595
50596 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50597
50598         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50599         were sys/stat.h does not define it.
50600
50601 2009-01-14  Jim Meyering  <meyering@redhat.com>
50602
50603         many *.m4 files: improve m4 quoting
50604         99% of this change was performed by running the following commands:
50605         git ls-files | grep '\.m4$' | xargs perl -pi \
50606           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50607           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50608           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50609           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50610         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50611         The remainder were to add Copyright dates, increment serial numbers,
50612         undo some changes in comments, exclude m4/intl.m4, and add quotes
50613         around the "1" in ",1" where the unusual spacing prohibited the
50614         above regexps from doing the job.  For more details, see
50615         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50616         * m4/acl.m4: Modified.
50617         * m4/afs.m4: Likewise.
50618         * m4/alloca.m4: Likewise.
50619         * m4/argp.m4: Likewise.
50620         * m4/argz.m4: Likewise.
50621         * m4/atexit.m4: Likewise.
50622         * m4/bison-i18n.m4: Likewise.
50623         * m4/bison.m4: Likewise.
50624         * m4/byteswap.m4: Likewise.
50625         * m4/c-stack.m4: Likewise.
50626         * m4/c-strtod.m4: Likewise.
50627         * m4/calloc.m4: Likewise.
50628         * m4/canonicalize-lgpl.m4: Likewise.
50629         * m4/chown.m4: Likewise.
50630         * m4/clock_time.m4: Likewise.
50631         * m4/codeset.m4: Likewise.
50632         * m4/copy-file.m4: Likewise.
50633         * m4/csharp.m4: Likewise.
50634         * m4/csharpcomp.m4: Likewise.
50635         * m4/csharpexec.m4: Likewise.
50636         * m4/d-ino.m4: Likewise.
50637         * m4/d-type.m4: Likewise.
50638         * m4/dirfd.m4: Likewise.
50639         * m4/double-slash-root.m4: Likewise.
50640         * m4/eaccess.m4: Likewise.
50641         * m4/eealloc.m4: Likewise.
50642         * m4/environ.m4: Likewise.
50643         * m4/errno_h.m4: Likewise.
50644         * m4/euidaccess.m4: Likewise.
50645         * m4/execute.m4: Likewise.
50646         * m4/fatal-signal.m4: Likewise.
50647         * m4/fchdir.m4: Likewise.
50648         * m4/fcntl_h.m4: Likewise.
50649         * m4/fileblocks.m4: Likewise.
50650         * m4/filenamecat.m4: Likewise.
50651         * m4/findprog.m4: Likewise.
50652         * m4/flexmember.m4: Likewise.
50653         * m4/fnmatch.m4: Likewise.
50654         * m4/fopen.m4: Likewise.
50655         * m4/fpending.m4: Likewise.
50656         * m4/fprintf-posix.m4: Likewise.
50657         * m4/free.m4: Likewise.
50658         * m4/frexp.m4: Likewise.
50659         * m4/frexpl.m4: Likewise.
50660         * m4/fsusage.m4: Likewise.
50661         * m4/ftruncate.m4: Likewise.
50662         * m4/gc-camellia.m4: Likewise.
50663         * m4/gc-random.m4: Likewise.
50664         * m4/gc.m4: Likewise.
50665         * m4/getaddrinfo.m4: Likewise.
50666         * m4/getcwd-abort-bug.m4: Likewise.
50667         * m4/getcwd-path-max.m4: Likewise.
50668         * m4/getdate.m4: Likewise.
50669         * m4/getdomainname.m4: Likewise.
50670         * m4/getgroups.m4: Likewise.
50671         * m4/gethostname.m4: Likewise.
50672         * m4/gethrxtime.m4: Likewise.
50673         * m4/getline.m4: Likewise.
50674         * m4/getloadavg.m4: Likewise.
50675         * m4/getndelim2.m4: Likewise.
50676         * m4/getpass.m4: Likewise.
50677         * m4/gettext.m4: Likewise.
50678         * m4/gettime.m4: Likewise.
50679         * m4/gettimeofday.m4: Likewise.
50680         * m4/gnulib-common.m4: Likewise.
50681         * m4/group-member.m4: Likewise.
50682         * m4/host-os.m4: Likewise.
50683         * m4/iconv.m4: Likewise.
50684         * m4/iconv_open.m4: Likewise.
50685         * m4/inet_ntop.m4: Likewise.
50686         * m4/inet_pton.m4: Likewise.
50687         * m4/inline.m4: Likewise.
50688         * m4/intldir.m4: Likewise.
50689         * m4/intlmacosx.m4: Likewise.
50690         * m4/intmax.m4: Likewise.
50691         * m4/intmax_t.m4: Likewise.
50692         * m4/inttypes.m4: Likewise.
50693         * m4/inttypes_h.m4: Likewise.
50694         * m4/inttypes-pri.m4: Likewise.
50695         * m4/isapipe.m4: Likewise.
50696         * m4/isnand.m4: Likewise.
50697         * m4/isnanf.m4: Likewise.
50698         * m4/isnanl.m4: Likewise.
50699         * m4/javacomp.m4: Likewise.
50700         * m4/javaexec.m4: Likewise.
50701         * m4/jm-winsz1.m4: Likewise.
50702         * m4/jm-winsz2.m4: Likewise.
50703         * m4/lchown.m4: Likewise.
50704         * m4/lcmessage.m4: Likewise.
50705         * m4/ldexpl.m4: Likewise.
50706         * m4/lib-ld.m4: Likewise.
50707         * m4/lib-link.m4: Likewise.
50708         * m4/libsigsegv.m4: Likewise.
50709         * m4/link-follow.m4: Likewise.
50710         * m4/localcharset.m4: Likewise.
50711         * m4/locale-fr.m4: Likewise.
50712         * m4/locale-ja.m4: Likewise.
50713         * m4/locale-tr.m4: Likewise.
50714         * m4/locale-zh.m4: Likewise.
50715         * m4/lock.m4: Likewise.
50716         * m4/longlong.m4: Likewise.
50717         * m4/ls-mntd-fs.m4: Likewise.
50718         * m4/lstat.m4: Likewise.
50719         * m4/malloc.m4: Likewise.
50720         * m4/mathl.m4: Likewise.
50721         * m4/mbrtowc.m4: Likewise.
50722         * m4/mbstate_t.m4: Likewise.
50723         * m4/mbswidth.m4: Likewise.
50724         * m4/memchr.m4: Likewise.
50725         * m4/memcmp.m4: Likewise.
50726         * m4/memcpy.m4: Likewise.
50727         * m4/memmem.m4: Likewise.
50728         * m4/memmove.m4: Likewise.
50729         * m4/mempcpy.m4: Likewise.
50730         * m4/memrchr.m4: Likewise.
50731         * m4/memset.m4: Likewise.
50732         * m4/minmax.m4: Likewise.
50733         * m4/mkdir-slash.m4: Likewise.
50734         * m4/mkdtemp.m4: Likewise.
50735         * m4/mktime.m4: Likewise.
50736         * m4/mmap-anon.m4: Likewise.
50737         * m4/mountlist.m4: Likewise.
50738         * m4/nanosleep.m4: Likewise.
50739         * m4/nls.m4: Likewise.
50740         * m4/nocrash.m4: Likewise.
50741         * m4/open.m4: Likewise.
50742         * m4/openat.m4: Likewise.
50743         * m4/openmp.m4: Likewise.
50744         * m4/pathmax.m4: Likewise.
50745         * m4/perl.m4: Likewise.
50746         * m4/physmem.m4: Likewise.
50747         * m4/pipe.m4: Likewise.
50748         * m4/po.m4: Likewise.
50749         * m4/poll.m4: Likewise.
50750         * m4/posixtm.m4: Likewise.
50751         * m4/posixver.m4: Likewise.
50752         * m4/printf-frexp.m4: Likewise.
50753         * m4/printf-frexpl.m4: Likewise.
50754         * m4/printf-posix.m4: Likewise.
50755         * m4/printf-posix-rpl.m4: Likewise.
50756         * m4/printf.m4: Likewise.
50757         * m4/progtest.m4: Likewise.
50758         * m4/putenv.m4: Likewise.
50759         * m4/readline.m4: Likewise.
50760         * m4/readlink.m4: Likewise.
50761         * m4/readutmp.m4: Likewise.
50762         * m4/realloc.m4: Likewise.
50763         * m4/regex.m4: Likewise.
50764         * m4/relocatable.m4: Likewise.
50765         * m4/relocatable-lib.m4: Likewise.
50766         * m4/rename-dest-slash.m4: Likewise.
50767         * m4/rename.m4: Likewise.
50768         * m4/rmdir-errno.m4: Likewise.
50769         * m4/rmdir.m4: Likewise.
50770         * m4/roundf.m4: Likewise.
50771         * m4/roundl.m4: Likewise.
50772         * m4/rpmatch.m4: Likewise.
50773         * m4/save-cwd.m4: Likewise.
50774         * m4/selinux-selinux-h.m4: Likewise.
50775         * m4/setenv.m4: Likewise.
50776         * m4/settime.m4: Likewise.
50777         * m4/sig2str.m4: Likewise.
50778         * m4/sig_atomic_t.m4: Likewise.
50779         * m4/signalblocking.m4: Likewise.
50780         * m4/signbit.m4: Likewise.
50781         * m4/sigpipe.m4: Likewise.
50782         * m4/sockets.m4: Likewise.
50783         * m4/sockpfaf.m4: Likewise.
50784         * m4/st_dm_mode.m4: Likewise.
50785         * m4/stat-time.m4: Likewise.
50786         * m4/stdbool.m4: Likewise.
50787         * m4/stdint.m4: Likewise.
50788         * m4/stdint_h.m4: Likewise.
50789         * m4/stpcpy.m4: Likewise.
50790         * m4/stpncpy.m4: Likewise.
50791         * m4/strcase.m4: Likewise.
50792         * m4/strchrnul.m4: Likewise.
50793         * m4/strcspn.m4: Likewise.
50794         * m4/strdup.m4: Likewise.
50795         * m4/strftime.m4: Likewise.
50796         * m4/strndup.m4: Likewise.
50797         * m4/strnlen.m4: Likewise.
50798         * m4/strpbrk.m4: Likewise.
50799         * m4/strptime.m4: Likewise.
50800         * m4/strsep.m4: Likewise.
50801         * m4/strtod.m4: Likewise.
50802         * m4/strtoimax.m4: Likewise.
50803         * m4/strtok_r.m4: Likewise.
50804         * m4/strtol.m4: Likewise.
50805         * m4/strtoll.m4: Likewise.
50806         * m4/strtoul.m4: Likewise.
50807         * m4/strtoull.m4: Likewise.
50808         * m4/strtoumax.m4: Likewise.
50809         * m4/strverscmp.m4: Likewise.
50810         * m4/threadlib.m4: Likewise.
50811         * m4/timegm.m4: Likewise.
50812         * m4/tm_gmtoff.m4: Likewise.
50813         * m4/tmpdir.m4: Likewise.
50814         * m4/tmpfile.m4: Likewise.
50815         * m4/tzset.m4: Likewise.
50816         * m4/uintmax_t.m4: Likewise.
50817         * m4/unlinkdir.m4: Likewise.
50818         * m4/unlocked-io.m4: Likewise.
50819         * m4/uptime.m4: Likewise.
50820         * m4/userspec.m4: Likewise.
50821         * m4/utimbuf.m4: Likewise.
50822         * m4/utime.m4: Likewise.
50823         * m4/utimes-null.m4: Likewise.
50824         * m4/utimes.m4: Likewise.
50825         * m4/vararrays.m4: Likewise.
50826         * m4/vasnprintf.m4: Likewise.
50827         * m4/vfprintf-posix.m4: Likewise.
50828         * m4/vprintf-posix.m4: Likewise.
50829         * m4/wait-process.m4: Likewise.
50830         * m4/wchar_t.m4: Likewise.
50831         * m4/wint_t.m4: Likewise.
50832         * m4/write-any-file.m4: Likewise.
50833         * m4/yield.m4: Likewise.
50834
50835 2009-01-13  Bruno Haible  <bruno@clisp.org>
50836
50837         Avoid test-copy-file.sh failures when ACL support insufficient.
50838         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
50839         TESTS_ENVIRONMENT.
50840         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
50841         Reported by Jim Meyering.
50842
50843 2009-01-13  Bruno Haible  <bruno@clisp.org>
50844
50845         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
50846         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
50847         * modules/unistdio/u8-printf-parse (Files): Likewise.
50848         * modules/unistdio/u32-printf-parse (Files): Likewise.
50849         * modules/unistdio/ulc-printf-parse (Files): Likewise.
50850
50851 2009-01-13  Simon Josefsson  <simon@josefsson.org>
50852
50853         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
50854         and m4/inttypes_h.m4 too.
50855
50856 2009-01-12  Eric Blake  <ebb9@byu.net>
50857
50858         tests: IRIX 6.2 cc can't compile -0.0 into .data
50859         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
50860         rather than at compile-time.
50861         * tests/test-floorl.c (minus_zero): Likewise.
50862         * tests/test-frexpl.c (minus_zero): Likewise.
50863         * tests/test-isnan.c (minus_zerol): Likewise.
50864         * tests/test-isnanl.h (minus_zero): Likewise.
50865         * tests/test-ldexpl.c (minus_zero): Likewise.
50866         * tests/test-roundl.c (minus_zero): Likewise.
50867         * tests/test-signbit.c (minus_zerol): Likewise.
50868         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50869         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50870         * tests/test-truncl.c (minus_zero): Likewise.
50871         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50872         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50873         Reported by Tom G. Christensen and Nelson H. F. Beebe.
50874
50875 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50876
50877         regex: fix glibc bug 9697
50878         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
50879         handling.
50880
50881 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50882
50883         regex: fix glibc bug 697
50884         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
50885         being NULL also if there are no backreferences.
50886
50887 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50888
50889         regex: merge glibc changes
50890         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
50891         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
50892         re_string_skip_chars, re_string_reconstruct): Likewise.
50893         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
50894
50895 2009-01-07  Jim Meyering  <meyering@redhat.com>
50896
50897         poll: filter through cppi
50898         * lib/poll.c: Indent cpp directives to reflect nesting.
50899
50900 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
50901
50902         poll: don't return uninitialized
50903         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
50904
50905 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
50906
50907         avoid compile failure on AIX 6.1
50908         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
50909         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
50910
50911 2009-01-04  Jim Meyering  <meyering@redhat.com>
50912
50913         remove duplicate inclusion of <stdio.h>
50914         * tests/test-fprintf-posix.c: Likewise.
50915         * tests/test-printf-posix.c: Likewise.
50916         * tests/test-snprintf-posix.c: Likewise.
50917         * tests/test-sprintf-posix.c: Likewise.
50918         * tests/test-vasprintf-posix.c: Likewise.
50919         * tests/test-vfprintf-posix.c: Likewise.
50920         * tests/test-vprintf-posix.c: Likewise.
50921         * tests/test-vsnprintf-posix.c: Likewise.
50922         * tests/test-vsprintf-posix.c: Likewise.
50923
50924 2009-01-03  Jim Meyering  <meyering@redhat.com>
50925
50926         gnulib-tool: fix sed-based filtering
50927         * gnulib-tool (func_filter_filelist): Remove extra backslash
50928         in sed_fff_filter definition.
50929
50930 2009-01-02  Jim Meyering  <meyering@redhat.com>
50931
50932         strftime: avoid compilation failure on Solaris 2.6
50933         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
50934         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
50935         Don't #define mbrlen or mbsinit, since now they're guaranteed to
50936         be available.  Reported by Tom G. Christensen.  Details in
50937         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
50938
50939 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50940             Bruno Haible  <bruno@clisp.org>
50941
50942         Speed up gnulib-tool by doing more string processing through shell
50943         built-ins.
50944         * gnulib-tool (fast_func_append): New variable.
50945         (func_remove_prefix, func_remove_suffix): New functions.
50946         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
50947         (func_filter_filelist): New function.
50948         (func_get_dependencies): Use func_remove_suffix instead of sed.
50949         (func_get_automake_snippet): Use func_filter_filelist instead of a
50950         subshell and sed invocation.
50951
50952 2009-01-01  Bruno Haible  <bruno@clisp.org>
50953
50954         Fix a security bug.
50955         * gnulib-tool (func_import, import, update): Don't allow the characters
50956         '"', '$', '`', '\' in macro arguments that become part of commands that
50957         are evaluated.
50958
50959 2009-01-01  Bruno Haible  <bruno@clisp.org>
50960
50961         * gnulib-tool (func_reset_sigpipe): Add more comments.
50962
50963 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50964
50965         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
50966         func_emit_tests_Makefile_am, func_import): Abort loops early if we
50967         already know the answer.
50968
50969 2009-01-01  Jim Meyering  <meyering@redhat.com>
50970
50971         * lib/version-etc.c (version_etc_va): Update copyright year.
50972
50973 2008-12-30  Bruno Haible  <bruno@clisp.org>
50974
50975         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
50976         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50977         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50978
50979 2008-12-29  Eric Blake  <ebb9@byu.net>
50980
50981         multiarch: avoid autoconf AC_REQUIRE bug
50982         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50983         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50984         2.63 and older.
50985         Reported by Bruno Haible, and analyzed in
50986         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50987
50988 2008-12-29  Bruno Haible  <bruno@clisp.org>
50989
50990         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50991         files in subdirectories correctly.
50992         Reported by Ralf Wildenhues.
50993
50994 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50995
50996         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50997         rather than 'join FILE -', for Solaris join.
50998
50999 2008-12-29  Bruno Haible  <bruno@clisp.org>
51000
51001         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51002         quoting.
51003         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51004         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51005         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51006         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51007         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51008         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51009         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51010         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51011         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51012         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51013         * m4/nls.m4 (AM_NLS): Likewise.
51014         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51015         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51016         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51017         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51018         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51019         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51020         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51021         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51022         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51023         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51024         * m4/xsize.m4 (gl_XSIZE): Likewise.
51025         Suggested by Jim Meyering.
51026
51027 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51028
51029         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51030         * lib/parse-duration.c: use a switch instead of cascading if's.
51031
51032 2008-12-29  Eric Blake  <ebb9@byu.net>
51033
51034         wchar.h: supply WEOF on Irix 5.3
51035         * lib/wchar.in.h (wint_t): Also supply WEOF.
51036         * lib/wctype.in.h (wint_t): Likewise.
51037         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51038         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51039         Reported by Tom G. Christensen.
51040
51041 2008-12-26  Bruno Haible  <bruno@clisp.org>
51042
51043         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51044         i486, i586, i686.
51045
51046 2008-12-26  Bruno Haible  <bruno@clisp.org>
51047
51048         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51049
51050 2008-12-26  Bruno Haible  <bruno@clisp.org>
51051
51052         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51053         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51054         not __STDC_CONSTANT_MACROS.
51055         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51056
51057 2008-12-25  Bruno Haible  <bruno@clisp.org>
51058
51059         Add support for universal builds to vasnprintf.
51060         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51061         universal builds, guess no.
51062         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51063         * modules/vasprintf-posix (Depends-on): Likewise.
51064         * modules/fprintf-posix (Depends-on): Likewise.
51065         * modules/vfprintf-posix (Depends-on): Likewise.
51066         * modules/snprintf-posix (Depends-on): Likewise.
51067         * modules/vsnprintf-posix (Depends-on): Likewise.
51068         * modules/sprintf-posix (Depends-on): Likewise.
51069         * modules/vsprintf-posix (Depends-on): Likewise.
51070         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51071         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51072         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51073         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51074         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51075         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51076         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51077
51078         Add support for universal builds to <inttypes.h>.
51079         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51080         _SCNu64_PREFIX): In Apple
51081         universal builds, define directly, using _LP64.
51082         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51083         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51084         * modules/inttypes (Depends-on): Add multiarch.
51085         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51086
51087         Add support for universal builds to <stdint.h>.
51088         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51089         universal builds, define directly, using _LP64.
51090         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51091         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51092         and size_t.
51093         * modules/stdint (Depends-on): Add multiarch.
51094         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51095
51096         New module 'multiarch'.
51097         * modules/multiarch: New file.
51098         * m4/multiarch.m4: New file.
51099
51100 2008-12-25  Bruno Haible  <bruno@clisp.org>
51101
51102         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51103
51104 2008-12-25  Bruno Haible  <bruno@clisp.org>
51105
51106         * modules/btowc (License): Relicense under LGPLv2+.
51107         * modules/mbsinit (License): Likewise.
51108         * modules/mbrtowc (License): Likewise.
51109         * modules/wcrtomb (License): Likewise.
51110         * modules/streq (License): Likewise.
51111         Reported by David Lutterkort <lutter@redhat.com>.
51112
51113 2008-12-23  Bruno Haible  <bruno@clisp.org>
51114
51115         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51116
51117 2008-12-23  Bruno Haible  <bruno@clisp.org>
51118
51119         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51121         GETADDRINFO_LIB, not in LIBS.
51122         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51123         * modules/canon-host (Link): Likewise.
51124         * NEWS: Mention the change.
51125         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51126         GETADDRINFO_LIB.
51127
51128 2008-12-22  Bruno Haible  <bruno@clisp.org>
51129
51130         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51131         * doc/posix-functions/iswalpha_l.texi: Likewise.
51132         * doc/posix-functions/iswblank_l.texi: Likewise.
51133         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51134         * doc/posix-functions/iswctype_l.texi: Likewise.
51135         * doc/posix-functions/iswdigit_l.texi: Likewise.
51136         * doc/posix-functions/iswgraph_l.texi: Likewise.
51137         * doc/posix-functions/iswlower_l.texi: Likewise.
51138         * doc/posix-functions/iswprint_l.texi: Likewise.
51139         * doc/posix-functions/iswpunct_l.texi: Likewise.
51140         * doc/posix-functions/iswspace_l.texi: Likewise.
51141         * doc/posix-functions/iswupper_l.texi: Likewise.
51142         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51143         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51144         * doc/posix-functions/open_wmemstream.texi: Likewise.
51145         * doc/posix-functions/swscanf.texi: Likewise.
51146         * doc/posix-functions/towctrans_l.texi: Likewise.
51147         * doc/posix-functions/towlower.texi: Likewise.
51148         * doc/posix-functions/towlower_l.texi: Likewise.
51149         * doc/posix-functions/towupper.texi: Likewise.
51150         * doc/posix-functions/towupper_l.texi: Likewise.
51151         * doc/posix-functions/vfwprintf.texi: Likewise.
51152         * doc/posix-functions/vfwscanf.texi: Likewise.
51153         * doc/posix-functions/vswscanf.texi: Likewise.
51154         * doc/posix-functions/vwprintf.texi: Likewise.
51155         * doc/posix-functions/vwscanf.texi: Likewise.
51156         * doc/posix-functions/wcpcpy.texi: Likewise.
51157         * doc/posix-functions/wcpncpy.texi: Likewise.
51158         * doc/posix-functions/wcscasecmp.texi: Likewise.
51159         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51160         * doc/posix-functions/wcscoll_l.texi: Likewise.
51161         * doc/posix-functions/wcsdup.texi: Likewise.
51162         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51163         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51164         * doc/posix-functions/wcsnlen.texi: Likewise.
51165         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51166         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51167         * doc/posix-functions/wctrans_l.texi: Likewise.
51168         * doc/posix-functions/wctype_l.texi: Likewise.
51169         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51170         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51171         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51172         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51173         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51174         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51175         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51176         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51177         * doc/glibc-functions/wcschrnul.texi: Likewise.
51178         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51179         * doc/glibc-functions/wcstod_l.texi: Likewise.
51180         * doc/glibc-functions/wcstof_l.texi: Likewise.
51181         * doc/glibc-functions/wcstol_l.texi: Likewise.
51182         * doc/glibc-functions/wcstold_l.texi: Likewise.
51183         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51184         * doc/glibc-functions/wcstoq.texi: Likewise.
51185         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51186         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51187         * doc/glibc-functions/wcstouq.texi: Likewise.
51188         * doc/glibc-functions/wmempcpy.texi: Likewise.
51189
51190 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51191             Eric Blake  <ebb9@byu.net>
51192             Paolo Bonzini  <bonzini@gnu.org>
51193             Bruno Haible  <bruno@clisp.org>
51194
51195         Make c-stack work on Haiku.
51196         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51197         (c_stack_action): Use SA_ONSTACK flag.
51198
51199 2008-12-22  Bruno Haible  <bruno@clisp.org>
51200
51201         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51202
51203 2008-12-22  Bruno Haible  <bruno@clisp.org>
51204
51205         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51206         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51207         being overridden.
51208         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51209         New macros.
51210         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51212         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51213         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51214
51215 2008-12-22  Bruno Haible  <bruno@clisp.org>
51216
51217         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51218         from test code.
51219
51220 2008-12-22  Eric Blake  <ebb9@byu.net>
51221
51222         Avoid gcc warnings on cygwin.
51223         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51224         Avoid unused variable.
51225         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51226         Likewise.
51227
51228 2008-12-22  Bruno Haible  <bruno@clisp.org>
51229
51230         Remove HAVE_MBRTOWC conditionals.
51231         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51232         (mbscasecmp): Assume mbrtowc function.
51233         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51234         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51235         * lib/mbschr.c: Include mbuiter.h unconditionally.
51236         (mbschr): Assume mbrtowc function.
51237         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51238         (mbscspn): Assume mbrtowc function.
51239         * lib/mbslen.c: Include mbuiter.h unconditionally.
51240         (mbslen): Assume mbrtowc function.
51241         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51242         (mbsncasecmp): Assume mbrtowc function.
51243         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51244         (mbsnlen): Assume mbrtowc function.
51245         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51246         (mbspbrk): Assume mbrtowc function.
51247         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51248         (mbspcasecmp): Assume mbrtowc function.
51249         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51250         (mbsrchr): Assume mbrtowc function.
51251         * lib/mbssep.c: Include mbuiter.h unconditionally.
51252         (mbssep): Assume mbrtowc function.
51253         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51254         (mbsspn): Assume mbrtowc function.
51255         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51256         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51257         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51258         (mbstok_r): Assume mbrtowc function.
51259         * lib/propername.c: Include mbuiter.h unconditionally.
51260         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51261         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51262         (trim2): Assume mbrtowc function.
51263         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51264         (mbsnwidth): Assume mbrtowc function.
51265         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51266         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51267         fallback definitions.
51268         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51269
51270 2008-12-22  Bruno Haible  <bruno@clisp.org>
51271
51272         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51273
51274 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51275
51276         * modules/regex: Request emulations for the mb*/wc* functions we need.
51277         * m4/regex.m4: Don't look for those functions here.
51278         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51279
51280 2008-12-22  Bruno Haible  <bruno@clisp.org>
51281
51282         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51283
51284 2008-12-21  Bruno Haible  <bruno@clisp.org>
51285
51286         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51287         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51288         (Include): Remove conditionalization.
51289         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51290         (Include): Remove conditionalization.
51291         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51292         (Include): Remove conditionalization.
51293         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51294         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51295         * NEWS: Mention the change.
51296         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51297         via Sergey Poznyakoff <gray@gnu.org.ua>.
51298
51299 2008-12-21  Bruno Haible  <bruno@clisp.org>
51300
51301         * MODULES.html.sh (Extended multibyte and wide character utilities
51302         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51303         wcrtomb, wcsrtombs.
51304         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51305         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51306         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51307         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51308
51309 2008-12-21  Bruno Haible  <bruno@clisp.org>
51310
51311         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51312
51313 2008-12-21  Bruno Haible  <bruno@clisp.org>
51314
51315         * modules/wcsnrtombs-tests: New file.
51316         * tests/test-wcsnrtombs1.sh: New file.
51317         * tests/test-wcsnrtombs2.sh: New file.
51318         * tests/test-wcsnrtombs3.sh: New file.
51319         * tests/test-wcsnrtombs4.sh: New file.
51320         * tests/test-wcsnrtombs.c: New file.
51321
51322         New module 'wcsnrtombs'.
51323         * lib/wchar.in.h (wcsnrtombs): New declaration.
51324         * lib/wcsnrtombs.c: New file.
51325         * lib/wcsrtombs-state.c: New file.
51326         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51327         (internal_state): Remove variable.
51328         * m4/wcsnrtombs.m4: New file.
51329         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51330         compilation units.
51331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51332         HAVE_WCSNRTOMBS.
51333         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51334         HAVE_WCSNRTOMBS.
51335         * modules/wcsnrtombs: New file.
51336         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51337         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51338
51339 2008-12-21  Bruno Haible  <bruno@clisp.org>
51340
51341         * modules/wcsrtombs-tests: New file.
51342         * tests/test-wcsrtombs1.sh: New file.
51343         * tests/test-wcsrtombs2.sh: New file.
51344         * tests/test-wcsrtombs3.sh: New file.
51345         * tests/test-wcsrtombs4.sh: New file.
51346         * tests/test-wcsrtombs.c: New file.
51347
51348         New module 'wcsrtombs'.
51349         * lib/wchar.in.h (wcsrtombs): New declaration.
51350         * lib/wcsrtombs.c: New file.
51351         * m4/wcsrtombs.m4: New file.
51352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51353         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51355         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51356         * modules/wcsrtombs: New file.
51357         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51358         bugs.
51359
51360 2008-12-21  Bruno Haible  <bruno@clisp.org>
51361
51362         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51363         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51364         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51365         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51366         if not correct.
51367         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51368         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51369         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51370         m4/locale-zh.m4, m4/codeset.m4.
51371         * doc/posix-functions/wcrtomb.texi: Document the bug.
51372
51373 2008-12-21  Bruno Haible  <bruno@clisp.org>
51374
51375         Work around a btowc() bug on IRIX 6.5.
51376         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51377         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51378         REPLACE_WTOBC if not.
51379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51380         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51381         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51382
51383 2008-12-21  Bruno Haible  <bruno@clisp.org>
51384
51385         * modules/wcrtomb-tests: New file.
51386         * tests/test-wcrtomb.sh: New file.
51387         * tests/test-wcrtomb.c: New file.
51388
51389         New module 'wcrtomb'.
51390         * lib/wchar.in.h (wcrtomb): New declaration.
51391         * lib/wcrtomb.c: New file.
51392         * m4/wcrtomb.m4: New file.
51393         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51394         HAVE_WCRTOMB.
51395         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51396         HAVE_WCRTOMB.
51397         * modules/wcrtomb: New file.
51398         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51399
51400 2008-12-21  Bruno Haible  <bruno@clisp.org>
51401
51402         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51403         * modules/mbsrtowcs (Files): Likewise.
51404         * modules/wctob (Files): Likewise.
51405         * modules/c-strcase-tests (Files): Likewise.
51406         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51407         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51408         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51409         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51410         * modules/vasnprintf-posix-tests (Files): Likewise.
51411
51412 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51413
51414         gitlog-to-changelog: pass all command-line arguments to git-log
51415         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51416         it is sometimes convenient to filter the commits in various ways.
51417         gitlog-to-changelog only allows --since to specify a start date,
51418         but git-log itself supports many other filtering mechanisms.
51419         At the moment, I want to filter by branch name.  Rather than
51420         adding a --branch option to gitlog-to-changelog, it seems more
51421         flexible to simply pass all options directly to git-log and let
51422         git do the work.  Notice that this effectively makes --since a
51423         redundant option for gitlog-to-changelog, but removing it would
51424         require current usage to change since calls would then require
51425         an additional '--'.
51426
51427 2008-12-21  Bruno Haible  <bruno@clisp.org>
51428
51429         * modules/mbsnrtowcs-tests: New file.
51430         * tests/test-mbsnrtowcs1.sh: New file.
51431         * tests/test-mbsnrtowcs2.sh: New file.
51432         * tests/test-mbsnrtowcs3.sh: New file.
51433         * tests/test-mbsnrtowcs4.sh: New file.
51434         * tests/test-mbsnrtowcs.c: New file.
51435
51436         New module 'mbsnrtowcs'.
51437         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51438         * lib/mbsnrtowcs.c: New file.
51439         * lib/mbsrtowcs-state.c: New file.
51440         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51441         (internal_state): Remove variable.
51442         * m4/mbsnrtowcs.m4: New file.
51443         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51444         compilation units.
51445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51446         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51447         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51448         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51449         * modules/mbsnrtowcs: New file.
51450         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51451         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51452         portability problem.
51453
51454 2008-12-21  Bruno Haible  <bruno@clisp.org>
51455
51456         Work around mbsrtowcs bug.
51457         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51458         (gl_FUNC_MBSRTOWCS): Invoke it.
51459         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51460         m4/locale-zh.m4.
51461         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51462
51463 2008-12-21  Bruno Haible  <bruno@clisp.org>
51464
51465         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51466
51467 2008-12-21  Bruno Haible  <bruno@clisp.org>
51468
51469         Update doc for AIX.
51470         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51471         16-bit wchar_t type.
51472         * doc/posix-functions/btowc.texi: Likewise.
51473         * doc/posix-functions/fgetwc.texi: Likewise.
51474         * doc/posix-functions/fgetws.texi: Likewise.
51475         * doc/posix-functions/fputwc.texi: Likewise.
51476         * doc/posix-functions/fputws.texi: Likewise.
51477         * doc/posix-functions/fwide.texi: Likewise.
51478         * doc/posix-functions/fwprintf.texi: Likewise.
51479         * doc/posix-functions/fwscanf.texi: Likewise.
51480         * doc/posix-functions/getwchar.texi: Likewise.
51481         * doc/posix-functions/getwc.texi: Likewise.
51482         * doc/posix-functions/iswalnum.texi: Likewise.
51483         * doc/posix-functions/iswalpha.texi: Likewise.
51484         * doc/posix-functions/iswblank.texi: Likewise.
51485         * doc/posix-functions/iswcntrl.texi: Likewise.
51486         * doc/posix-functions/iswctype.texi: Likewise.
51487         * doc/posix-functions/iswdigit.texi: Likewise.
51488         * doc/posix-functions/iswgraph.texi: Likewise.
51489         * doc/posix-functions/iswlower.texi: Likewise.
51490         * doc/posix-functions/iswprint.texi: Likewise.
51491         * doc/posix-functions/iswpunct.texi: Likewise.
51492         * doc/posix-functions/iswspace.texi: Likewise.
51493         * doc/posix-functions/iswupper.texi: Likewise.
51494         * doc/posix-functions/iswxdigit.texi: Likewise.
51495         * doc/posix-functions/mbrtowc.texi: Likewise.
51496         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51497         * doc/posix-functions/mbstowcs.texi: Likewise.
51498         * doc/posix-functions/mbtowc.texi: Likewise.
51499         * doc/posix-functions/putwchar.texi: Likewise.
51500         * doc/posix-functions/putwc.texi: Likewise.
51501         * doc/posix-functions/swprintf.texi: Likewise.
51502         * doc/posix-functions/tolower.texi: Likewise.
51503         * doc/posix-functions/toupper.texi: Likewise.
51504         * doc/posix-functions/towctrans.texi: Likewise.
51505         * doc/posix-functions/ungetwc.texi: Likewise.
51506         * doc/posix-functions/vswprintf.texi: Likewise.
51507         * doc/posix-functions/wcrtomb.texi: Likewise.
51508         * doc/posix-functions/wcscat.texi: Likewise.
51509         * doc/posix-functions/wcschr.texi: Likewise.
51510         * doc/posix-functions/wcscmp.texi: Likewise.
51511         * doc/posix-functions/wcscoll.texi: Likewise.
51512         * doc/posix-functions/wcscpy.texi: Likewise.
51513         * doc/posix-functions/wcscspn.texi: Likewise.
51514         * doc/posix-functions/wcsftime.texi: Likewise.
51515         * doc/posix-functions/wcslen.texi: Likewise.
51516         * doc/posix-functions/wcsncat.texi: Likewise.
51517         * doc/posix-functions/wcsncmp.texi: Likewise.
51518         * doc/posix-functions/wcsncpy.texi: Likewise.
51519         * doc/posix-functions/wcspbrk.texi: Likewise.
51520         * doc/posix-functions/wcsrchr.texi: Likewise.
51521         * doc/posix-functions/wcsrtombs.texi: Likewise.
51522         * doc/posix-functions/wcsspn.texi: Likewise.
51523         * doc/posix-functions/wcsstr.texi: Likewise.
51524         * doc/posix-functions/wcstod.texi: Likewise.
51525         * doc/posix-functions/wcstof.texi: Likewise.
51526         * doc/posix-functions/wcstoimax.texi: Likewise.
51527         * doc/posix-functions/wcstok.texi: Likewise.
51528         * doc/posix-functions/wcstold.texi: Likewise.
51529         * doc/posix-functions/wcstoll.texi: Likewise.
51530         * doc/posix-functions/wcstol.texi: Likewise.
51531         * doc/posix-functions/wcstombs.texi: Likewise.
51532         * doc/posix-functions/wcstoull.texi: Likewise.
51533         * doc/posix-functions/wcstoul.texi: Likewise.
51534         * doc/posix-functions/wcstoumax.texi: Likewise.
51535         * doc/posix-functions/wcswidth.texi: Likewise.
51536         * doc/posix-functions/wcsxfrm.texi: Likewise.
51537         * doc/posix-functions/wctob.texi: Likewise.
51538         * doc/posix-functions/wctomb.texi: Likewise.
51539         * doc/posix-functions/wctrans.texi: Likewise.
51540         * doc/posix-functions/wctype.texi: Likewise.
51541         * doc/posix-functions/wcwidth.texi: Likewise.
51542         * doc/posix-functions/wmemchr.texi: Likewise.
51543         * doc/posix-functions/wmemcmp.texi: Likewise.
51544         * doc/posix-functions/wmemcpy.texi: Likewise.
51545         * doc/posix-functions/wmemmove.texi: Likewise.
51546         * doc/posix-functions/wmemset.texi: Likewise.
51547         * doc/posix-functions/wprintf.texi: Likewise.
51548         * doc/posix-functions/wscanf.texi: Likewise.
51549
51550 2008-12-21  Bruno Haible  <bruno@clisp.org>
51551
51552         Update doc for HP-UX 11.11.
51553         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51554         in HP-UX version 11.00, not in all versions of HP-UX 11.
51555         * doc/posix-functions/fwide.texi: Likewise.
51556         * doc/posix-functions/fwprintf.texi: Likewise.
51557         * doc/posix-functions/fwscanf.texi: Likewise.
51558         * doc/posix-functions/inet_ntop.texi: Likewise.
51559         * doc/posix-functions/inet_pton.texi: Likewise.
51560         * doc/posix-functions/mbrlen.texi: Likewise.
51561         * doc/posix-functions/mbrtowc.texi: Likewise.
51562         * doc/posix-functions/mbsinit.texi: Likewise.
51563         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51564         * doc/posix-functions/swprintf.texi: Likewise.
51565         * doc/posix-functions/swscanf.texi: Likewise.
51566         * doc/posix-functions/towctrans.texi: Likewise.
51567         * doc/posix-functions/vfwprintf.texi: Likewise.
51568         * doc/posix-functions/vswprintf.texi: Likewise.
51569         * doc/posix-functions/vwprintf.texi: Likewise.
51570         * doc/posix-functions/wcrtomb.texi: Likewise.
51571         * doc/posix-functions/wcsrtombs.texi: Likewise.
51572         * doc/posix-functions/wcsstr.texi: Likewise.
51573         * doc/posix-functions/wctob.texi: Likewise.
51574         * doc/posix-functions/wctrans.texi: Likewise.
51575         * doc/posix-functions/wmemchr.texi: Likewise.
51576         * doc/posix-functions/wmemcmp.texi: Likewise.
51577         * doc/posix-functions/wmemcpy.texi: Likewise.
51578         * doc/posix-functions/wmemmove.texi: Likewise.
51579         * doc/posix-functions/wmemset.texi: Likewise.
51580         * doc/posix-functions/wprintf.texi: Likewise.
51581         * doc/posix-functions/wscanf.texi: Likewise.
51582
51583 2008-12-21  Bruno Haible  <bruno@clisp.org>
51584
51585         Work around a portability problem.
51586         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51587         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51588
51589 2008-12-20  Bruno Haible  <bruno@clisp.org>
51590
51591         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51592         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51593         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51594         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51595         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51596
51597         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51598         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51599         set.
51600         (GNULIB_defined_mbstate_t): New macro.
51601         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51602         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51603         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51604         reuses the system's mbrtowc function but works around the bugs.
51605         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51606         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51607         macros.
51608         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51609         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51610         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51611         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51612         REPLACE_MBSINIT if mbsinit needs to be overridden.
51613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51614         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51615         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51616         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51617         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51618         m4/locale-zh.m4.
51619         (Depends): Add mbsinit.
51620         * modules/mbsinit (Depends): Add mbrtowc.
51621         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51622
51623 2008-12-20  Bruno Haible  <bruno@clisp.org>
51624
51625         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51626         so that there are no conversion errors on AIX.
51627         * tests/test-mbsrtowcs.c (main): LIkewise.
51628
51629 2008-12-20  Bruno Haible  <bruno@clisp.org>
51630
51631         Work around wctob bug on Solaris <= 9.
51632         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51633         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51635         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51636         * modules/wctob (Files): Add m4/locale-fr.m4.
51637         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51638
51639 2008-12-20  Bruno Haible  <bruno@clisp.org>
51640
51641         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51642         /dev/null.
51643         * tests/test-select-in.sh: Likewise.
51644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51645
51646 2008-12-20  Bruno Haible  <bruno@clisp.org>
51647
51648         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51649         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51650         Cygwin 1.5.x.
51651
51652 2008-12-20  Bruno Haible  <bruno@clisp.org>
51653
51654         Ensure mbstate_t is defined on HP-UX 11.11.
51655         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51656         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51657         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51658         AC_USE_SYSTEM_EXTENSIONS.
51659         * modules/fnmatch (Depends-on): Add extensions.
51660         * modules/mbrlen (Depends-on): Likewise.
51661         * modules/mbrtowc (Depends-on): Likewise.
51662         * modules/mbsinit (Depends-on): Likewise.
51663         * modules/mbsrtowcs (Depends-on): Likewise.
51664         * modules/mbswidth (Depends-on): Likewise.
51665         * modules/quotearg (Depends-on): Likewise.
51666         * modules/strftime (Depends-on): Likewise.
51667
51668 2008-12-20  Bruno Haible  <bruno@clisp.org>
51669
51670         Ensure wctob is declared on IRIX 6.5.
51671         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51672         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51673         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51675         of HAVE_WCTOB.
51676         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51677         HAVE_WCTOB.
51678         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51679
51680 2008-12-19  Bruno Haible  <bruno@clisp.org>
51681
51682         * modules/mbsrtowcs-tests: New file.
51683         * tests/test-mbsrtowcs1.sh: New file.
51684         * tests/test-mbsrtowcs2.sh: New file.
51685         * tests/test-mbsrtowcs3.sh: New file.
51686         * tests/test-mbsrtowcs4.sh: New file.
51687         * tests/test-mbsrtowcs.c: New file.
51688
51689         New module 'mbsrtowcs'.
51690         * lib/wchar.in.h (mbsrtowcs): New declaration.
51691         * lib/mbsrtowcs.c: New file.
51692         * m4/mbsrtowcs.m4: New file.
51693         * modules/mbsrtowcs: New file.
51694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51695         HAVE_MBSRTOWCS.
51696         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51697         HAVE_MBSRTOWCS.
51698         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51699
51700 2008-12-19  Bruno Haible  <bruno@clisp.org>
51701
51702         New module 'mbrlen'.
51703         * lib/wchar.in.h (mbrlen): New declaration.
51704         * lib/mbrlen.c: New file.
51705         * m4/mbrlen.m4: New file.
51706         * modules/mbrlen: New file.
51707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51708         HAVE_MBRLEN.
51709         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51710         HAVE_MBRLEN.
51711         * doc/posix-functions/mbrlen.texi: Document the new module.
51712
51713 2008-12-19  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51716         * modules/mbrtowc (Depends-on): Add verify.
51717         Suggested by Paul Eggert.
51718
51719 2008-12-18  Bruno Haible  <bruno@clisp.org>
51720
51721         * modules/mbsinit-tests: New file.
51722         * tests/test-mbsinit.sh: New file.
51723         * tests/test-mbsinit.c: New file.
51724
51725 2008-12-18  Bruno Haible  <bruno@clisp.org>
51726
51727         * modules/mbrtowc-tests: New file.
51728         * tests/test-mbrtowc1.sh: New file.
51729         * tests/test-mbrtowc2.sh: New file.
51730         * tests/test-mbrtowc3.sh: New file.
51731         * tests/test-mbrtowc4.sh: New file.
51732         * tests/test-mbrtowc.c: New file.
51733
51734         New module 'mbrtowc'.
51735         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51736         mbsinit and mbrtowc.
51737         (mbrtowc): New declaration.
51738         * lib/mbrtowc.c: New file.
51739         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51740         * modules/mbrtowc: New file.
51741         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51742         HAVE_MBRTOWC.
51743         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51744         HAVE_MBRTOWC.
51745         * doc/posix-functions/mbrtowc.texi: Document the new module.
51746
51747 2008-12-18  Bruno Haible  <bruno@clisp.org>
51748
51749         New module 'wctob'.
51750         * lib/wchar.in.h (wctob): New declaration.
51751         * lib/wctob.c: New file.
51752         * m4/wctob.m4: New file.
51753         * modules/wctob: New file.
51754         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51755         HAVE_WCTOB.
51756         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51757         * doc/posix-functions/wctob.texi: Document the new module.
51758
51759 2008-12-18  Bruno Haible  <bruno@clisp.org>
51760
51761         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51762         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51763
51764 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51765
51766         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51767         G. Christensen" <tgc@jupiterrise.com>.
51768
51769         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51770         G. Christensen" <tgc@jupiterrise.com>.
51771
51772         * lib/flock.c: Need to include string.h.  Reported by "Tom
51773         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51774         <ebb9@byu.net>.
51775
51776 2008-12-18  Bruno Haible  <bruno@clisp.org>
51777
51778         * m4/locale-ja.m4: New file, from GNU gettext.
51779
51780 2008-12-17  Bruno Haible  <bruno@clisp.org>
51781
51782         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51783         Suggested by Eric Blake.
51784
51785 2008-12-17  Bruno Haible  <bruno@clisp.org>
51786
51787         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51788
51789 2008-12-17  Bruno Haible  <bruno@clisp.org>
51790
51791         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51792         * modules/mbsinit (Depends-on): Add verify.
51793         Suggested by Paul Eggert.
51794
51795 2008-12-17  Bruno Haible  <bruno@clisp.org>
51796
51797         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51798         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51799         gl_FUNC_MBRTOWC.
51800         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51801         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51802         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51803         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51804         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51805         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51806         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51807         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51808         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51809         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51810         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51811         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51812         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51813         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51814         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51815         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51816         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51817         * modules/trim (configure.ac): Likewise.
51818
51819 2008-12-17  Bruno Haible  <bruno@clisp.org>
51820
51821         * modules/btowc-tests: New file.
51822         * tests/test-btowc1.sh: New file.
51823         * tests/test-btowc2.sh: New file.
51824         * tests/test-btowc.c: New file.
51825
51826         New module 'btowc'.
51827         * lib/wchar.in.h (btowc): New declaration.
51828         * lib/btowc.c: New file.
51829         * m4/btowc.m4: New file.
51830         * modules/btowc: New file.
51831         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
51832         HAVE_BTOWC.
51833         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
51834         * doc/posix-functions/btowc.texi: Document the new module.
51835
51836 2008-12-17  Bruno Haible  <bruno@clisp.org>
51837
51838         New module 'mbsinit'.
51839         * lib/wchar.in.h (mbsinit): New declaration.
51840         * lib/mbsinit.c: New file.
51841         * m4/mbsinit.m4: New file.
51842         * modules/mbsinit: New file.
51843         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
51844         HAVE_MBSINIT.
51845         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
51846         HAVE_MBSINIT.
51847         * doc/posix-functions/mbsinit.texi: Document the new module.
51848
51849 2008-12-16  Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/unistd.in.h: Add comment.
51852         * tests/test-environ.c: Don't include <stdlib.h>.
51853
51854 2008-12-16  Bruno Haible  <bruno@clisp.org>
51855
51856         * lib/parse-duration.h (parse_duration): Document return value
51857         convention.
51858         * lib/parse-duration.c: Include specification header first. Add
51859         comments.
51860         (_): Remove macro.
51861         (parse_year_month_day, parse_hour_minute_second): Move side effects
51862         outside of strchr call.
51863         (parse_non_iso8601): Move side effects outside of isspace call.
51864         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
51865         call.
51866
51867 2008-12-16  Bruno Haible  <bruno@clisp.org>
51868
51869         * tests/test-parse-duration.sh: Produce no output when the test
51870         succeeds.
51871
51872 2008-12-16  Bruno Haible  <bruno@clisp.org>
51873
51874         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
51875         expressions.
51876
51877 2008-12-15  Bruno Haible  <bruno@clisp.org>
51878
51879         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
51880         * doc/glibc-functions/flistxattr.texi: Likewise.
51881         * doc/glibc-functions/fopencookie.texi: Likewise.
51882         * doc/glibc-functions/fremovexattr.texi: Likewise.
51883         * doc/glibc-functions/fsetxattr.texi: Likewise.
51884         * doc/glibc-functions/getxattr.texi: Likewise.
51885         * doc/glibc-functions/lgetxattr.texi: Likewise.
51886         * doc/glibc-functions/listxattr.texi: Likewise.
51887         * doc/glibc-functions/llistxattr.texi: Likewise.
51888         * doc/glibc-functions/lremovexattr.texi: Likewise.
51889         * doc/glibc-functions/lsetxattr.texi: Likewise.
51890         * doc/glibc-functions/removexattr.texi: Likewise.
51891         * doc/glibc-functions/setxattr.texi: Likewise.
51892         * doc/posix-functions/open_memstream.texi: Likewise.
51893
51894 2008-12-15  Eric Blake  <ebb9@byu.net>
51895
51896         Update doc for cygwin 1.7.
51897         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
51898         functions.
51899         * doc/posix-functions/fchmodat.texi: Likewise.
51900         * doc/posix-functions/fchownat.texi: Likewise.
51901         * doc/posix-functions/fdopendir.texi: Likewise.
51902         * doc/posix-functions/fmemopen.texi: Likewise.
51903         * doc/posix-functions/freeaddrinfo.texi: Likewise.
51904         * doc/posix-functions/fstatat.texi: Likewise.
51905         * doc/posix-functions/futimens.texi: Likewise.
51906         * doc/posix-functions/gai_strerror.texi: Likewise.
51907         * doc/posix-functions/getaddrinfo.texi: Likewise.
51908         * doc/posix-functions/getnameinfo.texi: Likewise.
51909         * doc/posix-functions/if_freenameindex.texi: Likewise.
51910         * doc/posix-functions/if_indextoname.texi: Likewise.
51911         * doc/posix-functions/if_nameindex.texi: Likewise.
51912         * doc/posix-functions/if_nametoindex.texi: Likewise.
51913         * doc/posix-functions/insque.texi: Likewise.
51914         * doc/posix-functions/linkat.texi: Likewise.
51915         * doc/posix-functions/llrint.texi: Likewise.
51916         * doc/posix-functions/llrintf.texi: Likewise.
51917         * doc/posix-functions/llrintl.texi: Likewise.
51918         * doc/posix-functions/lockf.texi: Likewise.
51919         * doc/posix-functions/lrintl.texi: Likewise.
51920         * doc/posix-functions/mkdirat.texi: Likewise.
51921         * doc/posix-functions/mkfifoat.texi: Likewise.
51922         * doc/posix-functions/mknodat.texi: Likewise.
51923         * doc/posix-functions/mq_close.texi: Likewise.
51924         * doc/posix-functions/mq_getattr.texi: Likewise.
51925         * doc/posix-functions/mq_notify.texi: Likewise.
51926         * doc/posix-functions/mq_open.texi: Likewise.
51927         * doc/posix-functions/mq_receive.texi: Likewise.
51928         * doc/posix-functions/mq_send.texi: Likewise.
51929         * doc/posix-functions/mq_setattr.texi: Likewise.
51930         * doc/posix-functions/mq_timedreceive.texi: Likewise.
51931         * doc/posix-functions/mq_timedsend.texi: Likewise.
51932         * doc/posix-functions/mq_unlink.texi: Likewise.
51933         * doc/posix-functions/open_memstream.texi: Likewise.
51934         * doc/posix-functions/openat.texi: Likewise.
51935         * doc/posix-functions/posix_fadvise.texi: Likewise.
51936         * doc/posix-functions/posix_fallocate.texi: Likewise.
51937         * doc/posix-functions/posix_madvise.texi: Likewise.
51938         * doc/posix-functions/posix_memalign.texi: Likewise.
51939         * doc/posix-functions/posix_openpt.texi: Likewise.
51940         * doc/posix-functions/readlinkat.texi: Likewise.
51941         * doc/posix-functions/remque.texi: Likewise.
51942         * doc/posix-functions/renameat.texi: Likewise.
51943         * doc/posix-functions/rintl.texi: Likewise.
51944         * doc/posix-functions/sem_unlink.texi: Likewise.
51945         * doc/posix-functions/shm_open.texi: Likewise.
51946         * doc/posix-functions/shm_unlink.texi: Likewise.
51947         * doc/posix-functions/signgam.texi: Likewise.
51948         * doc/posix-functions/sigset.texi: Likewise.
51949         * doc/posix-functions/stpcpy.texi: Likewise.
51950         * doc/posix-functions/stpncpy.texi: Likewise.
51951         * doc/posix-functions/strerror.texi: Likewise.
51952         * doc/posix-functions/strtod.texi: Likewise.
51953         * doc/posix-functions/symlinkat.texi: Likewise.
51954         * doc/posix-functions/unlinkat.texi: Likewise.
51955         * doc/posix-functions/utimensat.texi: Likewise.
51956         * doc/glibc-functions/bindresvport.texi: Likewise.
51957         * doc/glibc-functions/dn_expand.texi: Likewise.
51958         * doc/glibc-functions/exp10.texi: Likewise.
51959         * doc/glibc-functions/exp10f.texi: Likewise.
51960         * doc/glibc-functions/fgetxattr.texi: Likewise.
51961         * doc/glibc-functions/flistxattr.texi: Likewise.
51962         * doc/glibc-functions/fopencookie.texi: Likewise.
51963         * doc/glibc-functions/freeifaddrs.texi: Likewise.
51964         * doc/glibc-functions/fremovexattr.texi: Likewise.
51965         * doc/glibc-functions/fsetxattr.texi: Likewise.
51966         * doc/glibc-functions/getifaddrs.texi: Likewise.
51967         * doc/glibc-functions/getxattr.texi: Likewise.
51968         * doc/glibc-functions/lgetxattr.texi: Likewise.
51969         * doc/glibc-functions/listxattr.texi: Likewise.
51970         * doc/glibc-functions/llistxattr.texi: Likewise.
51971         * doc/glibc-functions/lremovexattr.texi: Likewise.
51972         * doc/glibc-functions/lsetxattr.texi: Likewise.
51973         * doc/glibc-functions/pow10.texi: Likewise.
51974         * doc/glibc-functions/pow10f.texi: Likewise.
51975         * doc/glibc-functions/rcmd_af.texi: Likewise.
51976         * doc/glibc-functions/removexattr.texi: Likewise.
51977         * doc/glibc-functions/res_init.texi: Likewise.
51978         * doc/glibc-functions/res_mkquery.texi: Likewise.
51979         * doc/glibc-functions/res_query.texi: Likewise.
51980         * doc/glibc-functions/res_querydomain.texi: Likewise.
51981         * doc/glibc-functions/res_send.texi: Likewise.
51982         * doc/glibc-functions/rresvport_af.texi: Likewise.
51983         * doc/glibc-functions/setxattr.texi: Likewise.
51984         * doc/glibc-functions/strcasestr.texi: Likewise.
51985
51986 2008-12-15  Bruno Haible  <bruno@clisp.org>
51987
51988         Fix compilation error on OSF/1 4.0.
51989         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51990         <sys/time.h>, simply delegate to the system header.
51991         Reported by Daniel Richard G. <oss@teragram.com>.
51992
51993 2008-12-15  Bruno Haible  <bruno@clisp.org>
51994
51995         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51996         * doc/posix-functions/fchmodat.texi: Likewise.
51997         * doc/posix-functions/fchownat.texi: Likewise.
51998         * doc/posix-functions/fdopendir.texi: Likewise.
51999         * doc/posix-functions/fstatat.texi: Likewise.
52000         * doc/posix-functions/mkdirat.texi: Likewise.
52001         * doc/posix-functions/unlinkat.texi: Likewise.
52002
52003 2008-12-14  Bruno Haible  <bruno@clisp.org>
52004
52005         Update doc for POSIX:2008.
52006         * doc/posix-functions/faccessat.texi: New file.
52007         * doc/posix-functions/fchmodat.texi: New file.
52008         * doc/posix-functions/fchownat.texi: New file.
52009         * doc/posix-functions/fdopendir.texi: New file.
52010         * doc/posix-functions/fstatat.texi: New file.
52011         * doc/posix-functions/futimens.texi: New file.
52012         * doc/posix-functions/linkat.texi: New file.
52013         * doc/posix-functions/mkdirat.texi: New file.
52014         * doc/posix-functions/mkfifoat.texi: New file.
52015         * doc/posix-functions/mknodat.texi: New file.
52016         * doc/posix-functions/open_wmemstream.texi: New file.
52017         * doc/posix-functions/openat.texi: New file.
52018         * doc/posix-functions/psiginfo.texi: New file.
52019         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52020         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52021         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52022         * doc/posix-functions/readlinkat.texi: New file.
52023         * doc/posix-functions/renameat.texi: New file.
52024         * doc/posix-functions/strerror_l.texi: New file.
52025         * doc/posix-functions/symlinkat.texi: New file.
52026         * doc/posix-functions/unlinkat.texi: New file.
52027         * doc/posix-functions/utimensat.texi: New file.
52028         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52029
52030 2008-12-14  Bruno Haible  <bruno@clisp.org>
52031
52032         Update doc for POSIX:2008.
52033         * doc/posix-functions/alphasort.texi: Renamed from
52034         doc/glibc-functions/alphasort.texi.
52035         * doc/posix-functions/dirfd.texi: Renamed from
52036         doc/glibc-functions/dirfd.texi.
52037         * doc/posix-functions/dprintf.texi: Renamed from
52038         doc/glibc-functions/dprintf.texi.
52039         * doc/posix-functions/duplocale.texi: Renamed from
52040         doc/glibc-functions/duplocale.texi.
52041         * doc/posix-functions/fexecve.texi: Renamed from
52042         doc/glibc-functions/fexecve.texi.
52043         * doc/posix-functions/fmemopen.texi: Renamed from
52044         doc/glibc-functions/fmemopen.texi.
52045         * doc/posix-functions/freelocale.texi: Renamed from
52046         doc/glibc-functions/freelocale.texi.
52047         * doc/posix-functions/getdate_err.texi: Renamed from
52048         doc/glibc-functions/getdate_err.texi.
52049         * doc/posix-functions/isalnum_l.texi: Renamed from
52050         doc/glibc-functions/isalnum_l.texi.
52051         * doc/posix-functions/isalpha_l.texi: Renamed from
52052         doc/glibc-functions/isalpha_l.texi.
52053         * doc/posix-functions/isblank_l.texi: Renamed from
52054         doc/glibc-functions/isblank_l.texi.
52055         * doc/posix-functions/iscntrl_l.texi: Renamed from
52056         doc/glibc-functions/iscntrl_l.texi.
52057         * doc/posix-functions/isdigit_l.texi: Renamed from
52058         doc/glibc-functions/isdigit_l.texi.
52059         * doc/posix-functions/isgraph_l.texi: Renamed from
52060         doc/glibc-functions/isgraph_l.texi.
52061         * doc/posix-functions/islower_l.texi: Renamed from
52062         doc/glibc-functions/islower_l.texi.
52063         * doc/posix-functions/isprint_l.texi: Renamed from
52064         doc/glibc-functions/isprint_l.texi.
52065         * doc/posix-functions/ispunct_l.texi: Renamed from
52066         doc/glibc-functions/ispunct_l.texi.
52067         * doc/posix-functions/isspace_l.texi: Renamed from
52068         doc/glibc-functions/isspace_l.texi.
52069         * doc/posix-functions/isupper_l.texi: Renamed from
52070         doc/glibc-functions/isupper_l.texi.
52071         * doc/posix-functions/iswalnum_l.texi: Renamed from
52072         doc/glibc-functions/iswalnum_l.texi.
52073         * doc/posix-functions/iswalpha_l.texi: Renamed from
52074         doc/glibc-functions/iswalpha_l.texi.
52075         * doc/posix-functions/iswblank_l.texi: Renamed from
52076         doc/glibc-functions/iswblank_l.texi.
52077         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52078         doc/glibc-functions/iswcntrl_l.texi.
52079         * doc/posix-functions/iswctype_l.texi: Renamed from
52080         doc/glibc-functions/iswctype_l.texi.
52081         * doc/posix-functions/iswdigit_l.texi: Renamed from
52082         doc/glibc-functions/iswdigit_l.texi.
52083         * doc/posix-functions/iswgraph_l.texi: Renamed from
52084         doc/glibc-functions/iswgraph_l.texi.
52085         * doc/posix-functions/iswlower_l.texi: Renamed from
52086         doc/glibc-functions/iswlower_l.texi.
52087         * doc/posix-functions/iswprint_l.texi: Renamed from
52088         doc/glibc-functions/iswprint_l.texi.
52089         * doc/posix-functions/iswpunct_l.texi: Renamed from
52090         doc/glibc-functions/iswpunct_l.texi.
52091         * doc/posix-functions/iswspace_l.texi: Renamed from
52092         doc/glibc-functions/iswspace_l.texi.
52093         * doc/posix-functions/iswupper_l.texi: Renamed from
52094         doc/glibc-functions/iswupper_l.texi.
52095         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52096         doc/glibc-functions/iswxdigit_l.texi.
52097         * doc/posix-functions/isxdigit_l.texi: Renamed from
52098         doc/glibc-functions/isxdigit_l.texi.
52099         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52100         doc/glibc-functions/mbsnrtowcs.texi.
52101         * doc/posix-functions/mkdtemp.texi: Renamed from
52102         doc/glibc-functions/mkdtemp.texi.
52103         * doc/posix-functions/newlocale.texi: Renamed from
52104         doc/glibc-functions/newlocale.texi.
52105         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52106         doc/glibc-functions/nl_langinfo_l.texi.
52107         * doc/posix-functions/open_memstream.texi: Renamed from
52108         doc/glibc-functions/open_memstream.texi.
52109         * doc/posix-functions/opterr.texi: Renamed from
52110         doc/glibc-functions/opterr.texi.
52111         * doc/posix-functions/optind.texi: Renamed from
52112         doc/glibc-functions/optind.texi.
52113         * doc/posix-functions/optopt.texi: Renamed from
52114         doc/glibc-functions/optopt.texi.
52115         * doc/posix-functions/psignal.texi: Renamed from
52116         doc/glibc-functions/psignal.texi.
52117         * doc/posix-functions/scandir.texi: Renamed from
52118         doc/glibc-functions/scandir.texi.
52119         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52120         doc/glibc-functions/sched_get_priority_min.texi.
52121         * doc/posix-functions/signgam.texi: Renamed from
52122         doc/glibc-functions/signgam.texi.
52123         * doc/posix-functions/stpcpy.texi: Renamed from
52124         doc/glibc-functions/stpcpy.texi.
52125         * doc/posix-functions/stpncpy.texi: Renamed from
52126         doc/glibc-functions/stpncpy.texi.
52127         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52128         doc/glibc-functions/strcasecmp_l.texi.
52129         * doc/posix-functions/strcoll_l.texi: Renamed from
52130         doc/glibc-functions/strcoll_l.texi.
52131         * doc/posix-functions/strfmon_l.texi: Renamed from
52132         doc/glibc-functions/strfmon_l.texi.
52133         * doc/posix-functions/strftime_l.texi: Renamed from
52134         doc/glibc-functions/strftime_l.texi.
52135         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52136         doc/glibc-functions/strncasecmp_l.texi.
52137         * doc/posix-functions/strndup.texi: Renamed from
52138         doc/glibc-functions/strndup.texi.
52139         * doc/posix-functions/strnlen.texi: Renamed from
52140         doc/glibc-functions/strnlen.texi.
52141         * doc/posix-functions/strsignal.texi: Renamed from
52142         doc/glibc-functions/strsignal.texi.
52143         * doc/posix-functions/strxfrm_l.texi: Renamed from
52144         doc/glibc-functions/strxfrm_l.texi.
52145         * doc/posix-functions/timer_gettime.texi: Renamed from
52146         doc/glibc-functions/timer_gettime.texi.
52147         * doc/posix-functions/tolower_l.texi: Renamed from
52148         doc/glibc-functions/tolower_l.texi.
52149         * doc/posix-functions/toupper_l.texi: Renamed from
52150         doc/glibc-functions/toupper_l.texi.
52151         * doc/posix-functions/towctrans_l.texi: Renamed from
52152         doc/glibc-functions/towctrans_l.texi.
52153         * doc/posix-functions/towlower_l.texi: Renamed from
52154         doc/glibc-functions/towlower_l.texi.
52155         * doc/posix-functions/towupper_l.texi: Renamed from
52156         doc/glibc-functions/towupper_l.texi.
52157         * doc/posix-functions/uselocale.texi: Renamed from
52158         doc/glibc-functions/uselocale.texi.
52159         * doc/posix-functions/vdprintf.texi: Renamed from
52160         doc/glibc-functions/vdprintf.texi.
52161         * doc/posix-functions/wcpcpy.texi:
52162         Renamed from doc/glibc-functions/wcpcpy.texi.
52163         * doc/posix-functions/wcpncpy.texi: Renamed from
52164         doc/glibc-functions/wcpncpy.texi.
52165         * doc/posix-functions/wcscasecmp.texi: Renamed from
52166         doc/glibc-functions/wcscasecmp.texi.
52167         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52168         doc/glibc-functions/wcscasecmp_l.texi.
52169         * doc/posix-functions/wcscoll_l.texi: Renamed from
52170         doc/glibc-functions/wcscoll_l.texi.
52171         * doc/posix-functions/wcsdup.texi: Renamed from
52172         doc/glibc-functions/wcsdup.texi.
52173         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52174         doc/glibc-functions/wcsncasecmp.texi.
52175         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52176         doc/glibc-functions/wcsncasecmp_l.texi.
52177         * doc/posix-functions/wcsnlen.texi: Renamed from
52178         doc/glibc-functions/wcsnlen.texi.
52179         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52180         doc/glibc-functions/wcsnrtombs.texi.
52181         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52182         doc/glibc-functions/wcsxfrm_l.texi.
52183         * doc/posix-functions/wctrans_l.texi: Renamed from
52184         doc/glibc-functions/wctrans_l.texi.
52185         * doc/posix-functions/wctype_l.texi: Renamed from
52186         doc/glibc-functions/wctype_l.texi.
52187         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52188         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52189         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52190         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52191         these subsections.
52192         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52193         Remove sections.
52194
52195 2008-12-14  Bruno Haible  <bruno@clisp.org>
52196
52197         Update doc for POSIX:2008.
52198         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52199
52200 2008-12-14  Bruno Haible  <bruno@clisp.org>
52201
52202         Update doc for POSIX:2008.
52203         * doc/pastposix-functions/bcmp.texi: Renamed from
52204         doc/posix-functions/bcmp.texi.
52205         * doc/pastposix-functions/bcopy.texi: Renamed from
52206         doc/posix-functions/bcopy.texi.
52207         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52208         doc/posix-functions/bsd_signal.texi.
52209         * doc/pastposix-functions/bzero.texi: Renamed from
52210         doc/posix-functions/bzero.texi.
52211         * doc/pastposix-functions/ecvt.texi: Renamed from
52212         doc/posix-functions/ecvt.texi.
52213         * doc/pastposix-functions/fcvt.texi: Renamed from
52214         doc/posix-functions/fcvt.texi.
52215         * doc/pastposix-functions/ftime.texi: Renamed from
52216         doc/posix-functions/ftime.texi.
52217         * doc/pastposix-functions/gcvt.texi: Renamed from
52218         doc/posix-functions/gcvt.texi.
52219         * doc/pastposix-functions/getcontext.texi: Renamed from
52220         doc/posix-functions/getcontext.texi.
52221         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52222         doc/posix-functions/gethostbyaddr.texi.
52223         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52224         doc/posix-functions/gethostbyname.texi.
52225         * doc/pastposix-functions/getwd.texi: Renamed from
52226         doc/posix-functions/getwd.texi.
52227         * doc/pastposix-functions/h_errno.texi: Renamed from
52228         doc/posix-functions/h_errno.texi.
52229         * doc/pastposix-functions/index.texi: Renamed from
52230         doc/posix-functions/index.texi.
52231         * doc/pastposix-functions/makecontext.texi: Renamed from
52232         doc/posix-functions/makecontext.texi.
52233         * doc/pastposix-functions/mktemp.texi: Renamed from
52234         doc/posix-functions/mktemp.texi.
52235         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52236         doc/posix-functions/pthread_attr_getstackaddr.texi.
52237         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52238         doc/posix-functions/pthread_attr_setstackaddr.texi.
52239         * doc/pastposix-functions/rindex.texi: Renamed from
52240         doc/posix-functions/rindex.texi.
52241         * doc/pastposix-functions/scalb.texi: Renamed from
52242         doc/posix-functions/scalb.texi.
52243         * doc/pastposix-functions/setcontext.texi: Renamed from
52244         doc/posix-functions/setcontext.texi.
52245         * doc/pastposix-functions/swapcontext.texi: Renamed from
52246         doc/posix-functions/swapcontext.texi.
52247         * doc/pastposix-functions/ualarm.texi: Renamed from
52248         doc/posix-functions/ualarm.texi.
52249         * doc/pastposix-functions/usleep.texi: Renamed from
52250         doc/posix-functions/usleep.texi.
52251         * doc/pastposix-functions/vfork.texi: Renamed from
52252         doc/posix-functions/vfork.texi.
52253         * doc/pastposix-functions/wcswcs.texi: Renamed from
52254         doc/posix-functions/wcswcs.texi.
52255         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52256         (Function Substitutes): Update.
52257
52258 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52259
52260         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52261         m4/strerror.m4.
52262
52263 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52264             Bruno Haible  <bruno@clisp.org>
52265
52266         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52267
52268 2008-12-13  Bruno Haible  <bruno@clisp.org>
52269
52270         * modules/strtoull (Depends-on): Remove unistd.
52271
52272 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52273
52274         * modules/strtoull (Depends-on): Add stdlib.
52275
52276 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52277
52278         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52279
52280 2008-12-10  Jim Meyering  <meyering@redhat.com>
52281
52282         gl_ASSERT: don't say assertions are disabled when they're not
52283         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52284         "checking whether to enable assertions... no", when they are in
52285         fact enabled.  This is solely a bug in the output of configure.
52286         In spite of saying "no", NDEBUG was not defined in that case.
52287         Also, as noted by Eric Blake, leave assertions enabled upon
52288         --enable-assert=INVALID.
52289
52290 2008-12-10  Bruno Haible  <bruno@clisp.org>
52291
52292         Change MODULES.html to refer to POSIX:2008 where possible.
52293         * MODULES.html.sh (POSIX2008_URL): New variable.
52294         (posix_headers): Remove sys/timeb, ucontext.
52295         (posix2001_headers): New variable.
52296         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52297         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52298         index, makecontext, mktemp, pthread_attr_getstackaddr,
52299         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52300         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52301         (posix2001_functions): New variable.
52302         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52303         otherwise.
52304
52305 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52306
52307         add missing include to parse-duration.c
52308         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52309         * modules/parse-duration (Depends-on): Add xalloc.
52310
52311         fix sed script reading maint.mk
52312         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52313         (syntax-check-rules): Use it.
52314
52315 2008-12-09  Bruno Haible  <bruno@clisp.org>
52316
52317         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52318         MacOS X 10.4/PowerPC.
52319         Reported by Simon Josefsson.
52320
52321 2008-12-08  Jim Meyering  <meyering@redhat.com>
52322
52323         work around mingw's lack of some S_IF definitions
52324         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52325         Reported by Simon Josefsson.
52326
52327 2008-12-08  Bruno Haible  <bruno@clisp.org>
52328
52329         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52330         applied to variables. Needed on MacOS X 10.4/PowerPC.
52331         Reported by Simon Josefsson.
52332
52333 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52334         and Eric Blake  <ebb9@byu.net>
52335
52336         assert: honor --enable-assert
52337         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52338         order to honor --enable-assert, rather than treating it as a
52339         synonym for --disable-assert.
52340
52341 2008-12-08  Jim Meyering  <meyering@redhat.com>
52342
52343         * lib/posixtm.c: Remove now-useless declaration of mktime.
52344
52345         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52346
52347 2008-12-07  Bruno Haible  <bruno@clisp.org>
52348
52349         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52350         test_once): Mark functions as static.
52351         * tests/test-tls.c (test_tls): Likewise.
52352
52353 2008-12-07  Bruno Haible  <bruno@clisp.org>
52354
52355         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52356         iconv_register_autodetect.
52357
52358 2008-12-07  Jim Meyering  <meyering@redhat.com>
52359
52360         posixtm.c: avoid a warning
52361         * lib/posixtm.c (posixtime): Don't initialize tm0.
52362         It's no longer needed to placate gcc4's -Wuninitialized,
52363         and the attempt to placate would elicit a new warning.
52364
52365         unicodeio.c: mark unused parameters
52366         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52367         (fallback_failure_callback): Likewise.
52368
52369 2008-12-07  Bruno Haible  <bruno@clisp.org>
52370
52371         * gnulib-tool (func_create_testdir): When building the tests
52372         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52373         Reported by Simon Josefsson.
52374
52375 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52376
52377         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52378
52379 2008-12-06  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52382         Suggested by Eric Blake.
52383
52384 2008-12-06  Bruno Haible  <bruno@clisp.org>
52385
52386         Fix a c-stack test failure on MacOS X.
52387         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52388         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52389         handler for SIGBUS as well.
52390         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52391         install a signal handler for SIGBUS as well.
52392         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52393
52394 2008-12-06  Bruno Haible  <bruno@clisp.org>
52395
52396         Advocacy documentation.
52397         * doc/gnulib-intro.texi (Benefits): New section.
52398         * doc/gnulib.texi: Update.
52399
52400 2008-12-06  Bruno Haible  <bruno@clisp.org>
52401
52402         Document the 'manywarnings' module.
52403         * doc/manywarnings.texi: New file.
52404         * doc/gnulib.texi: Include it.
52405
52406 2008-12-05  Eric Blake  <ebb9@byu.net>
52407
52408         tests: silence some gcc warnings
52409         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52410         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52411         type mismatches.
52412
52413 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52414             Bruno Haible  <bruno@clisp.org>
52415
52416         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52417
52418 2008-11-29  Jim Meyering  <meyering@redhat.com>
52419
52420         unicodeio.c: mark unused parameters
52421         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52422         (fallback_failure_callback): Likewise.
52423
52424         fts: fix a thinko
52425         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52426         (set_stat_type): Return S_IF*-valued "type" directly.
52427         Prompted by James Youngman's spotting a related bug.
52428         Confirmed by further testing through find.
52429
52430         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52431         * lib/fts.c (D_TYPE): Define.
52432         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52433         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52434         (s_ifmt_shift_bits): New function.
52435         (set_stat_type): New function.
52436         (fts_build): When not calling fts_stat, call set_stat_type
52437         to propagate dirent.d_type info to fts_read caller.
52438         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52439         fts_statp->st_mode type information may be valid.
52440
52441 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52442
52443         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52444         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52445         <sds@gnu.org>.
52446
52447 2008-11-20  Bruno Haible  <bruno@clisp.org>
52448
52449         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52450         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52451         INCLUDE_NEXT.
52452         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52453         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52454         * modules/math (Makefile.am): Substitute
52455         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52457
52458 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52459             Bruno Haible  <bruno@clisp.org>
52460
52461         * lib/stdint.in.h: Define all type macros so that their expansion is
52462         a single typedef'ed token. Fixes a compilation failure in Boost which
52463         does "using ::int8_t;".
52464
52465 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52466
52467         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52468         gl_MANYWARN_ALL_GCC.
52469         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52470         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52471         * modules/manywarnings: New file.
52472         * MODULES.html.sh: Mention manywarnings module.
52473
52474 2008-11-18  Bruno Haible  <bruno@clisp.org>
52475
52476         * doc/gnulib-tool.texi (Unit tests): New section.
52477
52478 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52479
52480         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52481         paths like 'lib/po/foo.po'.
52482
52483 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52484
52485         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52486         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52487
52488 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52489
52490         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52491         parameter works.
52492
52493 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52494
52495         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52496
52497 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52498
52499         * modules/parse-duration-tests: New file.
52500         * tests/test-parse-duration.sh: New file.
52501         * tests/test-parse-duration.c: New file.
52502
52503         New module 'parse-duration'.
52504         * lib/parse-duration.h: New file.
52505         * lib/parse-duration.c: New file.
52506         * modules/parse-duration: New file.
52507
52508 2008-11-17  Bruno Haible  <bruno@clisp.org>
52509
52510         * tests/test-select-out.sh: Comment out the first pipe test.
52511         Reported by Simon Josefsson.
52512
52513 2008-11-17  Bruno Haible  <bruno@clisp.org>
52514
52515         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52516         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52517         gl_HOSTENT.
52518
52519 2008-11-17  Bruno Haible  <bruno@clisp.org>
52520
52521         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52522         -lnetwork and -lnet. Needed for Haiku and BeOS.
52523
52524 2008-11-16  Bruno Haible  <bruno@clisp.org>
52525
52526         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52527
52528 2008-11-16  Bruno Haible  <bruno@clisp.org>
52529
52530         Avoid test failure on Haiku.
52531         * tests/test-fsync.c: Include <errno.h>.
52532         (main): Don't require that fsync (0) fails.
52533
52534 2008-11-15  Bruno Haible  <bruno@clisp.org>
52535
52536         New module 'hostent'.
52537         * modules/hostent: New file.
52538         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52539
52540 2008-11-15  Bruno Haible  <bruno@clisp.org>
52541
52542         New module 'servent'.
52543         * modules/servent: New file.
52544         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52545
52546 2008-11-15  Bruno Haible  <bruno@clisp.org>
52547
52548         Avoid generating same test program with two different rules.
52549         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52550         test-frexp to test-frexp-nolibm.
52551         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52552         test-frexpl to test-frexpl-nolibm.
52553
52554 2008-11-15  Bruno Haible  <bruno@clisp.org>
52555
52556         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52557         $(FREXPL_LIBM).
52558
52559 2008-11-15  Bruno Haible  <bruno@clisp.org>
52560
52561         * lib/netdb.in.h: Activate the definitions also when the system's
52562         <netdb.h> has 'struct addrinfo'.
52563         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52564         EAI_OVERFLOW or AI_NUMERICSERV.
52565         * doc/posix-headers/netdb.texi: Document the problem.
52566
52567 2008-11-15  Bruno Haible  <bruno@clisp.org>
52568
52569         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52570
52571         Make the 'sched' module work on platforms where <sched.h> exists but
52572         is incomplete (such as Haiku).
52573         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52574         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52575         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52576         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52577         HAVE_STRUCT_SCHED_PARAM.
52578         * modules/sched (Depends-on): Add include_next.
52579         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52580         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52581         * doc/posix-headers/sched.texi: Document the issue.
52582
52583 2008-11-13  Jim Meyering  <meyering@redhat.com>
52584
52585         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52586         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52587         test would fail due to the difference in the Report bugs to ...
52588         line.  The expected address is empty, "<>", while the actual
52589         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52590
52591 2008-11-12  Bruno Haible  <bruno@clisp.org>
52592
52593         lstat: don't compile lstat.c on systems lacking lstat
52594         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52595         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52596         Reported by Daniel P. Berrange via Jim Meyering.
52597
52598 2008-11-12  Jim Meyering  <meyering@redhat.com>
52599
52600         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52601
52602 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52603
52604         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52605         instead.
52606
52607 2008-11-12  Bruno Haible  <bruno@clisp.org>
52608
52609         * lib/unicodeio.c: Include unistr.h.
52610         (utf8_wctomb): Remove function.
52611         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52612
52613 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52614
52615         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52616         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52617         <bruno@clisp.org>.
52618         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52619
52620 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52621
52622         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52623         * doc/gnulib.texi: Add section for warnings.
52624
52625 2008-11-11  Bruno Haible  <bruno@clisp.org>
52626
52627         * lib/sockets.h: Add a comment.
52628
52629 2008-11-11  Karl Berry  <karl@gnu.org>
52630
52631         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52632
52633 2008-11-11  Eric Blake  <ebb9@byu.net>
52634
52635         fdl.texi: avoid git symlinks
52636         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52637
52638 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52639
52640         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52641
52642 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52643
52644         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52645         (gl_WARN_ADD): Substitute $2 if literal.
52646
52647 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52648
52649         * m4/warning.m4: Remove.
52650
52651 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52652
52653         * m4/warnings.m4: Almost complete rewrite. :-)
52654
52655 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52656
52657         * modules/warnings: New module.
52658         * m4/warnings.m4: New file.
52659         * MODULES.html.sh: Mention warnings module.
52660         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52661         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52662
52663 2008-11-10  Eric Blake  <ebb9@byu.net>
52664
52665         fdl.texi: make a symlink to the latest version
52666         * doc/standards.texi: Revert today's earlier change.
52667         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52668         * doc/fdl.texi: ...and replace this with a symlink to the newer
52669         fdl-1.3.texi.
52670
52671 2008-11-10  Bruno Haible  <bruno@clisp.org>
52672
52673         * tests/test-select-fd.c (main): Accept the result file name as fourth
52674         argument.
52675         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52676         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52677
52678 2008-11-10  Bruno Haible  <bruno@clisp.org>
52679
52680         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52681         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52682         as autoconf-substituted macros.
52683         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52684         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52685         gl_NETDB_H_DEFAULTS. Set these variables.
52686         * modules/netdb (Makefile.am): Substitute these variables.
52687
52688 2008-11-10  Eric Blake  <ebb9@byu.net>
52689
52690         standards.texi: include correct file for FDL 1.3
52691         * doc/standards.texi (GNU Free Documentation License): Change
52692         include file to pull in FDL 1.3, not 1.2.
52693
52694         fdl.texi: revert accidental change to license
52695         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52696
52697 2008-11-10  Bruno Haible  <bruno@clisp.org>
52698
52699         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52700         cross-compiling guesses also when the native compile gives no result.
52701
52702 2008-11-10  Bruno Haible  <bruno@clisp.org>
52703
52704         * lib/spawni.c (__spawni): Force variable into the stack.
52705
52706 2008-11-10  Bruno Haible  <bruno@clisp.org>
52707
52708         Add support for Haiku.
52709         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52710         glibc and BeOS, but also on Haiku.
52711         * lib/fpurge.c (fpurge): Likewise.
52712         * lib/freadable.c (freadable): Likewise.
52713         * lib/freadahead.c (freadahead): Likewise.
52714         * lib/freading.c (freading): Likewise.
52715         * lib/freadptr.c (freadptr): Likewise.
52716         * lib/freadseek.c (freadptrinc): Likewise.
52717         * lib/fseeko.c (rpl_fseeko): Likewise.
52718         * lib/fseterr.c (fseterr): Likewise.
52719         * lib/fwritable.c (fwritable): Likewise.
52720         * lib/fwriting.c (fwriting): Likewise.
52721         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52722
52723 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52724
52725         * lib/config.charset: Treat Haiku like BeOS.
52726
52727 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52728
52729         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52730         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52731
52732 2008-11-08  Bruno Haible  <bruno@clisp.org>
52733
52734         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52735         AC_CACHE_CHECK.
52736
52737 2008-11-08  Bruno Haible  <bruno@clisp.org>
52738
52739         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52740
52741 2008-11-08  Bruno Haible  <bruno@clisp.org>
52742
52743         * tests/test-select-fd.c: New file.
52744         * tests/test-select-in.sh: New file.
52745         * tests/test-select-out.sh: New file.
52746         * tests/test-select-stdin.c: New file.
52747         * modules/select-tests (Files): Add the new files.
52748         (Depends-on): Add gettimeofday.
52749         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52750         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52751         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52752
52753 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52754             Bruno Haible  <bruno@clisp.org>
52755
52756         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52757
52758 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52759
52760         * build-aux/pmccabe2html: Added support for C++ source files.
52761
52762 2008-11-05  Ben Pfaff  <blp@gnu.org>
52763
52764         Fix lib/close.c build on Windows.
52765         * modules/close (Files): Add lib/w32sock.h.
52766
52767 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52768
52769         Accept Bison's NEWS format.
52770         * build-aux/announce-gen (print_news_deltas): Tweak
52771         $re_prefix.
52772
52773 2008-11-04  Bruno Haible  <bruno@clisp.org>
52774
52775         * modules/random_r (Maintainer): Add glibc.
52776
52777 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52778
52779         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52780         by karl@freefriends.org (Karl Berry).
52781         * doc/alloca.texi: Likewise.
52782         * doc/c-ctype.texi: Likewise.
52783         * doc/c-strcase.texi: Likewise.
52784         * doc/c-strcaseeq.texi: Likewise.
52785         * doc/c-strcasestr.texi: Likewise.
52786         * doc/c-strstr.texi: Likewise.
52787         * doc/c-strtod.texi: Likewise.
52788         * doc/c-strtold.texi: Likewise.
52789         * doc/ctime.texi: Likewise.
52790         * doc/error.texi: Likewise.
52791         * doc/fdl.texi: Likewise.
52792         * doc/gcd.texi: Likewise.
52793         * doc/getdate.texi: Likewise.
52794         * doc/gnulib-intro.texi: Likewise.
52795         * doc/gnulib-tool.texi: Likewise.
52796         * doc/gnulib.texi: Likewise.
52797         * doc/inet_ntoa.texi: Likewise.
52798         * doc/maintain.texi: Likewise.
52799         * doc/make-stds.texi: Likewise.
52800         * doc/quote.texi: Likewise.
52801         * doc/regexprops-generic.texi: Likewise.
52802         * doc/standards.texi: Likewise.
52803         * doc/verify.texi: Likewise.
52804         * doc/visibility.texi: Likewise.
52805         * doc/gnulib.texi (GNU Free Documentation License): Include
52806         fdl-1.3.texi instead of fdl.texi.
52807
52808 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52809
52810         * doc/fdl-1.3.texi: New file, from
52811         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52812         * modules/fdl-1.3: Add.
52813         * MODULES.html.sh: Add fdl-1.3.
52814
52815 2008-11-03  Bruno Haible  <bruno@clisp.org>
52816
52817         Make determination of absolute name of header file work with AIX xlc.
52818         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52819         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52820         preprocessing.
52821         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52822         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52823
52824 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52825
52826         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52827         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52828         <ludo@gnu.org>.
52829
52830 2008-11-02  Bruno Haible  <bruno@clisp.org>
52831
52832         Mark 'strpbrk' obsolete.
52833         * modules/strpbrk (Status, Notice): New sections.
52834         * modules/strtok_r (Depends-on): Add strpbrk.
52835
52836 2008-11-02  Bruno Haible  <bruno@clisp.org>
52837
52838         Mark 'strdup' obsolete.
52839         * modules/strdup (Status, Notice): New sections.
52840         * modules/findprog (Depends-on): Add strdup.
52841         * modules/getaddrinfo (Depends-on): Likewise.
52842         * modules/localename (Depends-on): Likewise.
52843         * modules/relocatable-lib (Depends-on): Likewise.
52844         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
52845         * modules/relocatable-prog (Depends-on): Likewise.
52846         * modules/trim (Depends-on): Likewise.
52847         * modules/unictype/gen-ctype (Depends-on): Likewise.
52848         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52849
52850 2008-11-02  Bruno Haible  <bruno@clisp.org>
52851
52852         Mark 'strcspn' obsolete.
52853         * modules/strcspn (Status, Notice): New sections.
52854
52855 2008-11-02  Bruno Haible  <bruno@clisp.org>
52856
52857         Mark 'rmdir' obsolete.
52858         * modules/rmdir (Status, Notice): New sections.
52859         * modules/clean-temp (Depends-on): Add rmdir.
52860         * modules/openat (Depends-on): Likewise.
52861
52862 2008-11-02  Bruno Haible  <bruno@clisp.org>
52863
52864         Mark 'raise' obsolete.
52865         * modules/raise (Status, Notice): New sections.
52866         (Include): Specify <signal.h>.
52867         * modules/stdio (Depends-on): Add raise.
52868         * modules/write (Depends-on): Likewise.
52869
52870 2008-11-02  Bruno Haible  <bruno@clisp.org>
52871
52872         Mark 'memset' obsolete.
52873         * modules/memset (Status, Notice): New sections.
52874
52875 2008-11-02  Bruno Haible  <bruno@clisp.org>
52876
52877         Mark 'memmove' obsolete.
52878         * modules/memmove (Status, Notice): New sections.
52879         * modules/argp (Depends-on): Add memmove.
52880         * modules/argz (Depends-on): Likewise.
52881         * modules/canonicalize (Depends-on): Likewise.
52882         * modules/canonicalize-lgpl (Depends-on): Likewise.
52883         * modules/fts (Depends-on): Likewise.
52884         * modules/getcwd (Depends-on): Likewise.
52885         * modules/human (Depends-on): Likewise.
52886         * modules/regex (Depends-on): Likewise.
52887         * modules/striconveh (Depends-on): Likewise.
52888         * modules/trim (Depends-on): Likewise.
52889         * modules/unistr/u8-move (Depends-on): Likewise.
52890         * modules/unistr/u16-move (Depends-on): Likewise.
52891         * modules/unistr/u32-move (Depends-on): Likewise.
52892
52893 2008-11-02  Bruno Haible  <bruno@clisp.org>
52894
52895         Mark 'memcpy' obsolete.
52896         * modules/memcpy (Status, Notice): New sections.
52897
52898 2008-11-02  Bruno Haible  <bruno@clisp.org>
52899
52900         Mark 'memcmp' obsolete.
52901         * modules/memcmp (Status, Notice): New sections.
52902         * modules/argmatch (Depends-on): Add memchr.
52903         * modules/backupfile (Depends-on): Likewise.
52904         * modules/c-strcasestr (Depends-on): Likewise.
52905         * modules/crypto/des (Depends-on): Likewise.
52906         * modules/csharpcomp (Depends-on): Likewise.
52907         * modules/fnmatch (Depends-on): Likewise.
52908         * modules/git-merge-changelog (Depends-on): Likewise.
52909         * modules/isnand (Depends-on): Likewise.
52910         * modules/isnand-nolibm (Depends-on): Likewise.
52911         * modules/isnanf (Depends-on): Likewise.
52912         * modules/isnanf-nolibm (Depends-on): Likewise.
52913         * modules/isnanl (Depends-on): Likewise.
52914         * modules/isnanl-nolibm (Depends-on): Likewise.
52915         * modules/mbchar (Depends-on): Likewise.
52916         * modules/memcoll (Depends-on): Likewise.
52917         * modules/quotearg (Depends-on): Likewise.
52918         * modules/regex (Depends-on): Likewise.
52919         * modules/relocatable-prog (Depends-on): Likewise.
52920         * modules/same (Depends-on): Likewise.
52921         * modules/signbit (Depends-on): Likewise.
52922         * modules/strcasestr-simple (Depends-on): Likewise.
52923         * modules/unictype/gen-ctype (Depends-on): Likewise.
52924         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52925         * modules/uniname/uniname (Depends-on): Likewise.
52926         * modules/unistr/u8-cmp (Depends-on): Likewise.
52927
52928 2008-11-02  Bruno Haible  <bruno@clisp.org>
52929
52930         Mark 'memchr' obsolete.
52931         * modules/memchr (Status, Notice): New sections.
52932         * modules/argp (Depends-on): Add memchr.
52933         * modules/base64 (Depends-on): Likewise.
52934         * modules/c-strcasestr (Depends-on): Likewise.
52935         * modules/chdir-long (Depends-on): Likewise.
52936         * modules/fnmatch (Depends-on): Likewise.
52937         * modules/getsubopt (Depends-on): Likewise.
52938         * modules/git-merge-changelog (Depends-on): Likewise.
52939         * modules/glob (Depends-on): Likewise.
52940         * modules/strcasestr-simple (Depends-on): Likewise.
52941         * modules/strnlen (Depends-on): Likewise.
52942
52943 2008-11-02  Bruno Haible  <bruno@clisp.org>
52944
52945         Mark 'atexit' obsolete.
52946         * modules/atexit (Status, Notice): New sections.
52947         * modules/chdir-long (Depends-on): Add atexit.
52948         * modules/wait-process (Depends-on): Likewise.
52949
52950 2008-11-02  Bruno Haible  <bruno@clisp.org>
52951
52952         * gnulib-tool: New option --with-obsolete.
52953         (func_usage): Document it.
52954         (func_modules_transitive_closure): Drop obsolete dependencies if
52955         incobsolete is not true.
52956         (func_import): Read and save the incobsolete variable to the cache.
52957
52958 2008-11-02  Bruno Haible  <bruno@clisp.org>
52959
52960         * modules/TEMPLATE-EXTENDED: New field 'Status'.
52961         * gnulib-tool: New option --extract-status.
52962         (func_usage): Document it.
52963         (sed_extract_prog): Recognize it.
52964         (func_get_status): New function.
52965
52966 2008-10-30  Simon Josefsson  <simon@josefsson.org>
52967
52968         * modules/sockets (License): Change from LGPL to LGPLv2+.
52969
52970 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52971
52972         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
52973
52974 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52975
52976         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52977         Mention times and sys_times.
52978         * modules/sys_times, modules/sys_times-tests: New modules.
52979         * modules/times, modules/times-tests: Likewise
52980         * m4/sys_times_h.m4: New file.
52981         * lib/sys_times.in.h: Likewise
52982         * lib/times.c: Likewise.
52983         * tests/test-sys_times.c: Likewise.
52984         * tests/test-times.c: Likewise.
52985         * doc/posix-headers/sys_times.texi: Update.
52986         * doc/posix-functions/times.texi: Update.
52987
52988 2008-10-28  Jim Meyering  <meyering@redhat.com>
52989
52990         * modules/tempname (Depends-on): Add lstat.
52991
52992         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52993
52994 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52995
52996         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52997         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52998         using idiom used elsewhere in gnulib.
52999
53000 2008-10-27  Jim Meyering  <meyering@redhat.com>
53001
53002         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53003
53004 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53005
53006         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53007         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53008         programs.
53009         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53010
53011 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53012
53013         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53014
53015 2008-10-27  Bruno Haible  <bruno@clisp.org>
53016
53017         * tests/test-lstat.c: Include <stdio.h>.
53018
53019 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53020
53021         * modules/lstat-tests: New module.
53022         * tests/test-lstat.c: New file.
53023
53024 2008-10-26  Jim Meyering  <meyering@redhat.com>
53025
53026         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53027
53028 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53029             Bruno Haible  <bruno@clisp.org>
53030
53031         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53032         * modules/configmake (Include): Add a note that the include must come
53033         after all system headers.
53034         * lib/javaversion.c: Include configmake.h after all other includes.
53035
53036 2008-10-26  Bruno Haible  <bruno@clisp.org>
53037
53038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53039         HAVE_STRUCT_RANDOM_DATA to 1.
53040         (gl_STDLIB_H): Simplify.
53041
53042 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53043
53044         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53045         substitute HAVE_STRUCT_RANDOM_DATA.
53046         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53047         random_data.
53048         * modules/stdlib (Makefile.am): Substitute
53049         HAVE_STRUCT_RANDOM_DATA.
53050
53051 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53052
53053         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53054         * doc/gnulib-intro.texi (Copyright): Likewise.
53055
53056 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53057
53058         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53059         findings.
53060
53061 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53062             Bruno Haible  <bruno@clisp.org>
53063
53064         * lib/unistd.in.h: Include <winsock2.h>.
53065         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53066         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53067         Provide dummy declarations.
53068         (gethostname): Override.
53069         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53070         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53071         gl_PREREQ_SYS_H_WINSOCK2.
53072         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53073         * doc/posix-functions/gethostname.texi: More details.
53074
53075 2008-10-25  Bruno Haible  <bruno@clisp.org>
53076
53077         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53078         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53079         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53080
53081         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53082         here ...
53083         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53084         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53085         gl_UNISTD_H_DEFAULTS.
53086
53087 2008-10-25  Eric Blake  <ebb9@byu.net>
53088
53089         signbit: avoid spurious compiler failure
53090         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53091         declarations inside function.
53092
53093 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53094             Bruno Haible  <bruno@clisp.org>
53095
53096         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53097         * modules/random_r (Depends-on): Add stdint.
53098
53099 2008-10-24  Bruno Haible  <bruno@clisp.org>
53100
53101         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53102         Eggert.
53103         * modules/strerror (License): Likewise.
53104
53105 2008-10-24  Jim Meyering  <meyering@redhat.com>
53106
53107         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53108         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53109
53110 2008-10-24  Eric Blake  <ebb9@byu.net>
53111
53112         getgroups: fix compilation when getgroups is available
53113         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53114         but with <config.h> override of getgroups disabled.
53115
53116 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53117
53118         * doc/gnulib.texi (Header files): Add note about C++ problems.
53119         Explained by Bruno Haible <bruno@clisp.org>.
53120
53121 2008-10-23  Bruno Haible  <bruno@clisp.org>
53122
53123         Define a dummy SA_NODEFER macro on Interix.
53124         * lib/signal.in.h (SA_NODEFER): Define fallback.
53125         Reported by Aleksey Cheusov <cheusov@tut.by> via
53126         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53127
53128 2008-10-23  Bruno Haible  <bruno@clisp.org>
53129
53130         * modules/freadahead (License): Change to LGPLv2+.
53131         Suggested by Simon Josefsson.
53132
53133 2008-10-23  Jim Meyering  <meyering@redhat.com>
53134
53135         random_r: new module
53136         * modules/random_r: New file.
53137         * m4/random_r.m4: New file.
53138         * lib/random_r.c: New file, from glibc.
53139         * modules/random_r-tests: New file.
53140         * tests/test-random_r.c: New file.
53141         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53142          Declare.
53143         (RAND_MAX): Define.
53144         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53145         * modules/stdlib: Substitute them, too.
53146         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53147         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53148         * doc/glibc-functions/random_r.texi: Likewise.
53149         * doc/glibc-functions/setstate_r.texi: Likewise.
53150         * doc/glibc-functions/srandom_r.texi: Likewise.
53151         * config/srclist.txt: Mention it.
53152
53153 2008-10-23  David Lutterkort  <lutter@redhat.com>
53154
53155         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53156         link requirement
53157
53158 2008-10-23  Jim Meyering  <meyering@redhat.com>
53159
53160         selinux-h: mark parameters of stub functions as intentionally unused
53161         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53162         * lib/se-context.in.h: Likewise.
53163
53164 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53165
53166         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53167
53168 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53169
53170         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53171
53172 2008-10-22  Eric Blake  <ebb9@byu.net>
53173
53174         glthread/thread: avoid compiler warning
53175         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53176         Add unreachable abort to silence compiler.
53177
53178 2008-10-22  Eric Blake  <ebb9@byu.net>
53179
53180         netdb: also supply struct addrinfo for cygwin 1.5.x
53181         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53182         older cygwin.
53183         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53184         cygwin.
53185         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53186
53187 2008-10-22  Bruno Haible  <bruno@clisp.org>
53188
53189         * users.txt: Update entry about pspp.
53190
53191 2008-10-21  Bruno Haible  <bruno@clisp.org>
53192
53193         Simplification.
53194         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53195         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53196
53197         Simplification.
53198         * lib/ioctl.c (ioctl): Don't undefine.
53199         * lib/socket.c (socket): Don't undefine.
53200
53201         Remove unused module indicator macros.
53202         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53203         GNULIB_$1 as a C macro.
53204
53205         * doc/posix-functions/close.texi: Undo last change.
53206         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53207         Windows platforms.
53208
53209 2008-10-21  Bruno Haible  <bruno@clisp.org>
53210
53211         Add gethostname() declaration to <unistd.h>.
53212         * lib/unistd.in.h (gethostname): New declaration.
53213         * lib/gethostname.c: Include <unistd.h>.
53214         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53215         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53217         and HAVE_GETHOSTNAME.
53218         * modules/gethostname (Depends-on): Add unistd.
53219         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53220         (Include): Specify <unistd.h>.
53221         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53222         HAVE_GETHOSTNAME.
53223         * tests/test-gethostname.c: Include <unistd.h> first.
53224
53225 2008-10-21  Bruno Haible  <bruno@clisp.org>
53226
53227         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53228         * modules/select-tests (Depends-on): Likewise.
53229         Reported by Simon Josefsson.
53230
53231 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53232
53233         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53234         * lib/accept.c: New file, based on winsock.c.
53235         * lib/bind.c: New file, based on winsock.c.
53236         * lib/connect.c: New file, based on winsock.c.
53237         * lib/getpeername.c: New file, based on winsock.c.
53238         * lib/getsockname.c: New file, based on winsock.c.
53239         * lib/getsockopt.c: New file, based on winsock.c.
53240         * lib/ioctl.c: New file, based on winsock.c.
53241         * lib/listen.c: New file, based on winsock.c.
53242         * lib/recv.c: New file, based on winsock.c.
53243         * lib/recvfrom.c: New file, based on winsock.c.
53244         * lib/send.c: New file, based on winsock.c.
53245         * lib/sendto.c: New file, based on winsock.c.
53246         * lib/setsockopt.c: New file, based on winsock.c.
53247         * lib/shutdown.c: New file, based on winsock.c.
53248         * lib/socket.c: New file, based on winsock.c.
53249         * lib/w32sock.h: New file, based on winsock.c.
53250         * lib/winsock.c: Remove file.
53251         * modules/accept: Likewise.
53252         * modules/bind: Likewise.
53253         * modules/connect: Likewise.
53254         * modules/getpeername: Likewise.
53255         * modules/getsockname: Likewise.
53256         * modules/getsockopt: Likewise.
53257         * modules/ioctl: Likewise.
53258         * modules/listen: Likewise.
53259         * modules/recv: Likewise.
53260         * modules/recvfrom: Likewise.
53261         * modules/send: Likewise.
53262         * modules/sendto: Likewise.
53263         * modules/setsockopt: Likewise.
53264         * modules/shutdown: Likewise.
53265         * modules/socket: Use socket.c instead of winsock.c.
53266         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53267         * doc/posix-functions/accept.texi: Doc fix.
53268         * doc/posix-functions/bind.texi: Doc fix.
53269         * doc/posix-functions/close.texi: Doc fix.
53270         * doc/posix-functions/connect.texi: Doc fix.
53271         * doc/posix-functions/getpeername.texi: Doc fix.
53272         * doc/posix-functions/getsockname.texi: Doc fix.
53273         * doc/posix-functions/getsockopt.texi: Doc fix.
53274         * doc/posix-functions/ioctl.texi: Doc fix.
53275         * doc/posix-functions/listen.texi: Doc fix.
53276         * doc/posix-functions/recv.texi: Doc fix.
53277         * doc/posix-functions/recvfrom.texi: Doc fix.
53278         * doc/posix-functions/send.texi: Doc fix.
53279         * doc/posix-functions/sendto.texi: Doc fix.
53280         * doc/posix-functions/setsockopt.texi: Doc fix.
53281         * doc/posix-functions/shutdown.texi: Doc fix.
53282         * doc/posix-functions/socket.texi: Doc fix.
53283
53284 2008-10-20  Bruno Haible  <bruno@clisp.org>
53285
53286         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53287         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53288         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53289         as an alias for SIGABRT.
53290         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53291         (sigaction): Map it to SIGABRT.
53292         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53293
53294 2008-10-20  Bruno Haible  <bruno@clisp.org>
53295
53296         * lib/fts.c: Don't include lstat.h.
53297         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53298
53299         Move the lstat() declaration to <sys/stat.h>.
53300         * lib/lstat.h: Remove file.
53301         * lib/sys_stat.in.h: Add special invocation convention.
53302         (lstat): New declaration.
53303         * lib/lstat.c (orig_lstat): New function.
53304         (rpl_lstat): Use orig_lstat instead of lstat.
53305         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53306         AC_C_INLINE. Set REPLACE_LSTAT.
53307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53308         and REPLACE_LSTAT.
53309         * modules/lstat (Files): Remove lib/lstat.h.
53310         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53311         (Include): Specify <sys/stat.h> instead of lstat.h.
53312         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53313         REPLACE_LSTAT.
53314         * NEWS: Mention the change.
53315
53316 2008-10-20  Bruno Haible  <bruno@clisp.org>
53317
53318         * modules/posix_spawn-tests: New file.
53319         * tests/test-posix_spawn3.c: New file.
53320
53321 2008-10-20  Bruno Haible  <bruno@clisp.org>
53322
53323         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53324         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53325         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53326         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53327         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53328
53329 2008-10-20  Bruno Haible  <bruno@clisp.org>
53330
53331         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53332         of posix_spawn on AIX 5.3.
53333
53334 2008-10-20  Bruno Haible  <bruno@clisp.org>
53335
53336         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53337
53338 2008-10-20  Bruno Haible  <bruno@clisp.org>
53339
53340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53341         of AC_LANG_PROGRAM.
53342
53343 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53344
53345         * lib/netdb.in.h: Don't define GNU specific constants until they
53346         are supported or needed.  Reported by Bruno Haible
53347         <bruno@clisp.org>.
53348
53349 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53350
53351         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53352
53353 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53354
53355         * lib/getaddrinfo.h: Remove file.
53356         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53357         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53358         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53359         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53360         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53361         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53362         * tests/test-getaddrinfo.c: Likewise.
53363         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53364         * NEWS: Mention change.
53365
53366 2008-10-19  Bruno Haible  <bruno@clisp.org>
53367
53368         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53369
53370 2008-10-19  Bruno Haible  <bruno@clisp.org>
53371
53372         * lib/wait-process.c: Include simply <sys/wait.h>.
53373         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53374         WIFSTOPPED): Remove fallback definitions.
53375         * modules/wait-process (Depends-on): Add sys_wait.
53376
53377         New module 'sys_wait'.
53378         * modules/sys_wait: New file.
53379         * lib/sys_wait.in.h: New file, partially copied from
53380         lib/wait-process.c.
53381         * m4/sys_wait_h.m4: New file.
53382         * doc/posix-headers/sys_wait.texi: Mention the new module.
53383
53384 2008-10-19  Bruno Haible  <bruno@clisp.org>
53385
53386         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53387
53388 2008-10-19  Bruno Haible  <bruno@clisp.org>
53389
53390         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53391         * lib/wait-process.c (WAIT_T): Remove type.
53392         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53393         (wait_subprocess): Update.
53394
53395 2008-10-19  Bruno Haible  <bruno@clisp.org>
53396
53397         New module 'atoll'.
53398         * modules/atoll: New file.
53399         * lib/stdlib.in.h (atoll): New declaration.
53400         * lib/atoll.c: New file, from glibc with modifications.
53401         * m4/atoll.m4: New file.
53402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53403         HAVE_ATOLL.
53404         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53405         * doc/posix-functions/atoll.texi: Mention the new module.
53406
53407 2008-10-19  Bruno Haible  <bruno@clisp.org>
53408
53409         Add strtoull() declaration to <stdlib.h>.
53410         * lib/stdlib.in.h (strtoull): New declaration.
53411         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53412         Set HAVE_STRTOULL.
53413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53414         HAVE_STRTOULL.
53415         * modules/strtoull (Depends-on): Add stdlib.
53416         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53417         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53418         HAVE_STRTOULL.
53419
53420 2008-10-19  Bruno Haible  <bruno@clisp.org>
53421
53422         Add strtoll() declaration to <stdlib.h>.
53423         * lib/stdlib.in.h (strtoll): New declaration.
53424         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53425         Set HAVE_STRTOLL.
53426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53427         HAVE_STRTOLL.
53428         * modules/strtoll (Depends-on): Add stdlib.
53429         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53430         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53431
53432 2008-10-19  Bruno Haible  <bruno@clisp.org>
53433
53434         * modules/bcopy (Depends-on): Add strings.
53435         (Include): Specify <strings.h>.
53436
53437 2008-10-19  Bruno Haible  <bruno@clisp.org>
53438
53439         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53440
53441 2008-10-19  Bruno Haible  <bruno@clisp.org>
53442
53443         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53444         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53445         mingw.
53446
53447 2008-10-19  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/atanl.c: Don't include isnanl.h.
53450         * lib/cosl.c: Likewise.
53451         * lib/ldexpl.c: Likewise.
53452         * lib/logl.c: Likewise.
53453         * lib/sinl.c: Likewise.
53454         * lib/sqrtl.c: Likewise.
53455         * lib/tanl.c: Likewise.
53456
53457         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53458         * lib/isnanf.h: Remove file.
53459         * lib/isnand.h: Remove file.
53460         * lib/isnanl.h: Remove file.
53461         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53462         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53463         macros.
53464         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53465         HAVE_ISNANF, don't define it as a C macro.
53466         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53467         HAVE_ISNAND, don't define it as a C macro.
53468         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53469         HAVE_ISNANL, don't define it as a C macro.
53470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53471         HAVE_ISNAN[FDL].
53472         * modules/isnanf (Files): Remove lib/isnanf.h.
53473         (Depends-on): Add math.
53474         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53475         (Include): Specify <math.h> instead of isnanf.h.
53476         * modules/isnand (Files): Remove lib/isnand.h.
53477         (Depends-on): Add math.
53478         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53479         (Include): Specify <math.h> instead of isnand.h.
53480         * modules/isnanl (Files): Remove lib/isnanl.h.
53481         (Depends-on): Add math.
53482         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53483         (Include): Specify <math.h> instead of isnanl.h.
53484         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53485         HAVE_ISNAN[FDL].
53486         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53487         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53488         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53489         * NEWS: Mention the change.
53490
53491 2008-10-18  Bruno Haible  <bruno@clisp.org>
53492
53493         Add getusershell(), setusershell(), endusershell() declarations to
53494         <unistd.h>.
53495         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53496         declarations.
53497         * lib/getusershell.c: Include unistd.h.
53498         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53499         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53500         HAVE_GETUSERSHELL.
53501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53502         and HAVE_GETUSERSHELL.
53503         * modules/getusershell (Depends-on): Add unistd, extensions.
53504         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53505         (Include): Specify <unistd.h>.
53506         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53507         HAVE_GETUSERSHELL.
53508
53509 2008-10-18  Bruno Haible  <bruno@clisp.org>
53510
53511         Add a getloadavg() declaration to <stdlib.h>.
53512         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53513         getloadavg declaration.
53514         (getloadavg): New declaration.
53515         * lib/getloadavg.c: Include <stdlib.h> first.
53516         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53517         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53518         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53520         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53521         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53522         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53523         (Include): Specify <stdlib.h>.
53524         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53525         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53526
53527 2008-10-18  Bruno Haible  <bruno@clisp.org>
53528
53529         * lib/dirchownmod.c: Don't include lchmod.h.
53530
53531         Move the lchmod() declaration to <sys/stat.h>.
53532         * lib/lchmod.h: Remove file.
53533         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53534         (lchmod): New declaration, moved here from lib/lchown.h.
53535         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53536         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53537         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53538         and HAVE_LCHMOD.
53539         * modules/lchmod (Files): Remove lib/lchmod.h.
53540         (Depends-on): Add sys_stat, extensions.
53541         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53542         (Include): Specify <sys/stat.h> instead of lchmod.h.
53543         * modules/sys_stat (Depends-on): Add link-warning.
53544         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53545         definition of GL_LINK_WARNING.
53546         * NEWS: Mention the change.
53547
53548 2008-10-18  Bruno Haible  <bruno@clisp.org>
53549
53550         * lib/fchdir.c: Don't include dirfd.h.
53551         * lib/fts.c: Likewise.
53552         * lib/getcwd.c: Likewise.
53553         * lib/glob.c: Likewise.
53554
53555         Move the dirfd() declaration to <dirent.h>.
53556         * lib/dirfd.h: Remove file.
53557         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53558         (dirfd): New declaration.
53559         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53560         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53561         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53562         HAVE_DECL_DIRFD.
53563         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53564         HAVE_DECL_DIRFD.
53565         * modules/dirfd (Files): Remove lib/dirfd.h.
53566         (Depends-on): Add dirent, extensions.
53567         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53568         (Include): Specify <dirent.h> instead of dirfd.h.
53569         * modules/dirent (Depends-on): Add link-warning.
53570         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53571         definition of GL_LINK_WARNING.
53572         * NEWS: Mention the change.
53573
53574 2008-10-18  Bruno Haible  <bruno@clisp.org>
53575
53576         Move the euidaccess() declaration to <unistd.h>.
53577         * lib/euidaccess.h: Remove file.
53578         * lib/unistd.in.h (euidaccess): New declaration.
53579         * lib/euidaccess.c: Don't include euidaccess.h.
53580         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53581         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53583         and HAVE_EUIDACCESS.
53584         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53585         (Depends-on): Add unistd.
53586         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53587         (Include): Specify <unistd.h> instead of euidaccess.h.
53588         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53589         HAVE_EUIDACCESS.
53590         * NEWS: Mention the change.
53591
53592 2008-10-18  Bruno Haible  <bruno@clisp.org>
53593
53594         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53595
53596         Move the getdomainname() declaration to <unistd.h>.
53597         * lib/getdomainname.h: Remove file.
53598         * lib/unistd.in.h (getdomainname): New declaration.
53599         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53600         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53601         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53602         HAVE_GETDOMAINNAME.
53603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53604         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53605         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53606         (Depends-on): Add unistd, extensions.
53607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53608         (Includes): Specify <unistd.h> instead of getdomainname.h.
53609         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53610         HAVE_GETDOMAINNAME.
53611         * NEWS: Mention the change.
53612
53613 2008-10-18  Bruno Haible  <bruno@clisp.org>
53614
53615         * modules/dirent: New file.
53616         * m4/dirent_h.m4: New file.
53617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53618         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53619         * modules/fchdir (Files): Remove lib/dirent.in.h.
53620         (Depends-on): Add dirent.
53621         (Makefile.am): Move rules to modules/dirent.
53622         * doc/posix-headers/dirent.texi: Mention the new module.
53623
53624 2008-10-18  Bruno Haible  <bruno@clisp.org>
53625
53626         Avoid -Wunused-parameter warnings in public gnulib header files.
53627         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53628         macro.
53629         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53630
53631 2008-10-18  Bruno Haible  <bruno@clisp.org>
53632
53633         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53634         * doc/glibc-functions/error.texi: Mention the module 'error'.
53635         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53636         * doc/glibc-functions/getdomainname.texi: Mention the module
53637         'getdomainname'.
53638         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53639         * doc/glibc-functions/getpagesize.texi: Mention the module
53640         'getpagesize'.
53641         * doc/glibc-functions/getusershell.texi: Mention the module
53642         'getusershell'.
53643         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53644         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53645         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53646         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53647         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53648         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53649         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53650         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53651         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53652         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53653         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53654         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53655         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53656         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53657
53658 2008-10-17  Bruno Haible  <bruno@clisp.org>
53659
53660         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53661         HP-UX and IRIX, use -0.0L.
53662         * tests/test-ceill.c (minus_zero): Likewise.
53663         * tests/test-floorl.c (minus_zero): Likewise.
53664         * tests/test-frexpl.c (minus_zero): Likewise.
53665         * tests/test-isnan.c (minus_zerol): Likewise.
53666         * tests/test-isnanl.h (minus_zero): Likewise.
53667         * tests/test-ldexpl.c (minus_zero): Likewise.
53668         * tests/test-roundl.c (minus_zero): Likewise.
53669         * tests/test-signbit.c (minus_zerol): Likewise.
53670         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53671         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53672         * tests/test-truncl.c (minus_zero): Likewise.
53673         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53674         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53675         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53676         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53677
53678 2008-10-17  Bruno Haible  <bruno@clisp.org>
53679
53680         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53681         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53682         that it gets activated only for gcc >= 3.0.
53683         * lib/dirent.in.h: Likewise.
53684         * lib/errno.in.h: Likewise.
53685         * lib/fcntl.in.h: Likewise.
53686         * lib/float.in.h: Likewise.
53687         * lib/iconv.in.h: Likewise.
53688         * lib/inttypes.in.h: Likewise.
53689         * lib/locale.in.h: Likewise.
53690         * lib/math.in.h: Likewise.
53691         * lib/netdb.in.h: Likewise.
53692         * lib/netinet_in.in.h: Likewise.
53693         * lib/search.in.h: Likewise.
53694         * lib/signal.in.h: Likewise.
53695         * lib/spawn.in.h: Likewise.
53696         * lib/stdarg.in.h: Likewise.
53697         * lib/stdint.in.h: Likewise.
53698         * lib/stdio.in.h: Likewise.
53699         * lib/stdlib.in.h: Likewise.
53700         * lib/string.in.h: Likewise.
53701         * lib/strings.in.h: Likewise.
53702         * lib/sys_file.in.h: Likewise.
53703         * lib/sys_ioctl.in.h: Likewise.
53704         * lib/sys_select.in.h: Likewise.
53705         * lib/sys_socket.in.h: Likewise.
53706         * lib/sys_stat.in.h: Likewise.
53707         * lib/sys_time.in.h: Likewise.
53708         * lib/sysexits.in.h: Likewise.
53709         * lib/time.in.h: Likewise.
53710         * lib/unistd.in.h: Likewise.
53711         * lib/wchar.in.h: Likewise.
53712         * lib/wctype.in.h: Likewise.
53713         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53714
53715 2008-10-17  Jim Meyering  <meyering@redhat.com>
53716
53717         ignore-value: don't depend on inline module
53718         * modules/ignore-value (Depends-on): Remove 'inline'.
53719         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53720         Suggestion from Bruno Haible.
53721
53722 2008-10-17  Bruno Haible  <bruno@clisp.org>
53723
53724         New implementation of condition variables for Win32.
53725         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53726         (gl_linked_waitqueue_t): New type.
53727         (gl_cond_t): Use it.
53728         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53729         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53730         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53731         (glthread_cond_init_func, glthread_cond_wait_func,
53732         glthread_cond_timedwait_func, glthread_cond_signal_func,
53733         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53734         Reimplemented on the basis of gl_linked_waitqueue_t.
53735         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53736         gl_waitqueue_t.
53737         (gl_rwlock_t): Update.
53738         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53739
53740 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53741
53742         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53743         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53744
53745 2008-10-17  Jim Meyering  <meyering@redhat.com>
53746
53747         ignore-value: new module
53748         * modules/ignore-value: New file.
53749         * lib/ignore-value.h: New file.
53750         * MODULES.html.sh (Compiler warning management): New section,
53751         just for this module.  More to come.
53752
53753 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53754
53755         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53756         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53757         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53758
53759 2008-10-16  Jim Meyering  <meyering@redhat.com>
53760
53761         openat-die.c: avoid 'no previous prototype' warning
53762         * lib/openat-die.c: Include "openat.h".
53763         Reported by Reuben Thomas <rrt@sc3d.org>.
53764
53765 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53766
53767         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53768         * lib/netdb.in.h: Fix typo.
53769         Reported by Bruno Haible  <bruno@clisp.org>
53770
53771         * lib/netdb.in.h: Include sys/socket.h for platforms without
53772         netdb.h, to get structures like hostent on MinGW.
53773         * modules/netdb (Depends-on): Add sys_socket.
53774
53775 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53776
53777         * modules/netdb, modules/netdb-tests: New file.
53778         * m4/netdb_h.m4: New file.
53779         * lib/netdb.in.h: Add, currently just an empty file pending
53780         definitions.
53781         * tests/test-netdb.c: New file.
53782         * doc/posix-headers/netdb.texi: Mention that we replace it if
53783         needed.
53784         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53785         netdb.
53786
53787 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53788
53789         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53790         with code.
53791
53792 2008-10-13  Bruno Haible  <bruno@clisp.org>
53793
53794         * lib/glthread/cond.c (glthread_cond_wait_func,
53795         glthread_cond_timedwait_func): Add a comment.
53796
53797 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53798
53799         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53800         * tests/test-select.c: Likewise,
53801
53802 2008-10-13  Bruno Haible  <bruno@clisp.org>
53803
53804         * lib/glthread/cond.c (glthread_cond_wait_func,
53805         glthread_cond_timedwait_func): Fix variable name.
53806         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53807
53808 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53809
53810         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53811         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53812         struct sockaddr.sa_len.
53813         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53814
53815 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53816
53817         * build-aux/pmccabe2html: Add css and css_url parameters.
53818
53819 2008-10-12  Bruno Haible  <bruno@clisp.org>
53820
53821         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53822         calling aclx_get.
53823         Reported by Rainer Tammer <tammer@tammer.net>.
53824
53825 2008-10-12  Bruno Haible  <bruno@clisp.org>
53826
53827         Use msvcrt aware primitives for creation/termination of Win32 threads.
53828         * lib/glthread/thread.c: Include <process.h>.
53829         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53830         (wrapper_func): Update signature.
53831         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
53832
53833 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53834             Bruno Haible  <bruno@clisp.org>
53835
53836         Provide a Win32 implementation of the 'cond' module.
53837         * lib/glthread/cond.h [USE_WIN32]: New implementation.
53838         * lib/glthread/cond.c (glthread_cond_init_func,
53839         glthread_cond_wait_func, glthread_cond_timedwait_func,
53840         glthread_cond_signal_func, glthread_cond_broadcast_func,
53841         glthread_cond_destroy_func) [USE_WIN32]: New functions.
53842         * modules/cond (Dependencies): Add gettimeofday.
53843
53844 2008-10-11  Bruno Haible  <bruno@clisp.org>
53845
53846         Make sleep work on older versions of mingw.
53847         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
53848         only whether it exists.
53849         * doc/posix-functions/sleep.texi: Mention the problem with older
53850         versions of mingw.
53851
53852 2008-10-11  Bruno Haible  <bruno@clisp.org>
53853
53854         New module 'shutdown'.
53855         * modules/shutdown: New file.
53856         * lib/sys_socket.in.h (shutdown): New declaration.
53857         * lib/winsock.c (shutdown): New function.
53858         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
53859         GNULIB_SHUTDOWN.
53860         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
53861         * doc/posix-functions/shutdown.texi: Document the new module.
53862
53863 2008-10-11  Jim Meyering  <meyering@redhat.com>
53864
53865         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
53866
53867 2008-10-11  Bruno Haible  <bruno@clisp.org>
53868
53869         New module 'fclose'.
53870         * modules/fclose: New file.
53871         * lib/stdio.in.h (fclose): New declaration.
53872         * lib/fclose.c: New file.
53873         * m4/fclose.m4: New file.
53874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
53875         REPLACE_FCLOSE.
53876         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
53877         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
53878         REPLACE_FCLOSE.
53879         * modules/close (Depends-on): fclose.
53880         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
53881
53882 2008-10-11  Bruno Haible  <bruno@clisp.org>
53883
53884         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
53885         set errno and don't call _close.
53886
53887 2008-10-10  Bruno Haible  <bruno@clisp.org>
53888
53889         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
53890         ACL, not afterwards. Fixes test failure on Cygwin.
53891
53892 2008-10-09  Ben Pfaff  <blp@gnu.org>
53893
53894         * build-aux/announce-gen: Fix gnulib version related part of usage
53895         message.  Die with a useful error message if no tarballs are
53896         found.
53897
53898 2008-10-10  Jim Meyering  <meyering@redhat.com>
53899
53900         bootstrap: use git's --depth=N option only if it's supported
53901         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
53902         recognize the --depth option.  Reported by Pádraig Brady.
53903
53904 2008-10-09  Bruno Haible  <bruno@clisp.org>
53905
53906         New module 'ioctl'.
53907         * modules/ioctl: New file.
53908         * lib/sys_socket.in.h (ioctl): Remove declaration.
53909         * lib/winsock.c: Include <sys/ioctl.h>.
53910         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
53911         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53912         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
53913         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
53914         * doc/posix-functions/ioctl.texi: Mention the new module.
53915
53916 2008-10-09  Bruno Haible  <bruno@clisp.org>
53917
53918         New module 'sys_ioctl'.
53919         * lib/sys_ioctl.in.h: New file.
53920         * m4/sys_ioctl_h.m4: New file.
53921         * modules/sys_ioctl: New file.
53922         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
53923
53924 2008-10-09  Bruno Haible  <bruno@clisp.org>
53925
53926         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
53927         * lib/winsock.c: Include <stdarg.h>.
53928         (rpl_ioctl): Change to second argument 'int' and then varargs.
53929
53930 2008-10-09  Bruno Haible  <bruno@clisp.org>
53931
53932         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
53933         when the sys_socket module is present and the system has <winsock2.h>.
53934
53935 2008-10-09  Bruno Haible  <bruno@clisp.org>
53936
53937         * doc/posix-functions/close.texi: Mention module 'close' instead of
53938         module 'sys_socket'.
53939
53940 2008-10-09  Bruno Haible  <bruno@clisp.org>
53941
53942         * doc/glibc-headers/sys_ioctl.texi: New file.
53943         * doc/gnulib.texi: Include it.
53944
53945 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53946             Bruno Haible  <bruno@clisp.org>
53947
53948         Combine the two replacements of 'close'.
53949         * lib/sys_socket.in.h (close): Define to a reminder to include
53950         <unistd.h>.
53951         (_gl_close_fd_maybe_socket): New declaration.
53952         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
53953         * lib/winsock.c (close): Remove undefinition.
53954         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
53955         needed for the gnulib module 'close'.
53956         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
53957         define to an error symbol or to a warning, if suitable.
53958         * lib/close.c: Include <sys/socket.h>.
53959         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
53960         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
53961         UNISTD_H_HAVE_WINSOCK2_H.
53962         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
53963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53964         UNISTD_H_HAVE_WINSOCK2_H.
53965         * modules/sys_socket (Files): Add m4/unistd_h.m4.
53966         (configure.ac): Set a module indicator.
53967         (Makefile.am): Substitute GNULIB_CLOSE.
53968         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
53969         * modules/poll-tests (Depends-on): Add close.
53970         * modules/select-tests (Depends-on): Likewise.
53971
53972 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53973             Bruno Haible  <bruno@clisp.org>
53974
53975         New module 'close'.
53976         * modules/close: New file.
53977         * lib/unistd.in.h (close): Move declaration out of the
53978         FCHDIR_REPLACEMENT scope.
53979         (_gl_unregister_fd): New declaration.
53980         * lib/close.c: New file.
53981         * lib/fchdir.c (rpl_close): Remove function.
53982         * m4/close.m4: New file.
53983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53984         close.
53985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53986         REPLACE_CLOSE.
53987         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53988         REPLACE_CLOSE.
53989         * modules/fchdir (Depends-on): Add close.
53990
53991 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53992             Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/fcntl.in.h (open): Simplify conditionals.
53995         (_gl_register_fd): New declaration.
53996         * lib/fchdir.c (rpl_open): Remove function.
53997         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53998         also.
53999         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54001         open.
54002
54003 2008-10-09  Jim Meyering  <meyering@redhat.com>
54004
54005         GNUmakefile: use the more name-space-friendly "_version"
54006         * top/GNUmakefile (_dummy): Update.
54007         (_version): Rename from "version".
54008
54009 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54010             Bruno Haible  <bruno@clisp.org>
54011
54012         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54013         rpl_close.
54014         (_gl_register_fd): New function, extracted from rpl_open.
54015         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54016         (rpl_open, rpl_opendir): Use _gl_register_fd.
54017
54018 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54019
54020         Fix organization of 'open' replacement.
54021         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54022         (gl_FUNC_OPEN): Use it.
54023         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54024
54025 2008-10-08  Bruno Haible  <bruno@clisp.org>
54026
54027         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54028
54029 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54030
54031         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54032         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54033         listen).
54034
54035 2008-10-08  Eric Blake  <ebb9@byu.net>
54036
54037         GNUmakefile: add 'make version' target
54038         * top/GNUmakefile (_curr-ver): Split version update rules...
54039         (version): ...into a target.
54040
54041 2008-10-07  Bruno Haible  <bruno@clisp.org>
54042
54043         Use a more portable replacement expression for -0.0L.
54044         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54045         instead of -0.0L. Fix m4 quotation.
54046
54047         * tests/test-signbit.c: Include <float.h>.
54048         (minus_zero): New variable.
54049         (test_signbitl): Use minus_zero instead of -zero.
54050         * modules/signbit-tests (Depends-on): Add float.
54051
54052         * tests/test-ceill.c: Include <float.h>.
54053         (zero): Remove variable.
54054         (minus_zero): New variable.
54055         (main): Use minus_zero instead of -zero.
54056         * modules/ceill-tests (Depends-on): Add float.
54057
54058         * tests/test-floorl.c: Include <float.h>.
54059         (zero): Remove variable.
54060         (minus_zero): New variable.
54061         (main): Use minus_zero instead of -zero.
54062         * modules/floorl-tests (Depends-on): Add float.
54063
54064         * tests/test-roundl.c: Include <float.h>.
54065         (zero): Remove variable.
54066         (minus_zero): New variable.
54067         (main): Use minus_zero instead of -zero.
54068         * modules/roundl-tests (Depends-on): Add float.
54069
54070         * tests/test-truncl.c: Include <float.h>.
54071         (zero): Remove variable.
54072         (minus_zero): New variable.
54073         (main): Use minus_zero instead of -zero.
54074         * modules/truncl-tests (Depends-on): Add float.
54075
54076         * tests/test-frexpl.c (zero): Remove variable.
54077         (minus_zero): New variable.
54078         (main): Use minus_zero instead of -zero.
54079         * modules/frexpl-tests (Depends-on): Add float.
54080
54081         * tests/test-isnan.c (zerol): Remove variable.
54082         (minus_zerol): New variable.
54083         (test_long_double): Use minus_zerol instead of -zerol.
54084         * modules/isnan-tests (Depends-on): Add float.
54085
54086         * tests/test-isnanl.h (zero): Remove variable.
54087         (minus_zero): New variable.
54088         (main): Use minus_zero instead of -zero.
54089         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54090         * modules/isnanl-tests (Depends-on): Add float.
54091
54092         * tests/test-ldexpl.c (zero): Remove variable.
54093         (minus_zero): New variable.
54094         (main): Use minus_zero instead of -zero.
54095         * modules/ldexpl-tests (Depends-on): Add float.
54096
54097         * tests/test-snprintf-posix.h (zerol): Remove variable.
54098         (minus_zerol): New variable.
54099         (test_function): Use minus_zerol instead of -zerol.
54100         * modules/snprintf-posix-tests (Depends-on): Add float.
54101         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54102
54103         * tests/test-sprintf-posix.h (zerol): Remove variable.
54104         (minus_zerol): New variable.
54105         (test_function): Use minus_zerol instead of -zerol.
54106         * modules/sprintf-posix-tests (Depends-on): Add float.
54107         * modules/vsprintf-posix-tests (Depends-on): Add float.
54108
54109         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54110         (minus_zerol): New variable.
54111         (test_function): Use minus_zerol instead of -zerol.
54112         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54113
54114         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54115         (minus_zerol): New variable.
54116         (test_function): Use minus_zerol instead of -zerol.
54117         * modules/vasprintf-posix-tests (Depends-on): Add float.
54118
54119 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54120
54121         * MODULES.html.sh (Support for building documentation): Mention
54122         pmccabe2html.  Sort entries.
54123
54124         Add pmccabe2html module, from gnupdf.
54125         * build-aux/pmccabe.css: New file.
54126         * build-aux/pmccabe2html: New file.
54127         * m4/pmccabe2html.m4: New file.
54128         * modules/pmccabe2html: New file.
54129
54130 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54131
54132         flock: new module
54133         * MODULES.html.sh: Add to list of modules.
54134         * lib/flock.c: flock implementation for Windows and Unix systems
54135         which have fcntl.
54136         * doc/glibc-functions/flock.texi: Update documentation.
54137         * lib/sys_file.in.h: <sys/file.h> header file.
54138         * m4/flock.m4: M4 macros.
54139         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54140         * modules/flock: flock module.
54141         * modules/flock-tests: flock tests module.
54142         * modules/sys_file: sys/file.h module.
54143         * tests/test-flock.c: test suite for flock.
54144
54145 2008-10-06  Jim Meyering  <meyering@redhat.com>
54146
54147         bootstrap: check for LT_INIT more portably still ;-)
54148         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54149         Spotted by Bruno Haible.
54150
54151 2008-10-06  Eric Blake  <ebb9@byu.net>
54152
54153         test-signbit: avoid tripping Irix cc bug on -0.0L
54154         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54155         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54156         entire testsuite consistent and avoids an Irix 6.2 bug.
54157
54158 2008-10-05  Bruno Haible  <bruno@clisp.org>
54159             Jim Meyering  <jim@meyering.net>
54160
54161         Add an option for ignoring EPIPE during close_stdout.
54162         * lib/closeout.h: Include <stdbool.h>.
54163         (close_stdout_set_ignore_EPIPE): New declaration.
54164         * lib/closeout.c: Include <stdbool.h>.
54165         (ignore_EPIPE): New variable.
54166         (close_stdout_set_ignore_EPIPE): New function.
54167         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54168         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54169         failure.
54170         * modules/closeout (Depends-on): Add stdbool.
54171
54172 2008-10-05  Bruno Haible  <bruno@clisp.org>
54173
54174         * modules/accept: New file.
54175         * modules/bind: New file.
54176         * modules/connect: New file.
54177         * modules/getpeername: New file.
54178         * modules/getsockname: New file.
54179         * modules/getsockopt: New file.
54180         * modules/listen: New file.
54181         * modules/recv: New file.
54182         * modules/recvfrom: New file.
54183         * modules/send: New file.
54184         * modules/sendto: New file.
54185         * modules/setsockopt: New file.
54186         * modules/socket: New file.
54187         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54188         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54189         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54190         the particular module is requested. Add a link warning when the
54191         particular module is not requested.
54192         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54193         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54194         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54195         the particular module is requested.
54196         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54197         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54198         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54199         * modules/sys_socket (Depends-on): Add link-warning.
54200         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54201         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54202         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54203         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54204         GL_LINK_WARNING.
54205         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54206         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54207         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54208         * doc/posix-functions/getpeername.texi: Mention the new module
54209         'getpeername'.
54210         * doc/posix-functions/getsockname.texi: Mention the new module
54211         'getsockname'.
54212         * doc/posix-functions/getsockopt.texi: Mention the new module
54213         'getsockopt'.
54214         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54215         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54216         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54217         * doc/posix-functions/send.texi: Mention the new module 'send'.
54218         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54219         * doc/posix-functions/setsockopt.texi: Mention the new module
54220         'setsockopt'.
54221         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54222         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54223         listen, connect, accept.
54224         * modules/select-tests (Depends-on): Likewise.
54225
54226 2008-10-05  Bruno Haible  <bruno@clisp.org>
54227
54228         * lib/winsock.c (strerror): Remove unused #undef.
54229         (rpl_close): Remove unused local variable.
54230
54231         * modules/sys_socket (Depends-on); Add errno.
54232
54233 2008-10-05  Bruno Haible  <bruno@clisp.org>
54234
54235         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54236         (select): Add a link warning when the 'select' module is not used.
54237         * modules/sys_select (Depends-on): Add link-warning.
54238         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54239         Suggested by Paolo Bonzini.
54240
54241 2008-10-05  Jim Meyering  <meyering@redhat.com>
54242
54243         bootstrap: check for LT_INIT more portably
54244         * build-aux/bootstrap: Avoid using grep -E, since it's not
54245         portable enough.  Suggestion from Bruno Haible.
54246
54247 2008-10-05  Bruno Haible  <bruno@clisp.org>
54248
54249         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54250         as being fixed by gnulib.
54251
54252 2008-10-05  Bruno Haible  <bruno@clisp.org>
54253
54254         * modules/select-tests: New file, mostly copied from
54255         modules/sys_select-tests.
54256         * tests/test-select.c: New file, mostly copied from
54257         tests/test-sys_select.c.
54258         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54259         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54260         (Makefile.am): Remove test_sys_select_LDADD.
54261
54262         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54263         to an undefined symbol, for an error message.
54264         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54265         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54266         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54267         winsock-select.c here.
54268         * modules/sys_select (Files): Remove lib/winsock-select.c.
54269         (Depends-on): Remove alloca.
54270         (Makefile.am): Substitute GNULIB_SELECT.
54271         * modules/select: New file.
54272         * doc/posix-functions/select.texi: Update.
54273
54274 2008-10-05  Bruno Haible  <bruno@clisp.org>
54275
54276         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54277         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54278         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54279         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54280         getdtablesize.
54281         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54282         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54283
54284 2008-10-05  Bruno Haible  <bruno@clisp.org>
54285
54286         * modules/getdtablesize-tests: New file.
54287         * tests/test-getdtablesize.c: New file.
54288
54289         New module 'getdtablesize'.
54290         * lib/unistd.in.h (getdtablesize): New declaration.
54291         * lib/getdtablesize.c: New file.
54292         * m4/getdtablesize.m4: New file.
54293         * modules/getdtablesize: New file.
54294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54295         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54296         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54297         HAVE_GETDTABLESIZE.
54298         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54299
54300 2008-10-05  Bruno Haible  <bruno@clisp.org>
54301
54302         * modules/sched (Makefile.am): Fix typo.
54303         Reported by Simon Josefsson.
54304
54305 2008-10-05  Jim Meyering  <meyering@redhat.com>
54306
54307         bootstrap: check for LT_INIT, too
54308         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54309         are deprecated.  Suggestion from Ralf Wildenhues.
54310
54311 2008-10-05  Bruno Haible  <bruno@clisp.org>
54312
54313         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54314         overriding them by ours.
54315         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54316
54317 2008-10-05  Jim Meyering  <meyering@redhat.com>
54318
54319         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54320         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54321         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54322
54323 2008-10-04  Bruno Haible  <bruno@clisp.org>
54324
54325         * modules/dup2 (License): Change to LGPLv2+.
54326         * modules/sleep (License): Likewise.
54327         * modules/perror (License): Likewise.
54328         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54329         Blake.
54330         * modules/signal (License): Likewise.
54331         * modules/sigprocmask (License): Likewise.
54332         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54333         Meyering.
54334
54335 2008-10-04  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54338         Reported by Rainer Tammer <tammer@tammer.net>.
54339
54340 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54341             Bruno Haible  <bruno@clisp.org>
54342
54343         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54344         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54345         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54346
54347 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54348
54349         filevercmp: new module
54350         * lib/filevercmp.h: New function filevercmp comparing version strings.
54351         * lib/filevercmp.c: Implementation of filevercmp function.
54352         * modules/filevercmp: Module metadata.
54353         * tests/test-filevercmp.c: Unit test for new module.
54354         * modules/filevercmp-tests: Unit test metadata.
54355         * MODULES.html.sh: Add filevercmp module.
54356
54357 2008-10-03  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/c-ctype.h: Add comment.
54360         Reported by Jim Meyering.
54361
54362 2008-10-02  Bruno Haible  <bruno@clisp.org>
54363
54364         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54365
54366 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54367
54368         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54369         name of bootstrap.conf accordingly.
54370
54371 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54372
54373         * build-aux/bootstrap: Install git-merge-changelog configuration
54374         items into .gitconfig if needed.
54375
54376 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54377
54378         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54379         git repository, and initialize/update it accordingly.
54380
54381 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54382
54383         * modules/fsync-tests: New file.
54384         * tests/test-fsync.c: New file.
54385
54386         New module 'fsync'.
54387         * lib/fsync.c: New file.
54388         * m4/fsync.m4: New file.
54389         * modules/fsync: New file.
54390         * lib/unistd.in.h (fsync): New declaration.
54391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54392         GNULIB_FSYNC and HAVE_FSYNC.
54393         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54394         * MODULES.html.sh (posix_functions): Add fsync.
54395         * doc/posix-functions/fsync.texi: Mention the new module.
54396
54397 2008-10-02  Jim Meyering  <meyering@redhat.com>
54398
54399         fts.c: sync with similar code from coreutils' remove.c
54400         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54401         Guard also with "#if defined __linux__", since for now at least,
54402         this code is Linux-kernel-specific.
54403
54404 2008-10-02  Jim Meyering  <meyering@redhat.com>
54405
54406         fts: bug fixes
54407         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54408         Include <sys/vfs.h>, not <sys/statfs.h>.
54409
54410         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54411         Include <sys/vfs.h>, not <sys/statfs.h>.
54412
54413 2008-10-01  Bruno Haible  <bruno@clisp.org>
54414
54415         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54416         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54417         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54418         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54419         * doc/posix-functions/posix_spawnp.texi: Likewise.
54420         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54421         whether posix_spawn actually works.
54422         * m4/pipe.m4 (gl_PIPE): Likewise.
54423         * modules/execute (Files): Add m4/posix_spawn.m4.
54424         * modules/pipe (Files): Add m4/posix_spawn.m4.
54425         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54426
54427 2008-10-01  Jim Meyering  <meyering@redhat.com>
54428
54429         remove trailing spaces
54430         * NEWS: Likewise.
54431         * lib/poll.c (poll): Likewise.
54432         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54433         * lib/winsock.c (rpl_close): Likewise.
54434         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54435         * modules/yield: Likewise.
54436         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54437         * tests/test-sys_select.c (connect_to_socket): Likewise.
54438
54439         fts.c: adjust a new interface to be more generally useful
54440         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54441         (fts_build): Adjust caller.
54442
54443 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54444
54445         * modules/cond-tests: New file.
54446         * tests/test-cond.c: New file.
54447
54448 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54449             Bruno Haible  <bruno@clisp.org>
54450
54451         * modules/cond (Dependencies): Add errno, time.
54452         * lib/glthread/cond.h: Include <time.h>.
54453         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54454         across platforms.
54455
54456 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54457             Bruno Haible  <bruno@clisp.org>
54458
54459         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54460
54461 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54462             Bruno Haible  <bruno@clisp.org>
54463
54464         * modules/tls-tests (Depends-on): Add thread, yield.
54465         (configure.ac): Remove all checks.
54466         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54467         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54468         gl_thread_self): Remove definitions. Include glthread/thread.h and
54469         glthread/yield.h instead.
54470         (test_tls): Pass an additional NULL argument to gl_thread_join.
54471
54472 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54473             Bruno Haible  <bruno@clisp.org>
54474
54475         * modules/lock-tests (Depends-on): Add thread, yield.
54476         (configure.ac): Remove all checks.
54477         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54478         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54479         gl_thread_self): Remove definitions. Include glthread/thread.h and
54480         glthread/yield.h instead.
54481         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54482         additional NULL argument to gl_thread_join.
54483
54484 2008-09-30  Bruno Haible  <bruno@clisp.org>
54485
54486         Fix the Win32 implementation of the 'thread' module.
54487         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54488         pointer type.
54489         (gl_thread_self): Invoke gl_thread_self_func.
54490         (gl_thread_self_func): New declaration.
54491         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54492         (do_init_self_key, init_self_key): New functions.
54493         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54494         Remove some fields.
54495         (running_threads, running_lock): Remove variables.
54496         (get_current_thread_handle): New function.
54497         (gl_thread_self_func, wrapper_func, glthread_create_func,
54498         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54499         simplified.
54500
54501 2008-09-30  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54504         files.
54505
54506 2008-09-30  Jim Meyering  <meyering@redhat.com>
54507
54508         fts.m4: correct the test for statfs.f_type
54509         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54510         when checking for statfs.f_type.
54511
54512 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54513
54514         tests: avoid some compiler warnings
54515         * tests/test-memchr.c (main): Pass NULL indirectly.
54516         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54517
54518 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
54519
54520         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54521         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54522         exactly specified dayshifts.
54523         (dayshift): New rule.
54524         (rel): Add dayshift.
54525         (relative_time_table) [tomorrow, yesterday, today, now]:
54526         Use tDAY_SHIFT in place of tDAY_UNIT.
54527         * tests/test-getdate.c: Add tests for now-disallowed countable
54528         dayshifts, e.g., "4 yesterday ago".
54529
54530 2008-09-29  Bruno Haible  <bruno@clisp.org>
54531
54532         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54533         * tests/test-posix_spawn1.in.sh: Renamed from
54534         tests/test-posix_spawn.in.sh.
54535         * tests/test-posix_spawn2.c: New file.
54536         * tests/test-posix_spawn2.in.sh: New file.
54537         * modules/posix_spawnp-tests (Files): Update.
54538         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54539
54540 2008-09-29  Bruno Haible  <bruno@clisp.org>
54541
54542         Propagate effects of putenv/setenv/unsetenv to child processes.
54543         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54544         * lib/pipe.c (create_pipe): Likewise.
54545
54546 2008-09-29  Bruno Haible  <bruno@clisp.org>
54547
54548         Enable use of shell scripts as executables in mingw.
54549         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54550         run the program as a shell script.
54551         * lib/pipe.c (create_pipe): Likewise.
54552         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54553         resulting array.
54554
54555 2008-09-29  Eric Blake  <ebb9@byu.net>
54556
54557         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54558
54559 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54560
54561         * doc/posix-functions/accept.texi: Update mingw problems.
54562         * doc/posix-functions/bind.texi: Update mingw problems.
54563         * doc/posix-functions/close.texi: Update mingw problems.
54564         * doc/posix-functions/connect.texi: Update mingw problems.
54565         * doc/posix-functions/getpeername.texi: Update mingw problems.
54566         * doc/posix-functions/getsockname.texi: Update mingw problems.
54567         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54568         * doc/posix-functions/ioctl.texi: Update mingw problems.
54569         * doc/posix-functions/listen.texi: Update mingw problems.
54570         * doc/posix-functions/recv.texi: Update mingw problems.
54571         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54572         * doc/posix-functions/select.texi: Update mingw problems.
54573         * doc/posix-functions/send.texi: Update mingw problems.
54574         * doc/posix-functions/sendto.texi: Update mingw problems.
54575         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54576         * doc/posix-functions/socket.texi: Update mingw problems.
54577
54578 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54579             Bruno Haible  <bruno@clisp.org>
54580
54581         * lib/sys_select.in.h: Include sys/time.h.
54582         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54583         * modules/sys_select: Depend on sys_time.
54584         * tests/test-sys_select.c: Test that sys/select.h defines struct
54585         timeval fully.
54586
54587 2008-09-29  Bruno Haible  <bruno@clisp.org>
54588
54589         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54590         * lib/sys_select.in.h: Likewise.
54591
54592 2008-09-29  Bruno Haible  <bruno@clisp.org>
54593
54594         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54595
54596 2008-09-29  Bruno Haible  <bruno@clisp.org>
54597
54598         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54599         Set LIBSOCKET instead of augmenting LIBS.
54600         * modules/sockets (Link): New section.
54601         * modules/sockets-tests (test_sockets_LDADD): New variable.
54602         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54603         * modules/poll-tests (test_poll_LDADD): New variable.
54604         * NEWS: Document the change.
54605
54606 2008-09-29  Bruno Haible  <bruno@clisp.org>
54607
54608         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54609         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54610         ARPA_INET_H directly.
54611         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54612
54613 2008-09-28  Bruno Haible  <bruno@clisp.org>
54614
54615         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54616         from gl_HEADER_SYS_SOCKET.
54617         (gl_HEADER_SYS_SOCKET): Invoke it.
54618         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54619
54620 2008-09-28  Bruno Haible  <bruno@clisp.org>
54621
54622         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54623         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54624         Needed on OSF/1 4.0.
54625
54626 2008-09-28  Bruno Haible  <bruno@clisp.org>
54627
54628         Override open more carefully.
54629         * lib/open.c (orig_open): New function.
54630         (rpl_open): Use orig_open instead of open.
54631         * lib/fcntl.in.h: Add special invocation convention.
54632         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54633         (gl_FUNC_OPEN): Invoke it.
54634
54635         Override freopen more carefully.
54636         * lib/freopen.c (orig_freopen): New function.
54637         (rpl_freopen): Use orig_freopen instead of freopen.
54638         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54639         (gl_FUNC_FREOPEN): Invoke it.
54640
54641         Override fopen more carefully.
54642         * lib/fopen.c (orig_fopen): New function.
54643         (rpl_fopen): Use orig_fopen instead of fopen.
54644         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54645         (gl_FUNC_FOPEN): Invoke it.
54646         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54647
54648 2008-09-28  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54651         SIGPIPE.
54652
54653 2008-09-28  Bruno Haible  <bruno@clisp.org>
54654
54655         * tests/test-sigaction.c (handler, main): Disable the check whether
54656         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54657         glibc systems with LinuxThreads.
54658
54659 2008-09-28  Bruno Haible  <bruno@clisp.org>
54660
54661         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54662
54663         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54664         with AIX xlc.
54665         * lib/fcntl.in.h (open): Likewise.
54666         Reported by Rainer Tammer <tammer@tammer.net>.
54667
54668 2008-09-28  Bruno Haible  <bruno@clisp.org>
54669
54670         * modules/posix_spawnp-tests: New file.
54671         * tests/test-posix_spawn.c: New file.
54672         * tests/test-posix_spawn.in.sh: New file.
54673
54674         New module 'posix_spawnp'.
54675         * modules/posix_spawnp: New file.
54676         * lib/spawnp.c: New file, from GNU libc with modifications.
54677         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54678
54679         New module 'posix_spawn'.
54680         * modules/posix_spawn: New file.
54681         * lib/spawn.c: New file, from GNU libc with modifications.
54682         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54683
54684         New module 'posix_spawnattr_destroy'.
54685         * modules/posix_spawnattr_destroy: New file.
54686         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54687         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54688         module.
54689
54690         New module 'posix_spawnattr_setsigmask'.
54691         * modules/posix_spawnattr_setsigmask: New file.
54692         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54693         modifications.
54694         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54695         new module.
54696
54697         New module 'posix_spawnattr_getsigmask'.
54698         * modules/posix_spawnattr_getsigmask: New file.
54699         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54700         modifications.
54701         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54702         new module.
54703
54704         New module 'posix_spawnattr_setsigdefault'.
54705         * modules/posix_spawnattr_setsigdefault: New file.
54706         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54707         modifications.
54708         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54709         new module.
54710
54711         New module 'posix_spawnattr_getsigdefault'.
54712         * modules/posix_spawnattr_getsigdefault: New file.
54713         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54714         modifications.
54715         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54716         new module.
54717
54718         New module 'posix_spawnattr_setschedpolicy'.
54719         * modules/posix_spawnattr_setschedpolicy: New file.
54720         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54721         modifications.
54722         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54723         new module.
54724
54725         New module 'posix_spawnattr_getschedpolicy'.
54726         * modules/posix_spawnattr_getschedpolicy: New file.
54727         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54728         modifications.
54729         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54730         new module.
54731
54732         New module 'posix_spawnattr_setschedparam'.
54733         * modules/posix_spawnattr_setschedparam: New file.
54734         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54735         modifications.
54736         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54737         new module.
54738
54739         New module 'posix_spawnattr_getschedparam'.
54740         * modules/posix_spawnattr_getschedparam: New file.
54741         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54742         modifications.
54743         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54744         new module.
54745
54746         New module 'posix_spawnattr_setpgroup'.
54747         * modules/posix_spawnattr_setpgroup: New file.
54748         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54749         modifications.
54750         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54751         module.
54752
54753         New module 'posix_spawnattr_getpgroup'.
54754         * modules/posix_spawnattr_getpgroup: New file.
54755         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54756         modifications.
54757         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54758         module.
54759
54760         New module 'posix_spawnattr_setflags'.
54761         * modules/posix_spawnattr_setflags: New file.
54762         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54763         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54764         module.
54765
54766         New module 'posix_spawnattr_getflags'.
54767         * modules/posix_spawnattr_getflags: New file.
54768         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54769         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54770         module.
54771
54772         New module 'posix_spawnattr_init'.
54773         * modules/posix_spawnattr_init: New file.
54774         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54775         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54776         module.
54777
54778         New module 'posix_spawn_file_actions_destroy'.
54779         * modules/posix_spawn_file_actions_destroy: New file.
54780         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54781         modifications.
54782         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54783         the new module.
54784
54785         New module 'posix_spawn_file_actions_addopen'.
54786         * modules/posix_spawn_file_actions_addopen: New file.
54787         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54788         modifications.
54789         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54790         the new module.
54791
54792         New module 'posix_spawn_file_actions_adddup2'.
54793         * modules/posix_spawn_file_actions_adddup2: New file.
54794         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54795         modifications.
54796         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54797         the new module.
54798
54799         New module 'posix_spawn_file_actions_addclose'.
54800         * modules/posix_spawn_file_actions_addclose: New file.
54801         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54802         modifications.
54803         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54804         the new module.
54805
54806         New module 'posix_spawn_file_actions_init'.
54807         * modules/posix_spawn_file_actions_init: New file.
54808         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54809         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54810         new module.
54811
54812         New module 'posix_spawn-internal'.
54813         * modules/posix_spawn-internal: New file.
54814         * lib/spawn_int.h: New file, from GNU libc with modifications.
54815         * lib/spawni.c: New file, from GNU libc with modifications.
54816         * m4/posix_spawn.m4: New file.
54817
54818         New module 'spawn'.
54819         * modules/spawn: New file.
54820         * lib/spawn.in.h: New file, from GNU libc with modifications.
54821         * m4/spawn_h.m4: New file.
54822         * doc/posix-headers/spawn.texi: Mention the new module.
54823
54824 2008-09-28  Bruno Haible  <bruno@clisp.org>
54825
54826         * modules/sched-tests: New file.
54827         * tests/test-sched.c: New file.
54828
54829         New module 'sched'.
54830         * modules/sched: New file.
54831         * lib/sched.in.h: New file.
54832         * m4/sched_h.m4: New file.
54833         * doc/posix-headers/sched.texi: Mention the new module.
54834
54835 2008-09-27  Eric Blake  <ebb9@byu.net>
54836
54837         Fix previous patch, and tweak references to $0.
54838         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
54839         (func_version, func_gnulib_dir): Don't call this program
54840         gnulib-tool.
54841         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
54842         with using $0 in function.
54843         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
54844         (func_fatal_error): Reuse the name the user invoked us with.
54845
54846 2008-09-27  Bruno Haible  <bruno@clisp.org>
54847
54848         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
54849         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
54850         (gl_ICONV_H): Not here.
54851         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
54852         instead of assigning ICONV_H directly.
54853
54854         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
54855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
54856         WCHAR_H directly.
54857
54858 2008-09-27  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
54861         * modules/arpa_inet (Depends-on): Add link-warning.
54862         (Makefile.am): Insert the definition of GL_LINK-WARNING.
54863         * modules/unistd (Makefile.am): Likewise.
54864
54865 2008-09-26  Bruno Haible  <bruno@clisp.org>
54866
54867         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
54868         variables.
54869         (func_version): Essentially copied from gnulib-tool.
54870         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
54871         func_readlink): Copied from gnulib-tool.
54872
54873 2008-09-26  Bruno Haible  <bruno@clisp.org>
54874
54875         * gnulib-tool (func_version): Change directory to $gnulib_dir before
54876         invoking git-version-gen.
54877
54878 2008-09-26  Bruno Haible  <bruno@clisp.org>
54879
54880         * posix-modules: Update to directory names changed on 2008-01-19.
54881         Remove commas in output before splitting into words. No more need to
54882         avoid 'ftruncate' since 2007-02-19.
54883
54884 2008-09-26  Bruno Haible  <bruno@clisp.org>
54885
54886         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
54887
54888 2008-09-26  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
54891         * modules/fwriteerror (Depends-on): Add errno.
54892
54893 2008-09-26  Bruno Haible  <bruno@clisp.org>
54894
54895         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
54896         * tests/test-vc-list-files-cvs.sh: Likewise.
54897
54898 2008-09-26  Bruno Haible  <bruno@clisp.org>
54899
54900         * doc/posix-headers/sys_resource.texi: Reorder items.
54901
54902 2008-09-26  Jim Meyering  <meyering@redhat.com>
54903
54904         fts: tweak inode comparison function
54905         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
54906         inode numbers, as documented.
54907
54908         fts: sort dirent entries on inode number before traversing
54909         This avoids a quadratic, seek-related performance penalty when
54910         operating on a directory containing many entries (measurable at 10k;
54911         3.5 hours at 2 million entries with a cold cache) on certain types
54912         of file systems, including ext3 and ext4, but not tmpfs.
54913         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
54914         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
54915         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
54916         (fs_handles_readdir_ordered_dirents_efficiently): New function.
54917         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
54918         (fts_build): Set the stat.st_ino member from D_INO.
54919         If it is likely to be useful, sort dirent entries on inode number.
54920
54921         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
54922         and the struct statfs.f_type member.
54923         * modules/fts (Depends-on): Add d-ino.
54924
54925 2008-09-26  Bruno Haible  <bruno@clisp.org>
54926
54927         * modules/sigpipe-die (Depends-on): Add sigpipe.
54928
54929         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
54930         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
54931         and GNULIB_STDIO_H_SIGPIPE are set.
54932         * lib/stdio-write.c: New file.
54933         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
54934         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54935         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54936         REPLACE_STDIO_WRITE_FUNCS.
54937         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
54938         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54939         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54940         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54941         * modules/stdio (Files): Add lib/stdio-write.c.
54942         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
54943         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54944         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54945         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54946         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
54947         REPLACE_FPRINTF_POSIX.
54948         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
54949         REPLACE_PRINTF_POSIX.
54950         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
54951         REPLACE_VFPRINTF_POSIX.
54952         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
54953         REPLACE_VPRINTF_POSIX.
54954         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
54955         SIGPIPE issue.
54956         * doc/posix-functions/fputc.texi: Likewise.
54957         * doc/posix-functions/fputs.texi: Likewise.
54958         * doc/posix-functions/fwrite.texi: Likewise.
54959         * doc/posix-functions/printf.texi: Likewise.
54960         * doc/posix-functions/putc.texi: Likewise.
54961         * doc/posix-functions/putchar.texi: Likewise.
54962         * doc/posix-functions/puts.texi: Likewise.
54963         * doc/posix-functions/vfprintf.texi: Likewise.
54964         * doc/posix-functions/vprintf.texi: Likewise.
54965
54966         * modules/safe-write (Depends-on): Add write.
54967
54968         * modules/sigpipe-tests: New file.
54969         * tests/test-sigpipe.c: New file.
54970         * tests/test-sigpipe.sh: New file.
54971
54972         * modules/write: New file.
54973         * lib/unistd.in.h: Include <sys/types.h>.
54974         (write): New declaration.
54975         * lib/write.c: New file.
54976         * m4/write.m4: New file.
54977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54978         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54979         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54980         GNULIB_WRITE, REPLACE_WRITE.
54981         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54982         and the SIGPIPE issue.
54983
54984         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54985         (raise): New declaration.
54986         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54987         (ext_signal): New function.
54988         (rpl_raise): New function.
54989         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54990         GNULIB_SIGNAL_H_SIGPIPE.
54991         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54992         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54993
54994         * modules/sigpipe: New file.
54995         * m4/sigpipe.m4: New file.
54996
54997 2008-09-25  Derek Price  <derek@ximbiot.com>
54998             Bruno Haible  <bruno@clisp.org>
54999
55000         * gnulib-tool (func_import): Report all license incompatibilities, not
55001         just the first one.
55002
55003 2008-09-25  Bruno Haible  <bruno@clisp.org>
55004
55005         * gnulib-tool (func_import): When computing the edits, consider not
55006         only the Makefile.ams that exist but also those that will be generated.
55007
55008 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55009
55010         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55011         fixes gnulib-tool --test warning about duplicate dependency.
55012
55013 2008-09-25  Bruno Haible  <bruno@clisp.org>
55014
55015         * gnulib-tool: Don't ask the user to perform edits in the generated
55016         Makefile.ams.
55017         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55018         apply to the Makefile.am being generated.
55019         (func_emit_tests_Makefile_am): Execute edits that apply to the
55020         Makefile.am being generated.
55021         (func_import): Setup list of Makefile.am edits before emitting the
55022         Makefile.ams, not at the end.
55023         (func_create_testdir): Update.
55024         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55025
55026 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55027
55028         * gnulib-tool (func_import): Store the --tests-base option in the
55029         comment in gnulib-cache.m4.
55030
55031 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55032
55033         * NEWS: Document increased portability that sys_select now provides.
55034
55035         * lib/sys_select.in.h: Install select wrapper.
55036         * lib/sys_socket.in.h: Use more descriptive name when there is no
55037         select wrapper.
55038         * lib/winsock-select.c: New.
55039         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55040         Require gl_HEADER_SYS_SOCKET.
55041         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55042         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55043         * tests/test-sys_select.c: Add functional tests.
55044
55045 2008-09-24  Eric Blake  <ebb9@byu.net>
55046
55047         open, fopen: close fd leak in last patch
55048         * lib/open.c (rpl_open): Close fd before returning error.
55049         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55050         * doc/posix-functions/open.texi (open): Document that Irix also
55051         has the bug.
55052         * doc/posix-functions/fopen.texi (fopen): Likewise.
55053         Reported by Paolo Bonzini.
55054
55055 2008-09-24  Bruno Haible  <bruno@clisp.org>
55056
55057         Ensure that a filename ending in a slash cannot be used to access a
55058         non-directory.
55059         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55060         to check whether it's really a directory.
55061         * lib/fopen.c: Include fcntl.h, unistd.h.
55062         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55063         and fdopen().
55064         * modules/fopen (Depends-on): Add unistd.
55065         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55066         * tests/test-fopen.c (main): Likewise.
55067         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55068         * doc/posix-functions/fopen.texi: Likewise.
55069         Reported by Eric Blake.
55070
55071 2008-09-23  Eric Blake  <ebb9@byu.net>
55072
55073         c-stack: avoid compiler optimizations when provoking overflow
55074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55075         recursion harder to optimize, to ensure a stack overflow occurs.
55076         * tests/test-c-stack.c (recurse): Likewise.
55077         Borrowed from libsigsegv.
55078
55079         c-stack: work around Irix sigaltstack bug
55080         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55081         whether sigaltstack uses wrong end of stack_t (copied in part from
55082         libsigsegv).
55083         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55084         Irix bug, without requiring an over-allocation.
55085         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55086         bug.
55087
55088         fopen: document mingw bug on directories
55089         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55090         not allowing a stream visiting a directory, even though reading
55091         from such a stream is not portable.
55092
55093 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55094
55095         * lib/poll.c: Rewrite.
55096         * modules/poll: Depend on alloca.
55097
55098 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55099
55100         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55101         instead define prototypes for a full set of wrappers.  Ensure
55102         that Cygwin does not use the compatibility code, which is only
55103         for MinGW.
55104         * lib/winsock.c: New.
55105         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55106         * modules/sys_socket: Add lib/winsock.c.
55107
55108         * modules/poll-tests: Add errno and perror.
55109         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55110
55111 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55112
55113         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55114
55115 2008-09-23  Bruno Haible  <bruno@clisp.org>
55116
55117         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55118         * doc/glibc-functions/*: Likewise.
55119
55120 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55121
55122         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55123         success.
55124
55125 2008-09-22  Eric Blake  <ebb9@byu.net>
55126             Bruno Haible  <bruno@clisp.org>
55127
55128         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55129         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55130         supply %A but mishandle pseudo-NaN.
55131         Reported by Simon Josefsson.
55132
55133 2008-09-21  Bruno Haible  <bruno@clisp.org>
55134
55135         * tests/test-lock.c (main): Tweak skip message.
55136         * tests/test-tls.c (main): Likewise.
55137
55138 2008-09-21  Bruno Haible  <bruno@clisp.org>
55139
55140         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55141         whether 'struct sigaction' has sa_sigaction here...
55142         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55143         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55144
55145 2008-09-21  Bruno Haible  <bruno@clisp.org>
55146
55147         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55148         section.
55149         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55150         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55151         the new section.
55152         (Support for obsolete systems lacking POSIX:2001): New section.
55153         (String handling <string.h>): Move strdup to the new section.
55154         Suggested by Simon Josefsson and Paolo Bonzini.
55155
55156 2008-09-21  Bruno Haible  <bruno@clisp.org>
55157
55158         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55159         exponents in %e and %g results on 'long double'. Needed for mingw's
55160         improved *printf functions.
55161         * tests/test-vasprintf-posix.c (test_function): Likewise.
55162         * tests/test-snprintf-posix.h (test_function): Likewise.
55163         * tests/test-sprintf-posix.h (test_function): Likewise.
55164         Reported by Eric Blake.
55165
55166 2008-09-21  Bruno Haible  <bruno@clisp.org>
55167
55168         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55169         * tests/test-sprintf-posix.h (test_function): Likewise.
55170
55171 2008-09-21  Bruno Haible  <bruno@clisp.org>
55172
55173         * modules/getpass (Depends-on): Add strdup-posix.
55174
55175         New module 'strdup-posix'.
55176         * modules/strdup-posix: New file.
55177         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55178         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55179         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55180         REPLACE_STRDUP.
55181         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55182         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55184         strdup-posix.
55185
55186         * modules/strdup (Depends-on): Remove malloc-posix.
55187
55188 2008-09-20  Bruno Haible  <bruno@clisp.org>
55189
55190         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55191         Wildenhues.
55192
55193 2008-09-20  Bruno Haible  <bruno@clisp.org>
55194
55195         Ensure that wint_t gets defined on IRIX 5.3.
55196         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55197         * lib/wctype.in.h (wint_t): Likewise.
55198         (__wctype_wint_t): Remove type.
55199         (isw*): Use wint_t instead of __wctype_wint_t.
55200         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55201         * modules/wchar (Files): Add m4/wint_t.m4.
55202         (Makefile.am): Substitute HAVE_WINT_T.
55203         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55204         * tests/test-wctype.c: Check that wint_t is defined.
55205         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55206         * doc/posix-headers/wctype.texi: Likewise.
55207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55208
55209 2008-09-18  Bruno Haible  <bruno@clisp.org>
55210
55211         * gnulib-tool (func_exit): Update comment.
55212
55213 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55214
55215         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55216         assumes strdup exists and does not depend on strdup to return
55217         ENOMEM on out of memory conditions.
55218
55219 2008-09-18  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55222         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55223         digits for the exponent.
55224
55225 2008-09-18  Jim Meyering  <meyering@redhat.com>
55226             Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/vasnprintf.c (decimal_point_char): Define also if
55229         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55230
55231 2008-09-16  Bruno Haible  <bruno@clisp.org>
55232         and Eric Blake  <ebb9@byu.net>
55233
55234         vasnprintf: support Irix 5.3
55235         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55236         that mishandle long double infinity.
55237         Reported by Tom G. Christensen.
55238
55239 2008-09-16  Bruno Haible  <bruno@clisp.org>
55240
55241         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55242         Solaris 9.
55243         * doc/glibc-functions/alphasort.texi: Likewise.
55244         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55245
55246 2008-09-16  Jim Meyering  <meyering@redhat.com>
55247
55248         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55249         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55250         a umask modification leak out of a subshell.  Otherwise, the
55251         opensolaris /bin/sh would be accepted and thus cause unwarranted
55252         failures in the coreutils test suite.
55253
55254 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55255
55256         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55257         to succeed.
55258
55259 2008-09-16  Jim Meyering  <meyering@redhat.com>
55260
55261         avoid spurious test failure when library is built without ACL support
55262         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55263         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55264         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55265         * tests/test-copy-acl.sh: Likewise.
55266
55267 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55268
55269         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55270         based on character occurrence counts.
55271
55272 2008-09-15  Eric Blake  <ebb9@byu.net>
55273
55274         tests: avoid some compiler warnings
55275         * tests/test-memchr.c (main): Pass NULL indirectly.
55276         * tests/test-closein.c (main): Avoid unused variable.
55277
55278 2008-09-15  Bruno Haible  <bruno@clisp.org>
55279
55280         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55281         are missing on OpenBSD 4.0 individually.
55282         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55283
55284 2008-09-15  Bruno Haible  <bruno@clisp.org>
55285
55286         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55287         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55288         * doc/posix-functions/perror.texi: Likewise.
55289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55290         is missing.
55291         Reported by Eric Blake.
55292
55293         * lib/errno.in.h: Use replacement values >= 2000.
55294         Reported by Eric Blake.
55295
55296 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55297
55298         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55299         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55300         limit.
55301         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55302         compareseq was aborted.
55303
55304 2008-09-14  Bruno Haible  <bruno@clisp.org>
55305
55306         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55307         yvec_edit_count.
55308         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55309         (fstrcmp_bounded): Simplify result computation accordingly.
55310
55311 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55312
55313         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55314         (fstrcmp): Define in terms of fstrcmp_bounded.
55315         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55316         lower_bound argument.
55317         Return quickly if the result is certainly < lower_bound.
55318         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55319
55320 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55321
55322         * lib/diffseq.h (EARLY_ABORT): New macro.
55323         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55324         evaluates to true.
55325
55326 2008-09-14  Bruno Haible  <bruno@clisp.org>
55327
55328         * modules/perror-tests: New file.
55329         * tests/test-perror.sh: New file.
55330         * tests/test-perror.c: New file.
55331
55332         New module 'perror'.
55333         * lib/stdio.in.h (perror): New declaration.
55334         * lib/perror.c: New file.
55335         * m4/perror.m4: New file.
55336         * modules/perror: New file.
55337         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55338         * doc/posix-functions/perror.texi: Mention the perror module.
55339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55340         REPLACE_PERROR.
55341         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55342         REPLACE_PERROR.
55343
55344 2008-09-14  Bruno Haible  <bruno@clisp.org>
55345
55346         * modules/stdio (Makefile.am): Reorder to match the order in
55347         lib/stdio.in.h.
55348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55349
55350 2008-09-13  Bruno Haible  <bruno@clisp.org>
55351
55352         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55353
55354 2008-09-13  Bruno Haible  <bruno@clisp.org>
55355
55356         Extend strerror to cover the added errno values.
55357         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55358         (rpl_strerror): Provide error messages for the added errno values and
55359         for the WSA* values.
55360         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55361         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55362         strerror.
55363         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55364         * modules/strerror (Depends-on): Add errno.
55365         * doc/posix-functions/strerror.texi: Document the change.
55366         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55367         and EOVERFLOW.
55368
55369 2008-09-13  Bruno Haible  <bruno@clisp.org>
55370
55371         * modules/EOVERFLOW: Remove file.
55372         * m4/eoverflow.m4: Remove file.
55373         * modules/EOVERFLOW-tests: Remove file.
55374         * tests/test-EOVERFLOW.c: Remove file.
55375         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55376         * modules/ftell (Depends-on): Likewise.
55377         * modules/getdelim (Depends-on): Likewise.
55378         * modules/getugroups (Depends-on): Likewise.
55379         * modules/poll (Depends-on): Likewise.
55380         * modules/snprintf (Depends-on): Likewise.
55381         * modules/sprintf-posix (Depends-on): Likewise.
55382         * modules/vasnprintf (Depends-on): Likewise.
55383         * modules/vasprintf (Depends-on): Likewise.
55384         * modules/vfprintf-posix (Depends-on): Likewise.
55385         * modules/vsnprintf (Depends-on): Likewise.
55386         * modules/vsprintf-posix (Depends-on): Likewise.
55387         * modules/xvasprintf (Depends-on): Likewise.
55388         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55389         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55390         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55391         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55392         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55393         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55394         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55395         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55396         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55397         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55398         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55399         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55400         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55401         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55402         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55403         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55404         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55405         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55406         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55407         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55408         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55409         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55410         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55411         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55412         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55413         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55414         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55415         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55416         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55417         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55418         * MODULES.html.sh: Remove EOVERFLOW.
55419         * NEWS: Mention the change.
55420
55421 2008-09-13  Bruno Haible  <bruno@clisp.org>
55422
55423         * modules/errno-tests: New file.
55424         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55425
55426         * lib/errno.in.h: New file.
55427         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55428         * modules/errno: New file.
55429         * doc/posix-headers/errno.texi: Update documentation.
55430         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55431
55432 2008-09-13  Bruno Haible  <bruno@clisp.org>
55433
55434         * tests/test-poll.c: Use #if for native Windows, rather than testing
55435         __MSVCRT__.
55436
55437 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55438             Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/glob.c: Don't include <pwd.h> on native Windows.
55441         (WINDOWS32): New macro.
55442         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55443
55444 2008-09-13  Bruno Haible  <bruno@clisp.org>
55445
55446         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55447         (ETIMEDOUT): Remove macro.
55448         (glthread_cond_timedwait_multithreaded): New declaration.
55449         (glthread_cond_timedwait): Use it.
55450         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55451         (glthread_cond_timedwait_multithreaded): New function.
55452
55453 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55454
55455         * modules/poll-tests: Do not check for io.h.
55456         * tests/test-poll.c: Check for __MSVCRT__ instead.
55457
55458 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55459
55460         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55461         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55462         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55463
55464 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55465
55466         * modules/poll-tests: New.
55467         * tests/test-poll.c: New.
55468
55469 2008-09-12  Eric Blake  <ebb9@byu.net>
55470
55471         frexp: test for NetBSD failure on -0.0
55472         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55473         not all, bugs from NetBSD 3.0 have been fixed.
55474         * doc/posix-functions/frexp.texi (frexp): Document bug.
55475         Reported by Thomas Klausner.
55476
55477         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55478         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55479         literal -0.0.
55480         Reported by Jonathan C. Patschke <jp@centtech.com>.
55481
55482 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55483
55484         * lib/glthread/cond.h: Use dummy implementation also if
55485         USE_WIN32_THREADS.
55486
55487 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55488
55489         * modules/fnmatch-posix (License): Change to LGPLv2+.
55490         * modules/fnmatch-gnu (License): Likewise.
55491
55492 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55493
55494         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55495
55496 2008-09-11  Jim Meyering  <meyering@redhat.com>
55497
55498         * users.txt: Add gtk-vnc.
55499
55500 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55501
55502         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55503         rotate amounts.
55504
55505         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55506         required for 16-bit and 8-bit rotates.
55507         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55508         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55509         UINT8_MAX instead of hard-coded constants.
55510         Suggested by Paul Eggert.
55511
55512 2008-09-07  Bruno Haible  <bruno@clisp.org>
55513
55514         * tests/test-striconveh.c (main): Check behaviour when converting from
55515         UTF-7.
55516
55517         Make striconveh work better with stateful encodings.
55518         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55519         that iconv does not increment the inptr when returning -1/EINVAL.
55520
55521 2008-09-07  Bruno Haible  <bruno@clisp.org>
55522
55523         * build-aux/config.rpath: Update according to libtool-2.2.6.
55524         * build-aux/config.libpath: Likewise.
55525
55526 2008-09-06  Bruno Haible  <bruno@clisp.org>
55527
55528         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55529         * lib/freadptr.c (freadptr): Likewise.
55530         * lib/freadseek.c (freadptrinc): Likewise.
55531         Reported by Simon Josefsson.
55532
55533 2008-09-06  Bruno Haible  <bruno@clisp.org>
55534
55535         * modules/freadptr (License): Change to LGPLv2+.
55536         * modules/freadseek (License): Likewise.
55537         Suggested by Eric Blake.
55538
55539         * modules/memchr2 (License): Change to LGPLv2+.
55540         Approved by Eric Blake.
55541
55542 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55543             Bruno Haible  <bruno@clisp.org>
55544
55545         Make gnulib-tool work with native 'sed' on AIX.
55546         * gnulib-tool (sed_noop): New variable.
55547         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55548         func_add_or_update, func_create_testdir): Use it to initialize sed
55549         script variables.
55550         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55551
55552 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55553             Bruno Haible  <bruno@clisp.org>
55554
55555         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55556         also works after #include directives.
55557
55558 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
55559
55560         getdate.y: reject an out-of-range timezone value
55561         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55562         the range [-24...+24].  When specified with only one or two digits,
55563         * tests/test-getdate.c: Tests for the fix.
55564         * doc/getdate.texi: Document this change.
55565
55566 2008-09-03  Bruno Haible  <bruno@clisp.org>
55567
55568         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55569
55570 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55571
55572         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55573         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55574         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55575         Blake <ebb9@byu.net>.
55576
55577         * tests/test-bitrotate.c: Add more test vectors.
55578
55579 2008-09-02  Eric Blake  <ebb9@byu.net>
55580
55581         vasnprintf-posix: handle large precision via %.*d
55582         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55583         when handling it ourselves.
55584         * tests/test-vasnprintf-posix.c (test_function): Add test.
55585         * tests/test-snprintf-posix.h (test_function): Likewise.
55586         * tests/test-sprintf-posix.h (test_function): Likewise.
55587         * tests/test-vasprintf-posix.c (test_function): Likewise.
55588         Reported by Alain Guibert.
55589
55590 2008-09-01  Eric Blake  <ebb9@byu.net>
55591
55592         c-stack: make configure-time check more robust
55593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55594         successful sigaction call.
55595         Reported by Tom G. Christensen.
55596
55597 2008-09-01  Bruno Haible  <bruno@clisp.org>
55598
55599         New module 'findprog-lgpl'.
55600         * modules/findprog-lgpl: New file.
55601         * lib/findprog-lgpl.c: New file.
55602         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55603         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55604         to decide whether to use strdup or xstrdup, concatenated_filename or
55605         xconcatenated_filename.
55606
55607 2008-09-01  Bruno Haible  <bruno@clisp.org>
55608
55609         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55610         'xconcat-filename' (GPL).
55611         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55612         (License): Change to LGPLv2+.
55613         * modules/xconcat-filename: New file.
55614         * lib/concat-filename.h (concatenated_filename): Change specification.
55615         (xconcatenated_filename): New declaration.
55616         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55617         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55618         memory situations.
55619         * lib/xconcat-filename.c: New file.
55620         * NEWS: Mention the change.
55621         * lib/findprog.c: Include concat-filename.h, not filename.h.
55622         (find_in_path): Use xconcatenated_filename instead of
55623         concatenated_filename.
55624         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55625         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55626         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55627         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55628         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55629         instead of concatenated_filename.
55630         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55631         (execute_java_class): Use xconcatenated_filename instead of
55632         concatenated_filename.
55633         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55634         * modules/javacomp (Depends-on): Likewise.
55635         * modules/javaexec (Depends-on): Likewise.
55636
55637 2008-09-01  Bruno Haible  <bruno@clisp.org>
55638
55639         Split module 'filename' into 'filename' and 'concat-filename'.
55640         * modules/filename: Keep only lib/filename.h.
55641         (License): Change to LGPLv2+.
55642         * modules/concat-filename: New file, extracted from modules/filename.
55643         * lib/filename.h (concatenated_filename): Remove declaration.
55644         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55645         * lib/concat-filename.c: Include concat-filename.h.
55646         * NEWS: Mention the change.
55647
55648 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55649
55650         * lib/bitrotate.h (rotl8, rotr8): Add.
55651
55652         * modules/bitrotate (configure.ac): Need
55653         AC_REQUIRE([AC_C_INLINE]).
55654         (Description): Mention stdint.h.  Reported by Bruno Haible
55655         <bruno@clisp.org>.
55656
55657         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55658         Paolo Bonzini <bonzini@gnu.org>.
55659
55660 2008-08-31  Bruno Haible  <bruno@clisp.org>
55661
55662         Assume Solaris specific bi-arch conventions on Solaris systems.
55663         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55664         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55665         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55666         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55667         like acl_libdirstem.
55668         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55669         acl_libdirstem.
55670         * NEWS: Mention the change.
55671         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55672
55673 2008-08-31  Jim Meyering  <meyering@redhat.com>
55674
55675         * lib/strftime.h: Add comments describing the two added arguments.
55676
55677         remove duplicate #include directives
55678         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55679         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55680
55681 2008-08-31  Bruno Haible  <bruno@clisp.org>
55682
55683         New module 'sigpipe-die'.
55684         * modules/sigpipe-die: New file.
55685         * lib/sigpipe-die.h: New file.
55686         * lib/sigpipe-die.c: New file.
55687         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55688
55689 2008-08-31  Bruno Haible  <bruno@clisp.org>
55690
55691         Don't override previously installed signal handlers.
55692         * lib/fatal-signal.c (saved_sigactions): New variable.
55693         (uninstall_handlers): Reset the signal to the saved handler, not
55694         to SIG_DFL (except when ignored).
55695         (install_handlers): Save the previous handlers.
55696
55697 2008-08-30  Bruno Haible  <bruno@clisp.org>
55698
55699         * gnulib-tool (func_reset_sigpipe): New function.
55700         (func_get_automake_snippet, func_modules_transitive_closure,
55701         func_import): Invoke it before a join command that reads from stdin,
55702         to avoid "echo: write error: Broken pipe" error messages on stderr.
55703         Reported by Sam Steingold <sds@gnu.org>.
55704
55705 2008-08-30  Bruno Haible  <bruno@clisp.org>
55706
55707         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55708         Code copied from m4/open.m4.
55709         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55710         access and the filename ends in a slash. Code copied from lib/open.c.
55711         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55712         * tests/test-fopen.c (main): Check against bug with trailing slash.
55713
55714 2008-08-29  Bruno Haible  <bruno@clisp.org>
55715
55716         Avoid some "gcc -pedantic" warnings.
55717         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55718         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55719         * lib/dirent.in.h: Likewise.
55720         * lib/fcntl.in.h: Likewise.
55721         * lib/float.in.h: Likewise.
55722         * lib/iconv.in.h: Likewise.
55723         * lib/inttypes.in.h: Likewise.
55724         * lib/locale.in.h: Likewise.
55725         * lib/math.in.h: Likewise.
55726         * lib/netinet_in.in.h: Likewise.
55727         * lib/search.in.h: Likewise.
55728         * lib/signal.in.h: Likewise.
55729         * lib/stdarg.in.h: Likewise.
55730         * lib/stdint.in.h: Likewise.
55731         * lib/stdio.in.h: Likewise.
55732         * lib/stdlib.in.h: Likewise.
55733         * lib/string.in.h: Likewise.
55734         * lib/strings.in.h: Likewise.
55735         * lib/sys_select.in.h: Likewise.
55736         * lib/sys_socket.in.h: Likewise.
55737         * lib/sys_stat.in.h: Likewise.
55738         * lib/sys_time.in.h: Likewise.
55739         * lib/sysexits.in.h: Likewise.
55740         * lib/time.in.h: Likewise.
55741         * lib/unistd.in.h: Likewise.
55742         * lib/wchar.in.h: Likewise.
55743         * lib/wctype.in.h: Likewise.
55744         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55745         * modules/fchdir (Makefile.am): Likewise.
55746         * modules/fcntl (Makefile.am): Likewise.
55747         * modules/float (Makefile.am): Likewise.
55748         * modules/iconv_open (Makefile.am): Likewise.
55749         * modules/inttypes (Makefile.am): Likewise.
55750         * modules/locale (Makefile.am): Likewise.
55751         * modules/math (Makefile.am): Likewise.
55752         * modules/netinet_in (Makefile.am): Likewise.
55753         * modules/search (Makefile.am): Likewise.
55754         * modules/signal (Makefile.am): Likewise.
55755         * modules/stdarg (Makefile.am): Likewise.
55756         * modules/stdint (Makefile.am): Likewise.
55757         * modules/stdio (Makefile.am): Likewise.
55758         * modules/stdlib (Makefile.am): Likewise.
55759         * modules/string (Makefile.am): Likewise.
55760         * modules/strings (Makefile.am): Likewise.
55761         * modules/sys_select (Makefile.am): Likewise.
55762         * modules/sys_socket (Makefile.am): Likewise.
55763         * modules/sys_stat (Makefile.am): Likewise.
55764         * modules/sys_time (Makefile.am): Likewise.
55765         * modules/sysexits (Makefile.am): Likewise.
55766         * modules/time (Makefile.am): Likewise.
55767         * modules/unistd (Makefile.am): Likewise.
55768         * modules/wchar (Makefile.am): Likewise.
55769         * modules/wctype (Makefile.am): Likewise.
55770         Reported by Reuben Thomas <rrt@sc3d.org>.
55771
55772 2008-08-29  Bruno Haible  <bruno@clisp.org>
55773
55774         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55775         any more.
55776
55777 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55778
55779         * MODULES.html.sh (Misc): Add bitrotate.
55780
55781         * modules/bitrotate: New file.
55782
55783         * lib/bitrotate.h: New file.
55784
55785         * modules/bitrotate-tests: New file.
55786
55787         * tests/test-bitrotate.c: New file.
55788
55789         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55790         on the bitrotate module.
55791
55792         * lib/arctwo.c: Use new bitrotate module.
55793
55794 2008-08-29  Jim Meyering  <meyering@redhat.com>
55795
55796         bootstrap: merge changes from coreutils
55797         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55798         of copied files.  Remove a kludge, now that this is fixed.
55799         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55800         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55801         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55802
55803 2008-08-29  Bruno Haible  <bruno@clisp.org>
55804
55805         * MODULES.html.sh: Remove --cvs-urls option.
55806
55807 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55808
55809         maint.mk: adjust to file name change
55810         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55811
55812 2008-08-28  Jim Meyering  <meyering@redhat.com>
55813
55814         * modules/getndelim2 (License): Relicense to LGPLv2+.
55815         Approved by Richard Stallman for the version of 1995, and by
55816         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55817
55818 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55819
55820         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55821         dummy if one is not available.  Do not touch them if
55822         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55823         (getc_maybe_unlocked): New.
55824         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55825
55826 2008-08-26  Eric Blake  <ebb9@byu.net>
55827
55828         doc/INSTALL: resync from autoconf
55829         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55830         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55831         moving...
55832         * install.texi [!autoconf]: ...here.  Resync from autoconf.
55833         * INSTALL: Regenerate.
55834         * INSTALL.ISO: New file.
55835         * INSTALL.UTF-8: Likewise.
55836
55837 2008-08-26  Jim Meyering  <meyering@redhat.com>
55838
55839         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
55840         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
55841         these definitions conditional, so that they may be overridden, too.
55842
55843 2008-08-26  Bruno Haible  <bruno@clisp.org>
55844
55845         Generate INSTALL file variants with prettier quotes.
55846         * doc/Makefile (INSTALL_PRELUDE): New macro.
55847         (INSTALL): Use it.
55848         (INSTALL.ISO, INSTALL.UTF-8): New rules.
55849
55850 2008-08-26  Bruno Haible  <bruno@clisp.org>
55851
55852         Run makeinfo in an English locale.
55853         * doc/Makefile (MAKEINFO): New variable.
55854
55855 2008-08-26  Bruno Haible  <bruno@clisp.org>
55856
55857         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
55858         Suggested by Eric Blake.
55859
55860 2008-08-25  Bruno Haible  <bruno@clisp.org>
55861
55862         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
55863
55864 2008-08-25  Eric Blake  <ebb9@byu.net>
55865
55866         c-stack: test that stack overflow can be caught
55867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
55868         that platform allows handling stack overflow; at least OS/2 EMX
55869         has sigaltstack, but crashes before transferring control to
55870         handler on stack overflow.
55871         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
55872         check for HAVE_STACK_OVERFLOW_HANDLING.
55873         Reported by Elbert Pol.
55874
55875 2008-08-25  Bruno Haible  <bruno@clisp.org>
55876
55877         * doc/posix-functions/strftime.texi: Fix description of strftime
55878         module.
55879
55880 2008-08-24  Bruno Haible  <bruno@clisp.org>
55881
55882         * tests/uniwidth/test-uc_width2.c: New file.
55883         * tests/uniwidth/test-uc_width2.sh: New file.
55884         * modules/uniwidth/width-tests (Files): Add the new files.
55885         (TESTS): Add uniwidth/test-uc_width2.sh.
55886         (TESTS_ENVIRONMENT): New variable.
55887         (check_PROGRAMS): Add test-uc_width2.
55888         (test_uc_width2_SOURCES): New variable.
55889
55890         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
55891         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
55892         not 0x00AB.
55893         Reported by Alexander V. Lukyanov <lav@netis.ru>.
55894
55895 2008-08-22  Eric Blake  <ebb9@byu.net>
55896
55897         test-lock, test-tls: mention why a test is skipped
55898         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
55899         skipped.
55900         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
55901
55902         count-one-bits: relax license
55903         * modules/count-one-bits (License): Relicense to LGPLv2+.
55904         Suggested by Ludovic Courtès, approved by Ben Pfaff.
55905
55906 2008-08-22  Andreas Schwab  <schwab@suse.de>
55907
55908         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55909         Remove spurious space in assignment.
55910
55911 2008-08-21  Simon Josefsson  <simon@josefsson.org>
55912
55913         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
55914         Paul Eggert <eggert@CS.UCLA.EDU>.
55915
55916 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
55917
55918         * modules/gettext: Add m4/threadlib.m4.
55919
55920 2008-08-19  Eric Blake  <ebb9@byu.net>
55921
55922         test-c-stack: fix compilation failure on FreeBSD 5.0
55923         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
55924         headers before <sys/resource.h>.
55925         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
55926         the bug.
55927         Reported by Nelson H. F. Beebe.
55928
55929         strverscmp: migrate from "strverscmp.h" to <string.h>
55930         * modules/string (Makefile.am): Add new hooks.
55931         * modules/strverscmp (Files): Remove strverscmp.h.
55932         (Depends-on): Add string.
55933         (configure.ac): Add indicator.
55934         (Include): Mention new header.
55935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
55936         defaults.
55937         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
55938         results.
55939         * lib/strverscmp.h: Delete.
55940         * lib/string.in.h (strverscmp): Provide declaration, when needed.
55941         * tests/test-strverscmp.c (includes): Adjust client.
55942         * lib/check-version.c (includes): Likewise.
55943         * NEWS: Document the change.
55944
55945         strverscmp: add unit test
55946         * modules/strverscmp-tests: New file.
55947         * tests/test-strverscmp.c: Likewise.
55948
55949 2008-08-19  Simon Josefsson  <simon@josefsson.org>
55950
55951         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
55952         regarding Windows crypto stuff, from Mono.
55953
55954 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
55955
55956         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
55957         if present, for intel RND.  Return error on failures.
55958
55959 2008-08-18  Ben Pfaff  <blp@gnu.org>
55960
55961         gitlog-to-changelog: give better diagnostic for failed pipe-open
55962         * build-aux/gitlog-to-changelog: Improve error message: suggest
55963         that the version of Git may be too old.
55964
55965 2008-08-18  Simon Josefsson  <simon@josefsson.org>
55966
55967         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
55968         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
55969
55970 2008-08-18  Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
55973         pthread_in_use().
55974
55975 2008-08-18  Bruno Haible  <bruno@clisp.org>
55976
55977         * lib/glthread/threadlib.c: Include <pthread.h>.
55978
55979 2008-08-18  Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55982         glthread_recursive_lock_* macros.
55983         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55984         Fix syntax error.
55985
55986 2008-08-18  Bruno Haible  <bruno@clisp.org>
55987
55988         * lib/glthread/thread.c: Avoid forcing a context switch right after
55989         thread creation.
55990
55991 2008-08-17  Bruno Haible  <bruno@clisp.org>
55992
55993         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55994         * lib/glthread/thread.h: Provide Win32 specific implementation.
55995         * modules/thread (Files): Add lib/glthread/thread.c.
55996         (Depends-on): Add lock.
55997         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55998
55999 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56000
56001         New module 'yield'.
56002         * modules/yield: New file.
56003         * lib/glthread/yield.h: New file.
56004         * m4/yield.m4: New file.
56005         * MODULES.html.sh (Multithreading): Add yield.
56006
56007 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56008
56009         New module 'thread'.
56010         * modules/thread: New file.
56011         * lib/glthread/thread.h: New file.
56012         * m4/thread.m4: New file.
56013         * MODULES.html.sh (Multithreading): Add thread.
56014
56015 2008-08-17  Bruno Haible  <bruno@clisp.org>
56016
56017         * lib/glthread/lock.h: Include <stdlib.h> always.
56018         * lib/glthread/tls.h: Likewise.
56019         * lib/glthread/cond.h: Likewise.
56020
56021 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56022
56023         New module 'cond'.
56024         * modules/cond: New file.
56025         * lib/glthread/cond.h: New file.
56026         * lib/glthread/cond.c: New file.
56027         * m4/cond.m4: New file.
56028         * MODULES.html.sh (Multithreading): Add cond.
56029
56030 2008-08-16  Eric Blake  <ebb9@byu.net>
56031
56032         c-stack: fix regression on Irix 5.3 from 2008-06-21
56033         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56034         sa_sigaction...
56035         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56036         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56037         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56038         * modules/signal (Makefile.am): Use the value.
56039         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56040         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56041         * doc/posix-headers/signal.texi (signal.h): Document this
56042         portability issue.
56043         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56044         Reported by Tom G. Christensen.
56045
56046 2008-08-17  Bruno Haible  <bruno@clisp.org>
56047
56048         New module 'threadlib'.
56049         * modules/threadlib: New file.
56050         * lib/glthread/threadlib.c: New file, extracted from
56051         lib/glthread/lock.c.
56052         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56053         functions.
56054         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56055         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56056         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56057         macros.
56058         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56059         (gl_DISABLE_THREADS): Remove macro.
56060         * modules/lock (Files): Remove build-aux/config.rpath.
56061         (Depends-on): Remove havelib. Add threadlib.
56062         (configure.ac-early): Remove section.
56063         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56064         * modules/tls (Depends-on): Remove lock. Add threadlib.
56065         (Link): New section, copied from threadlib.
56066         * MODULES.html.sh (Multithreading): Add threadlib.
56067
56068 2008-08-14  Bruno Haible  <bruno@clisp.org>
56069
56070         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56071         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56072         glthread_rwlock_unlock, glthread_rwlock_destroy,
56073         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56074         glthread_recursive_lock_destroy): Define as macros always.
56075         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56076         glthread_lock_lock.
56077         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56078         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56079         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56080         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56081         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56082         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56083         (glthread_recursive_lock_lock_func): Renamed from
56084         glthread_recursive_lock_lock.
56085         (glthread_recursive_lock_unlock_func): Renamed from
56086         glthread_recursive_lock_unlock.
56087         (glthread_recursive_lock_destroy_func): Renamed from
56088         glthread_recursive_lock_destroy.
56089
56090 2008-08-14  Bruno Haible  <bruno@clisp.org>
56091
56092         * lib/glthread/lock.h: Renamed from lib/lock.h.
56093         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56094         * lib/glthread/tls.h: Renamed from lib/tls.h.
56095         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56096         * lib/fstrcmp.c: Update includes.
56097         * lib/strsignal.c: Update includes.
56098         * modules/lock (Files, Makefile.am): Update.
56099         (Include): Change to "glthread/lock.h".
56100         * modules/tls (Files, Makefile.am): Update.
56101         (Include): Change to "glthread/tls.h".
56102         * tests/test-lock.c: Update includes.
56103         * tests/test-tls.c: Update includes.
56104         * NEWS: Mention the renamed header files.
56105
56106 2008-08-11  Jim Meyering  <meyering@redhat.com>
56107
56108         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56109
56110 2008-08-11  Eric Blake  <ebb9@byu.net>
56111
56112         test-c-stack: avoid C99-ism
56113         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56114         before statement.
56115         Reported by Alain Guibert.
56116
56117 2008-08-10  Jim Meyering  <meyering@redhat.com>
56118
56119         ensure that return value of uinttostr et al are not ignored
56120         * lib/inttostr.h (__GNUC_PREREQ): Define.
56121         (__attribute_warn_unused_result__): Define.
56122         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56123
56124 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56125
56126         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56127         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56128
56129 2008-08-07  Jim Meyering  <meyering@redhat.com>
56130
56131         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56132
56133         * modules/mkstemp (License): Relicense under LGPLv2+.
56134         * modules/tempname (License): Likewise.
56135
56136 2008-08-06  Bruno Haible  <bruno@clisp.org>
56137
56138         * lib/poll.c (poll): Further micro-optimization.
56139
56140 2008-08-06  Jim Meyering  <meyering@redhat.com>
56141
56142         inet_pton.c: use locale-independent tolower
56143         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56144         (inet_pton6): Use c_tolower rather than tolower.
56145         * modules/inet_pton (Depends-on): Add c-ctype.
56146
56147 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56148
56149         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56150         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56151
56152 2008-08-06  Jim Meyering  <meyering@redhat.com>
56153
56154         * modules/inet_pton (License): Relicense under LGPLv2+.
56155
56156 2008-08-03  Bruno Haible  <bruno@clisp.org>
56157
56158         Additional non-aborting API for lock and tls.
56159         * lib/lock.h: Include <errno.h>.
56160         (glthread_lock_init): New macro/function.
56161         (gl_lock_init): Define as wrapper around glthread_lock_init.
56162         (glthread_lock_lock): New macro/function.
56163         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56164         (glthread_lock_unlock): New macro/function.
56165         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56166         (glthread_lock_destroy): New macro/function.
56167         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56168         (glthread_rwlock_init): New macro/function.
56169         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56170         (glthread_rwlock_rdlock): New macro/function.
56171         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56172         (glthread_rwlock_wrlock): New macro/function.
56173         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56174         (glthread_rwlock_unlock): New macro/function.
56175         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56176         (glthread_rwlock_destroy): New macro/function.
56177         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56178         (glthread_recursive_lock_init): New macro/function.
56179         (gl_recursive_lock_init): Define as wrapper around
56180         glthread_recursive_lock_init.
56181         (glthread_recursive_lock_lock): New macro/function.
56182         (gl_recursive_lock_lock): Define as wrapper around
56183         glthread_recursive_lock_lock.
56184         (glthread_recursive_lock_unlock): New macro/function.
56185         (gl_recursive_lock_unlock): Define as wrapper around
56186         glthread_recursive_lock_unlock.
56187         (glthread_recursive_lock_destroy): New macro/function.
56188         (gl_recursive_lock_destroy): Define as wrapper around
56189         glthread_recursive_lock_destroy.
56190         (glthread_once): New macro/function.
56191         (gl_once): Define as wrapper around glthread_once.
56192         Update function declarations.
56193         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56194         glthread_rwlock_init. Return error code.
56195         (glthread_rwlock_rdlock_multithreaded): Renamed from
56196         glthread_rwlock_rdlock. Return error code.
56197         (glthread_rwlock_wrlock_multithreaded): Renamed from
56198         glthread_rwlock_wrlock. Return error code.
56199         (glthread_rwlock_unlock_multithreaded): Renamed from
56200         glthread_rwlock_unlock. Return error code.
56201         (glthread_rwlock_destroy_multithreaded): Renamed from
56202         glthread_rwlock_destroy. Return error code.
56203         (glthread_recursive_lock_init_multithreaded): Renamed from
56204         glthread_recursive_lock_init. Return error code.
56205         (glthread_recursive_lock_lock_multithreaded): Renamed from
56206         glthread_recursive_lock_lock. Return error code.
56207         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56208         glthread_recursive_lock_unlock. Return error code.
56209         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56210         glthread_recursive_lock_destroy. Return error code.
56211         (glthread_once_call): Make static.
56212         (glthread_once_multithreaded): Renamed from glthread_once.
56213         * lib/tls.h: Include <errno.h>.
56214         (glthread_tls_key_init): New macro/function.
56215         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56216         (glthread_tls_set): New macro/function.
56217         (gl_tls_set): Define as wrapper around glthread_tls_set.
56218         (glthread_tls_key_destroy): New macro/function.
56219         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56220         Update function declarations.
56221         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56222         glthread_tls_get.
56223         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56224
56225 2008-08-04  Eric Blake  <ebb9@byu.net>
56226
56227         gnumakefile: use space, not TAB, outside of targets
56228         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56229
56230 2008-08-02  Jim Meyering  <meyering@redhat.com>
56231
56232         getdate.y: avoid locale-dependent date parsing failure
56233         In Turkish locales, getdate would fail to recognize keywords
56234         containing a lowercase "i".  The solution is not to rely on
56235         locale-sensitive case-conversion.
56236         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56237         (lookup_word): Use c_toupper in place of toupper.
56238         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56239         Reported by Vefa Bicakci <bicave@superonline.com> in
56240         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56241         * modules/getdate (Depends-on): Add c-ctype.
56242
56243 2008-08-02  Bruno Haible  <bruno@clisp.org>
56244
56245         * gnulib-tool (func_import): When updating or creating a .gitignore
56246         file, prepend each added line with a slash, and ignore leading slashes
56247         from the existing lines.
56248         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56249
56250 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56251
56252         Portability fix for GNU make 3.79.1.
56253         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56254         versions do not understand.
56255
56256 2008-08-01  Bruno Haible  <bruno@clisp.org>
56257
56258         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56259         * tests/test-isnanf.h (zero): New variable.
56260         (main): Avoid literal -0.0f.
56261         * tests/test-isnand.h (zero): New variable.
56262         (main): Avoid literal -0.0.
56263         * tests/test-isnanl.h (zero): New variable.
56264         (main): Avoid literal -0.0L.
56265         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56266         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56267         -0.0, -0.0L.
56268         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56269         (test_signbitd): Avoid literal -0.0.
56270         (test_signbitl): Avoid literal -0.0L.
56271         * tests/test-ceilf1.c (zero): New variable.
56272         (main): Avoid literal -0.0f.
56273         * tests/test-ceill.c (zero): New variable.
56274         (main): Avoid literal -0.0L.
56275         * tests/test-floorf1.c (zero): New variable.
56276         (main): Avoid literal -0.0f.
56277         * tests/test-floorl.c (zero): New variable.
56278         (main): Avoid literal -0.0L.
56279         * tests/test-roundf1.c (zero): New variable.
56280         (main): Avoid literal -0.0f.
56281         * tests/test-round1.c (zero): New variable.
56282         (main): Avoid literal -0.0.
56283         * tests/test-roundl.c (zero): New variable.
56284         (main): Avoid literal -0.0L.
56285         * tests/test-truncf1.c (zero): New variable.
56286         (main): Avoid literal -0.0f.
56287         * tests/test-trunc1.c (zero): New variable.
56288         (main): Avoid literal -0.0.
56289         * tests/test-truncl.c (zero): New variable.
56290         (main): Avoid literal -0.0L.
56291         * tests/test-frexp.c (zero): New variable.
56292         (main): Avoid literal -0.0.
56293         * tests/test-frexpl.c (zero): New variable.
56294         (main): Avoid literal -0.0L.
56295         * tests/test-ldexpl.c (zero): New variable.
56296         (main): Avoid literal -0.0L.
56297         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56298         (zerod, zerol): New variables.
56299         (test_function): Avoid literals -0.0, -0.0L.
56300         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56301         (zerod, zerol): New variables.
56302         (test_function): Avoid literals -0.0, -0.0L.
56303         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56304         (zerod, zerol): New variables.
56305         (test_function): Avoid literals -0.0, -0.0L.
56306         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56307         (zerod, zerol): New variables.
56308         (test_function): Avoid literals -0.0, -0.0L.
56309         * tests/test-strtod.c (zero): New variable.
56310         (main): Avoid literal -0.0.
56311         Reported by Jonathan C. Patschke <jp@centtech.com>.
56312
56313 2008-07-31  Jim Meyering  <meyering@redhat.com>
56314
56315         sha256.h: correct definition of SHA224_DIGEST_SIZE
56316         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56317         Reported by Paulie Pena IV <paulie4@gmail.com>.
56318         Define as 224 / 8, rather than as a literal.
56319         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56320         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56321         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56322
56323 2008-07-31  Bruno Haible  <bruno@clisp.org>
56324
56325         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56326         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56327         Reported by Jonathan Patschke <jp@centtech.com>.
56328
56329 2008-07-31  Bruno Haible  <bruno@clisp.org>
56330
56331         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56332         Reported by Paolo Bonzini <bonzini@gnu.org>.
56333
56334 2008-07-30  Eric Blake  <ebb9@byu.net>
56335
56336         test-strtod: allow compilation without -lm
56337         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56338         Reported by Dennis Clarke <blastwave@gmail.com>.
56339
56340 2008-07-28  Jim Meyering  <meyering@redhat.com>
56341
56342         bootstrap: work also when there are no .po files in po/
56343         * build-aux/bootstrap (update_po_files): Complete the change
56344         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56345
56346 2008-07-27  Jim Meyering  <meyering@redhat.com>
56347
56348         * users.txt: Add zile.
56349
56350 2008-07-26  Ben Pfaff  <blp@gnu.org>
56351
56352         Add missing dependencies on new m4/exponent[fdl].m4 files.
56353         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56354         * modules/isnand-nolibm: Add m4/exponentd.m4.
56355         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56356         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56357         m4/isnan[fdl].m4, because the macros actually used moved.
56358         Reported by Jim Meyering.
56359
56360 2008-07-14  Ben Pfaff  <blp@gnu.org>
56361
56362         Add isinf module.
56363         * lib/isinf.c: New file.
56364         * lib/math.in.h: Define isinf macro if we have decided to replace
56365         it.
56366         * m4/isinf.m4: New file.
56367         * m4/math_h.m4: Initialize and substitute variables for isinf
56368         module.
56369         * modules/isinf: New file.
56370         * modules/isinf-tests: New file.
56371         * modules/math: Add substitutions for new module.
56372         * tests/test-isinf.c: New file.
56373         * doc/posix-functions/isinf.texi: Mention new module.
56374         * MODULES.html.sh: Mention new module.
56375
56376 2008-07-14  Ben Pfaff  <blp@gnu.org>
56377
56378         Factor out some macros for use by additional modules.
56379         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56380         exponentf.m4.
56381         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56382         exponentd.m4.
56383         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56384         file exponentl.m4.
56385         * m4/exponentf.m4: New file.
56386         * m4/exponentd.m4: New file.
56387         * m4/exponentl.m4: New file.
56388         * modules/isnanf: Use new file m4/exponentf.m4.
56389         * modules/isnand: Use new file m4/exponentd.m4.
56390         * modules/isnanl: Use new file m4/exponentl.m4.
56391
56392 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56393
56394         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56395         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56396         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56397         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56398
56399         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56400         readlink on platforms without PATH_MAX.
56401
56402 2008-07-21  Eric Blake  <ebb9@byu.net>
56403
56404         Warn, not fail, on stale version.
56405         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56406
56407         Don't allow installation with stale devel version number.
56408         * top/GNUmakefile (_is-install-target): New macro.
56409         (_curr-ver): Forbid installation with stale version number.
56410
56411 2008-07-20  Bruno Haible  <bruno@clisp.org>
56412
56413         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56414         TESTS_ENVIRONMENT.
56415         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56416
56417 2008-07-20  Bruno Haible  <bruno@clisp.org>
56418
56419         * lib/c-stack.h (c_stack_action): Add documentation.
56420         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56421
56422 2008-07-20  Bruno Haible  <bruno@clisp.org>
56423
56424         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56425         * modules/readlink (License): Likewise.
56426
56427 2008-07-17  Eric Blake  <ebb9@byu.net>
56428
56429         * modules/c-stack (Link): Fix typo.
56430
56431         Make c-stack use libsigsegv, when available.
56432         * modules/c-stack (Depends-on): Add libsigsegv.
56433         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56434         needed.
56435         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56436         (segv_handler, overflow_handler, c_stack_action)
56437         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56438         implementation when libsigsegv is available, but only when using
56439         the library is necessary.
56440         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56441         comment, explaining why XSI check fails on Linux.
56442         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56443         * tests/test-c-stack2.sh: Tweak skip message.
56444         * NEWS: Document new link-time requirements.
56445
56446 2008-07-16  Eric Blake  <ebb9@byu.net>
56447
56448         c-stack: Expose false positives when not using libsigsegv.
56449         * modules/c-stack-tests (Files): Expand test.
56450         * tests/test-c-stack.c (main): Add means to conditionally trigger
56451         non-overflow SIGSEGV.
56452         * tests/test-c-stack2.sh: New file.
56453
56454 2008-07-14  Bruno Haible  <bruno@clisp.org>
56455
56456         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56457         Reported by Eric Blake.
56458
56459 2008-07-14  Sam Steingold  <sds@gnu.org>
56460             Bruno Haible  <bruno@clisp.org>
56461
56462         New module libsigsegv.
56463         * modules/libsigsegv: New file.
56464         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56465         modifications.
56466         * MODULES.html.sh (Signal handling): New section.
56467
56468 2008-07-14  Bruno Haible  <bruno@clisp.org>
56469
56470         * modules/unictype/ctype-* (Description): Add the word "function".
56471         Improves the resulting doc in MODULES.html.
56472
56473 2008-07-12  Ben Pfaff  <blp@gnu.org>
56474
56475         Add longlong module.
56476         * modules/longlong: New file.
56477
56478 2008-07-12  Bruno Haible  <bruno@clisp.org>
56479
56480         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56481         to empty.
56482
56483 2008-07-10  Ben Pfaff  <blp@gnu.org>
56484
56485         Add isnan module.
56486         * doc/posix-functions/isnan.texi: Mention new module.
56487         * lib/math.in.h: Define isnan macro if we have decided to replace
56488         it.
56489         * m4/isnan.m4: New file.
56490         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56491         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56492         also.
56493         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56494         redundancy.
56495         * m4/math_h.m4: Initialize and substitute variables for isnan
56496         module.
56497         * modules/isnan: New file.
56498         * modules/isnan-tests: New file.
56499         * modules/math: Add substitutions for new module.
56500         * tests/test-isnan.c: New file.
56501         * MODULES.html.sh: Mention new module.
56502
56503 2008-07-10  Ben Pfaff  <blp@gnu.org>
56504
56505         Add isnanf module.
56506         * lib/isnanf.m4: New file.
56507         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56508         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56509         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56510         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56511         * modules/isnanf: New file.
56512         * modules/isnanf-tests: New file.
56513         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56514         files.
56515         * tests/test-isnanf-nolibm.c: factored most of its contents into
56516         new file tests/test-isnanf.h.
56517         * tests/test-isnanf.h: New file.
56518         * tests/test-isnanf.c: New file.
56519         * MODULES.html.sh: Mention new module.
56520         * doc/glibc-functions/isnanf.texi: Mention new module.
56521
56522 2008-07-10  Ben Pfaff  <blp@gnu.org>
56523
56524         Add isnand module.
56525         * lib/isnand.h: New file.
56526         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56527         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56528         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56529         functionality also.
56530         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56531         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56532         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56533         * modules/isnand: New file.
56534         * modules/isnand-tests: New file.
56535         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56536         files.
56537         * tests/test-isnand-nolibm.c: factored most of its contents into
56538         new file tests/test-isnand.h.
56539         * tests/test-isnand.h: New file.
56540         * tests/test-isnand.c: New file.
56541         * MODULES.html.sh: Mention new module.
56542
56543 2008-07-10  Ben Pfaff  <blp@gnu.org>
56544
56545         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56546         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56547         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56548         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56549         * modules/isnanf-nolibm: Update references to renamed files.
56550         * modules/isnand-nolibm: Likewise.
56551         * modules/isnanf-nolibm-tests: Likewise.
56552         * modules/isnand-nolibm-tests: Likewise.
56553         * lib/frexp.c: Likewise.
56554         * lib/isfinite.c: Likewise.
56555         * lib/signbitd.c: Likewise.
56556         * lib/signbitf.c: Likewise.
56557         * lib/vasnprintf.c: Likewise.
56558         * tests/test-ceilf1.c: Likewise.
56559         * tests/test-ceilf2.c: Likewise.
56560         * tests/test-floorf1.c: Likewise.
56561         * tests/test-floorf2.c: Likewise.
56562         * tests/test-frexp.c: Likewise.
56563         * tests/test-round1.c: Likewise.
56564         * tests/test-round2.c: Likewise.
56565         * tests/test-roundf1.c: Likewise.
56566         * tests/test-strtod.c: Likewise.
56567         * tests/test-trunc1.c: Likewise.
56568         * tests/test-trunc2.c: Likewise.
56569         * tests/test-truncf1.c: Likewise.
56570         * tests/test-truncf2.c: Likewise.
56571         * NEWS: Mention the renamed header files.
56572
56573 2008-07-11  Jim Meyering  <meyering@redhat.com>
56574
56575         vc-list-files: make the last-resort awk code more portable
56576         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56577         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56578         does not support it.
56579
56580 2008-07-10  Eric Blake  <ebb9@byu.net>
56581
56582         Work with tar's bootstrap.
56583         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56584         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56585         an m4 comment.
56586
56587 2008-07-09  Jim Meyering  <meyering@redhat.com>
56588
56589         posix-shell.m4: fix typo that made this test malfunction
56590         * m4/posix-shell.m4: Remove capitalization in variable name.
56591
56592 2008-07-08  Bruno Haible  <bruno@clisp.org>
56593
56594         * m4/onceonly.m4: Update comments.
56595         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56596
56597 2008-07-04  Jim Meyering  <meyering@redhat.com>
56598
56599         * users.txt: Add vc-dwim.
56600         (bison, coreutils): Use the gitweb URL.
56601
56602 2008-07-03  Jim Meyering  <meyering@redhat.com>
56603
56604         * users.txt: Add libffcall.  From Sam Steingold.
56605
56606 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
56607
56608         getdate.y: do not ignore TZ with relative day, month or year offset
56609         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56610         relative-date-handling, since otherwise, the latter would clobber the
56611         sole output (an updated Start value) of the tz-handling block.
56612         * tests/test-getdate.c: Tests for the fix
56613
56614 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56615
56616         Recognize 'foo_LIBRARIES += libgnu.a'.
56617         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56618         makefile snippet has already specified an installation location,
56619         also using '+='.
56620
56621 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
56622
56623         getdate.y: factor out common actions
56624         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56625         Use them in place of open-coded actions.
56626
56627 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56628
56629         Add self-test for getdate module.
56630         * modules/getdate-tests: New file.
56631         * tests/test-getdate.c: New file.
56632
56633 2008-06-29  Bruno Haible  <bruno@clisp.org>
56634
56635         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56636         .gitignore.
56637         Reported by Sylvain Beucler <beuc@beuc.net>.
56638
56639 2008-06-29  Bruno Haible  <bruno@clisp.org>
56640
56641         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56642         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56643
56644 2008-06-29  Bruno Haible  <bruno@clisp.org>
56645
56646         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56647         EXTRA_DIST.
56648         Reported by Sylvain Beucler <beuc@beuc.net>.
56649
56650 2008-06-26  Jim Meyering  <meyering@redhat.com>
56651
56652         make several modules depend on the "open" module
56653         This provides slightly increased consistency when opening-for-write
56654         the name of a non-directory spelled with a trailing slash.
56655         * modules/chdir-safer: Likewise.
56656         * modules/chown: Likewise.
56657         * modules/clean-temp: Likewise.
56658         * modules/copy-file: Likewise.
56659         * modules/fchdir: Likewise.
56660         * modules/fcntl-safer: Likewise.
56661         * modules/pipe: Likewise.
56662         * modules/utime: Likewise.
56663         Prompted by Eric Blake and Bruno Haible.
56664
56665 2008-06-24  Andreas Schwab  <schwab@suse.de>
56666
56667         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56668         literals can be used as initializers for global variables.
56669
56670 2008-06-23  Eric Blake  <ebb9@byu.net>
56671
56672         Make gnulib-cache.m4 easier to diff.
56673         * gnulib-tool (func_import): Allow newlines when reading cached
56674         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56675
56676 2008-06-23  Bruno Haible  <bruno@clisp.org>
56677
56678         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56679         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56680         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56681         m4/signalblocking.m4.
56682         (gl_PREREQ_SIGACTION): Don't invoke it.
56683         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56684         gl_PREREQ_SIG_HANDLER_H.
56685         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56686         Don't check for sigaction here.
56687
56688 2008-06-23  Bruno Haible  <bruno@clisp.org>
56689
56690         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56691         (install_handlers): Don't set the SA_RESETHAND flag.
56692
56693 2008-06-23  Bruno Haible  <bruno@clisp.org>
56694
56695         * m4/sigaction.m4: Comment fixes.
56696         * lib/signal.in.h: Likewise.
56697
56698 2008-06-23  Eric Blake  <ebb9@byu.net>
56699
56700         Fix typo.
56701         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56702
56703         Avoid SA_ namespace.
56704         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56705         Reported by Ralf Wildenhues.
56706
56707         Avoid test failure due to SA_RESTORER.
56708         * tests/test-sigaction.c (SA_MASK): New macro.
56709         (main): Avoid failing due to extension flags being set.
56710         Reported by Jim Meyering.
56711
56712         Revert use of sig-handler.h in sigprocmask.c.
56713         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56714         it requires the existence of struct sigaction.
56715         * lib/sigprocmask.c (handler_t): Restore typedef.
56716         (rpl_signal, old_handlers): Use local type.
56717
56718 2008-06-22  Bruno Haible  <bruno@clisp.org>
56719
56720         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56721         conditionally.
56722         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56723
56724 2008-06-22  Bruno Haible  <bruno@clisp.org>
56725
56726         * doc/posix-functions/siginterrupt.texi: Move note.
56727
56728         * lib/signal.in.h (SA_RESTART): New macro.
56729         * lib/sigaction.c: Update comment.
56730
56731         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56732
56733         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56734         (gl_PREREQ_SIGPROCMASK): Invoke it.
56735         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56736
56737         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56738
56739         * lib/sigprocmask.c: Update a comment.
56740
56741 2008-06-21  Eric Blake  <ebb9@byu.net>
56742
56743         Use sigaction module rather than signal().
56744         * modules/c-stack (Depends-on): Add sigaction.
56745         * modules/fatal-signal (Depends-on): Likewise.
56746         * modules/nanosleep (Depends-on): Likewise.
56747         * modules/sigprocmask (Files): Add sig-handler.h.
56748         * modules/sigaction (Files): Likewise.
56749         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56750         Eggert.
56751         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56752         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56753         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56754         (init_fatal_signals): Likewise.
56755         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56756         (siginterrupt): Delete fallback.
56757         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56758         instead.
56759         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56760         siginterrupt.
56761
56762         New module sigaction, for mingw.
56763         * modules/sigaction: New module...
56764         * modules/sigaction-tests: ...and its test.
56765         * m4/sigaction.m4: New file.
56766         * lib/sigaction.c: Likewise.
56767         * tests/test-sigaction.c: Likewise.
56768         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56769         * modules/signal (Makefile.am): Likewise.
56770         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56771         needed.
56772         * doc/posix-headers/signal.texi (signal.h): Mention provided
56773         types.
56774         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56775         that sigaction is preferable.
56776         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56777         module.
56778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56779         sigaction.
56780
56781         Improve robustness of sigprocmask by overriding signal.
56782         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56783         is in use.
56784         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56785         (SIGKILL, SIGSTOP): Provide fallbacks.
56786         (rpl_signal): Implement.
56787         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56788         signal can be called inside handlers.
56789
56790         Fix nanosleep module on mingw.
56791         * modules/nanosleep (Depends-on): Add sys_select.
56792         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56793
56794         Fix licensing of sigprocmask.
56795         * modules/raise (License): Relicense as LGPL.
56796
56797 2008-06-21  Bruno Haible  <bruno@clisp.org>
56798
56799         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56800         result if it contains question marks.
56801         Reported by Michael Geng <linux@michaelgeng.de>.
56802
56803 2008-06-19  Bruno Haible  <bruno@clisp.org>
56804
56805         Fix CVS-ism.
56806         * doc/gnulib.texi: Include updated-stamp.texi.
56807         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56808         (updated-stamp.texi): New rule.
56809         (gnulib.info): Depend on it.
56810         * doc/.gitignore: Add updated-stamp.texi.
56811         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56812
56813 2008-06-19  Bruno Haible  <bruno@clisp.org>
56814
56815         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56816         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56817
56818 2008-06-19  Eric Blake  <ebb9@byu.net>
56819
56820         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56821         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56822         Reported by Stepan Kasal.
56823
56824 2008-06-18  Bruno Haible  <bruno@clisp.org>
56825
56826         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56827         Reported by Eric Blake.
56828
56829 2008-06-18  Eric Blake  <ebb9@byu.net>
56830
56831         Work around cygwin 1.5.25 strsignal bug.
56832         * tests/test-strsignal.c: Allow for const char *.
56833         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
56834
56835 2008-06-18  Simon Josefsson  <simon@josefsson.org>
56836
56837         * users.txt: Update URL to article and add author/date
56838         information.
56839
56840 2008-06-17  Bruno Haible  <bruno@clisp.org>
56841
56842         New macro gl_DISABLE_THREADS.
56843         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
56844         if the user did not pass --enable-threads or --disable-threads option.
56845         (gl_DISABLE_THREADS): New macro.
56846         Reported by Eric Blake <ebb9@byu.net>.
56847
56848 2008-06-17  Bruno Haible  <bruno@clisp.org>
56849
56850         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
56851         when the macro ignores it.
56852         Based on a patch by Eric Blake <ebb9@byu.net>.
56853
56854 2008-06-17  Bruno Haible  <bruno@clisp.org>
56855
56856         * modules/tls (License): Change to LGPLv2+.
56857         Reported by Eric Blake.
56858
56859 2008-06-17  Eric Blake  <ebb9@byu.net>
56860
56861         Simplify c-stack prerequisites.
56862         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
56863         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
56864         no longer requires <ucontext.h> to exist.  Optimize setrlimit
56865         check.
56866         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
56867         <sys/resource.h>.
56868
56869         Move c-stack test into testsuite.
56870         * modules/c-stack-tests: New file.
56871         * lib/c-stack.c [DEBUG]: Move test program...
56872         * tests/test-c-stack.c: ...into this new file.  Skip rather than
56873         fail test if sigaltstack is lacking.
56874         * tests/test-c-stack.sh: New driver file.
56875
56876 2008-06-16  Eric Blake  <ebb9@byu.net>
56877
56878         Use raise module consistently.
56879         * modules/fatal-signal (Depends-on): Add raise.
56880         * modules/sigprocmask (Depends-on): Likewise.
56881         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
56882         * lib/sigprocmask.c (sigprocmask): Likewise.
56883         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56884         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
56885
56886         Fix compliance bug in sigpending.
56887         * lib/sigprocmask.c (sigpending): Return pending array via
56888         parameter, not return value.
56889
56890 2008-06-14  Eric Blake  <ebb9@byu.net>
56891
56892         Improve obstack-printf test code.
56893         * tests/test-obstack-printf.c (test_function): Fix comment, and
56894         simplify usage of obstack_* in macros.  Add a test for coverage.
56895         Reported by Bruno Haible.
56896
56897 2008-06-14  Bruno Haible  <bruno@clisp.org>
56898
56899         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
56900         array size as a constant, not as a const variable.
56901         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
56902         AC_USE_SYSTEM_EXTENSIONS.
56903         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
56904         Test whether the obstack_printf function actually exists.
56905         * modules/obstack-printf (Depends-on): Add extensions.
56906         (Include): Remove obstack.h.
56907         * modules/obstack-printf-posix (Depends-on): Add extensions.
56908         (Include): Remove obstack.h.
56909
56910 2008-06-13  Eric Blake  <ebb9@byu.net>
56911
56912         Add obstack-printf and obstack-printf-posix modules.
56913         * modules/obstack-printf: New file.
56914         * modules/obstack-printf-posix: Likewise.
56915         * MODULES.html.sh (Misc): Mention them.
56916         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
56917         Likewise.
56918         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
56919         Likewise.
56920         * modules/stdio (Makefile.am): Accomodate new modules.
56921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56922         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
56923         Declare.
56924         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
56925         functions.
56926         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
56927         (gl_REPLACE_OBSTACK_PRINTF): New macros
56928         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
56929         * tests/test-obstack-printf.c: New file.
56930         * modules/obstack-printf-tests: Likewise.
56931         * modules/obstack-printf-posix-tests: Likewise.
56932
56933 2008-06-11  Bruno Haible  <bruno@clisp.org>
56934
56935         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
56936         * lib/open.c: Include errno.h.
56937         (open): Fail when attempting to write to a file that has a trailing
56938         slash.
56939         * tests/test-open.c (main): Test against trailing slash bug.
56940         * doc/posix-functions/open.texi: Mention the trailing slash bug.
56941
56942 2008-06-10  Bruno Haible  <bruno@clisp.org>
56943
56944         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
56945         for $? to work inside the trap command, with various /bin/sh-s.
56946         * tests/test-vc-list-files-cvs.sh: Likewise.
56947
56948 2008-06-10  Bruno Haible  <bruno@clisp.org>
56949
56950         * lib/acl-internal.h: Don't include gettext.h here.
56951         * lib/set-mode-acl.c: Include gettext.h here.
56952         * lib/copy-acl.c: Likewise.
56953
56954 2008-06-10  Bruno Haible  <bruno@clisp.org>
56955
56956         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
56957         * lib/wait-process.c (wait_subprocess): Likewise.
56958         * lib/execute.h (execute): Add termsigp argument.
56959         * lib/execute.c (execute): Likewise.
56960         * lib/csharpcomp.c (compile_csharp_using_pnet,
56961         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
56962         * lib/csharpexec.c (execute_csharp_using_pnet,
56963         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
56964         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56965         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
56966         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
56967         is_jikes_present): Update.
56968         * lib/javaexec.c (execute_java_class): Update.
56969         * lib/javaversion.c (execute_and_read_line): Update.
56970         * NEWS: Document the changes.
56971         Reported by Eric Blake.
56972
56973 2008-06-10  Eric Blake  <ebb9@byu.net>
56974
56975         Add missing include.
56976         * tests/test-strstr.c (includes): Add <signal.h>.
56977         * tests/test-strcasestr.c (includes): Likewise.
56978         * tests/test-memmem.c (includes): Likewise.
56979
56980 2008-06-10  Bruno Haible  <bruno@clisp.org>
56981
56982         * lib/wait-process.c (wait_subprocess): Add an assertion.
56983
56984 2008-06-10  Bruno Haible  <bruno@clisp.org>
56985
56986         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56987
56988 2008-06-10  Bruno Haible  <bruno@clisp.org>
56989
56990         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56991         using alarm().
56992         * tests/test-strcasestr.c (main): Likewise.
56993         * tests/test-strstr.c (main): Likewise.
56994
56995 2008-06-09  Bruno Haible  <bruno@clisp.org>
56996
56997         Work around the Solaris 10 ACE ACLs ABI change.
56998         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56999         declare if ACL_NO_TRIVIAL is present.
57000         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57001         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57002         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57003         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57004         define if ACL_NO_TRIVIAL is present.
57005         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57006         and use the current ABI.
57007         (file_has_acl): Use same #if condition as elsewhere.
57008         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57009         in use, and use the current ABI.
57010         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57011         Reported by Jim Meyering.
57012
57013 2008-06-09  Eric Blake  <ebb9@byu.net>
57014
57015         Work around environments that (stupidly) ignore SIGALRM.
57016         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57017         before using alarm().
57018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57019         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57020         Reported by Ian Beckwith <ianb@erislabs.net>.
57021
57022         Produce autobuild blurb earlier in log.
57023         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57024
57025 2008-06-09  Jim Meyering  <meyering@redhat.com>
57026         and OndÅ™ej Vašík  <ovasik@redhat.com>
57027
57028         utimens.c: correct kernel bug work-around
57029         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57030         failure, not success, and the kernel bug we're trying to work
57031         around affects not just the utimensat call, but also the fallback
57032         futimens call.
57033         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57034         not success.
57035         [HAVE_FUTIMENS]: Use the same work-around, here.
57036
57037 2008-06-09  Jim Meyering  <meyering@redhat.com>
57038
57039         add more guards around definition of ACE_-related code
57040         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57041         ALLOW and ACE_OWNER are also defined.
57042
57043 2008-06-08  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/acl-internal.h: Add me as co-author.
57046         * lib/file-has-acl.c: Likewise.
57047         * lib/set-mode-acl.c: Likewise.
57048         * lib/copy-acl.c: Likewise.
57049
57050 2008-06-08  Bruno Haible  <bruno@clisp.org>
57051
57052         Add support for AIX ACLs.
57053         * lib/acl-internal.h (acl_nontrivial): New declaration.
57054         * lib/file-has-acl.c (acl_nontrivial): New function.
57055         (file_has_acl): Add implementation using AIX 4 ACL API.
57056         * lib/set-mode-acl.c (qset_acl): Likewise.
57057         * lib/copy-acl.c (qcopy_acl): Likewise.
57058
57059 2008-06-08  Bruno Haible  <bruno@clisp.org>
57060
57061         Add support for HP-UX ACLs.
57062         * lib/acl-internal.h (acl_nontrivial): New declaration.
57063         * lib/file-has-acl.c (acl_nontrivial): New function.
57064         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57065         * lib/set-mode-acl.c (qset_acl): Likewise.
57066         * lib/copy-acl.c (qcopy_acl): Likewise.
57067
57068 2008-06-08  Bruno Haible  <bruno@clisp.org>
57069
57070         Add support for Cygwin ACLs.
57071         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57072         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57073         the chmod_or_fchmod call.
57074         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57075
57076 2008-06-08  Bruno Haible  <bruno@clisp.org>
57077
57078         Fix bug with setuid modes in Solaris 10+ code.
57079         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57080         succeeded, when the mode contains some special bits.
57081
57082 2008-06-08  Bruno Haible  <bruno@clisp.org>
57083
57084         Add support for Solaris 7..10 ACLs.
57085         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57086         declarations.
57087         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57088         functions.
57089         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57090         * lib/set-mode-acl.c (qset_acl): Likewise.
57091         * lib/copy-acl.c (qcopy_acl): Likewise.
57092
57093 2008-06-08  Bruno Haible  <bruno@clisp.org>
57094
57095         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57096         declaration.
57097         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57098         (acl_access_nontrivial): Remove MacOS X case.
57099         (file_has_acl): Use acl_extended_nontrivial.
57100         * lib/copy-acl.c (qcopy_acl): Likewise.
57101
57102 2008-06-08  Bruno Haible  <bruno@clisp.org>
57103
57104         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57105
57106 2008-06-08  Jim Meyering  <meyering@redhat.com>
57107
57108         * modules/acl (Maintainer): Add Bruno Haible.
57109
57110 2008-06-07  Bruno Haible  <bruno@clisp.org>
57111
57112         Improve support for Tru64 ACLs.
57113         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57114         ACL on OSF/1.
57115
57116 2008-06-07  Bruno Haible  <bruno@clisp.org>
57117
57118         Add support for MacOS X ACLs.
57119         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57120         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57121         * lib/set-mode-acl.c (qset_acl): Likewise.
57122         * lib/copy-acl.c (qcopy_acl): Likewise.
57123
57124 2008-06-07  Bruno Haible  <bruno@clisp.org>
57125
57126         Fix memory leak introduced on 2008-05-22.
57127         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57128         use.
57129
57130 2008-06-07  Bruno Haible  <bruno@clisp.org>
57131
57132         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57133         to construct an empty ACL.
57134
57135 2008-06-07  Bruno Haible  <bruno@clisp.org>
57136
57137         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57138         precisely.
57139         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57140
57141 2008-06-07  Bruno Haible  <bruno@clisp.org>
57142
57143         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57144         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57145
57146 2008-06-07  Bruno Haible  <bruno@clisp.org>
57147
57148         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57149         regardless of POSIX.
57150         * doc/posix-functions/_longjmp.texi: Likewise.
57151         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57152         SystemV platform in this case.
57153
57154 2008-06-06  Eric Blake  <ebb9@byu.net>
57155
57156         Document abort() bugs.
57157         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57158
57159         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57160         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57161         sigsetjmp.
57162         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57163         siglongjmp, but only as a macro.
57164         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57165         is obsolete.
57166         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57167
57168         Tweak documentation to cover cygwin argz bugs.
57169         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57170         argz bug fix; no code change needed since no cygwin releases
57171         occurred between the last fix and the bug being tested.
57172         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57173         module and recently fixed cygwin bugs.
57174         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57175         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57176         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57177         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57178         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57179         Likewise.
57180         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57181         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57182         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57183         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57184         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57185         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57186         Likewise.
57187
57188         Avoid gcc warning on cygwin.
57189         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57190         !ACL_NO_TRIVIAL]: Avoid unused variable.
57191
57192 2008-06-05  Eric Blake  <ebb9@byu.net>
57193
57194         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57195         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57196         git-version-gen fails to come up with a version.
57197         Reported by Simon Josefsson.
57198
57199 2008-06-05  Jim Meyering  <meyering@redhat.com>
57200             Paul Eggert  <eggert@cs.ucla.edu>
57201
57202         utimens.c: work around a probable Linux kernel bug
57203         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57204         appears to be a kernel bug that causes utimensat to return 280
57205         instead of 0, indicating success.
57206
57207 2008-06-04  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57210         2008-06-01 commit.
57211
57212 2008-06-04  Bruno Haible  <bruno@clisp.org>
57213
57214         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57215         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57216         (file_has_acl): Use it. Save errno afterwards.
57217         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57218
57219 2008-06-03  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57222         draft code. Simplify #ifs.
57223         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57224         Put Solaris code after POSIX-draft code. Fix comments regarding
57225         Solaris 10, HP-UX. Mention Cygwin.
57226         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57227
57228 2008-06-03  Eric Blake  <ebb9@byu.net>
57229
57230         Provide fallback for older kernels.
57231         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57232         Provide runtime fallback if kernel lacks support.
57233         Reported by Mike Frysinger.
57234
57235 2008-06-02  Bruno Haible  <bruno@clisp.org>
57236
57237         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57238         it exists.
57239
57240 2008-06-02  Bruno Haible  <bruno@clisp.org>
57241
57242         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57243         * lib/copy-acl.c (qcopy_acl): Update comment.
57244
57245 2008-06-02  Bruno Haible  <bruno@clisp.org>
57246
57247         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57248         like ACL APIs.
57249
57250 2008-06-02  Bruno Haible  <bruno@clisp.org>
57251
57252         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57253         * tests/test-set-mode-acl.sh: Likewise.
57254         * tests/test-copy-acl.sh: Likewise.
57255         * tests/test-copy-file.sh: Likewise.
57256
57257 2008-06-02  Bruno Haible  <bruno@clisp.org>
57258
57259         * tests/test-file-has-acl.sh: Remove unused code.
57260
57261 2008-06-01  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57264         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57265         messages.
57266         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57267
57268 2008-06-01  Bruno Haible  <bruno@clisp.org>
57269
57270         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57271         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57272         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57273         APIs.
57274         * modules/acl-tests (configure.ac): Remove tests now contained in
57275         m4/acl.m4.
57276
57277 2008-06-02  Jim Meyering  <meyering@redhat.com>
57278
57279         announce-gen: use a better key-server host name
57280         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57281         it may be more consistently reliable.  Suggested by Werner Koch
57282         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57283
57284 2008-06-01  Bruno Haible  <bruno@clisp.org>
57285
57286         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57287         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57288
57289 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57290
57291         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57292
57293 2008-06-01  Bruno Haible  <bruno@clisp.org>
57294
57295         New ACL tests.
57296         * tests/test-file-has-acl.sh: New file.
57297         * tests/test-file-has-acl.c: New file.
57298         * tests/test-set-mode-acl.sh: New file.
57299         * tests/test-set-mode-acl.c: New file.
57300         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57301         * tests/test-copy-acl.c: New file.
57302         * modules/acl-tests: New file, based on modules/copy-file-tests.
57303         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57304         (Depends-on): Add acl-tests.
57305         (configure.ac): Remove checks.
57306         (Makefile.am): Don't create test-sameacls program here any more.
57307
57308 2008-06-01  Bruno Haible  <bruno@clisp.org>
57309
57310         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57311         * tests/test-sameacls.c: Include progname.h.
57312         (main): Invoke set_program_name. Portability fixes for MacOS X,
57313         Solaris, HP-UX.
57314
57315 2008-06-01  Bruno Haible  <bruno@clisp.org>
57316
57317         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57318         function.
57319         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57320
57321 2008-06-01  Bruno Haible  <bruno@clisp.org>
57322
57323         * modules/rpmatch (Depends-on): Add strdup.
57324
57325 2008-06-01  Bruno Haible  <bruno@clisp.org>
57326
57327         * lib/pipe.c: Include unistd-safer.h.
57328         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57329         * modules/pipe (Depends-on): Add unistd-safer.
57330
57331 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57332
57333         * modules/autobuild (configure.ac): Call AB_INIT.
57334
57335 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57336
57337         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57338         Suggested by Bruno Haible <bruno@clisp.org>.
57339
57340 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57341
57342         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57343         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57344         <bruno@clisp.org>.
57345
57346 2008-05-29  Eric Blake  <ebb9@byu.net>
57347
57348         Prefer new POSIX 200x interfaces over futimesat.
57349         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57350         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57351         when available.
57352         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57353
57354 2008-05-28  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/stpcpy (License): Change to LGPLv2+.
57357         Requested by David Lutterkort <dlutter@redhat.com>.
57358
57359 2008-05-27  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57362         current mingw.
57363         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57364
57365 2008-05-27  Bruno Haible  <bruno@clisp.org>
57366
57367         * modules/iconv_open (Link): New section, from module 'iconv'.
57368         * modules/striconv (Link): Likewise.
57369         * modules/striconveh (Link): Likewise.
57370         * modules/xstriconv (Link): Likewise.
57371         * modules/unicodeio (Link): Likewise.
57372         * modules/propername (Link): Likewise.
57373         Reported by Jim Meyering.
57374
57375 2008-05-26  Jim Meyering  <meyering@redhat.com>
57376
57377         sha256: do not artificially restrict buffer length to be < 2^32
57378         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57379         uint32_t to size_t.
57380         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57381         to match.
57382
57383         avoid unaligned access errors, e.g., on sparc
57384         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57385         direct access through a possibly-unaligned uint64* pointer.
57386         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57387         direct access through a possibly-unaligned uint32* pointer.
57388         Prompted by this patch from Tom "spot" Callaway:
57389         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57390
57391         sha512.c: fix typo in comment
57392         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57393
57394 2008-05-25  Bruno Haible  <bruno@clisp.org>
57395
57396         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57397         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57398         (Makefile.am): Update lib_SOURCES.
57399
57400 2008-05-25  Bruno Haible  <bruno@clisp.org>
57401
57402         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57403
57404 2008-05-25  Jim Meyering  <meyering@redhat.com>
57405
57406         useless-if-before-free: freed expr may have white-space differences
57407         * build-aux/useless-if-before-free: Recognize cases in which the
57408         freed expression differs from the tested one in embedded white
57409         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57410         $1 was used, so we can't make any regexp shy.  Improved tests now
57411         detect this.
57412
57413         useless-if-before-free: accept white space in the expression.
57414         * build-aux/useless-if-before-free: For now, any white space
57415         in the expression must be identical in the free argument.
57416
57417         useless-if-before-free: efficiency tweak
57418         * build-aux/useless-if-before-free: Make the expression-matching
57419         regexp "shy".
57420         Make the *outer* regexp shy, not the expr-matching one.
57421
57422         update code-in-comment to accept cast of free arg
57423         * build-aux/useless-if-before-free: Update regexp.
57424
57425 2008-05-25  Bruno Haible  <bruno@clisp.org>
57426
57427         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57428         * modules/copy-file-tests (Files, Makefile.am): Update.
57429         * tests/test-copy-file.c (func_test_copy): Update.
57430
57431 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57432
57433         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57434
57435 2008-05-23  Bruno Haible  <bruno@clisp.org>
57436
57437         Improve support for ACLs on OSF/1.
57438         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57439         Remove fallback for unknown flavors of ACLs.
57440
57441 2008-05-22  Bruno Haible  <bruno@clisp.org>
57442
57443         Add support for ACLs on OSF/1.
57444         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57445         replacements.
57446         (acl_free_text): New macro fallback.
57447         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57448         acl_free.
57449         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57450         acl_free_text function. Require AC_C_INLINE.
57451
57452 2008-05-22  Bruno Haible  <bruno@clisp.org>
57453
57454         Make copy_acl work on MacOS X 10.5.
57455         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57456         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57457         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57458         If MODE_INSIDE_ACL, don't assume that every system has the same text
57459         representation for ACLs as FreeBSD.
57460         * lib/copy-acl.c (copy_acl): Add support for platforms with
57461         !MODE_INSIDE_ACL.
57462         * lib/file-has-acl.c (file_has_acl): Likewise.
57463         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57464         FreeBSD, MacOS X, or IRIX, respectively.
57465
57466 2008-05-22  Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/acl.h: Don't include <sys/acl.h>.
57469         (GETACLCNT): Move fallback to lib/acl-internal.h.
57470         * lib/acl-internal.h: Include <sys/acl.h> here.
57471         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57472
57473 2008-05-22  Bruno Haible  <bruno@clisp.org>
57474
57475         Split off copy_acl function to separate file.
57476         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57477         * lib/acl.c (copy_acl): Moved function to separate file.
57478         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57479         * modules/acl (Files): Add lib/copy-acl.c.
57480         (Makefiles.am): Augment lib_SOURCES.
57481
57482 2008-05-22  Bruno Haible  <bruno@clisp.org>
57483
57484         * modules/copy-file-tests: New file.
57485         * tests/test-copy-file.sh: New file.
57486         * tests/test-copy-file.c: New file.
57487         * tests/test-copy-file-sameacls.c: New file.
57488
57489 2008-05-22  Eric Blake  <ebb9@byu.net>
57490
57491         Avoid gcc warning.
57492         * tests/test-memcmp.c (main): Pass NULL indirectly.
57493
57494 2008-05-21  Bruno Haible  <bruno@clisp.org>
57495
57496         Add reference doc about ACLs.
57497         * doc/acl-resources.txt: New file.
57498         * doc/acl-cygwin.txt: New file.
57499
57500 2008-05-21  Bruno Haible  <bruno@clisp.org>
57501
57502         Avoid one more warning from gcc.
57503         * lib/vasnprintf.c (IF_LINT): Update comments.
57504         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57505
57506 2008-05-21  Jim Meyering  <meyering@redhat.com>
57507
57508         avoid a warning from gcc
57509         * lib/vasnprintf.c (IF_LINT): Define.
57510         (scale10_round_decimal_long_double):
57511         Use it to avoid a "may be used uninitialized" warning.
57512         (scale10_round_decimal_double): Likewise.
57513
57514 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57515
57516         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57517         declared.
57518
57519 2008-05-20  Bruno Haible  <bruno@clisp.org>
57520
57521         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57522         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57523
57524 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57525
57526         * modules/memcmp-tests: New file.
57527         * tests/test-memcmp.c: New file.
57528
57529 2008-05-19  Bruno Haible  <bruno@clisp.org>
57530
57531         * modules/propername (Notice, configure.ac): Put quoted "..." into
57532         --keyword option.
57533         * lib/propername.h: Update comments accordingly.
57534         Reported by Eric Blake.
57535
57536 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57537
57538         * modules/getpass-gnu (Depends-on): Add fseeko.
57539
57540 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57541
57542         * modules/base64-tests: New file.
57543
57544 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57545
57546         * lib/base64.c (base64_decode_ctx): If a decode context structure
57547         was passed in use it to ignore newlines.  If a context structure
57548         was _not_ passed in, continue to treat newlines as garbage (this
57549         is the historical behavior).  Formerly base64_decode.
57550         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57551         takes a decode context structure.
57552         * lib/base64.h (base64_decode): Macro for four-argument calls.
57553         (base64_decode_alloc): Likewise.
57554         * lib/base64.c (base64_decode_ctx): If a decode context structure
57555         was passed in use it to ignore newlines.  If a context structure
57556         was _not_ passed in, continue to treat newlines as garbage (this
57557         is the historical behavior).  Formerly base64_decode.
57558         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57559         takes a decode context structure.
57560         * lib/base64.h (base64_decode): Macro for four-argument calls.
57561         (base64_decode_alloc): Likewise.
57562
57563 2008-05-19  Jim Meyering  <meyering@redhat.com>
57564
57565         avoid a warning from gcc
57566         * lib/trim.c (IF_LINT): Define.
57567         (trim2): Use it to avoid a "may be used uninitialized" warning.
57568
57569         Fix doc typo.
57570         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57571
57572 2008-05-19  Bruno Haible  <bruno@clisp.org>
57573
57574         * doc/glibc-functions/getpass.texi: Document limits of other
57575         implementations.
57576
57577 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57578             Bruno Haible <bruno@clisp.org>
57579
57580         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57581
57582 2008-05-18  Bruno Haible  <bruno@clisp.org>
57583
57584         * modules/propername: New file, from GNU gettext.
57585         * lib/propername.h: New file, from GNU gettext.
57586         * lib/propername.c: New file, from GNU gettext.
57587         * MODULES.html.sh (Internationalization functions): Add propername.
57588
57589 2008-05-16  Jim Meyering  <meyering@redhat.com>
57590             Bruno Haible  <bruno@clisp.org>
57591
57592         Avoid some warnings from "gcc -Wshadow".
57593         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57594
57595 2008-05-15  Eric Blake  <ebb9@byu.net>
57596
57597         Extend previous patch to cygwin 1.7.0.
57598         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57599         fast implementation in cygwin >= 1.7.0.
57600         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57602
57603 2008-05-15  Bruno Haible  <bruno@clisp.org>
57604
57605         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57606         implementation in glibc >= 2.9.
57607         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57608         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57609
57610 2008-05-15  Bruno Haible  <bruno@clisp.org>
57611
57612         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57613         (Unicode string functions): Add unilbrk/*.
57614         Reported by Karl Berry.
57615
57616 2008-05-15  Eric Blake  <ebb9@byu.net>
57617
57618         Fix violation of <stdbool.h> replacement in regex.
57619         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57620         * lib/regexec.c (re_search_internal): Likewise.
57621         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57622
57623 2008-05-15  Jim Meyering  <meyering@redhat.com>
57624
57625         avoid distracting test output when git or cvs is not found
57626         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57627         * tests/test-vc-list-files-git.sh: Likewise.
57628
57629 2008-05-15  Eric Blake  <ebb9@byu.net>
57630
57631         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57632         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57633         glibc version.
57634         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57635         * doc/posix-functions/strstr.texi (strstr): Likewise.
57636         * lib/str-two-way.h (MAX): Sychronize with glibc.
57637
57638 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57639
57640         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57641         opr.ctx_type.
57642         (calc_first): Initialize constraint field.
57643         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57644         Fix grammar.
57645         (duplicate_node): Merge constraint field for all node types.
57646         (calc_eclosure_iter): Look at constraint field for all node types.
57647         * lib/regex_internal.c (create_cd_newstate): Don't look at
57648         opr.ctx_type.
57649
57650 2008-05-14  Bruno Haible  <bruno@clisp.org>
57651
57652         Help GCC to do better code generation.
57653         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57654         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57655         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57656         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57657         Declare with attribute 'malloc' if supported.
57658
57659 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57660
57661         use "echo STR|wc -c" rather than unportable "expr length STR"
57662         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57663         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57664
57665 2008-05-14  Jim Meyering  <meyering@redhat.com>
57666
57667         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57668         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57669         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57670         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57671         via Collin Lasse.
57672
57673 2008-05-14  Eric Blake  <ebb9@byu.net>
57674
57675         Avoid quadratic growth in gl_LIBSOURCES.
57676         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57677         Suggested by Bruno Haible.
57678
57679         Test xmemdup0.
57680         * modules/xmemdup0-tests: New file.
57681         * tests/test-xmemdup0.c: Likewise.
57682
57683 2008-05-13  Eric Blake  <ebb9@byu.net>
57684
57685         Split xmemdup0 into its own module.
57686         * modules/xmemdup0: New file.
57687         * lib/xmemdup0.h: Likewise.
57688         * lib/xmemdup0.c: Likewise.
57689         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57690         * lib/xalloc.h (xmemdup0): Remove.
57691         * lib/xmalloc.c (xmemdup0): Likewise.
57692
57693 2008-05-13  Eric Blake  <ebb9@byu.net>
57694             Bruno Haible  <bruno@clisp.org>
57695
57696         Reduce number of forks required during autoconf.
57697         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57698         and gl_LIBSOURCES_DIR.
57699         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57700         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57701         m4_syscmd per file.
57702         <m4_foreach_w>: Move...
57703         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57704
57705 2008-05-13  Eric Blake  <ebb9@byu.net>
57706
57707         * gnulib-tool: Fix various comment typos.
57708
57709 2008-05-12  Bruno Haible  <bruno@clisp.org>
57710
57711         Tailor the linebreaking algorithm.
57712         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57713
57714 2008-05-12  Bruno Haible  <bruno@clisp.org>
57715
57716         Update to Unicode 5.0.0.
57717         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57718         LBP_JV, LBP_JT. Redistribute values.
57719         (unilbrk_table): Change size.
57720         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57721         Unicode TR#14 rev. 22.
57722         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57723         LBP_JV, LBP_JT. Redistribute values.
57724         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57725         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57726         Update.
57727         * lib/unilbrk/lbrkprop1.h: Regenerated.
57728         * lib/unilbrk/lbrkprop2.h: Regenerated.
57729         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57730         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57731         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57732         Likewise.
57733         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57734         Likewise.
57735         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57736         result.
57737         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57738         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57739         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57740         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57741         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57742         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57743
57744 2008-05-11  Bruno Haible  <bruno@clisp.org>
57745
57746         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57747
57748 2008-05-11  Bruno Haible  <bruno@clisp.org>
57749
57750         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57751         * modules/unilbrk/gen-lbrk: New file.
57752
57753 2008-05-11  Bruno Haible  <bruno@clisp.org>
57754
57755         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57756         * m4/sha512.m4 (gl_SHA512): Likewise.
57757
57758 2008-05-11  Jim Meyering  <meyering@redhat.com>
57759
57760         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57761         * modules/crypto/sha256: New file.
57762         * modules/crypto/sha512: Likewise.
57763         * lib/sha256.c: Likewise.
57764         * lib/sha256.h: Likewise.
57765         * lib/sha512.c: Likewise.
57766         * lib/sha512.h: Likewise.
57767         * lib/u64.h: Likewise.
57768         * m4/sha256.m4: Likewise.
57769         * m4/sha512.m4: Likewise.
57770         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57771
57772 2008-05-10  Bruno Haible  <bruno@clisp.org>
57773
57774         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57775         (Input/Output <stdio.h>): Add xprintf.
57776         (Signal handling <signal.h>): Add strsignal.
57777         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57778         (Core language properties): Add func.
57779         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57780         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57781         strings.
57782         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57783         (Input/output): New section.
57784         (File system functions): Add openat-die, stat-macros.
57785         (Networking functions): Add sockets.
57786         (Unicode string functions): Add unictype/*.
57787         (Support for building libraries and executables): Add gperf.
57788         (Support for building documentation): Add agpl-3.0.
57789         (Misc): Add nocrash.
57790
57791 2008-05-10  Bruno Haible  <bruno@clisp.org>
57792
57793         * modules/unictype/gen-ctype: New file.
57794
57795 2008-05-10  Jim Meyering  <meyering@redhat.com>
57796
57797         Make chdir-safer.c more efficient on a system with no symlinks.
57798         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57799         also if ELOOP is zero.  Suggested by Bruno Haible.
57800
57801         Make chdir-safer.c slightly safer.
57802         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57803         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57804
57805         Avoid compile failure on systems without ELOOP (like mingw).
57806         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57807         Reported by Bruno Haible.
57808
57809 2008-05-10  Bruno Haible  <bruno@clisp.org>
57810
57811         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57812         (is_utf8_encoding): Use a case-insensitive comparison.
57813         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57814         streq.
57815
57816 2008-05-10  Bruno Haible  <bruno@clisp.org>
57817
57818         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57819         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57820         * lib/unilbrk/ulc-common.h (iconv_string_length,
57821         iconv_string_keeping_offsets): Remove declarations.
57822         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57823         Don't include <iconv.h>, streq.h, xsize.h.
57824         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57825         conversion.
57826         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57827         <iconv.h>, streq.h, xsize.h.
57828         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57829         conversion.
57830         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57831         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
57832         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
57833         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
57834
57835 2008-05-10  Bruno Haible  <bruno@clisp.org>
57836
57837         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
57838         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
57839
57840         * modules/unilbrk/u32-width-linebreaks-tests: New file.
57841         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
57842
57843         * modules/unilbrk/u16-width-linebreaks-tests: New file.
57844         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
57845
57846         * modules/unilbrk/u8-width-linebreaks-tests: New file.
57847         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
57848
57849         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
57850         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
57851
57852         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
57853         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
57854
57855         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
57856         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
57857
57858         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
57859         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
57860
57861 2008-05-10  Bruno Haible  <bruno@clisp.org>
57862
57863         Split up 'linebreak' module.
57864         * lib/unilbrk.h: New file, based on lib/linebreak.h.
57865         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
57866         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
57867         modifications.
57868         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
57869         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
57870         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
57871         lib/linebreak.c.
57872         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
57873         lib/linebreak.c.
57874         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
57875         lib/linebreak.c.
57876         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
57877         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
57878         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
57879         lib/linebreak.c.
57880         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
57881         lib/linebreak.c.
57882         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
57883         lib/linebreak.c.
57884         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
57885         lib/linebreak.c.
57886         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
57887         lib/linebreak.c.
57888         * modules/unilbrk/base: New file.
57889         * modules/unilbrk/tables: New file.
57890         * modules/unilbrk/u8-possible-linebreaks: New file.
57891         * modules/unilbrk/u16-possible-linebreaks: New file.
57892         * modules/unilbrk/u32-possible-linebreaks: New file.
57893         * modules/unilbrk/ulc-common: New file.
57894         * modules/unilbrk/ulc-possible-linebreaks: New file.
57895         * modules/unilbrk/u8-width-linebreaks: New file.
57896         * modules/unilbrk/u16-width-linebreaks: New file.
57897         * modules/unilbrk/u32-width-linebreaks: New file.
57898         * modules/unilbrk/ulc-width-linebreaks: New file.
57899         * lib/linebreak.h: Remove file.
57900         * lib/linebreak.c: Remove file.
57901         * m4/linebreak.m4: Remove file.
57902         * modules/linebreak: Remove file.
57903         * NEWS: Mention the changes.
57904
57905 2008-05-09  Eric Blake  <ebb9@byu.net>
57906
57907         Add xmemdup0.
57908         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
57909         implementation.
57910         * lib/xmalloc.c (xmemdup0): New C implementation.
57911
57912 2008-05-08  Bruno Haible  <bruno@clisp.org>
57913
57914         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
57915
57916 2008-05-07  Eric Blake  <ebb9@byu.net>
57917
57918         Support cross-compilation of <wctype.h>.
57919         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
57920         AC_CACHE_CHECK.
57921
57922 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
57923
57924         * build-aux/vc-list-files: Add support for bzr.
57925
57926 2008-05-03  Jim Meyering  <meyering@redhat.com>
57927
57928         avoid failed assertion with tight malloc
57929         * tests/test-getndelim2.c: Correct an off-by-one assertion.
57930
57931 2008-05-03  Simon Josefsson  <simon@josefsson.org>
57932
57933         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
57934         are needed from arpa/inet.h.
57935         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
57936         Reported by Bruno Haible.
57937
57938 2008-05-02  Jim Meyering  <meyering@redhat.com>
57939
57940         avoid compilation error on FreeBSD 6
57941         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
57942
57943 2008-05-01  Jim Meyering  <meyering@redhat.com>
57944
57945         useless-if-before-free: correct --help's exit status description
57946         * build-aux/useless-if-before-free (usage): Like grep, exit 0
57947         for one or more matches, etc.  Reported by Bruno Haible.
57948
57949         vc-list-files: make the stand-alone gnulib test work
57950         * modules/vc-list-files-tests (configure.ac):
57951         Define and AC_SUBST abs_aux_dir.
57952         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
57953         $(abs_top_srcdir) to each script and having each of them
57954         duplicate the work of setting PATH, set PATH here, using
57955         the new variable, abs_aux_dir instead.
57956         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
57957         * tests/test-vc-list-files-git.sh: Likewise.
57958         Reported by Bruno Haible.
57959
57960 2008-05-01  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/getndelim2.c (getndelim2): Fix newsize computation during
57963         reallocation. Rename 'done' to 'found_delimiter'.
57964
57965 2008-05-01  Jim Meyering  <meyering@redhat.com>
57966
57967         vc-list-files: accommodate /bin/sh like the one from Solaris 10
57968         * build-aux/vc-list-files: Use `...`, not $(...).
57969
57970 2008-04-30  Jim Meyering  <meyering@redhat.com>
57971
57972         add tests for vc-list-files
57973         * modules/vc-list-files-tests: New module.
57974         * tests/test-vc-list-files-cvs.sh: New file.
57975         * tests/test-vc-list-files-git.sh: New file.
57976
57977         avoid a warning from gcc
57978         * lib/getndelim2.c (IF_LINT): Define.
57979         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57980
57981         vc-list-files: work properly with build-aux/cvsu, too
57982         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57983         to all cvs-based clauses.
57984
57985         vc-list-files: work properly in the CVS+awk case, too
57986         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57987
57988         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57989         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57990         take more than one file argument, so .  Add quotes, just in case $dir
57991         ever contains a shell meta-character.  Prompted by Soren Hansen in
57992         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57993
57994 2008-04-29  Eric Blake  <ebb9@byu.net>
57995
57996         Optimize getndelim2 to use block operations when possible.
57997         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57998         freadseek, and memchr2.
57999         * lib/getndelim2.c (getndelim2): Use them for block reads.
58000
58001 2008-04-29  Bruno Haible  <bruno@clisp.org>
58002
58003         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58004         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58005         * modules/inet_ntop (Depends-on): Add extensions.
58006         * modules/inet_pton (Depends-on): Likewise.
58007         Reported by Simon Josefsson.
58008
58009 2008-04-29  Jim Meyering  <meyering@redhat.com>
58010
58011         When the is more than one match in a block, match all of them.
58012         * build-aux/useless-if-before-free: Iterate through each block
58013         until there are no more matches.
58014
58015         Fix broken useless-if-before-free script.
58016         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58017         the expression to match cast of argument to free-like function.
58018
58019 2008-04-29  Eric Blake  <ebb9@byu.net>
58020
58021         Use new header.
58022         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58023
58024 2008-04-29  Jim Meyering  <meyering@redhat.com>
58025
58026         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58027         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58028         by gnulib to exist and to declare e.g., inet_ntop.
58029         Don't include "inet_ntop.h", now removed.
58030
58031         * m4/arpa_inet_h.m4: Remove trailing blanks.
58032
58033 2008-04-29  Eric Blake  <ebb9@byu.net>
58034
58035         Silence valgrind on safe reads beyond potential array bounds.
58036         * lib/rawmemchr.valgrind: New file.
58037         * lib/strchrnul.valgrind: Likewise.
58038         * modules/rawmemchr (Files): Distribute new file.
58039         * modules/strchrnul (Files): Likewise.
58040         Suggested by Bruno Haible.
58041
58042 2008-04-29  Bruno Haible  <bruno@clisp.org>
58043
58044         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58045         (inet_ntop, inet_pton): Change portability warning's wording.
58046         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58047         Invoke gl_CHECK_NEXT_HEADERS.
58048         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58049         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58050         set ARPA_INET_H.
58051         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58052         * modules/arpa_inet (Description): No longer only for systems that
58053         lack it.
58054         (Depends-on): Add include_next.
58055         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58056         HAVE_ARPA_INET_H.
58057
58058 2008-04-29  Jim Meyering  <meyering@redhat.com>
58059
58060         * modules/mkdir (License): Re-license as LGPLv2+.
58061
58062 2008-04-29  Bruno Haible  <bruno@clisp.org>
58063
58064         * modules/rawmemchr (Maintainer): Set to Eric.
58065         * modules/strchrnul (Maintainer): Likewise.
58066
58067 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58068
58069         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58070         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58071
58072         * modules/arpa_inet (arpa/inet.h): Use them.
58073
58074 2008-04-28  Eric Blake  <ebb9@byu.net>
58075
58076         Test getndelim2.
58077         * modules/getndelim2-tests: New file.
58078         * tests/test-getndelim2.c: Likewise.
58079         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58080         stream.
58081         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58082
58083         * MODULES.html.sh: Document new module.
58084
58085 2008-04-20  Bruno Haible  <bruno@clisp.org>
58086
58087         * lib/c-stack.c (die): Use raise.
58088         * modules/c-stack (Depends-on): Add raise.
58089
58090 2008-04-28  Bruno Haible  <bruno@clisp.org>
58091
58092         Expect rpmatch to be declared.
58093         * lib/yesno.c (rpmatch): Remove declaration.
58094
58095         Declare rpmatch.
58096         * lib/stdlib.in.h (rpmatch): New declaration.
58097         * lib/rpmatch.c: Include <stdlib.h> first.
58098         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58099         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58101         HAVE_RPMATCH.
58102         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58104         (Include): Set to <stdlib.h>.
58105         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58106         HAVE_RPMATCH.
58107         * NEWS: Document the change.
58108
58109 2008-04-28  Bruno Haible  <bruno@clisp.org>
58110
58111         Change rpmatch to use nl_langinfo when appropriate.
58112         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58113         (N_): New macro.
58114         (localized_pattern): New function/macro.
58115         (try): Remove match, nomatch arguments. Copy the pattern into safe
58116         memory before caching it.
58117         (rpmatch): Use localized_pattern. Add translator comments.
58118         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58119         Suggested by Eric Blake.
58120         * modules/rpmatch (Depends-on): Add stdbool.
58121
58122 2008-04-28  Eric Blake  <ebb9@byu.net>
58123
58124         Add rawmemchr module, matching glibc.
58125         * modules/string (Makefile.am): New indicator.
58126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58127         * lib/string.in.h (rawmemchr): Declare when appropriate.
58128         * modules/rawmemchr: New file.
58129         * m4/rawmemchr.m4: Likewise.
58130         * lib/rawmemchr.c: Likewise.
58131         * modules/rawmemchr-tests: Likewise.
58132         * tests/test-rawmemchr.c: Likewise.
58133         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58134         module.
58135         * modules/strchrnul (Depends-on): Add rawmemchr.
58136         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58137
58138         Whitespace cleanup.
58139         * tests/test-strchrnul.c: Reindent.
58140         * lib/strchrnul.c: Likewise.
58141
58142         Optimize and test strchrnul.
58143         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58144         * modules/strchrnul-tests: New file.
58145         * tests/test-strchrnul.c: Likewise.
58146
58147         Remove intprops dependency.
58148         * modules/memchr (Depends-on): Remove intprops.
58149         * modules/memrchr (Depends-on): Likewise.
58150         * modules/memchr2 (Depends-on): Likewise.
58151         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58152         * lib/memrchr.c (__memrchr): Likewise.
58153         * lib/memrchr2.c (memchr2): Likewise.
58154         Reported by Simon Josefsson.
58155
58156 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58157
58158         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58159         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58160
58161 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58162
58163         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58164
58165         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58166
58167         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58168
58169         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58170         declarations.
58171         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58172
58173         * m4/inet_pton.m4: Don't check for header files.
58174
58175         * m4/inet_ntop.m4: Don't check for header files.
58176
58177 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58178
58179         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58180         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58181         trigger for cygwin).
58182         Reported by Bruno Haible  <bruno@clisp.org>.
58183
58184 2008-04-28  Bruno Haible  <bruno@clisp.org>
58185
58186         * doc/posix-functions/strdup.texi: Mention mingw problem.
58187
58188 2008-04-27  Bruno Haible  <bruno@clisp.org>
58189
58190         * modules/stat-time-tests (Depends-on): Add sleep.
58191         * tests/test-stat-time.c (force_unlink): New function.
58192         (cleanup): Use it.
58193         (test_mtime): Remove the ctime related tests.
58194         (test_ctime): New function, containing the ctime related tests.
58195         (main): Call test_ctime, except on native Windows platforms.
58196
58197 2008-04-27  Bruno Haible  <bruno@clisp.org>
58198
58199         * lib/rpmatch.c (rpmatch): Add some comments.
58200         Reported by James Youngman <jay@gnu.org>.
58201
58202 2008-04-27  Bruno Haible  <bruno@clisp.org>
58203
58204         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58205         quiet NaNs.
58206
58207 2008-04-27  Bruno Haible  <bruno@clisp.org>
58208
58209         Make test-yesno.sh work on mingw.
58210         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58211         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58212         (main): Set stdin to binary mode.
58213         * modules/yesno-tests (Depends-on): Add binary-io.
58214
58215 2008-04-27  Bruno Haible  <bruno@clisp.org>
58216
58217         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58218         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58219         argument that lie outside the IEEE 854 domain.
58220         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58221         (gl_ISFINITE): Use it.
58222         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58223
58224 2008-04-27  Bruno Haible  <bruno@clisp.org>
58225
58226         Allow local renaming in config.h.
58227         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58228
58229 2008-04-27  Bruno Haible  <bruno@clisp.org>
58230
58231         * lib/memchr.c (__memchr): Change type of 'i'.
58232         * lib/memchr2.c (memchr2): Likewise.
58233
58234 2008-04-26  Eric Blake  <ebb9@byu.net>
58235         and Bruno Haible  <bruno@clisp.org>
58236
58237         Optimize and test memrchr.
58238         * modules/memrchr (Depends-on): Add intprops.
58239         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58240         * modules/memrchr-tests: New file.
58241         * tests/test-memrchr.c: New file.
58242
58243 2008-04-26  Bruno Haible  <bruno@clisp.org>
58244
58245         Add tentative support for DragonFly BSD.
58246         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58247         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58248         fp.
58249         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58250         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58251         * lib/fpurge.c (fpurge): Likewise.
58252         * lib/freadable.c (freaadable): Likewise.
58253         * lib/freadahead.c (freadahead): Likewise.
58254         * lib/freading.c (freading): Likewise.
58255         * lib/freadptr.c (freadptr): Likewise.
58256         * lib/freadseek.c (freadptrinc): Likewise.
58257         * lib/fseeko.c (fseeko): Likewise.
58258         * lib/fseterr.c (fseterr): Likewise.
58259         * lib/fwritable.c (fwritable): Likewise.
58260         * lib/fwriting.c (fwriting): Likewise.
58261
58262 2008-04-26  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/stdio-impl.h: New file.
58265         * lib/fbufmode.c: Include stdio-impl.h.
58266         (fbufmode): Use fp_, remove redundant #defines.
58267         * lib/fflush.c: Include stdio-impl.h.
58268         (clear_ungetc_buffer): Remove redundant #defines.
58269         * lib/fpurge.c: Include stdio-impl.h.
58270         (fpurge): Remove redundant #defines.
58271         * lib/freadable.c: Include stdio-impl.h.
58272         (freadable): Remove redundant #defines.
58273         * lib/freadahead.c: Include stdio-impl.h.
58274         (freadahead): Remove redundant #defines.
58275         * lib/freading.c: Include stdio-impl.h.
58276         (freading): Remove redundant #defines.
58277         * lib/freadptr.c: Include stdio-impl.h.
58278         (freadptr): Remove redundant #defines.
58279         * lib/freadseek.c: Include stdio-impl.h.
58280         (freadptrinc): Remove redundant #defines.
58281         * lib/fseeko.c: Include stdio-impl.h.
58282         (rpl_fseeko): Remove redundant #defines.
58283         * lib/fseterr.c: Include stdio-impl.h.
58284         (fseterr): Remove redundant #defines.
58285         * lib/fwritable.c: Include stdio-impl.h.
58286         (fwritable: Remove redundant #defines.
58287         * lib/fwriting.c: Include stdio-impl.h.
58288         (fwriting): Remove redundant #defines.
58289         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58290         * modules/fflush (Files): Likewise.
58291         * modules/fpurge (Files): Likewise.
58292         * modules/freadable (Files): Likewise.
58293         * modules/freadahead (Files): Likewise.
58294         * modules/freading (Files): Likewise.
58295         * modules/freadptr (Files): Likewise.
58296         * modules/freadseek (Files): Likewise.
58297         * modules/fseeko (Files): Likewise.
58298         * modules/fseterr (Files): Likewise.
58299         * modules/fwritable (Files): Likewise.
58300         * modules/fwriting (Files): Likewise.
58301
58302 2008-04-26  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58305         restore_seek_optimization, update_fpos_cache): New functions, extracted
58306         from rpl_fflush.
58307         (rpl_fflush): Use them.
58308         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58309         (gl_REPLACE_FFLUSH): Use it.
58310
58311 2008-04-26  Bruno Haible  <bruno@clisp.org>
58312
58313         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58314         on Solaris.
58315         * tests/test-xstrtoimax.sh: Likewise.
58316         * tests/test-xstrtoumax.sh: Likewise.
58317         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58318
58319 2008-04-26  Bruno Haible  <bruno@clisp.org>
58320
58321         * modules/memchr-tests: New file.
58322         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58323
58324 2008-04-26  Eric Blake  <ebb9@byu.net>
58325             Bruno Haible  <bruno@clisp.org>
58326
58327         * lib/memchr.c: Include intprops.h.
58328         (__memchr): Optimize parallel detection of matching bytes. Rename local
58329         variables. Add explanatory comments.
58330
58331 2008-04-26  Bruno Haible  <bruno@clisp.org>
58332
58333         Fix module 'memchr', broken since 2000-10-28.
58334         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58335
58336 2008-04-26  Bruno Haible  <bruno@clisp.org>
58337
58338         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58339         comments.
58340
58341 2008-04-25  Eric Blake  <ebb9@byu.net>
58342
58343         Use native fstatat on cygwin 1.7.0.
58344         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58345         first.
58346
58347 2008-04-23  Eric Blake  <ebb9@byu.net>
58348
58349         Improve memchr2 performance.
58350         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58351         NUL bytes.
58352         * modules/memchr2 (Depends-on): Use intprops.h.
58353
58354 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58355
58356         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58357         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58358         <blp@cs.stanford.edu>.
58359
58360 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58361
58362         * lib/arpa_inet.in.h: New file.
58363
58364         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58365         (Makefile.am): Sed in substitute header file.
58366
58367         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58368         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58369
58370         * modules/inet_ntop (configure.ac): Use
58371         gl_ARPA_INET_MODULE_INDICATOR.
58372
58373         * modules/inet_pton (configure.ac): Use
58374         gl_ARPA_INET_MODULE_INDICATOR.
58375
58376 2008-04-22  Jim Meyering  <meyering@redhat.com>
58377
58378         * modules/verify (License): Re-license as LGPLv2+.
58379
58380 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58381
58382         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58383         parameter to void* as per POSIX standard (MinGW uses char*).
58384
58385 2008-04-21  Bruno Haible  <bruno@clisp.org>
58386
58387         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58388         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58389         Define to replacements if REPLACE_ISWCNTRL is 1.
58390         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58391         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58392         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58393         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58394         what it fixes.
58395         * doc/posix-functions/iswalpha.texi: Likewise.
58396         * doc/posix-functions/iswblank.texi: Likewise.
58397         * doc/posix-functions/iswcntrl.texi: Likewise.
58398         * doc/posix-functions/iswdigit.texi: Likewise.
58399         * doc/posix-functions/iswgraph.texi: Likewise.
58400         * doc/posix-functions/iswlower.texi: Likewise.
58401         * doc/posix-functions/iswprint.texi: Likewise.
58402         * doc/posix-functions/iswpunct.texi: Likewise.
58403         * doc/posix-functions/iswspace.texi: Likewise.
58404         * doc/posix-functions/iswupper.texi: Likewise.
58405         * doc/posix-functions/iswxdigit.texi: Likewise.
58406         Reported by Alain Guibert.
58407
58408 2008-04-21  Bruno Haible  <bruno@clisp.org>
58409
58410         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58411         Patch by Alain Guibert.
58412
58413 2008-04-21  Bruno Haible  <bruno@clisp.org>
58414
58415         Fix test failures on mingw.
58416         * tests/test-xstrtol.c (print_no_progname): New function.
58417         (main): Install it in error_print_progname hook.
58418         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58419         * tests/test-xstrtoimax.sh: Likewise.
58420         * tests/test-xstrtoumax.sh: Likewise.
58421
58422 2008-04-21  Bruno Haible  <bruno@clisp.org>
58423
58424         Fix test failure on mingw.
58425         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58426
58427 2008-04-21  Bruno Haible  <bruno@clisp.org>
58428
58429         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58430         Actually assign a value.
58431
58432 2008-04-20  Bruno Haible  <bruno@clisp.org>
58433
58434         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58435         take 2.
58436         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58437         'canonicalize-lgpl' module is also used.
58438         * lib/canonicalize-lgpl.c: Undo last change.
58439         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58440
58441 2008-04-20  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58444         config.h. Provide _mkdir based fallback for mingw.
58445         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58446         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58447         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58448         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58449         rather than defining mkdir in config.h.
58450         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58451         (gl_SYS_STAT_H_DEFAULTS): New macro.
58452         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58453         HAVE_IO_H any more.
58454         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58455         HAVE_DECL_MKDIR and HAVE_IO_H.
58456
58457 2008-04-20  Bruno Haible  <bruno@clisp.org>
58458
58459         * lib/isapipe.c: Port to native Windows platforms.
58460
58461 2008-04-20  Bruno Haible  <bruno@clisp.org>
58462
58463         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58464
58465 2008-04-21  Eric Blake  <ebb9@byu.net>
58466
58467         Work around preprocessors that don't handle UINTMAX_MAX.
58468         * lib/memchr2.c (memchr2): Avoid embedded #if.
58469         Reported by Alain Guibert, fix suggested by Bruno Haible.
58470
58471 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58472
58473         * doc/posix-functions/strftime.texi (strftime): Explain better
58474         Windows incompatibility.  Suggested by Micah Cowan
58475         <micah@cowan.name>.
58476
58477 2008-04-20  Bruno Haible  <bruno@clisp.org>
58478
58479         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58480         unistr/u8-mblen.
58481
58482 2008-04-20  Bruno Haible  <bruno@clisp.org>
58483
58484         Fix test failure on platforms with non-GNU iconv.
58485         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58486         (U_TO_U8): Use it, rather than u16_to_u8.
58487         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58488         units at the end of the input string.
58489         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58490
58491 2008-04-20  Bruno Haible  <bruno@clisp.org>
58492
58493         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58494         when the resulting length is 0.
58495         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58496
58497 2008-04-20  Bruno Haible  <bruno@clisp.org>
58498
58499         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58500         works.
58501         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58502
58503 2008-04-20  Bruno Haible  <bruno@clisp.org>
58504
58505         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58506         * modules/tsearch-tests (configure.ac): Test for initstate function.
58507
58508 2008-04-20  Bruno Haible  <bruno@clisp.org>
58509
58510         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58511         for nlink_t if missing.
58512         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58513
58514 2008-04-19  Bruno Haible  <bruno@clisp.org>
58515
58516         Work around snprintf bug on Linux libc5.
58517         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58519         gl_SNPRINTF_SIZE1.
58520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58521         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58522         that test failed.
58523         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58524         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58525         * modules/snprintf (Files): Add m4/printf.m4.
58526         * modules/vsnprintf (Files): Likewise.
58527         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58528         * doc/posix-functions/vsnprintf.texi: Likewise.
58529
58530 2008-04-19  Bruno Haible  <bruno@clisp.org>
58531
58532         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58533         from 0.0058 to less than 10^-7.
58534
58535 2008-04-19  Bruno Haible  <bruno@clisp.org>
58536
58537         Fix rounding when a precision is given.
58538         * lib/vasnprintf.c (is_borderline): New function.
58539         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58540         9...9x.
58541         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58542         %e, %g.
58543         * tests/test-vasprintf-posix.c (test_function): Likewise.
58544         * tests/test-snprintf-posix.h (test_function): Likewise.
58545         * tests/test-sprintf-posix.h (test_function): Likewise.
58546         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58547         * tests/test-printf-posix.h (test_function): Likewise.
58548         * tests/test-printf-posix.output: Update.
58549         Reported by John Darrington <john@darrington.wattle.id.au> via
58550         Ben Pfaff <blp@cs.stanford.edu>.
58551
58552 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58553
58554         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58555         Suggested by Bruno Haible <bruno@clisp.org>.
58556
58557 2008-04-17  Bruno Haible  <bruno@clisp.org>
58558
58559         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58560         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58561         implementation.
58562         Patch by Bruce Merry <bmerry@gmail.com>.
58563
58564 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58565
58566         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58567         doesn't work under Windows.
58568
58569 2008-04-16  Bruno Haible  <bruno@clisp.org>
58570
58571         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58572         New macros.
58573         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58574         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58575         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58576         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58577         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58578         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58579         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58580         macros.
58581         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58582         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58583         Northern Sotho, Uighur.
58584
58585 2008-04-16  Bruno Haible  <bruno@clisp.org>
58586
58587         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58588         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58589         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58590         Reported by Daniel Bergström <daniel@octocode.com>.
58591
58592 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58593             Bruno Haible  <bruno@clisp.org>
58594
58595         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58596         function.
58597         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58598         New functions, mostly extracted from gl_locale_name_default.
58599         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58600
58601 2008-04-16  Eric Blake  <ebb9@byu.net>
58602
58603         Adjust strtod detection to catch glibc 2.7 bug.
58604         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58605         Reported by John Gatewood Ham.
58606
58607 2008-04-16  Bruno Haible  <bruno@clisp.org>
58608
58609         Add tentative support for Linux libc5.
58610         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58611         * lib/fpurge.c (fpurge): Likewise.
58612         * lib/freadable.c (freadable): Likewise.
58613         * lib/freadahead.c (freadahead): Likewise.
58614         * lib/freading.c (freading): Likewise.
58615         * lib/freadptr.c (freadptr): Likewise.
58616         * lib/freadseek.c (freadptrinc): Likewise.
58617         * lib/fseeko.c (rpl_fseeko): Likewise.
58618         * lib/fseterr.c (fseterr): Likewise.
58619         * lib/fwritable.c (fwritable): Likewise.
58620         * lib/fwriting.c (fwriting): Likewise.
58621         Reported by Alain Guibert <alguibert+bts@free.fr>.
58622
58623 2008-04-15  Bruno Haible  <bruno@clisp.org>
58624
58625         * modules/mathl (configure.ac): Define module indicator.
58626
58627 2008-04-15  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/logl.c (logl): Remove unused variables.
58630
58631 2008-04-15  Bruno Haible  <bruno@clisp.org>
58632
58633         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58634         fails.
58635
58636 2008-04-15  Bruno Haible  <bruno@clisp.org>
58637
58638         * lib/trim.c (trim2): Fix argument of isspace() macro.
58639
58640 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58641
58642         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58643         to 0.
58644         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58645
58646 2008-04-14  Bruno Haible  <bruno@clisp.org>
58647
58648         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58649         AC_LANG_PROGRAM argument.
58650         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58651         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58653         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58654         * m4/math_h.m4 (gl_MATH_H): Likewise.
58655         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58656         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58657         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58658         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58659         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58660         * m4/regex.m4 (gl_REGEX): Likewise.
58661         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58662         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58663         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58664         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58665         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58666         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58668         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58669
58670 2008-04-14  Jim Meyering  <meyering@redhat.com>
58671
58672         test-strtod: fix typos: s/abs/fabs/
58673         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58674
58675 2008-04-13  Bruno Haible  <bruno@clisp.org>
58676
58677         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58678         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58679         module is also used and while not building the reloc-wrapper.
58680
58681 2008-04-13  Bruno Haible  <bruno@clisp.org>
58682
58683         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58684
58685 2008-04-13  Bruno Haible  <bruno@clisp.org>
58686
58687         Fix AIX compilation failure introduced on 2008-04-02.
58688         * tests/test-frexp.c (exp): Undefine before redefining.
58689         * tests/test-frexpl.c (exp): Likewise.
58690
58691 2008-04-13  Bruno Haible  <bruno@clisp.org>
58692
58693         Work around a HP-UX stdio bug.
58694         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58695         * tests/test-ftello.c (main): Likewise.
58696         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58697         * doc/posix-functions/ftello.texi: Likewise.
58698
58699 2008-04-13  Bruno Haible  <bruno@clisp.org>
58700
58701         Make test-signbit pass on HP-UX/hppa.
58702         * tests/test-signbit.c (minus_zerol): New variable.
58703         (test_signbitl): Use it.
58704
58705 2008-04-13  Bruno Haible  <bruno@clisp.org>
58706
58707         Make truncl work on OSF/1 4.0.
58708         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58709         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58710         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58712         HAVE_DECL_TRUNCL.
58713         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58714         HAVE_DECL_TRUNCL.
58715         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58716
58717 2008-04-13  Bruno Haible  <bruno@clisp.org>
58718
58719         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58720
58721 2008-04-13  Bruno Haible  <bruno@clisp.org>
58722
58723         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58724         expression, so as to avoid HP-UX 11 cc compiler bug.
58725
58726 2008-04-13  Bruno Haible  <bruno@clisp.org>
58727
58728         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58729
58730 2008-04-13  Bruno Haible  <bruno@clisp.org>
58731
58732         * lib/git-merge-changelog.c: Remove empty declaration outside of
58733         functions.
58734
58735 2008-04-13  Bruno Haible  <bruno@clisp.org>
58736
58737         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58738
58739 2008-04-13  Bruno Haible  <bruno@clisp.org>
58740
58741         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58742         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58743         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58744         also if it exists but lacks definitions of the SHUT_* macros.
58745         * modules/sys_socket (Description): Update.
58746         Reported by Elbert Pol <e.pol@chello.nl>.
58747
58748 2008-04-13  Bruno Haible  <bruno@clisp.org>
58749
58750         * lib/localcharset.c (OS2): Don't redefine if already defined.
58751         Reported by Elbert Pol <e.pol@chello.nl>.
58752
58753 2008-04-13  Bruno Haible  <bruno@clisp.org>
58754
58755         * lib/binary-io.h [__EMX__]: Include <io.h>.
58756         Reported by Elbert Pol <e.pol@chello.nl>.
58757
58758 2008-04-12  Bruno Haible  <bruno@clisp.org>
58759
58760         * lib/fpucw.h: Enable the definitions also for x86_64.
58761         Needed for NetBSD/x86_64.
58762         Reported by Thomas Klausner <tk@giga.or.at>.
58763
58764 2008-04-12  Bruno Haible  <bruno@clisp.org>
58765
58766         * tests/test-strtod.c: Include isnand.h.
58767         (main): Use isnand instead of isnan.
58768         Reported by Jim Meyering.
58769
58770 2008-04-12  Bruno Haible  <bruno@clisp.org>
58771
58772         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58773         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58774
58775 2008-04-12  Jim Meyering  <meyering@redhat.com>
58776
58777         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58778
58779 2008-04-12  Bruno Haible  <bruno@clisp.org>
58780
58781         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58782         Reported by Elbert Pol <e.pol@chello.nl>.
58783
58784 2008-04-12  Eric Blake  <ebb9@byu.net>
58785
58786         Work around Solaris 10 math.h bug.
58787         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58788         (gl_MATH_H_DEFAULTS): Set up default.
58789         * modules/math (Makefile.am): Replace new indicators.
58790         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58791         * tests/test-math.c (main): Test this.
58792         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58793         * doc/posix-headers/math.texi (math.h): Mention bug.
58794         Reported by Nelson H. F. Beebe and Jim Meyering.
58795
58796 2008-04-11  Bruno Haible  <bruno@clisp.org>
58797
58798         Adapt to future versions of Apple GCC.
58799         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58800         Reported by Peter O'Gorman <peter@pogma.com>.
58801
58802 2008-04-11  Bruno Haible  <bruno@clisp.org>
58803
58804         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58805
58806 2008-04-11  Bruno Haible  <bruno@clisp.org>
58807
58808         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58809
58810         * modules/getaddrinfo-tests (Makefile.am): Define
58811         test_getaddrinfo_LDADD.
58812
58813 2008-04-11  Bruno Haible  <bruno@clisp.org>
58814
58815         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58816         (init): Fix syntax error.
58817         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58818         is declared.
58819
58820 2008-04-11  Bruno Haible  <bruno@clisp.org>
58821
58822         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58823         * modules/glob (Depends-on): Add stdbool.
58824
58825 2008-04-11  Bruno Haible  <bruno@clisp.org>
58826
58827         * lib/trim.c: Include <string.h>.
58828
58829 2008-04-11  Eric Blake  <ebb9@byu.net>
58830
58831         Avoid compile failure on OS/2.
58832         * lib/regex_internal.h (internal_function): Disable optimization
58833         on OS/2 (__EMX__), where it caused compiler error.
58834         Reported by Elbert Pol.
58835
58836 2008-04-11  Bruno Haible  <bruno@clisp.org>
58837
58838         Flush the standard error stream before aborting. Needed on mingw.
58839         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
58840         * tests/test-array_list.c (ASSERT): Likewise.
58841         * tests/test-array_oset.c (ASSERT): Likewise.
58842         * tests/test-avltree_list.c (ASSERT): Likewise.
58843         * tests/test-avltree_oset.c (ASSERT): Likewise.
58844         * tests/test-avltreehash_list.c (ASSERT): Likewise.
58845         * tests/test-binary-io.c (ASSERT): Likewise.
58846         * tests/test-byteswap.c (ASSERT): Likewise.
58847         * tests/test-c-ctype.c (ASSERT): Likewise.
58848         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
58849         * tests/test-c-strcasestr.c (ASSERT): Likewise.
58850         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
58851         * tests/test-c-strstr.c (ASSERT): Likewise.
58852         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
58853         * tests/test-canonicalize.c (ASSERT): Likewise.
58854         * tests/test-carray_list.c (ASSERT): Likewise.
58855         * tests/test-ceilf1.c (ASSERT): Likewise.
58856         * tests/test-ceilf2.c (ASSERT): Likewise.
58857         * tests/test-ceill.c (ASSERT): Likewise.
58858         * tests/test-count-one-bits.c (ASSERT): Likewise.
58859         * tests/test-fbufmode.c (ASSERT): Likewise.
58860         * tests/test-fflush2.c (ASSERT): Likewise.
58861         * tests/test-floorf1.c (ASSERT): Likewise.
58862         * tests/test-floorf2.c (ASSERT): Likewise.
58863         * tests/test-floorl.c (ASSERT): Likewise.
58864         * tests/test-fopen.c (ASSERT): Likewise.
58865         * tests/test-fpending.c (ASSERT): Likewise.
58866         * tests/test-fprintf-posix.c (ASSERT): Likewise.
58867         * tests/test-fpurge.c (ASSERT): Likewise.
58868         * tests/test-freadable.c (ASSERT): Likewise.
58869         * tests/test-freadahead.c (ASSERT): Likewise.
58870         * tests/test-freading.c (ASSERT): Likewise.
58871         * tests/test-freadptr.c (ASSERT): Likewise.
58872         * tests/test-freadptr2.c (ASSERT): Likewise.
58873         * tests/test-freadseek.c (ASSERT): Likewise.
58874         * tests/test-freopen.c (ASSERT): Likewise.
58875         * tests/test-frexp.c (ASSERT): Likewise.
58876         * tests/test-frexpl.c (ASSERT): Likewise.
58877         * tests/test-fseek.c (ASSERT): Likewise.
58878         * tests/test-fseeko.c (ASSERT): Likewise.
58879         * tests/test-fstrcmp.c (ASSERT): Likewise.
58880         * tests/test-ftell.c (ASSERT): Likewise.
58881         * tests/test-ftello.c (ASSERT): Likewise.
58882         * tests/test-func.c (ASSERT): Likewise.
58883         * tests/test-fwritable.c (ASSERT): Likewise.
58884         * tests/test-fwriting.c (ASSERT): Likewise.
58885         * tests/test-getdelim.c (ASSERT): Likewise.
58886         * tests/test-getline.c (ASSERT): Likewise.
58887         * tests/test-i-ring.c (ASSERT): Likewise.
58888         * tests/test-iconv-utf.c (ASSERT): Likewise.
58889         * tests/test-iconv.c (ASSERT): Likewise.
58890         * tests/test-isfinite.c (ASSERT): Likewise.
58891         * tests/test-isnand.c (ASSERT): Likewise.
58892         * tests/test-isnanf.c (ASSERT): Likewise.
58893         * tests/test-isnanl.h (ASSERT): Likewise.
58894         * tests/test-ldexpl.c (ASSERT): Likewise.
58895         * tests/test-linked_list.c (ASSERT): Likewise.
58896         * tests/test-linkedhash_list.c (ASSERT): Likewise.
58897         * tests/test-localename.c (ASSERT): Likewise.
58898         * tests/test-lseek.c (ASSERT): Likewise.
58899         * tests/test-mbscasecmp.c (ASSERT): Likewise.
58900         * tests/test-mbscasestr1.c (ASSERT): Likewise.
58901         * tests/test-mbscasestr2.c (ASSERT): Likewise.
58902         * tests/test-mbscasestr3.c (ASSERT): Likewise.
58903         * tests/test-mbscasestr4.c (ASSERT): Likewise.
58904         * tests/test-mbschr.c (ASSERT): Likewise.
58905         * tests/test-mbscspn.c (ASSERT): Likewise.
58906         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
58907         * tests/test-mbspbrk.c (ASSERT): Likewise.
58908         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
58909         * tests/test-mbsrchr.c (ASSERT): Likewise.
58910         * tests/test-mbsspn.c (ASSERT): Likewise.
58911         * tests/test-mbsstr1.c (ASSERT): Likewise.
58912         * tests/test-mbsstr2.c (ASSERT): Likewise.
58913         * tests/test-mbsstr3.c (ASSERT): Likewise.
58914         * tests/test-memchr2.c (ASSERT): Likewise.
58915         * tests/test-memmem.c (ASSERT): Likewise.
58916         * tests/test-open.c (ASSERT): Likewise.
58917         * tests/test-printf-frexp.c (ASSERT): Likewise.
58918         * tests/test-printf-frexpl.c (ASSERT): Likewise.
58919         * tests/test-printf-posix.c (ASSERT): Likewise.
58920         * tests/test-quotearg.c (ASSERT): Likewise.
58921         * tests/test-rbtree_list.c (ASSERT): Likewise.
58922         * tests/test-rbtree_oset.c (ASSERT): Likewise.
58923         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
58924         * tests/test-round1.c (ASSERT): Likewise.
58925         * tests/test-roundf1.c (ASSERT): Likewise.
58926         * tests/test-roundl.c (ASSERT): Likewise.
58927         * tests/test-signbit.c (ASSERT): Likewise.
58928         * tests/test-sleep.c (ASSERT): Likewise.
58929         * tests/test-snprintf-posix.c (ASSERT): Likewise.
58930         * tests/test-snprintf.c (ASSERT): Likewise.
58931         * tests/test-sprintf-posix.c (ASSERT): Likewise.
58932         * tests/test-stat-time.c (ASSERT): Likewise.
58933         * tests/test-strcasestr.c (ASSERT): Likewise.
58934         * tests/test-strerror.c (ASSERT): Likewise.
58935         * tests/test-striconv.c (ASSERT): Likewise.
58936         * tests/test-striconveh.c (ASSERT): Likewise.
58937         * tests/test-striconveha.c (ASSERT): Likewise.
58938         * tests/test-strsignal.c (ASSERT): Likewise.
58939         * tests/test-strstr.c (ASSERT): Likewise.
58940         * tests/test-strtod.c (ASSERT): Likewise.
58941         * tests/test-trunc1.c (ASSERT): Likewise.
58942         * tests/test-trunc2.c (ASSERT): Likewise.
58943         * tests/test-truncf1.c (ASSERT): Likewise.
58944         * tests/test-truncf2.c (ASSERT): Likewise.
58945         * tests/test-truncl.c (ASSERT): Likewise.
58946         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
58947         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
58948         * tests/test-vasnprintf.c (ASSERT): Likewise.
58949         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
58950         * tests/test-vasprintf.c (ASSERT): Likewise.
58951         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
58952         * tests/test-vprintf-posix.c (ASSERT): Likewise.
58953         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
58954         * tests/test-vsnprintf.c (ASSERT): Likewise.
58955         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
58956         * tests/test-wcwidth.c (ASSERT): Likewise.
58957         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
58958         * tests/test-xprintf-posix.c (ASSERT): Likewise.
58959         * tests/test-xvasprintf.c (ASSERT): Likewise.
58960         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
58961         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
58962         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
58963         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
58964         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
58965         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
58966         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
58967         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
58968         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
58969         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
58970         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
58971         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
58972         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
58973         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
58974         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
58975         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
58976         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58977         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58978         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58979         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58980         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58981         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58982         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58983         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58984         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58985         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58986         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58987         * tests/unictype/test-combining.c (ASSERT): Likewise.
58988         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58989         * tests/unictype/test-digit.c (ASSERT): Likewise.
58990         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58991         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58992         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58993         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58994         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58995         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58996         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58997         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58998         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58999         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59000         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59001         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59002         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59003         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59004         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59005         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59006         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59007         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59008         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59009         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59010         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59011         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59012         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59013         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59014         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59015         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59016         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59017         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59018         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59019         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59020         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59021         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59022         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59023         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59024         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59025         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59026         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59027         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59028         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59029         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59030         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59031         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59032         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59033         Reported by Eric Blake.
59034
59035 2008-04-11  Bruno Haible  <bruno@clisp.org>
59036
59037         * lib/wchar.in.h: Tweak comment.
59038
59039 2008-04-11  Bruno Haible  <bruno@clisp.org>
59040
59041         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59042         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59043         gl_COMMON.
59044         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59045
59046 2008-04-11  Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59049
59050 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59051
59052         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59053         of attempting to use non-existing /dev/*random.  Based on patch
59054         from Adam Strzelecki <ono@java.pl> in
59055         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59056
59057 2008-04-08  Bruno Haible  <bruno@clisp.org>
59058
59059         Add tentative support for emx+gcc.
59060         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59061         * lib/fpurge.c (fpurge): Likewise.
59062         * lib/freadable.c (freadable): Likewise.
59063         * lib/freadahead.c (freadahead): Likewise.
59064         * lib/freading.c (freading): Likewise.
59065         * lib/freadptr.c (freadptr): Likewise.
59066         * lib/freadseek.c (freadptrinc): Likewise.
59067         * lib/fseeko.c (rpl_fseeko): Likewise.
59068         * lib/fseterr.c (fseterr): Likewise.
59069         * lib/fwritable.c (fwritable): Likewise.
59070         * lib/fwriting.c (fwriting): Likewise.
59071         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59072
59073 2008-04-09  Eric Blake  <ebb9@byu.net>
59074
59075         Avoid some autoconf warnings.
59076         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59077         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59078         * m4/afs.m4 (gl_AFS): Likewise.
59079         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59080         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59082         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59083         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59084         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59085         (AC_CHECK_DECLS_ONCE): Likewise.
59086         Rename file...
59087         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59088         gnulib-tool requires autoconf 2.59 or better.
59089         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59090
59091 2008-04-08  Eric Blake  <ebb9@byu.net>
59092
59093         Use 'git describe --match' if present (added in git 1.5.5).
59094         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59095         if possible.
59096
59097 2008-04-08  Bruno Haible  <bruno@clisp.org>
59098
59099         Add tentative support for OpenServer.
59100         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59101         _ptr, _cnt.
59102         * lib/fpurge.c (fpurge): Likewise.
59103         * lib/freadable.c (freadable): Likewise.
59104         * lib/freadahead.c (freadahead): Likewise.
59105         * lib/freading.c (freading): Likewise.
59106         * lib/freadptr.c (freadptr): Likewise.
59107         * lib/freadseek.c (freadptrinc): Likewise.
59108         * lib/fseeko.c (rpl_fseeko): Likewise.
59109         * lib/fseterr.c (fseterr): Likewise.
59110         * lib/fwritable.c (fwritable): Likewise.
59111         * lib/fwriting.c (fwriting): Likewise.
59112         Reported by Roger Cornelius <rac@tenzing.org> and
59113         Brian K. White <brian@aljex.com>.
59114
59115 2008-04-06  Jim Meyering  <meyering@redhat.com>
59116
59117         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59118
59119 2008-04-06  Bruno Haible  <bruno@clisp.org>
59120
59121         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59122         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59123         * tests/test-printf-posix.sh: Likewise.
59124         * tests/test-vfprintf-posix.sh: Likewise.
59125         * tests/test-vprintf-posix.sh: Likewise.
59126         * tests/test-xprintf-posix.sh: Likewise.
59127
59128 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59129
59130         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59131         hide error from 'ls', needed on OS/2.
59132         Report by Elbert Pol <elbert.pol@gmail.com>.
59133
59134 2008-04-04  Eric Blake  <ebb9@byu.net>
59135
59136         Make test-fseeko.c failures meaningful.
59137         * tests/test-fseeko.c: Print line number on failure.
59138         * tests/test-fseek.c: Likewise.
59139         Reported by Nelson H. F. Beebe.
59140
59141         Improve strtod bug detection check.
59142         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59143         required for Solaris 10.
59144         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59145
59146 2008-04-04  Bruno Haible  <bruno@clisp.org>
59147
59148         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59149         by m4/setenv.m4.
59150
59151 2008-04-03  Eric Blake  <ebb9@byu.net>
59152
59153         Ensure sane .version contents.
59154         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59155         version string.
59156         * build-aux/git-version-gen: Improve documentation.
59157
59158         Make GNU make output nicer.
59159         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59160         MAKECMDGOALS to enforce message for all command line targets.  Set
59161         srcdir for use in maint.mk.
59162
59163         Another maintainer tweak.
59164         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59165         a target that regenerates version.
59166
59167 2008-04-03  Jim Meyering  <meyering@redhat.com>
59168
59169         vc-list-files: don't cause coreutils "make po-check" failure
59170         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59171
59172 2008-04-03  Eric Blake  <ebb9@byu.net>
59173
59174         Allow VPATH usage of vc-list-files.
59175         * build-aux/vc-list-files (scriptversion): Add timestamp.
59176         (options): Add --help, --version, -C.
59177         (CVS): Support installed cvsu.
59178
59179 2008-04-02  Bruno Haible  <bruno@clisp.org>
59180
59181         Avoid some "statement with no effect" warnings from gcc.
59182         * tests/test-wctype.c (main): Explicitly ignore unused values.
59183         Reported by Jim Meyering.
59184
59185 2008-04-02  Jim Meyering  <meyering@redhat.com>
59186
59187         Avoid some warnings from "gcc -Wshadow".
59188         * tests/test-frexp.c (exp): Define to a different identifier.
59189         * tests/test-frexpl.c (exp): Likewise.
59190
59191 2008-04-03  Jim Meyering  <meyering@redhat.com>
59192
59193         bootstrap: remove dangling *.[ch] symlinks from lib
59194         * build-aux/bootstrap [dangling symlink removal]: Move find's
59195         -depth option to precede all others, to avoid a warning.
59196         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59197
59198 2008-04-02  Bruno Haible  <bruno@clisp.org>
59199
59200         Avoid some warnings from "gcc -Wshadow".
59201         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59202         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59203         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59204         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59205         Reported by Jim Meyering.
59206
59207 2008-04-01  Bruno Haible  <bruno@clisp.org>
59208
59209         Fix test to work on IRIX 6.5 with cc.
59210         * tests/test-math.c (numeric_equal): New function.
59211         (main): Use it.
59212
59213 2008-04-01  Bruno Haible  <bruno@clisp.org>
59214
59215         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59216
59217 2008-04-01  Bruno Haible  <bruno@clisp.org>
59218
59219         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59220         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59221         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59222         (Depends-on): Remove math.
59223
59224         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59225         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59226         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59227         (Depends-on): Remove math.
59228
59229         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59230         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59231         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59232         (Depends-on): Remove math.
59233         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59234         (Depends-on): Remove math.
59235
59236         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59237         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59238         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59239         (Depends-on): Remove math.
59240         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59241         (Depends-on): Remove math.
59242
59243         * tests/test-round1.c: Include nan.h.
59244         (main): Use NaNd instead of NAN.
59245         * modules/round-tests (Files): Add tests/nan.h.
59246
59247         * tests/test-trunc1.c: Include nan.h.
59248         (main): Use NaNd instead of NAN.
59249         * modules/trunc-tests (Files): Add tests/nan.h.
59250
59251         * tests/test-roundf1.c: Include nan.h.
59252         (main): Use NaNf instead of NAN.
59253         * modules/roundf-tests (Files): Add tests/nan.h.
59254
59255         * tests/test-truncf1.c: Include nan.h.
59256         (main): Use NaNf instead of NAN.
59257         * modules/truncf-tests (Files): Add tests/nan.h.
59258
59259         * tests/test-ceilf1.c: Include nan.h.
59260         (main): Use NaNf instead of NAN.
59261         * modules/ceilf-tests (Files): Add tests/nan.h.
59262
59263         * tests/test-floorf1.c: Include nan.h.
59264         (main): Use NaNf instead of NAN.
59265         * modules/floorf-tests (Files): Add tests/nan.h.
59266
59267         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59268         (main): Use NaNf instead of NAN.
59269         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59270
59271         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59272         (main): Use NaNd instead of NAN.
59273         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59274
59275         * tests/test-frexp.c: Include nan.h.
59276         (main): Use NaNd instead of NAN.
59277         * modules/frexp-tests (Files): Add tests/nan.h.
59278
59279         * lib/isnan.c: Don't include <math.h>.
59280         (FUNC): Don't use NAN macro.
59281         * modules/isnand-nolibm (Depends-on): Remove math.
59282         * modules/isnanf-nolibm (Depends-on): Remove math.
59283         * modules/isnanl (Depends-on): Remove math.
59284         * modules/isnanl-nolibm (Depends-on): Remove math.
59285
59286         * tests/nan.h: New file.
59287
59288 2008-04-01  Eric Blake  <ebb9@byu.net>
59289
59290         Fix typos.
59291         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59292         values to be the right type.
59293
59294         For now, cater to gnulib strtod inaccuracies.
59295         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59296         fractional results.  While not as nice from a QoI perspective, it
59297         is a quicker patch than correctly implementing decimal to binary
59298         rounding.
59299
59300 2008-03-31  Eric Blake  <ebb9@byu.net>
59301
59302         Guarantee a definition of NAN.
59303         * lib/math.in.h (NAN): Define if missing.
59304         * tests/test-math.c (main): Test it.
59305         * doc/posix-headers/math.texi (math.h): Document this.
59306         * lib/isnan.c (rpl_isnand): Use it.
59307         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59308         * tests/test-floorf1.c (NaN): Likewise.
59309         * tests/test-frexp.c (NaN): Likewise.
59310         * tests/test-isnand.c (NaN): Likewise.
59311         * tests/test-isnanf.c (NaN): Likewise.
59312         * tests/test-round1.c (NaN): Likewise.
59313         * tests/test-roundf1.c (NaN): Likewise.
59314         * tests/test-snprintf-posix.h (NaN): Likewise.
59315         * tests/test-sprintf-posix.h (NaN): Likewise.
59316         * tests/test-trunc1.c (NaN): Likewise.
59317         * tests/test-truncf1.c (NaN): Likewise.
59318         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59319         * tests/test-vasprintf-posix.c (NaN): Likewise.
59320         * modules/isnand-nolibm (Depends-on): Add math.
59321         * modules/isnanf-nolibm (Depends-on): Likewise.
59322         * modules/isnanl (Depends-on): Likewise.
59323         * modules/isnanl-nolibm (Depends-on): Likewise.
59324         * modules/snprintf-posix-tests (Depends-on): Likewise.
59325         * modules/sprintf-posix-tests (Depends-on): Likewise.
59326         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59327         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59328         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59329         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59330
59331 2008-03-31  Bruno Haible  <bruno@clisp.org>
59332
59333         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59334         * doc/posix-functions/strtod.texi: Likewise.
59335
59336 2008-03-31  Bruno Haible  <bruno@clisp.org>
59337
59338         * tests/test-strtod.c (main): Don't use C99 syntax.
59339
59340 2008-03-31  Bruno Haible  <bruno@clisp.org>
59341
59342         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59343         Reported by Eric Blake.
59344
59345 2008-03-31  Jim Meyering  <meyering@redhat.com>
59346
59347         Don't compare actual signbit return values.
59348         * tests/test-strtod.c (main): Rather, compare only their
59349         zero/non-zero nature.
59350
59351 2008-03-31  Eric Blake  <ebb9@byu.net>
59352
59353         More strtod documentation.
59354         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59355         failures as distinct bugs.
59356
59357 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59360         Problem reported by Erik Benada in
59361         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59362
59363 2008-03-30  Bruno Haible  <bruno@clisp.org>
59364
59365         * tests/test-strtod.c: Add comments about which assertion fails on which
59366         platform.
59367         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59368
59369 2008-03-30  Eric Blake  <ebb9@byu.net>
59370
59371         Test signbit behavior on zeros.
59372         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59373         (test_signbitd, test_signbitl): Likewise.
59374
59375         More strtod touchups.
59376         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59377         sign of negative underflow, for now.  Use .5, not .1.
59378         * doc/posix-functions/strtod.texi (strtod): Mention these
59379         limitations.
59380         Reported by Jim Meyering.
59381
59382 2008-03-30  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59385         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59386
59387 2008-03-30  Bruno Haible  <bruno@clisp.org>
59388
59389         Avoid failure when attempting to return empty iconv results on some
59390         platforms.
59391         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59392         allocation, don't report ENOMEM when the resulting string is empty.
59393
59394 2008-03-30  Bruno Haible  <bruno@clisp.org>
59395
59396         Fix buffer overrun.
59397         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59398         Don't consider the width for tmp_length. Check count against tmp_length
59399         before doing the padding. Ensure enough allocation during padding.
59400
59401 2008-03-30  Eric Blake  <ebb9@byu.net>
59402
59403         strtod touchups.
59404         * lib/strtod.c (strtod): Avoid compiler warnings.
59405         Reported by Jim Meyering.
59406
59407 2008-03-30  Bruno Haible  <bruno@clisp.org>
59408
59409         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59410         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59411         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59412         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59413         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59414         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59415         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59416         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59417
59418         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59419         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59420         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59421         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59422         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59423         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59424         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59425         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59426
59427         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59428         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59429         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59430         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59431         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59432         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59433         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59434         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59435
59436         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59437         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59438
59439         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59440         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59441
59442         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59443         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59444
59445         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59446         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59447         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59448
59449         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59451         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59452
59453         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59454         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59455         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59456
59457         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59459         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59460
59461         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59462         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59464         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59465         (Depends-on): Add EOVERFLOW.
59466         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59467         (Depends-on): Add EOVERFLOW.
59468         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59469         (Depends-on): Add EOVERFLOW.
59470         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59471         (Depends-on): Add EOVERFLOW.
59472         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59473         (Depends-on): Add EOVERFLOW.
59474         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59475         (Depends-on): Add EOVERFLOW.
59476         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59477         (Depends-on): Add EOVERFLOW.
59478         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59479         (Depends-on): Add EOVERFLOW.
59480
59481         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59483         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59484
59485         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59486         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59487         * modules/snprintf (Depends-on): Add EOVERFLOW.
59488
59489         * lib/poll.c (EOVERFLOW): Remove fallback.
59490         * modules/poll (Depends-on): Add EOVERFLOW.
59491
59492         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59493         * modules/getugroups (Depends-on): Add EOVERFLOW.
59494
59495         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59496         * modules/getdelim (Depends-on): Add EOVERFLOW.
59497
59498         * lib/ftell.c (EOVERFLOW): Remove fallback.
59499         * modules/ftell (Depends-on): Add EOVERFLOW.
59500
59501         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59502         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59503         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59504
59505         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59506
59507         * modules/EOVERFLOW-tests: New file.
59508         * tests/test-EOVERFLOW.c: New file.
59509
59510         * modules/EOVERFLOW: New file.
59511         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59512
59513 2008-03-30  Bruno Haible  <bruno@clisp.org>
59514
59515         Fix bug introduced on 2007-06-10.
59516         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59517         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59518
59519 2008-03-30  Bruno Haible  <bruno@clisp.org>
59520
59521         Improve freadseek's efficiency after ungetc.
59522         * lib/freadseek.c: Include freadahead.h.
59523         (freadptrinc): New function, extracted from freadseek.
59524         (freadseek): Use it in a loop. Use freadahead to determine the number
59525         of loop iterations.
59526         * modules/freadseek (Depends-on): Add freadahead.
59527         (configure.ac): Require AC_C_INLINE.
59528
59529 2008-03-30  Bruno Haible  <bruno@clisp.org>
59530
59531         * lib/freadseek.c (freadseek): Don't ignore the return value of
59532         freadptr.
59533
59534 2008-03-29  Eric Blake  <ebb9@byu.net>
59535
59536         Add hex float support.
59537         * modules/strtod (Depends-on): Add c-ctype.
59538         (Link): Mention POW_LIB.
59539         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59540         whitespace between 'e' and exponent.
59541         * tests/test-strtod.c (main): Enable hex float tests.
59542         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59543         now provides.
59544
59545         Document various strtod bugs, with some fixes.
59546         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59547         "-0x", "inf", "nan", and hex constants.
59548         * doc/posix-functions/atof.texi (atof): Likewise.
59549         * modules/stdlib (Makefile.am): Support strtod.
59550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59551         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59552         detect additional strtod bugs.
59553         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59554         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59555         bool where appropriate.  Parse 'inf' and 'nan'.
59556         * tests/test-strtod.c: New file.
59557         * modules/strtod (Depends-on): Add stdbool, stdlib.
59558         (configure.ac): Turn on module indicator.
59559         * modules/strtod-tests: New module.
59560
59561 2008-03-29  Eric Blake  <ebb9@byu.net>
59562
59563         Fix ftell on mingw.
59564         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59565         * modules/ftell-tests (Depends-on): Add binary-io.
59566         * modules/ftello-tests (Depends-on): Likewise.
59567         * tests/test-ftell.c (main): Enhance test to cover behavior after
59568         ungetc.  Enforce binary mode.
59569         * tests/test-ftello.c (main): Likewise.
59570
59571         Pass test-freadseek on cygwin.
59572         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59573         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59574         ungetc buffer.
59575
59576         * tests/test-fflush2.c (main): Fix typo.
59577
59578 2008-03-29  Bruno Haible  <bruno@clisp.org>
59579
59580         * tests/test-fflush2.c (main): Temporarily disable the contents of
59581         this test.
59582         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59583         Reported by Eric Blake.
59584
59585 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59586
59587         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59588         (GC_SHA224_DIGEST_SIZE): Add.
59589
59590         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59591         (gc_hash_digest_length): Likewise.
59592         (gc_hash_buffer): Likewise.
59593
59594 2008-03-25  Bruno Haible  <bruno@clisp.org>
59595
59596         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59597         detail which gettext release to use.
59598         Reported by Simon Josefsson.
59599
59600 2008-03-26  Jim Meyering  <meyering@redhat.com>
59601
59602         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59603         * modules/gnumakefile (clean-GNUmakefile): Also, use
59604         test ... && ... || : syntax rather than if-then ... fi.
59605
59606         gnumakefile: Don't double-quote-expand $(VPATH) value.
59607         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59608
59609 2008-03-24  Eric Blake  <ebb9@byu.net>
59610
59611         Alter GNUmakefile to install into top directory.
59612         * modules/maintainer-makefile: Split, and add dependency...
59613         * modules/gnumakefile: to this new module.
59614         * build-aux/GNUmakefile: Move...
59615         * top/GNUmakefile: ...here.
59616         * build-aux/maint.mk: Move...
59617         * top/maint.mk: ...here.
59618         * MODULES.html.sh (Support for maintaining...): Document new
59619         module.
59620
59621 2008-03-23  Bruno Haible  <bruno@clisp.org>
59622
59623         * gnulib-tool: New options --vc-files, --no-vc-files.
59624         (func_usage): Document them.
59625         (vc_files): New variable.
59626         (func_import): Consider vc_files.
59627         (func_create_testdir): Set vc_files to empty.
59628         Suggested by Jim Meyering and Karl Berry.
59629
59630 2008-03-23  Bruno Haible  <bruno@clisp.org>
59631
59632         Fix regex compilation error on HP-UX 11.
59633         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59634         * modules/regex (Files): Add m4/mbstate_t.m4.
59635         Reported by Ton Voon <ton.voon@altinity.com>.
59636
59637 2008-03-23  Bruno Haible  <bruno@clisp.org>
59638
59639         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59640
59641 2008-03-23  Eric Blake  <ebb9@byu.net>
59642             Bruno Haible  <bruno@clisp.org>
59643
59644         Install files from top/ in the destination directory.
59645         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59646         augmentation also for the files from top/.
59647         (func_import, func_create_testdir): Rewrite file names:
59648         top/filename -> filename.
59649
59650 2008-03-23  Bruno Haible  <bruno@clisp.org>
59651
59652         Tweak "gnulib --version" output.
59653         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59654
59655 2008-03-23  Bruno Haible  <bruno@clisp.org>
59656
59657         Tweak "gnulib --version" output.
59658         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59659         rather than contents of ChangeLog, when possible.
59660
59661 2008-03-21  Eric Blake  <ebb9@byu.net>
59662
59663         More --version tweaks.
59664         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59665         date of last ChangeLog entry.
59666
59667 2008-03-21  Jim Meyering  <meyering@redhat.com>
59668
59669         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59670
59671 2008-03-20  Eric Blake  <ebb9@byu.net>
59672
59673         VPATH fix.
59674         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59675
59676 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59677
59678         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59679         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59680
59681 2008-03-20  Eric Blake  <ebb9@byu.net>
59682
59683         Sync GNUmakefile with coreutils.
59684         * build-aux/GNUmakefile (have-Makefile): Rename...
59685         (_have-Makefile): ...to this, for namespace consideration.
59686         (GNUmakefile.cfg): Include, if present.
59687         (_autoreconf): Define a default.
59688         (_is-dist-target): New rule for rebuilds to pick up intra-release
59689         version.
59690         (maint-cfg.mk): Rename...
59691         (cfg.mk): ...to this.
59692
59693 2008-03-18  Jim Meyering  <meyering@redhat.com>
59694
59695         New script and module: mktempd
59696         * MODULES.html.sh (maint+release support): Add mktempd.
59697         * build-aux/mktempd: New file.
59698         * modules/mktempd: New file.
59699
59700 2008-03-15  Jim Meyering  <meyering@redhat.com>
59701
59702         Undo last change.
59703         * lib/sha1.c, lib/md5.c: 63 != ~63.
59704         Reported by Andreas Schwab.
59705
59706         sha1.c, md5.c: Hoist a redundant expression.
59707         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59708         "ctx->buflen" only once, before calling *_process_block.
59709         * lib/md5.c (md5_process_bytes): Likewise.
59710
59711 2008-03-14  Eric Blake  <ebb9@byu.net>
59712
59713         Bump copyright year in files generated by gnulib-tool.
59714         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59715         gnulib-tool, rather than hard-coding it.
59716
59717         Fix 'gnulib-tool --version' output to work with git.
59718         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59719         (startup): ...here.
59720         (func_version): Use it to invoke git-version-gen, rather than
59721         relying on CVS keyword expansion.  Modernize wording.
59722         (cvsdatestamp, last_checkin_date, version): Kill unused
59723         variables.
59724
59725 2008-03-12  Jim Meyering  <meyering@redhat.com>
59726
59727         Recognize optional cast of the argument to free.
59728         * build-aux/useless-if-before-free: Update regexps.
59729
59730         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59731
59732 2008-03-11  Bruno Haible  <bruno@clisp.org>
59733
59734         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59735         by a single package.
59736         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59737         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59738         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59739         Reported by Sam Steingold <sds@gnu.org>.
59740
59741 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59742
59743         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59744         repositories.
59745
59746 2008-03-11  Bruno Haible  <bruno@clisp.org>
59747
59748         Avoid conflicts between local macro definitions.
59749         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59750         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59751
59752 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59753             Bruno Haible  <bruno@clisp.org>
59754
59755         Make va_copy work with some version of xlc on AIX 5.1.
59756         * lib/stdarg.in.h: New file.
59757         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59758         On AIX, use a <stdarg.h> file substitute.
59759         * modules/stdarg (Files): Add lib/stdarg.in.h.
59760         (Depends-on): Add include_next.
59761         (Makefile.am): Build a stdarg.h substitute if requested.
59762         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59763
59764 2008-03-10  Bruno Haible  <bruno@clisp.org>
59765
59766         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59767         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59768         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59769
59770 2008-03-10  Bruno Haible  <bruno@clisp.org>
59771
59772         * modules/stdlib (Depends-on): Add include_next, remove
59773         absolute-header.
59774
59775 2008-03-09  Bruno Haible  <bruno@clisp.org>
59776
59777         * lib/freadahead.h (freadahead): Document more precisely.
59778         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59779         the sum of both buffer sizes.
59780         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59781         * NEWS: Document the change.
59782
59783 2008-03-09  Bruno Haible  <bruno@clisp.org>
59784
59785         Extend freadptr to return also the buffer size.
59786         * lib/freadptr.h (freadptr): Add sizep argument.
59787         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59788         (freadptr): Add sizep argument. Determine buffer size like freadahead
59789         does.
59790         * tests/test-freadptr.c: Don't include freadahead.h.
59791         (main): Adapt for new calling convention of freadptr.
59792         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59793         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59794         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59795         tests/test-freadptr2.sh.
59796         (Depends): Remove freadahead.
59797         (TESTS): Add test-freadptr2.sh.
59798         (check_PROGRAMS): Add test-freadptr2.
59799
59800 2008-03-09  Bruno Haible  <bruno@clisp.org>
59801
59802         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59803         Report and solution by Simon Josefsson.
59804
59805 2008-03-06  Bruno Haible  <bruno@clisp.org>
59806
59807         Make fflush after ungetc work on BSD platforms.
59808         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59809         * tests/test-fflush2.c: New file.
59810         * tests/test-fflush2.sh: New file.
59811         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59812         tests/test-fflush2.c.
59813         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59814         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59815
59816 2008-03-06  Eric Blake  <ebb9@byu.net>
59817
59818         Likewise for ftello.
59819         * modules/ftello (Dependencies): Add extensions.
59820         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59821
59822 2008-03-06  Bruno Haible  <bruno@clisp.org>
59823
59824         * modules/fseeko (Dependencies): Add extensions.
59825         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59826         Needed on glibc systems.
59827
59828 2008-03-06  Bruno Haible  <bruno@clisp.org>
59829
59830         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59831         email address.
59832         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59833
59834 2008-03-06  Bruno Haible  <bruno@clisp.org>
59835
59836         * users.txt: Add libgnupdf.
59837
59838 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59839
59840         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
59841         (Header File Substitutes, Function Substitutes,
59842         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
59843         (Build robot for gnulib): Fix typo.
59844
59845 2008-03-06  Bruno Haible  <bruno@clisp.org>
59846
59847         * doc/gnulib-tool.texi (VCS Issues): Small updates.
59848         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59849
59850 2008-03-06  Bruno Haible  <bruno@clisp.org>
59851
59852         * doc/func.texi: New file, extracted from doc/gnulib.texi.
59853         * doc/gnulib.texi: Include it.
59854
59855 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59856
59857         * modules/func (License): Change license to unlimited; there was
59858         no LGPL parts in the module anyway.
59859
59860 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59861
59862         * modules/__func__: Renamed to modules/func.
59863         * modules/__func__-tests: Renamed to modules/func-tests.
59864         * tests/test-__func__.c: Renamed to tests/test-func.c.
59865         * m4/__func__.m4: Renamed to m4/func.m4.
59866         * doc/gnulib.texi (__func__): Section renamed to func.
59867         Suggested by Eric Blake <ebb9@byu.net>.
59868
59869 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59870
59871         * doc/gnulib.texi (__func__): Use C99 terminology when talking
59872         about __func__.  Make example self-contained.  Suggested by Eric
59873         Blake <ebb9@byu.net>.
59874
59875         * tests/test-__func__.c (main): Avoid extraneous () around __func.
59876         Suggested by Eric Blake <ebb9@byu.net>.
59877
59878 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59879
59880         * modules/__func__: New file.
59881         * modules/__func__-tests: New file.
59882         * tests/test-__func__.c: New file.
59883         * m4/__func__.m4: New file.
59884         * doc/gnulib.texi (__func__): Document __func__ module.
59885
59886 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59887
59888         * modules/byteswap (License): Re-license as LGPLv2+.
59889
59890 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59891
59892         * doc/Makefile: Add pdf target.
59893
59894 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59895
59896         * modules/inline (License): Use 'unlimited', since there are only
59897         *.m4 files in this module.
59898
59899 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59900             Bruno Haible  <bruno@clisp.org>
59901
59902         Add support for HP C 7.1 on OpenVMS 8.3.
59903         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
59904
59905 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59906
59907         Update VMS specifics.
59908         * lib/getopt.c [VMS]: Remove include of unixlib.h.
59909
59910 2008-03-02  Jim Meyering  <meyering@redhat.com>
59911
59912         Remove the last dependency on the "free" module.
59913         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
59914         Reported by Bob Proulx.
59915
59916         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
59917
59918         Remove useless "if" tests before free.  Deprecate "free" module.
59919         * doc/posix-functions/free.texi: Mention that this
59920         module is no longer useful.
59921         * modules/free (Notice): Say this module is obsolete.
59922         * modules/readutmp (Depends-on): Remove free.
59923         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
59924         * lib/putenv.c (putenv): Likewise.
59925         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
59926         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
59927         * tests/test-c-strcasestr.c (main): Likewise.
59928         * tests/test-c-strstr.c (main): Likewise.
59929         * tests/test-mbscasestr1.c (main): Likewise.
59930         * tests/test-mbscasestr2.c (main): Likewise.
59931         * tests/test-mbsstr1.c (main): Likewise.
59932         * tests/test-mbsstr2.c (main): Likewise.
59933         * tests/test-memmem.c (main): Likewise.
59934         * tests/test-strcasestr.c (main): Likewise.
59935         * tests/test-striconv.c (main): Likewise.
59936         * tests/test-striconveh.c (main): Likewise.
59937         * tests/test-striconveha.c (main): Likewise.
59938         * tests/test-strstr.c (main): Likewise.
59939
59940         * build-aux/git-version-gen: Adjust a comment and the Usage string.
59941
59942         bootstrap: sync from coreutils again
59943         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
59944
59945 2008-03-01  Jim Meyering  <meyering@redhat.com>
59946
59947         bootstrap: sync from coreutils
59948         * build-aux/bootstrap (update_po_files): Copy a .po file into place
59949         also when the target doesn't exist.
59950
59951 2008-03-01  Eric Blake  <ebb9@byu.net>
59952
59953         Fix bugs in last patch.
59954         * lib/memchr2.c (memchr2): Fix typo.
59955         * tests/test-memchr2.c: Test previous bug, and don't use GNU
59956         extension.
59957         Reported by Bruce Korb.
59958
59959         New module 'memchr2'.
59960         * modules/memchr2: New file.
59961         * modules/memchr2-tests: Likewise.
59962         * lib/memchr2.h: Likewise.
59963         * lib/memchr2.c: Likewise, based on memchr.c.
59964         * tests/test-memchr2.c: New test.
59965         * MODULES.html.sh (String handling): Add memchr2.
59966
59967 2008-02-29  Bruno Haible  <bruno@clisp.org>
59968
59969         * modules/freadseek-tests: New file.
59970         * tests/test-freadseek.sh: New file.
59971         * tests/test-freadseek.c: New file.
59972
59973         New module 'freadseek'.
59974         * modules/freadseek: New file.
59975         * lib/freadseek.h: New file.
59976         * lib/freadseek.c: New file.
59977         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59978
59979 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59980
59981         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59982         wydawca.
59983
59984         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59985         program_invocation_name and program_invocation_short_name are
59986         present.
59987
59988 2008-02-28  Bruno Haible  <bruno@clisp.org>
59989
59990         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59991         * tests/test-freadptr.sh: Also test non-seekable stdin.
59992
59993 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59994
59995         * build-aux/bootstrap (source_base, m4_base)
59996         (doc_base, tests_base): New variables.
59997         (gnulib_tool_options): Do not hardcode base directories, use
59998         the above variables instead.
59999
60000 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60001
60002         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60003
60004 2008-02-28  Bruno Haible  <bruno@clisp.org>
60005
60006         * modules/freadptr-tests: New file.
60007         * tests/test-freadptr.sh: New file.
60008         * tests/test-freadptr.c: New file.
60009
60010         New module 'freadptr'.
60011         * modules/freadptr: New file.
60012         * lib/freadptr.h: New file.
60013         * lib/freadptr.c: New file.
60014         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60015
60016 2008-02-26  Karl Berry  <karl@freefriends.org>
60017
60018         Sync from Libtool:
60019         * libltdl/argz.c (argz_add, argz_count): New functions.
60020         * libltdl/argz.in.h: Declare them.
60021         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60022
60023 2008-02-22  Bruno Haible  <bruno@clisp.org>
60024
60025         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60026         is a pointer type.  Needed for HP-UX 10.
60027         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60028         * doc/posix-functions/gmtime_r.texi: Likewise.
60029         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60030
60031 2008-02-24  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/environ-tests: New file.
60034         * tests/test-environ.c: New file.
60035
60036         New module 'environ'.
60037         * modules/environ: New file.
60038         * lib/unistd.in.h (environ): New declaration.
60039         * m4/environ.m4: New file.
60040         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60041         after use.
60042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60043         HAVE_DECL_ENVIRON.
60044         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60045         HAVE_DECL_ENVIRON.
60046         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60047         wrong claim that 'environ' is missing on some systems.
60048         * modules/execute (Depends-on): Add environ.
60049         * lib/execute.c (environ): Remove fallback declaration.
60050         * modules/pipe (Depends-on): Add environ.
60051         * lib/pipe.c (environ): Remove fallback declaration.
60052         * modules/setenv (Depends-on): Add environ.
60053         * lib/setenv.c (environ): Remove fallback declaration.
60054         * modules/unsetenv (Depends-on): Add environ.
60055         * lib/unsetenv.c (environ): Remove fallback declaration.
60056         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60057         m4/environ.m4.
60058         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60059         (gl_PREREQ_UNSETENV): Likewise.
60060
60061 2008-02-24  Bruno Haible  <bruno@clisp.org>
60062
60063         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60064
60065 2008-02-20  Bob Proulx  <bob@proulx.com>
60066
60067         Enable use of older two part flavor 'git describe'.
60068         * build-aux/git-version-gen: If using the older two part flavor of
60069         git version then recreate the third part now present in the
60070         newer three part flavor of git describe.
60071
60072 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60073
60074         * lib/fts.c (fts_build): Typo correction to comment.
60075
60076 2008-02-17  Bruno Haible  <bruno@clisp.org>
60077
60078         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60079         generating no-op conflicts.
60080
60081 2008-02-17  Bruno Haible  <bruno@clisp.org>
60082
60083         Speed up by 10%.
60084         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60085         result_entries, rather than an index-based loop.
60086
60087 2008-02-17  Bruno Haible  <bruno@clisp.org>
60088
60089         Speed up by 25%.
60090         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60091         'hashcode_cached'.
60092         (entry_create): New function.
60093         (entry_hashcode): Use the cached hashcode if possible.
60094         (read_changelog_file, try_split_merged_entry): Use entry_create.
60095
60096 2008-02-17  Bruno Haible  <bruno@clisp.org>
60097
60098         Speed up from O(n^2) to O(n) for long ChangeLog files.
60099         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60100         (read_changelog_file): Change implementation of entries_reversed list
60101         to rbtreehash.
60102         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60103
60104 2008-02-17  Bruno Haible  <bruno@clisp.org>
60105
60106         New option --split-merged-entry.
60107         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60108         (find_paragraph_end, try_split_merged_entry): New functions.
60109         (long_options): Add option --split-merged-entry.
60110         (usage): Document option --split-merged-entry.
60111         (main): Implement option --split-merged-entry.
60112         Reported by Eric Blake.
60113
60114 2008-02-17  Bruno Haible  <bruno@clisp.org>
60115
60116         * lib/git-merge-changelog.c: Include c-strstr.h.
60117         (main): Support the "git pull --rebase" situation.
60118         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60119         Reported by Eric Blake.
60120
60121 2008-02-16  Eric Blake  <ebb9@byu.net>
60122
60123         Avoid doubling \ in common case of "c-maybe" quoting style.
60124         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60125         eliding outer quotes.
60126         * lib/quotearg.h: Document this.
60127         * tests/test-quotearg.c (result_strings, inputs, results_g)
60128         (flag_results, locale_results): Test it by adding a new string to
60129         each test group.
60130         (compare_strings): Test new string.
60131
60132 2008-02-13  Eric Blake  <ebb9@byu.net>
60133
60134         Avoid trigraph quoting in default output.
60135         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60136         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60137         unless explicitly requested.
60138         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60139
60140 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60141
60142         Don't rely on signed integer overflowing to negative value.
60143         * lib/getugroups.c (getugroups): Include <limits.h>.
60144         Instead, compare against INT_MAX, and increment only if the test passes.
60145
60146 2008-02-13  Jim Meyering  <meyering@redhat.com>
60147         and Eric Blake  <ebb9@byu.net>
60148
60149         Avoid shadowing warning and compile errors on Linux.
60150         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60151         forwarding macros on Linux.
60152         (dcgettext): Define a stub, for Linux.
60153         (results_g, main): Avoid warnings.
60154
60155 2008-02-12  Eric Blake  <ebb9@byu.net>
60156
60157         Silence warning in last patch.
60158         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60159
60160         Quotearg part 4: add tests, fix c-maybe colon quoting.
60161         * lib/quotearg.h: Improve documentation.
60162         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60163         escapes when adding outer quotes.  When quoting trigraphs, use
60164         valid C notation.  When quoting NUL, omit extra characters if next
60165         character is not digit.  Alter prototype.
60166         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60167         callers.
60168         * modules/quotearg-tests: New module.
60169         * tests/test-quotearg.c: New test.
60170
60171 2008-02-07  Eric Blake  <ebb9@byu.net>
60172
60173         Quotearg part 3: add flag to control outer quote elision.
60174         * lib/quotearg.h (c_maybe_quoting_style): New style.
60175         (enum quoting_flags): Better documentation of flags.
60176         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60177         c-maybe style.
60178         (quotearg_buffer_restyled): Handle new flag to elide outer
60179         quotes.
60180
60181         Quotearg part 2: add flag that can control NUL elision.
60182         * lib/quotearg.h (set_quoting_flags): New prototype.
60183         * lib/quotearg.c (struct quoting_options): Add flag field.
60184         (set_quoting_flags): New function.
60185         (quotearg_buffer_restyled): Add flags parameter.
60186         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60187         (quotearg_n_options): Set the flag, since length cannot be
60188         returned.
60189         (quoting_options_from_style): Default flags correctly.
60190
60191         Quotearg part 1: more wrappers, restore quotearg_char state.
60192         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60193         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60194         (quotearg_colon_mem): New wrappers.
60195         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60196         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60197         functions.
60198         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60199         (quotearg_colon_mem): New functions.
60200
60201 2008-02-11  Bruno Haible  <bruno@clisp.org>
60202
60203         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60204         library in the current directory: it does not work with parallel make.
60205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60206
60207 2008-02-11  Bruno Haible  <bruno@clisp.org>
60208
60209         * .gitattributes: New file.
60210
60211 2008-02-11  Jim Meyering  <meyering@redhat.com>
60212
60213         useless-if-before-free: Fix reversed exit values.
60214         * build-aux/useless-if-before-free: Use correct values
60215         for EXIT_MATCH and EXIT_NO_MATCH.
60216
60217         * build-aux/useless-if-before-free: Close stdout carefully.
60218
60219 2008-02-10  Bruno Haible  <bruno@clisp.org>
60220
60221         New module 'git-merge-changelog'.
60222         * modules/git-merge-changelog: New file.
60223         * lib/git-merge-changelog.c: New file.
60224
60225 2008-02-10  Jim Meyering  <meyering@redhat.com>
60226
60227         useless-if-before-free: New option: --list (-l).
60228
60229         useless-if-before-free: Don't exit immediately upon open failure.
60230         * build-aux/useless-if-before-free: Exit 2 for errors.
60231         Upon failure to open a file, don't exit immediately.
60232         Rather, just warn and continue with any remaining files.
60233
60234 2008-02-10  Bruno Haible  <bruno@clisp.org>
60235
60236         New abstract list operation 'node_set_value'.
60237         * lib/gl_list.h (gl_list_node_set_value): New function.
60238         (struct gl_list_implementation): New field node_set_value.
60239         * lib/gl_list.c (gl_list_node_set_value): New function.
60240         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60241         (gl_array_list_implementation): Update.
60242         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60243         (gl_carray_list_implementation): Update.
60244         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60245         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60246         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60247         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60248         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60249         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60250         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60251         Update.
60252         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60253         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60254         (gl_sublist_list_implementation): Update.
60255
60256 2008-02-10  Bruno Haible  <bruno@clisp.org>
60257
60258         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60259         Needed when ELEMENT is #defined to 'some_type *'.
60260
60261 2008-02-10  Jim Meyering  <meyering@redhat.com>
60262
60263         New script and module: useless-if-before-free
60264         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60265         * build-aux/useless-if-before-free: New file.
60266         * modules/useless-if-before-free: New file.
60267
60268         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60269
60270         xstrtol_error: Fix typo.
60271         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60272         s/exit_failure/exit_status/.
60273
60274 2008-02-09  Jim Meyering  <meyering@redhat.com>
60275
60276         New script and module: gitlog-to-changelog
60277         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60278         * modules/gitlog-to-changelog: New file.
60279         * build-aux/gitlog-to-changelog: New file.
60280
60281 2008-02-08  Jim Meyering  <meyering@redhat.com>
60282
60283         Avoid two "parameter unused" warnings.
60284         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60285         Mark "st" as used.
60286
60287         Use "git COMMAND", not "git-COMMAND".
60288         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60289         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60290         * build-aux/git-version-gen: Use "git status", not "git-status".
60291
60292 2008-02-07  Bruno Haible  <bruno@clisp.org>
60293
60294         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60295         Avoids a crash on Windows Vista.
60296         Reported by Adam Strzelecki <ono@java.pl> via
60297         Simon Josefsson <simon@josefsson.org>.
60298
60299 2008-02-06  Bruno Haible  <bruno@clisp.org>
60300
60301         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60302         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60303         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60305         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60306         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60307         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60308         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60309         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60310         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60311         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60312         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60313         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60314         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60315         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60316         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60317         left-adjust flag.
60318         * tests/test-snprintf-posix.h (test_function): Likewise.
60319         * tests/test-sprintf-posix.h (test_function): Likewise.
60320         * tests/test-vasprintf-posix.c (test_function): Likewise.
60321         * doc/posix-functions/fprintf.texi: Update.
60322         * doc/posix-functions/printf.texi: Update.
60323         * doc/posix-functions/snprintf.texi: Update.
60324         * doc/posix-functions/sprintf.texi: Update.
60325         * doc/posix-functions/vfprintf.texi: Update.
60326         * doc/posix-functions/vprintf.texi: Update.
60327         * doc/posix-functions/vsnprintf.texi: Update.
60328         * doc/posix-functions/vsprintf.texi: Update.
60329         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60330
60331 2008-02-06  Bruno Haible  <bruno@clisp.org>
60332
60333         Fix bug introduced on 2008-01-26.
60334         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60335
60336 2008-02-06  Bruno Haible  <bruno@clisp.org>
60337
60338         Fix bug introduced on 2007-06-10.
60339         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60340         !NEED_PRINTF_FLAG_ZERO.
60341
60342 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60343
60344         getloadavg: use libperfstat on AIX5
60345         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60346
60347 2008-02-03  Bruno Haible  <bruno@clisp.org>
60348
60349         * lib/diffseq.h: Add comments about required #includes.
60350         Reported by Michael Biggs <gnulib@doubleplum.net>.
60351
60352 2008-02-01  Bruno Haible  <bruno@clisp.org>
60353
60354         * users.txt: Add gnuit.
60355
60356 2008-01-31  Bruno Haible  <bruno@clisp.org>
60357
60358         * lib/md4.c (set_uint32): Mark as inline.
60359         * lib/md5.c (set_uint32): Likewise.
60360         * lib/sha1.c (set_uint32): Likewise.
60361         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60362         * m4/md5.m4 (gl_MD5): Likewise.
60363         * m4/sha1.m4 (gl_SHA1): Likewise.
60364
60365 2008-01-31  Jim Meyering  <meyering@redhat.com>
60366
60367         Use "sizeof VAR", rather than a literal "4".
60368         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60369         * lib/md4.c (md4_read_ctx): Likewise.
60370         * lib/sha1.c (sha1_read_ctx): Likewise.
60371
60372 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60373
60374         * tests/test-sha1.c: New file, based on test-md5.c.
60375
60376         * modules/crypto/sha1-tests: New file.
60377
60378 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60379
60380         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60381
60382 2008-01-31  Jim Meyering  <meyering@redhat.com>
60383
60384         Prefer "sizeof v" over the equivalent "4".
60385         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60386         * lib/md5.c (set_uint32): Likewise.
60387         * lib/sha1.c (set_uint32): Likewise.
60388
60389 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60390
60391         * lib/sha1.c (set_uint32): Mark function as static.
60392
60393 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60394
60395         md2: clarify comments to say that alignment is not required.
60396         * lib/md2.h: Remove warning about alignment in comment.
60397         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60398         never been required.
60399
60400 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60401
60402         md4: adapt alignment constraint fix from sha1.
60403         * lib/md4.c (set_uint32): New function, from sha1.c
60404         (md4_read_ctx): Use it.
60405         (md4_finish_ctx): Doc fix.
60406         * lib/md4.h: Doc fix.
60407
60408 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60409
60410         md5: adapt alignment constraint fix from sha1.
60411         * lib/md5.c (set_uint32): New function, from sha1.c
60412         (md5_read_ctx): Use it.
60413         (md5_finish_ctx): Doc fix.
60414         * lib/md5.h: Doc fix.
60415
60416 2008-01-30  Peter Palfrader  <weasel@debian.org>
60417
60418         sha1: remove the result buffer alignment constraint
60419         * lib/sha1.c (set_uint32): New function.
60420         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60421         constraint.
60422         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60423         * lib/sha1.h: Likewise.
60424
60425 2008-01-30  Andreas Schwab  <schwab@suse.de>
60426             Bruno Haible  <bruno@clisp.org>
60427
60428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60429         correct definition of LDBL_MIN_EXP.
60430
60431 2008-01-30  Karl Berry  <karl@gnu.org>
60432
60433         * config/srclist-update: try to preserve x bit on updates.
60434         * config/srclistvars.sh: update for karl.
60435
60436 2008-01-29  Jim Meyering  <meyering@redhat.com>
60437
60438         vasnprintf.c: Avoid warning about unused label
60439         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60440         "overflow" label definition and associated code with the
60441         same cpp condition that guards the sole use of that label.
60442
60443 2008-01-26  Bruno Haible  <bruno@clisp.org>
60444
60445         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60446         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60447         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60448         * lib/isnanl-nolibm.h (isnanl): Likewise.
60449         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60450
60451 2008-01-26  Bruno Haible  <bruno@clisp.org>
60452
60453         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60454         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60455
60456 2008-01-26  Bruno Haible  <bruno@clisp.org>
60457
60458         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60459         GCC >= 4.0 built-in.
60460         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60461
60462 2008-01-26  Bruno Haible  <bruno@clisp.org>
60463
60464         Rename isnan, applicable to 'double' only, to isnand.
60465         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60466         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60467         (configure.ac): Update.
60468         (Include): Replace "isnan.h" with "isnand.h".
60469         * m4/isnand.m4: Renamed from m4/isnan.m4.
60470         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60471         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60472         instead of isnan.c.
60473         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60474         instead of HAVE_ISNAN_IN_LIBC.
60475         (isnand): Renamed from isnan.
60476         * lib/isnand.c: New file.
60477         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60478         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60479         (Makefile.am): Update.
60480         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60481         Include isnand.h instead of isnan.h.
60482         (main): Test isnand instead of isnan.
60483         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60484         isnan-nolibm.
60485         * modules/frexp (Depends-on): Likewise.
60486         * modules/frexp-tests (Depends-on): Likewise.
60487         * modules/frexp-nolibm (Depends-on): Likewise.
60488         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60489         * modules/isfinite (Depends-on): Likewise.
60490         * modules/round-tests (Depends-on): Likewise.
60491         * modules/signbit (Depends-on): Likewise.
60492         * modules/signbit-tests (Depends-on): Likewise.
60493         * modules/snprintf-posix (Depends-on): Likewise.
60494         * modules/sprintf-posix (Depends-on): Likewise.
60495         * modules/trunc-tests (Depends-on): Likewise.
60496         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60497         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60498         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60499         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60500         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60501         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60502         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60503         * modules/vasnprintf-posix (Depends-on): Likewise.
60504         * modules/vasprintf-posix (Depends-on): Likewise.
60505         * modules/vfprintf-posix (Depends-on): Likewise.
60506         * modules/vsnprintf-posix (Depends-on): Likewise.
60507         * modules/vsprintf-posix (Depends-on): Likewise.
60508         * lib/frexp.c: Include isnand.h instead of isnan.h.
60509         (ISNAN): Set to isnand instead of isnan.
60510         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60511         (gl_isfinited): Use isnand instead of isnan.
60512         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60513         (gl_signbitd): Use isnand instead of isnan.
60514         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60515         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60516         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60517         (main): Use isnand instead of isnan.
60518         * tests/test-round1.c: Include isnand.h.
60519         (main): Use isnand instead of isnan.
60520         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60521         (ISNAN): Set to isnand instead of isnan.
60522         * tests/test-trunc1.c: Include isnand.h.
60523         (main): Use isnand instead of isnan.
60524         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60525         (equal): Use isnand instead of isnan.
60526         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60527         isnand-nolibm.
60528         * NEWS: Mention the change.
60529
60530 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60531             Bruno Haible  <bruno@clisp.org>
60532
60533         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60534         the GCC builtins for signbits are present and set
60535         REPLACE_SIGNBIT_USING_GCC if so.
60536         * lib/math.in.h (signbit): Define using GCC builtins if
60537         REPLACE_SIGNBIT_USING_GCC is set.
60538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60539         REPLACE_SIGNBIT_USING_GCC.
60540         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60541
60542 2008-01-25  Jim Meyering  <meyering@redhat.com>
60543
60544         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60545         * lib/poll.c: Include <config.h>, not "config.h".
60546         * tests/test-getaddrinfo.c: Likewise.
60547
60548 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60549
60550         * modules/sockets-tests: New file.
60551
60552 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60553
60554         * modules/sockets: New module, can be used to call WSA_Startup and
60555         WSA_Cleanup when needed.
60556
60557         * lib/sockets.h, lib/sockets.c: New files.
60558
60559         * m4/sockets.m4: New file.
60560
60561         * tests/test-sockets.c: New file.
60562
60563 2008-01-19  Bruno Haible  <bruno@clisp.org>
60564
60565         * doc/posix-headers: Renamed from doc/headers.
60566         * doc/posix-functions: Renamed from doc/functions.
60567         * doc/gnulib.texi: Update.
60568
60569 2008-01-19  Bruno Haible  <bruno@clisp.org>
60570
60571         * doc/glibc-functions/strcasestr.texi: Include contents of
60572         doc/functions/strcasestr.texi, fixing the list of platforms.
60573         * doc/functions/strcasestr.texi: Remove file.
60574
60575 2008-01-19  Bruno Haible  <bruno@clisp.org>
60576
60577         * doc/glibc-functions/memmem.texi: Include contents of
60578         doc/functions/memmem.texi.
60579         * doc/functions/memmem.texi: Remove file.
60580
60581 2008-01-18  Bruno Haible  <bruno@clisp.org>
60582
60583         * doc/glibc-functions/*.texi: New files.
60584         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60585         to use the new files.
60586
60587 2008-01-17  Bruno Haible  <bruno@clisp.org>
60588
60589         * tests/test-gethostname.c (main): Fix printf statement.
60590
60591 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60592
60593         * modules/gethostname-tests: New file.
60594
60595         * tests/test-gethostname.c: New file.
60596
60597 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60598
60599         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60600         used by the UNAME case.  Reported by Bruno Haible
60601         <bruno@clisp.org>.
60602
60603 2008-01-17  Eric Blake  <ebb9@byu.net>
60604
60605         Convert c-strcasestr to be more efficient.
60606         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60607         (Depends-on): Add c-strcase, remove malloca, strnlen.
60608         * tests/test-c-strcasestr.c (main): Enhance test.
60609         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60610
60611 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60612
60613         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60614         Use it in creating po/Makevars.
60615
60616 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60617
60618         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60619         Applications that requires it should initialize libgcrypt
60620         manually.
60621
60622 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60623
60624         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60625
60626 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60627
60628         Fix problem with getdate on mingw32 reported by Simon Josefsson
60629         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60630         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60631         tzname", when deciding whether to declare tzname.
60632         * lib/strftime.c (tzname): Likewise.
60633
60634 2008-01-15  Bruno Haible  <bruno@clisp.org>
60635
60636         Work around a MacOS X 10.5 bug in frexpl().
60637         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60638         * doc/functions/frexpl.texi: Document the bug.
60639         Reported by Elias Pipping <pipping@gentoo.org>.
60640
60641 2008-01-14  Eric Blake  <ebb9@byu.net>
60642
60643         Touch up previous patch.
60644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60645         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60646
60647         Convert strcasestr module to use Two-Way algorithm.
60648         * modules/strcasestr-simple: New module, based on the old
60649         strcasestr, but with Two-Way rather than KMP.
60650         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60651         * lib/string.in.h (rpl_strcasestr): Declare.
60652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60653         performance.
60654         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60655         * modules/string (Makefile.am): Support strcasestr.
60656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60657         * modules/strcasestr-tests (Depends-on): Check for alarm.
60658         * tests/test-strcasestr.c: Augment test.
60659         * lib/str-two-way.h: Clean up stray macro.
60660         * NEWS: Document new module.
60661         * MODULES.html.sh (string handling): Likewise.
60662         * doc/functions/strcasestr.texi: New file.
60663         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60664         here, since it is not a POSIX function.
60665
60666 2008-01-14  Colin Watson  <cjwatson@debian.org>
60667             Bruno Haible  <bruno@clisp.org>
60668
60669         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60670         works fine; if not, set REPLACE_STRSIGNAL.
60671         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60673         REPLACE_STRSIGNAL.
60674         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60675         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60676         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60677
60678 2008-01-14  Bruno Haible  <bruno@clisp.org>
60679
60680         * modules/strsignal (Include): Change to <string.h>.
60681
60682 2008-01-14  Colin Watson  <cjwatson@debian.org>
60683
60684         * modules/argp (Notice): Add a notice recommending to change
60685         XGETTEXT_OPTIONS.
60686         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60687
60688 2008-01-13  Colin Watson  <cjwatson@debian.org>
60689
60690         * modules/strsignal-tests: New file.
60691         * tests/test-strsignal.c: New file.
60692
60693         * lib/strsignal.c: New file, from glibc with modifications.
60694         * lib/siglist.h: New file, from glibc with modifications.
60695         * lib/string.in.h (strsignal): New declaration.
60696         * m4/strsignal.m4: New file.
60697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60698         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60699         * modules/strsignal: New file.
60700         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60701         HAVE_DECL_STRSIGNAL.
60702
60703 2008-01-13  Bruno Haible  <bruno@clisp.org>
60704
60705         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60706         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60707         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60708         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60709
60710 2008-01-13  Bruno Haible  <bruno@clisp.org>
60711
60712         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60713         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60714         * lib/argp.h (__attribute__): Likewise.
60715         * lib/c-stack.c (__attribute__): Likewise.
60716         * lib/error.h (__attribute__): Likewise.
60717         * lib/fts.c (__attribute__): Likewise.
60718         * lib/openat.h (__attribute__): Likewise.
60719         * lib/stdio.in.h (__attribute__): Likewise.
60720         * lib/string.in.h (__attribute__): Likewise.
60721         * lib/utimens.c (__attribute__): Likewise.
60722         * lib/vasnprintf.h (__attribute__): Likewise.
60723         * lib/xalloc.h (__attribute__): Likewise.
60724         * lib/xprintf.h (__attribute__): Likewise.
60725         * lib/xstrtol.h (__attribute__): Likewise.
60726         * lib/xvasprintf.h (__attribute__): Likewise.
60727
60728 2008-01-12  Bruno Haible  <bruno@clisp.org>
60729
60730         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60731         * doc/glibc-headers/a.out.texi: New file.
60732         * doc/glibc-headers/aliases.texi: New file.
60733         * doc/glibc-headers/alloca.texi: New file.
60734         * doc/glibc-headers/ar.texi: New file.
60735         * doc/glibc-headers/argp.texi: New file.
60736         * doc/glibc-headers/argz.texi: New file.
60737         * doc/glibc-headers/byteswap.texi: New file.
60738         * doc/glibc-headers/crypt.texi: New file.
60739         * doc/glibc-headers/endian.texi: New file.
60740         * doc/glibc-headers/envz.texi: New file.
60741         * doc/glibc-headers/err.texi: New file.
60742         * doc/glibc-headers/error.texi: New file.
60743         * doc/glibc-headers/execinfo.texi: New file.
60744         * doc/glibc-headers/fpu_control.texi: New file.
60745         * doc/glibc-headers/fstab.texi: New file.
60746         * doc/glibc-headers/fts.texi: New file.
60747         * doc/glibc-headers/getopt.texi: New file.
60748         * doc/glibc-headers/ieee754.texi: New file.
60749         * doc/glibc-headers/ifaddrs.texi: New file.
60750         * doc/glibc-headers/libintl.texi: New file.
60751         * doc/glibc-headers/mcheck.texi: New file.
60752         * doc/glibc-headers/mntent.texi: New file.
60753         * doc/glibc-headers/obstack.texi: New file.
60754         * doc/glibc-headers/paths.texi: New file.
60755         * doc/glibc-headers/printf.texi: New file.
60756         * doc/glibc-headers/pty.texi: New file.
60757         * doc/glibc-headers/resolv.texi: New file.
60758         * doc/glibc-headers/shadow.texi: New file.
60759         * doc/glibc-headers/sysexits.texi: New file.
60760         * doc/glibc-headers/ttyent.texi: New file.
60761
60762 2008-01-12  Jim Meyering  <meyering@redhat.com>
60763
60764         announce-gen: emit Gnulib's git-based version string.
60765         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60766         New option --gnulib-version=V, where V is expected to be
60767         the output of running git describe in the gnulib directory.
60768         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60769         not useful, and plan to stop publishing an xdelta file with each
60770         coreutils release.
60771
60772         * build-aux/announce-gen: Also check for lzma-compressed files.
60773
60774 2008-01-11  Bruno Haible  <bruno@clisp.org>
60775
60776         * tests/test-memmem.c (main): Increase maximum allowed time.
60777         * tests/test-strstr.c (main): Likewise.
60778
60779 2008-01-11  Bruno Haible  <bruno@clisp.org>
60780
60781         * doc/functions/memmem.texi: Add more precisions about platforms.
60782         * doc/functions/strstr.texi: Likewise.
60783
60784 2008-01-10  Eric Blake  <ebb9@byu.net>
60785
60786         * m4/strstr.m4: Delete cruft from copy-n-paste.
60787         Reported by Bruno Haible.
60788
60789 2008-01-10  Bruno Haible  <bruno@clisp.org>
60790
60791         Make c-strstr rely on strstr.
60792         * lib/c-strstr.c: Don't include str-kmp.h.
60793         (c_strstr): Define in terms of strstr.
60794         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60795         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60796
60797 2008-01-10  Bruno Haible  <bruno@clisp.org>
60798
60799         * doc/gnulib.texi (String Functions in C Locale): New section.
60800         * doc/c-ctype.texi: New file.
60801         * doc/c-strcase.texi: New file.
60802         * doc/c-strcaseeq.texi: New file.
60803         * doc/c-strcasestr.texi: New file.
60804         * doc/c-strstr.texi: New file.
60805         * doc/c-strtod.texi: New file.
60806         * doc/c-strtold.texi: New file.
60807
60808 2008-01-10  Eric Blake  <ebb9@byu.net>
60809
60810         * lib/relocatable.h: Fix a comment.
60811
60812 2008-01-10  Eric Blake  <ebb9@byu.net>
60813
60814         Share two-way algorithm.
60815         * lib/str-two-way.h: New file, merged from...
60816         * lib/memmem.c: ...here...
60817         * lib/strstr.c: ...and here.
60818         * modules/memmem (Files): Use it.
60819         * modules/strstr (Files): Likewise.
60820
60821         Avoid quadratic strstr implementations.
60822         * lib/strstr.c: New file.
60823         * m4/strstr.m4: Likewise.
60824         * modules/strstr: Likewise.
60825         * modules/strstr-tests: Likewise.
60826         * tests/test-strstr.c: Likewise.
60827         * lib/string.in.h (rpl_strstr): Declare.
60828         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60830         * modules/string (Makefile.am): Likewise.
60831         * MODULES.html.sh (string handling): Mention new module.
60832         * doc/functions/strstr.texi (strstr): Document the bug.
60833
60834 2008-01-10  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/relocatable.h (relocate): State whether result is freshly
60837         allocated or not.
60838         * lib/relocatable.c (relocate): Return a freshly allocated string
60839         instead of a pointer to a privately held string.
60840         Reported by Sylvain Beucler <beuc@gnu.org>.
60841
60842 2008-01-10  Colin Watson  <cjwatson@debian.org>
60843
60844         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
60845         s/S_ISNLK/S_ISLNK/.
60846
60847 2008-01-09  Bruno Haible  <bruno@clisp.org>
60848
60849         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
60850         and other files.
60851         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
60852         if it's only a guess.
60853         * modules/memmem: Simplify by depending on memmem-simple.
60854
60855 2008-01-09  Bruno Haible  <bruno@clisp.org>
60856
60857         Work around OpenBSD 4.0 tdelete() bug.
60858         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
60859         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
60860         macros and don't redefine the enum values.
60861         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
60862         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
60863         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
60864
60865 2008-01-09  Bruno Haible  <bruno@clisp.org>
60866
60867         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
60868         (main): Don't perform the tests if setlocale did not install a UTF-8
60869         locale. Needed on OpenBSD 4.0.
60870         * modules/wcwidth-tests (Depends-on): Add localcharset.
60871
60872 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60873
60874         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
60875         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
60876         * NEWS: announce this.
60877         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
60878
60879 2008-01-09  Simon Josefsson  <simon@josefsson.org>
60880         and Eric Blake  <ebb9@byu.net>
60881
60882         Add memmem-simple module.
60883         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
60884         (gl_FUNC_MEMMEM): Separate performance from presence checks.
60885         * modules/memmem-simple: New file.
60886         * modules/memmem (Description): Tweak.
60887         * MODULES.html.sh (string handling): Mention new module.
60888         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
60889         addressed by memmem-simple.
60890         * NEWS: Document the difference.
60891
60892 2008-01-09  Eric Blake  <ebb9@byu.net>
60893
60894         Give gcc some memmem optimization hints.
60895         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
60896         (strcasestr): Declare as pure.
60897         * modules/memmem (Maintainer): Claim my implementation.
60898
60899 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60900
60901         Support AIX 6.1 and higher.
60902         * build-aux/config.libpath: Likewise.
60903         * build-aux/config.rpath: Likewise.
60904
60905 2008-01-08  Jim Meyering  <meyering@redhat.com>
60906             Bruno Haible  <bruno@clisp.org>
60907
60908         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
60909         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
60910         Reported by Peter Fales in
60911         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
60912
60913 2008-01-08  Bruno Haible  <bruno@clisp.org>
60914
60915         * modules/unictype/category-of (Depends-on): Add
60916         unictype/category-none.
60917         * modules/unictype/category-and-tests (Depends-on): Add
60918         unictype/category-{L,N,Lu,Nd}.
60919         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
60920         * modules/unictype/category-or-tests (Depends-on): Add
60921         unictype/category-{L,N}.
60922         * modules/unictype/category-name-tests (Depends-on): Add
60923         unictype/category-{Z,Nl}.
60924         Reported by Simon Josefsson.
60925
60926 2008-01-08  Bruno Haible  <bruno@clisp.org>
60927
60928         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
60929         convention better.
60930         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
60931         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
60932         Reported by Peter Miller <millerp@canb.auug.org.au>.
60933
60934 2008-01-08  Eric Blake  <ebb9@byu.net>
60935
60936         Rewrite memmem to guarantee linear complexity without malloc.
60937         * lib/memmem.c (memmem): Use Two-Way rather than
60938         Knuth-Morris-Pratt, to allow O(1) space usage.
60939         (critical_factorization, two_way_short_needle)
60940         (two_way_long_needle): New functions.
60941         (knuth_morris_pratt): Delete.
60942         * modules/memmem (Depends-on): No longer need malloca or stdbool.
60943         Add stdint.
60944         * tests/test-memmem.c (main): Add tests for periodic needle and
60945         sublinear performance.
60946         * doc/functions/memmem.texi (memmem): Document other deficiencies
60947         in cygwin and older glibc.
60948
60949 2008-01-08  Bruno Haible  <bruno@clisp.org>
60950
60951         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
60952         augmentation.
60953
60954 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
60955
60956         Add a configure time option: --disable-acl.
60957         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
60958         AC_ARG_ENABLE(acl).
60959
60960 2008-01-06  Simon Josefsson  <simon@josefsson.org>
60961
60962         * tests/test-localename.c: Don't include obsolete "setenv.h".
60963
60964         * modules/localename-tests (Depends-on): Need unsetenv.
60965
60966 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60967
60968         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
60969
60970 2008-01-06  Colin Watson  <cjwatson@debian.org>
60971
60972         * users.txt: Add man-db.
60973
60974 2008-01-07  Bruno Haible  <bruno@clisp.org>
60975
60976         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60977         previous section name.
60978
60979 2008-01-07  Bruno Haible  <bruno@clisp.org>
60980
60981         * lib/progname.c (set_program_name): Don't strip off a leading
60982         "lt-" prefix outside a .libs directory.
60983         Suggested by Paul Eggert.
60984
60985 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60986             Bruno Haible  <bruno@clisp.org>
60987
60988         Improve memory cleanup in 'relocatable' module.
60989         * lib/relocatable.h (compute_curr_prefix): Change return type to
60990         'char *'.
60991         * lib/relocatable.c (compute_curr_prefix): Change return type to
60992         'char *'. Free curr_installdir after use.
60993         (relocate): Free curr_prefix_better after use.
60994         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60995
60996 2008-01-01  Bruno Haible  <bruno@clisp.org>
60997
60998         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60999         failure on older glibc systems.
61000         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61001
61002 2008-01-05  Eric Blake  <ebb9@byu.net>
61003
61004         Avoid quadratic system memmem.
61005         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61006         Reported by Ralf Wildenhues.
61007
61008         Fix memmem test for mingw.
61009         * modules/memmem-tests (configure.ac): Check for alarm.
61010         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61011         it.
61012         * doc/functions/memmem.texi: New file.
61013         * doc/gnulib.texi (Function Substitutes): Add memmem.
61014         Reported by Bruno Haible.
61015
61016 2008-01-04  Bruno Haible  <bruno@clisp.org>
61017
61018         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61019         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61020         gl_HEADER_STRING_H_DEFAULTS.
61021
61022 2008-01-04  Eric Blake  <ebb9@byu.net>
61023
61024         Shorten duration of memmem test.
61025         * tests/test-memmem.c (main): Use alarm to declare failure if test
61026         is taking too long.
61027         Reported by Ralf Wildenhues.
61028
61029 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61030
61031         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61032         string, needed by strerror.
61033
61034 2008-01-03  Colin Watson  <cjwatson@debian.org>
61035             Bruno Haible  <bruno@clisp.org>
61036
61037         * doc/gnulib-tool.texi (Localization): New section.
61038
61039 2008-01-02  Bruno Haible  <bruno@clisp.org>
61040
61041         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61042         variables to 'unsigned char *' type.
61043         Reported by Paul Eggert.
61044
61045 2008-01-02  Jim Meyering  <jim@meyering.net>
61046
61047         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61048
61049 2007-12-31  Jim Meyering  <jim@meyering.net>
61050
61051         Avoid use of private FTS type name.
61052         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61053
61054 2007-12-30  Karl Berry  <karl@gnu.org>
61055
61056         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61057         work around defect in Texinfo and/or the standalone Info browser.
61058
61059 2007-12-30  Bruno Haible  <bruno@clisp.org>
61060
61061         Unify 5 copies of the KMP code.
61062         * lib/str-kmp.h: New file.
61063         * lib/c-strcasestr.c: Include str-kmp.h.
61064         (knuth_morris_pratt): Remove function.
61065         (c_strcasestr): Update.
61066         * lib/c-strstr.c: Include str-kmp.h.
61067         (knuth_morris_pratt): Remove function.
61068         (c_strcasestr): Update.
61069         * lib/mbscasestr.c: Include str-kmp.h.
61070         (knuth_morris_pratt_unibyte): Remove function.
61071         * lib/mbsstr.c: Include str-kmp.h.
61072         (knuth_morris_pratt_unibyte): Remove function.
61073         * lib/strcasestr.c: Include str-kmp.h.
61074         (knuth_morris_pratt): Remove function.
61075         (strcasestr): Update.
61076         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61077         * modules/c-strstr (Files): Likewise.
61078         * modules/mbscasestr (Files): Likewise.
61079         * modules/mbsstr (Files): Likewise.
61080         * modules/strcasestr (Files): Likewise.
61081         Suggested by Paul Eggert.
61082
61083 2007-12-30  Bruno Haible  <bruno@clisp.org>
61084
61085         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61086         defined.
61087
61088 2007-12-30  Bruno Haible  <bruno@clisp.org>
61089
61090         * lib/xmalloca.h: Include xalloc.h.
61091         (xnmalloca): New macro.
61092
61093 2007-12-30  Bruno Haible  <bruno@clisp.org>
61094
61095         * lib/malloca.h (nmalloca): New macro.
61096         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61097         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61098         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61099         knuth_morris_pratt_multibyte): Likewise.
61100         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61101         knuth_morris_pratt_multibyte): Likewise.
61102         * lib/memmem.c (knuth_morris_pratt): Likewise.
61103         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61104
61105 2007-12-25  Bruno Haible  <bruno@clisp.org>
61106
61107         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61108         * lib/glob.c: Don't include openat.h.
61109         (link_exists2_p): Add back the code that deals with the
61110         !GLOB_ALTDIRFUNC case.
61111         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61112         let it do the filename concatenation.
61113         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61114         * modules/glob (Depends-on): Remove openat.
61115
61116 2007-12-31  Bruno Haible  <bruno@clisp.org>
61117
61118         * modules/dirfd (License): Change to LGPLv2+.
61119         Approved by Jim Meyering.
61120
61121 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61122
61123         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61124         when multiplying M by sizeof (size_t).
61125
61126 2007-12-10  Martin Lambers  <marlam@marlam.de>
61127
61128         Override getpagesize on mingw.
61129         * lib/getpagesize.c: New file.
61130         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61131         * modules/getpagesize (Files): Add lib/getpagesize.c.
61132         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61134         REPLACE_GETPAGESIZE.
61135         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61136
61137 2007-12-25  Bruno Haible  <bruno@clisp.org>
61138
61139         * modules/localcharset (Notice): New field.
61140         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61141         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61142
61143 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61144             Bruno Haible  <bruno@clisp.org>
61145
61146         Avoid using the syntax symbol() in formatted documentation.
61147         * MODULES.html.sh (func_module): When replacing symbol() with a
61148         hyperlink, remove the parentheses. Show an error if some remain.
61149         Recognize and render the '...' syntax.
61150         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61151         Rework. Add paragraph about GCC's inlining.
61152         * doc/alloca.texi: Likewise.
61153         * doc/error.texi: Remove parentheses from symbol reference.
61154         * doc/gnulib-intro.texi: Likewise.
61155         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61156         * modules/fnmatch (Description): Reword to say "the ... function".
61157         * modules/full-read (Description): Likewise.
61158         * modules/full-write (Description): Likewise.
61159         * modules/safe-read (Description): Likewise.
61160         * modules/safe-write (Description): Likewise.
61161         * modules/strchrnul (Description): Likewise.
61162         * modules/trim (Description): Likewise.
61163         * modules/error (Description): Remove parentheses from symbol
61164         references.
61165         * modules/verror (Description): Likewise.
61166         Reported by Karl Berry.
61167
61168 2007-12-25  Bruno Haible  <bruno@clisp.org>
61169
61170         Fixup after 2007-10-16 commit.
61171         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61172
61173 2007-12-24  Bruno Haible  <bruno@clisp.org>
61174
61175         Make --enable-relocatable work with DESTDIR.
61176         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61177         to compute installdir from destprog.
61178         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61179         also set the RELOC_DESTDIR variable.
61180         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61181
61182 2007-12-24  Bruno Haible  <bruno@clisp.org>
61183
61184         Fix link error due to xalloc_die().
61185         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61186         of xreadlink.
61187         * lib/relocwrapper.c: Update comments.
61188         * build-aux/install-reloc: Remove xreadlink.c from file list.
61189         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61190         xreadlink.c.
61191         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61192
61193 2007-12-24  Bruno Haible  <bruno@clisp.org>
61194
61195         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61196         * lib/setenv.h: Remove file.
61197         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61198         lib/setenv.h.
61199         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61200         (Depends-on): Add stdlib.
61201         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61202         gl_FUNC_UNSETENV.
61203         (Include): Replace setenv.h with <stdlib.h>.
61204         * modules/unsetenv: New file.
61205         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61206         * lib/unsetenv.c: Include <stdlib.h> first.
61207         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61208         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61209         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61210         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61211         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61212         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61214         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61215         * doc/functions/unsetenv.texi: Update.
61216         * modules/xsetenv (Depends-on): Add unsetenv.
61217         * modules/getdate (Depends-on): Likewise.
61218         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61219         * lib/xsetenv.c: Don't include setenv.h.
61220         * lib/getdate.y: Likewise.
61221         * lib/relocwrapper.c: Likewise.
61222         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61223         (Depends-on): Add stdlib.
61224         * NEWS: Mention the changes.
61225         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61226
61227 2007-12-23  Bruno Haible  <bruno@clisp.org>
61228
61229         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61230         indentation.
61231
61232 2007-12-23  Bruno Haible  <bruno@clisp.org>
61233
61234         * lib/c-strcasestr.c: Add more comments.
61235         * lib/c-strstr.c: Likewise.
61236         * lib/mbscasestr.c: Likewise.
61237         * lib/mbsstr.c: Likewise.
61238         * lib/strcasestr.c: Likewise.
61239         * lib/memmem.c: Likewise.
61240
61241 2007-12-23  Bruno Haible  <bruno@clisp.org>
61242
61243         * tests/test-memmem.c: Include <string.h> first.
61244
61245 2007-12-22  Bruno Haible  <bruno@clisp.org>
61246
61247         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61248         the contents of $testsbase.
61249         Reported by Ralf Wildenhues.
61250
61251 2007-12-22  Bruno Haible  <bruno@clisp.org>
61252
61253         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61254         two variables local_ldadd_before, local_ldadd_last.
61255
61256 2007-12-20  Eric Blake  <ebb9@byu.net>
61257
61258         Work around circular library issue when cross-compiling.
61259         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61260         that progname.o does not need to pull in rpl_memcmp.
61261
61262 2007-12-19  Eric Blake  <ebb9@byu.net>
61263
61264         Fix memmem to avoid O(n^2) worst-case complexity.
61265         * lib/memmem.c (knuth_morris_pratt): New function.
61266         (memmem): Use it if first few naive iterations fail.
61267         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61268         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61269         * modules/memchr (License): Likewise.
61270         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61271         malloca.
61272         * tests/test-memmem.c: Rewrite, borrowing ideas from
61273         test-mbsstr1.c; the old version wouldn't even compile!
61274         * modules/memmem-tests: New file.
61275         * lib/string.in.h (rpl_memmem): Add declaration.
61276         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61278         REPLACE_MEMMEM.
61279
61280 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61281
61282         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61283         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61284         before any system include files, and undef after them all.  This
61285         should fix a problem on VMS reported by John E. Malmberg in
61286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61287
61288 2007-12-17  Eric Blake  <ebb9@byu.net>
61289
61290         Revert addition of verify, for BSD/OS.
61291         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61292         can't handle large files, for the sake of obsolete platforms.
61293         * modules/fseeko (Depends-on): Remove verify.
61294         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61295         * doc/functions/ftello.texi (ftello): Likewise.
61296         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61297         Reported by Larry Jones.
61298
61299 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61300
61301         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61302         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61303
61304 2007-12-17  Jim Meyering  <meyering@redhat.com>
61305
61306         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61307         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61308         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61309         * modules/getcwd (Depends-on): Add openat.
61310         Reported by Petr Salinger.
61311
61312 2007-12-17  Bruno Haible  <bruno@clisp.org>
61313
61314         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61315         avoid a segmentation fault of the configure test on x86_64 systems.
61316
61317 2007-12-15  Jim Meyering  <meyering@redhat.com>
61318
61319         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61320
61321 2007-12-13  Eric Blake  <ebb9@byu.net>
61322
61323         Another fseek test.
61324         * tests/test-fseek.c (main): Also test ungetc handling.
61325         * tests/test-fseeko.c (main): Likewise.
61326         * modules/fseeko (Depends-on): Add verify.
61327         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61328         large.
61329         Reported by Larry Jones.
61330
61331         Fix fseeko on mingw.
61332         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61333         seek.
61334
61335         Beef up fseek tests.
61336         * tests/test-fseek.c (main): Also test eof handling.
61337         * tests/test-fseeko.c (main): Likewise.
61338         Reported by Larry Jones.
61339
61340 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61341
61342         Fix fseeko on BSD-based platforms.
61343         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61344         successful seek.
61345
61346 2007-12-12  Eric Blake  <ebb9@byu.net>
61347
61348         Allow circular dependency of separate libtests.a
61349         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61350         when use_libtests.
61351
61352 2007-12-11  Eric Blake  <ebb9@byu.net>
61353
61354         Fix bug with -0.0L in previous patch.
61355         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61356         * tests/test-isnan.c (main): Also test on zeroes.
61357         * tests/test-isnanf.c (main): Likewise.
61358         * tests/test-isnanl.h (main): Likewise.
61359
61360         Detect pseudo-denormals on x86 even when cross-compiling.
61361         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61362         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61363         invalid bit patterns that happen to satisfy ==.
61364
61365         Avoid link failures with separate libtests.a.
61366         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61367         last, to satisfy circular dependencies.
61368
61369 2007-12-11  Eric Blake  <ebb9@byu.net>
61370         and Bruno Haible  <bruno@clisp.org>
61371
61372         Fix OpenBSD 4.0 <float.h> handling of long double.
61373         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61374         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61375         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61376
61377 2007-12-11  Jim Meyering  <meyering@redhat.com>
61378
61379         * users.txt: Add libvirt.
61380
61381         Support versions of autoconf prior to 2.59c.
61382         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61383         if it is not already defined.
61384
61385 2007-12-09  Bruno Haible  <bruno@clisp.org>
61386
61387         Let 'gnulib-tool --import' collect sources needed for the tests in
61388         tests/ rather than in lib/.
61389         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61390         argument. If true, add rules to generate libtests.a, and put libtests.a
61391         into $(LDADD). Consider source files in subdirectories and set
61392         uses_subdirs.
61393         (func_emit_initmacro_start, func_emit_initmacro_end,
61394         func_emit_initmacro_done): Pass all arguments explicitly.
61395         (func_import): Determine two module lists main_modules,
61396         testsrelated_modules. Determine use_libtests. Determine two variables
61397         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61398         instead of just sed_transform_lib_file. Determine two variables
61399         main_files and testsrelated_files. Compute 'files' as the union of
61400         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61401         func_add_or_update. In the generated gnulib-comp.m4, collect the
61402         object files for tests/ in different variables than those for lib/.
61403         Substitute LIBTESTS_LIBDEPS.
61404         (func_create_testdir): Combine the uses_subdirs results from
61405         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61406
61407 2007-12-09  Bruno Haible  <bruno@clisp.org>
61408
61409         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61410         the build-aux directory.
61411
61412 2007-12-09  Bruno Haible  <bruno@clisp.org>
61413
61414         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61415         introduced on 2006-09-09.
61416
61417 2007-12-07  Jim Meyering  <meyering@redhat.com>
61418
61419         Let these macros work also with autoconf-2.59.
61420         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61421         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61422         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61423
61424 2007-12-06  Jim Meyering  <meyering@redhat.com>
61425
61426         Avoid a configure-time syntax error in gl_FUNC_ACL.
61427         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61428         function in each branch, before testing the cache variable.
61429
61430 2007-12-04  Eric Blake  <ebb9@byu.net>
61431
61432         Make scripts executable.
61433         * build-aux/config.guess: Add execute permissions.
61434         * build-aux/config.sub: Likewise.
61435         * build-aux/gendocs.sh: Likewise.
61436
61437         Fix frexp on mingw.
61438         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61439         cross-compiling.
61440         * doc/functions/frexp.texi (frexp): Document the bug.
61441
61442         Make cygwin fseeko check more reliable.
61443         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61444         version numbers, rather than unrelated feature check.
61445         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61446         * doc/functions/ftello.texi (ftello): Likewise.
61447         Reported by Bruno Haible.
61448
61449         * m4/strerror.m4: Bump version number.
61450
61451 2007-12-03  Bruno Haible  <bruno@clisp.org>
61452
61453         * doc/functions/mprotect.texi: Mention the mingw problem.
61454
61455 2007-12-03  Eric Blake  <ebb9@byu.net>
61456
61457         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61458         REPLACE_STRERROR is initialized before this macro.
61459
61460 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61461
61462         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61463         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61464         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61465         put -lsec in even for programs other than 'ls'.  This fixes a problem
61466         for gettext reported by Bruno Haible in
61467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61468         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61469         Add support for Solaris 10.  This isn't efficient, but should get the
61470         job done for now.
61471
61472 2007-12-03  James Youngman  <jay@gnu.org>
61473
61474         * doc/regexprops-generic.texi: change "an close-group" to "a
61475         close-group" and "illegal" to "not allowed".
61476
61477 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61478
61479         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61480         pr_byname.h. Needed for the rare case when the maintainer has done
61481         "make maintainer-clean" in the source directory and then attempts a
61482         build outside the source directory.
61483         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61484         scripts_byname.h.
61485
61486 2007-12-02  Martin Lambers <marlam@marlam.de>
61487             Bruno Haible  <bruno@clisp.org>
61488
61489         * lib/getpagesize.h: Remove file.
61490         * lib/unistd.in.h: Include declaration of getpagesize here.
61491         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61492         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61493         HAVE_SYS_PARAM_H.
61494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61495         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61496         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61497         (Depends-on): Add unistd.
61498         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61499         (Include): Use <unistd.h> instead of getpagesize.h.
61500         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61501         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61502         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61503         gl_GETPAGESIZE invocation, already handled by module dependency.
61504         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61505
61506 2007-12-02  Bruno Haible  <bruno@clisp.org>
61507
61508         * modules/strings-tests: New file.
61509         * tests/test-strings.c: New file.
61510
61511         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61512         * lib/strings.in.h: New file.
61513         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61514         * m4/strings_h.m4: New file.
61515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61516         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61517         * modules/strings: New file.
61518         * modules/string (Makefile.am): Update.
61519         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61520         Reported by Karl Berry.
61521
61522 2007-12-01  Eric Blake  <ebb9@byu.net>
61523
61524         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61525         accommodate fix in cygwin 1.5.25.
61526
61527 2007-12-01  Jim Meyering  <meyering@redhat.com>
61528
61529         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61530         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61531         that would inhibit utf8-optimization of a regexp containing line-
61532         or buffer-anchors, e.g., `^', `$'.
61533
61534 2007-11-30  Bruno Haible  <bruno@clisp.org>
61535
61536         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61537         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61538         glthread_recursive_lock_init.
61539         * lib/lock.c (glthread_recursive_lock_init)
61540         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61541         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61542
61543 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         New function qset_acl, like set_acl but with syscall semantics.
61546         * lib/acl.h (qset_acl): New decl.
61547         * lib/acl.c (qset_acl): New function.
61548         (set_acl): Use new function.  Use more-consistent diagnostics.
61549
61550 2007-11-28  Jim Meyering  <meyering@redhat.com>
61551
61552         * modules/physmem (License): Change from GPL to LGPLv2+.
61553
61554 2007-11-26  Bruno Haible  <bruno@clisp.org>
61555
61556         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61557         'long double' type has excess precision.
61558         Reported by Jim Meyering in
61559         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61560
61561 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61562
61563         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61564         Sync from <http://gnu.org/licenses>.
61565         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61566         with license text from same location.
61567         * doc/maintain.texi, doc/standards.texi:  Sync from
61568         <http://savannah.gnu.org/projects/gnustandards>.
61569
61570 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
61571         and Jim Meyering  <meyering@redhat.com>
61572
61573         Adjust getdate' grammar to accept a slightly more regular language.
61574         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61575         Before, the former was rejected.
61576         * lib/getdate.y (digits_to_date_time): New function, factored
61577         out of ...
61578         (number): ...here.  Just call digits_to_date_time.
61579         (hybrid): New non-terminal to handle an <unsigned number,
61580         signed relative offset> sequence consistently.
61581
61582 2007-11-18  Jim Meyering  <meyering@redhat.com>
61583
61584         Pull my changes from coreutils:
61585         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61586         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61587         use of $gnulib_tool_option_extras, so that it's separated from the
61588         preceding argument.
61589
61590         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61591         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61592         parent destination directories before copying a file into place.
61593
61594 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61595
61596         bootstrap: work also with 4-argument variant of AC_INIT
61597         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61598
61599 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         Port test-getaddrinfo to Solaris.
61602         Problem reported by Bruno Haible in
61603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61604         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61605         explanation of setting 'hints'.
61606         Don't reject an implementation merely because it returns EAI_SERVICE.
61607         (EAI_SERVICE): Define to 0 if not defined.
61608
61609 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61610
61611         The license of gnu-make and posix-shell is now "GPLed build tool".
61612         * modules/gnu-make (License): Likewise.
61613         * modules/posix-shell (License): Likewise.
61614
61615         New module posix-shell, for determining a POSIX shell
61616         or perhaps something that is close enough to a POSIX shell.
61617         * m4/posix-shell.m4: New file.
61618         * modules/posix-shell: New file.
61619
61620         * MODULES.html.sh: Mention new module.
61621
61622         New module gnu-make, for determining whether we're using GNU Make.
61623         * m4/gnu-make.m4: New file.
61624         * modules/gnu-make: New file.
61625         * MODULES.html.sh: Mention new module.
61626
61627 2007-11-14  Jim Meyering  <meyering@redhat.com>
61628
61629         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61630         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61631         use this macro to create a function _definition_.
61632         Remove useless "#undef ARGMATCH_DIE".
61633
61634 2007-11-14  Bruno Haible  <bruno@clisp.org>
61635
61636         * lib/config.charset: Update for OpenBSD 4.1.
61637         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61638
61639 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         Document 64-bit #if problems in stdint.texi.
61642         * doc/headers/stdint.texi (stdint.h): Mention problems with
61643         64-bit-#if, and how to work around them.
61644
61645         Don't insist on 'long long int' support in the preprocessor.  It
61646         breaks too many things.  For example, PRIdMAX still uses a 'long
61647         long int' format with the latest Sun compiler, even though
61648         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61649         preprocessor problem.  This causes the latest coreutils to dump
61650         core on Solaris 10 sparc with the Sun C compiler.
61651         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61652         the troublesome expressions at configure-time, not at #if-time.
61653         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61654         preprocessor.
61655         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61656         compile-time C checks, done at 'configure'-time.
61657         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61658         * modules/inttypes (Makefile): Substitute the new symbols that
61659         gl_INTTYPES_H now generates.
61660         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61661
61662 2007-11-12  Bruno Haible  <bruno@clisp.org>
61663
61664         Tests for Unicode character classification functions.
61665
61666         * modules/unictype/bidicategory-byname-tests: New file.
61667         * modules/unictype/bidicategory-name-tests: New file.
61668         * modules/unictype/bidicategory-of-tests: New file.
61669         * modules/unictype/bidicategory-test-tests: New file.
61670         * modules/unictype/block-list-tests: New file.
61671         * modules/unictype/block-of-tests: New file.
61672         * modules/unictype/block-test-tests: New file.
61673         * modules/unictype/category-C-tests: New file.
61674         * modules/unictype/category-Cc-tests: New file.
61675         * modules/unictype/category-Cf-tests: New file.
61676         * modules/unictype/category-Cn-tests: New file.
61677         * modules/unictype/category-Co-tests: New file.
61678         * modules/unictype/category-Cs-tests: New file.
61679         * modules/unictype/category-L-tests: New file.
61680         * modules/unictype/category-Ll-tests: New file.
61681         * modules/unictype/category-Lm-tests: New file.
61682         * modules/unictype/category-Lo-tests: New file.
61683         * modules/unictype/category-Lt-tests: New file.
61684         * modules/unictype/category-Lu-tests: New file.
61685         * modules/unictype/category-M-tests: New file.
61686         * modules/unictype/category-Mc-tests: New file.
61687         * modules/unictype/category-Me-tests: New file.
61688         * modules/unictype/category-Mn-tests: New file.
61689         * modules/unictype/category-N-tests: New file.
61690         * modules/unictype/category-Nd-tests: New file.
61691         * modules/unictype/category-Nl-tests: New file.
61692         * modules/unictype/category-No-tests: New file.
61693         * modules/unictype/category-P-tests: New file.
61694         * modules/unictype/category-Pc-tests: New file.
61695         * modules/unictype/category-Pd-tests: New file.
61696         * modules/unictype/category-Pe-tests: New file.
61697         * modules/unictype/category-Pf-tests: New file.
61698         * modules/unictype/category-Pi-tests: New file.
61699         * modules/unictype/category-Po-tests: New file.
61700         * modules/unictype/category-Ps-tests: New file.
61701         * modules/unictype/category-S-tests: New file.
61702         * modules/unictype/category-Sc-tests: New file.
61703         * modules/unictype/category-Sk-tests: New file.
61704         * modules/unictype/category-Sm-tests: New file.
61705         * modules/unictype/category-So-tests: New file.
61706         * modules/unictype/category-Z-tests: New file.
61707         * modules/unictype/category-Zl-tests: New file.
61708         * modules/unictype/category-Zp-tests: New file.
61709         * modules/unictype/category-Zs-tests: New file.
61710         * modules/unictype/category-and-not-tests: New file.
61711         * modules/unictype/category-and-tests: New file.
61712         * modules/unictype/category-byname-tests: New file.
61713         * modules/unictype/category-name-tests: New file.
61714         * modules/unictype/category-none-tests: New file.
61715         * modules/unictype/category-of-tests: New file.
61716         * modules/unictype/category-or-tests: New file.
61717         * modules/unictype/category-test-withtable-tests: New file.
61718         * modules/unictype/combining-class-tests: New file.
61719         * modules/unictype/ctype-alnum-tests: New file.
61720         * modules/unictype/ctype-alpha-tests: New file.
61721         * modules/unictype/ctype-blank-tests: New file.
61722         * modules/unictype/ctype-cntrl-tests: New file.
61723         * modules/unictype/ctype-digit-tests: New file.
61724         * modules/unictype/ctype-graph-tests: New file.
61725         * modules/unictype/ctype-lower-tests: New file.
61726         * modules/unictype/ctype-print-tests: New file.
61727         * modules/unictype/ctype-punct-tests: New file.
61728         * modules/unictype/ctype-space-tests: New file.
61729         * modules/unictype/ctype-upper-tests: New file.
61730         * modules/unictype/ctype-xdigit-tests: New file.
61731         * modules/unictype/decimal-digit-tests: New file.
61732         * modules/unictype/digit-tests: New file.
61733         * modules/unictype/mirror-tests: New file.
61734         * modules/unictype/numeric-tests: New file.
61735         * modules/unictype/property-alphabetic-tests: New file.
61736         * modules/unictype/property-ascii-hex-digit-tests: New file.
61737         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61738         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61739         * modules/unictype/property-bidi-block-separator-tests: New file.
61740         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61741         * modules/unictype/property-bidi-common-separator-tests: New file.
61742         * modules/unictype/property-bidi-control-tests: New file.
61743         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61744         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61745         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61746         * modules/unictype/property-bidi-european-digit-tests: New file.
61747         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61748         * modules/unictype/property-bidi-left-to-right-tests: New file.
61749         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61750         * modules/unictype/property-bidi-other-neutral-tests: New file.
61751         * modules/unictype/property-bidi-pdf-tests: New file.
61752         * modules/unictype/property-bidi-segment-separator-tests: New file.
61753         * modules/unictype/property-bidi-whitespace-tests: New file.
61754         * modules/unictype/property-byname-tests: New file.
61755         * modules/unictype/property-combining-tests: New file.
61756         * modules/unictype/property-composite-tests: New file.
61757         * modules/unictype/property-currency-symbol-tests: New file.
61758         * modules/unictype/property-dash-tests: New file.
61759         * modules/unictype/property-decimal-digit-tests: New file.
61760         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61761         * modules/unictype/property-deprecated-tests: New file.
61762         * modules/unictype/property-diacritic-tests: New file.
61763         * modules/unictype/property-extender-tests: New file.
61764         * modules/unictype/property-format-control-tests: New file.
61765         * modules/unictype/property-grapheme-base-tests: New file.
61766         * modules/unictype/property-grapheme-extend-tests: New file.
61767         * modules/unictype/property-grapheme-link-tests: New file.
61768         * modules/unictype/property-hex-digit-tests: New file.
61769         * modules/unictype/property-hyphen-tests: New file.
61770         * modules/unictype/property-id-continue-tests: New file.
61771         * modules/unictype/property-id-start-tests: New file.
61772         * modules/unictype/property-ideographic-tests: New file.
61773         * modules/unictype/property-ids-binary-operator-tests: New file.
61774         * modules/unictype/property-ids-trinary-operator-tests: New file.
61775         * modules/unictype/property-ignorable-control-tests: New file.
61776         * modules/unictype/property-iso-control-tests: New file.
61777         * modules/unictype/property-join-control-tests: New file.
61778         * modules/unictype/property-left-of-pair-tests: New file.
61779         * modules/unictype/property-line-separator-tests: New file.
61780         * modules/unictype/property-logical-order-exception-tests: New file.
61781         * modules/unictype/property-lowercase-tests: New file.
61782         * modules/unictype/property-math-tests: New file.
61783         * modules/unictype/property-non-break-tests: New file.
61784         * modules/unictype/property-not-a-character-tests: New file.
61785         * modules/unictype/property-numeric-tests: New file.
61786         * modules/unictype/property-other-alphabetic-tests: New file.
61787         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61788         * modules/unictype/property-other-grapheme-extend-tests: New file.
61789         * modules/unictype/property-other-id-continue-tests: New file.
61790         * modules/unictype/property-other-id-start-tests: New file.
61791         * modules/unictype/property-other-lowercase-tests: New file.
61792         * modules/unictype/property-other-math-tests: New file.
61793         * modules/unictype/property-other-uppercase-tests: New file.
61794         * modules/unictype/property-paired-punctuation-tests: New file.
61795         * modules/unictype/property-paragraph-separator-tests: New file.
61796         * modules/unictype/property-pattern-syntax-tests: New file.
61797         * modules/unictype/property-pattern-white-space-tests: New file.
61798         * modules/unictype/property-private-use-tests: New file.
61799         * modules/unictype/property-punctuation-tests: New file.
61800         * modules/unictype/property-quotation-mark-tests: New file.
61801         * modules/unictype/property-radical-tests: New file.
61802         * modules/unictype/property-sentence-terminal-tests: New file.
61803         * modules/unictype/property-soft-dotted-tests: New file.
61804         * modules/unictype/property-space-tests: New file.
61805         * modules/unictype/property-terminal-punctuation-tests: New file.
61806         * modules/unictype/property-test-tests: New file.
61807         * modules/unictype/property-titlecase-tests: New file.
61808         * modules/unictype/property-unassigned-code-value-tests: New file.
61809         * modules/unictype/property-unified-ideograph-tests: New file.
61810         * modules/unictype/property-uppercase-tests: New file.
61811         * modules/unictype/property-variation-selector-tests: New file.
61812         * modules/unictype/property-white-space-tests: New file.
61813         * modules/unictype/property-xid-continue-tests: New file.
61814         * modules/unictype/property-xid-start-tests: New file.
61815         * modules/unictype/property-zero-width-tests: New file.
61816         * modules/unictype/scripts-tests: New file.
61817         * modules/unictype/syntax-c-ident-tests: New file.
61818         * modules/unictype/syntax-c-whitespace-tests: New file.
61819         * modules/unictype/syntax-java-ident-tests: New file.
61820         * modules/unictype/syntax-java-whitespace-tests: New file.
61821         * tests/unictype/test-bidi_byname.c: New file.
61822         * tests/unictype/test-bidi_name.c: New file.
61823         * tests/unictype/test-bidi_of.c: New file.
61824         * tests/unictype/test-bidi_test.c: New file.
61825         * tests/unictype/test-block_list.c: New file.
61826         * tests/unictype/test-block_of.c: New file.
61827         * tests/unictype/test-block_test.c: New file.
61828         * tests/unictype/test-categ_and.c: New file.
61829         * tests/unictype/test-categ_and_not.c: New file.
61830         * tests/unictype/test-categ_byname.c: New file.
61831         * tests/unictype/test-categ_name.c: New file.
61832         * tests/unictype/test-categ_none.c: New file.
61833         * tests/unictype/test-categ_of.c: New file.
61834         * tests/unictype/test-categ_or.c: New file.
61835         * tests/unictype/test-categ_test_withtable.c: New file.
61836         * tests/unictype/test-combining.c: New file.
61837         * tests/unictype/test-decdigit.c: New file.
61838         * tests/unictype/test-digit.c: New file.
61839         * tests/unictype/test-mirror.c: New file.
61840         * tests/unictype/test-numeric.c: New file.
61841         * tests/unictype/test-pr_byname.c: New file.
61842         * tests/unictype/test-pr_test.c: New file.
61843         * tests/unictype/test-predicate-part1.h: New file.
61844         * tests/unictype/test-predicate-part2.h: New file.
61845         * tests/unictype/test-scripts.c: New file.
61846         * tests/unictype/test-sy_c_ident.c: New file.
61847         * tests/unictype/test-sy_java_ident.c: New file.
61848
61849         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
61850         for Unicode 5.0.0.
61851         * tests/unictype/test-categ_Cc.c: Likewise.
61852         * tests/unictype/test-categ_Cf.c: Likewise.
61853         * tests/unictype/test-categ_Cn.c: Likewise.
61854         * tests/unictype/test-categ_Co.c: Likewise.
61855         * tests/unictype/test-categ_Cs.c: Likewise.
61856         * tests/unictype/test-categ_L.c: Likewise.
61857         * tests/unictype/test-categ_Ll.c: Likewise.
61858         * tests/unictype/test-categ_Lm.c: Likewise.
61859         * tests/unictype/test-categ_Lo.c: Likewise.
61860         * tests/unictype/test-categ_Lt.c: Likewise.
61861         * tests/unictype/test-categ_Lu.c: Likewise.
61862         * tests/unictype/test-categ_M.c: Likewise.
61863         * tests/unictype/test-categ_Mc.c: Likewise.
61864         * tests/unictype/test-categ_Me.c: Likewise.
61865         * tests/unictype/test-categ_Mn.c: Likewise.
61866         * tests/unictype/test-categ_N.c: Likewise.
61867         * tests/unictype/test-categ_Nd.c: Likewise.
61868         * tests/unictype/test-categ_Nl.c: Likewise.
61869         * tests/unictype/test-categ_No.c: Likewise.
61870         * tests/unictype/test-categ_P.c: Likewise.
61871         * tests/unictype/test-categ_Pc.c: Likewise.
61872         * tests/unictype/test-categ_Pd.c: Likewise.
61873         * tests/unictype/test-categ_Pe.c: Likewise.
61874         * tests/unictype/test-categ_Pf.c: Likewise.
61875         * tests/unictype/test-categ_Pi.c: Likewise.
61876         * tests/unictype/test-categ_Po.c: Likewise.
61877         * tests/unictype/test-categ_Ps.c: Likewise.
61878         * tests/unictype/test-categ_S.c: Likewise.
61879         * tests/unictype/test-categ_Sc.c: Likewise.
61880         * tests/unictype/test-categ_Sk.c: Likewise.
61881         * tests/unictype/test-categ_Sm.c: Likewise.
61882         * tests/unictype/test-categ_So.c: Likewise.
61883         * tests/unictype/test-categ_Z.c: Likewise.
61884         * tests/unictype/test-categ_Zl.c: Likewise.
61885         * tests/unictype/test-categ_Zp.c: Likewise.
61886         * tests/unictype/test-categ_Zs.c: Likewise.
61887         * tests/unictype/test-ctype_alnum.c: Likewise.
61888         * tests/unictype/test-ctype_alpha.c: Likewise.
61889         * tests/unictype/test-ctype_blank.c: Likewise.
61890         * tests/unictype/test-ctype_cntrl.c: Likewise.
61891         * tests/unictype/test-ctype_digit.c: Likewise.
61892         * tests/unictype/test-ctype_graph.c: Likewise.
61893         * tests/unictype/test-ctype_lower.c: Likewise.
61894         * tests/unictype/test-ctype_print.c: Likewise.
61895         * tests/unictype/test-ctype_punct.c: Likewise.
61896         * tests/unictype/test-ctype_space.c: Likewise.
61897         * tests/unictype/test-ctype_upper.c: Likewise.
61898         * tests/unictype/test-ctype_xdigit.c: Likewise.
61899         * tests/unictype/test-decdigit.h: Likewise.
61900         * tests/unictype/test-digit.h: Likewise.
61901         * tests/unictype/test-numeric.h: Likewise.
61902         * tests/unictype/test-pr_alphabetic.c: Likewise.
61903         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
61904         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61905         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61906         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
61907         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61908         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
61909         * tests/unictype/test-pr_bidi_control.c: Likewise.
61910         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
61911         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
61912         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61913         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61914         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61915         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61916         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61917         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61918         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
61919         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
61920         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
61921         * tests/unictype/test-pr_combining.c: Likewise.
61922         * tests/unictype/test-pr_composite.c: Likewise.
61923         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61924         * tests/unictype/test-pr_dash.c: Likewise.
61925         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61926         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
61927         * tests/unictype/test-pr_deprecated.c: Likewise.
61928         * tests/unictype/test-pr_diacritic.c: Likewise.
61929         * tests/unictype/test-pr_extender.c: Likewise.
61930         * tests/unictype/test-pr_format_control.c: Likewise.
61931         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61932         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61933         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61934         * tests/unictype/test-pr_hex_digit.c: Likewise.
61935         * tests/unictype/test-pr_hyphen.c: Likewise.
61936         * tests/unictype/test-pr_id_continue.c: Likewise.
61937         * tests/unictype/test-pr_id_start.c: Likewise.
61938         * tests/unictype/test-pr_ideographic.c: Likewise.
61939         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
61940         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
61941         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61942         * tests/unictype/test-pr_iso_control.c: Likewise.
61943         * tests/unictype/test-pr_join_control.c: Likewise.
61944         * tests/unictype/test-pr_left_of_pair.c: Likewise.
61945         * tests/unictype/test-pr_line_separator.c: Likewise.
61946         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61947         * tests/unictype/test-pr_lowercase.c: Likewise.
61948         * tests/unictype/test-pr_math.c: Likewise.
61949         * tests/unictype/test-pr_non_break.c: Likewise.
61950         * tests/unictype/test-pr_not_a_character.c: Likewise.
61951         * tests/unictype/test-pr_numeric.c: Likewise.
61952         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61953         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
61954         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
61955         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61956         * tests/unictype/test-pr_other_id_start.c: Likewise.
61957         * tests/unictype/test-pr_other_lowercase.c: Likewise.
61958         * tests/unictype/test-pr_other_math.c: Likewise.
61959         * tests/unictype/test-pr_other_uppercase.c: Likewise.
61960         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
61961         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
61962         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
61963         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
61964         * tests/unictype/test-pr_private_use.c: Likewise.
61965         * tests/unictype/test-pr_punctuation.c: Likewise.
61966         * tests/unictype/test-pr_quotation_mark.c: Likewise.
61967         * tests/unictype/test-pr_radical.c: Likewise.
61968         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61969         * tests/unictype/test-pr_soft_dotted.c: Likewise.
61970         * tests/unictype/test-pr_space.c: Likewise.
61971         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61972         * tests/unictype/test-pr_titlecase.c: Likewise.
61973         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61974         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61975         * tests/unictype/test-pr_uppercase.c: Likewise.
61976         * tests/unictype/test-pr_variation_selector.c: Likewise.
61977         * tests/unictype/test-pr_white_space.c: Likewise.
61978         * tests/unictype/test-pr_xid_continue.c: Likewise.
61979         * tests/unictype/test-pr_xid_start.c: Likewise.
61980         * tests/unictype/test-pr_zero_width.c: Likewise.
61981         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61982         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61983
61984 2007-11-12  Bruno Haible  <bruno@clisp.org>
61985
61986         Unicode character classification functions.
61987         * lib/unictype.h: New file.
61988         * modules/unictype/base: New file.
61989         * modules/unictype/category-L: New file.
61990         * modules/unictype/category-Lu: New file.
61991         * modules/unictype/category-Ll: New file.
61992         * modules/unictype/category-Lt: New file.
61993         * modules/unictype/category-Lm: New file.
61994         * modules/unictype/category-Lo: New file.
61995         * modules/unictype/category-M: New file.
61996         * modules/unictype/category-Mn: New file.
61997         * modules/unictype/category-Mc: New file.
61998         * modules/unictype/category-Me: New file.
61999         * modules/unictype/category-N: New file.
62000         * modules/unictype/category-Nd: New file.
62001         * modules/unictype/category-Nl: New file.
62002         * modules/unictype/category-No: New file.
62003         * modules/unictype/category-P: New file.
62004         * modules/unictype/category-Pc: New file.
62005         * modules/unictype/category-Pd: New file.
62006         * modules/unictype/category-Ps: New file.
62007         * modules/unictype/category-Pe: New file.
62008         * modules/unictype/category-Pi: New file.
62009         * modules/unictype/category-Pf: New file.
62010         * modules/unictype/category-Po: New file.
62011         * modules/unictype/category-S: New file.
62012         * modules/unictype/category-Sm: New file.
62013         * modules/unictype/category-Sc: New file.
62014         * modules/unictype/category-Sk: New file.
62015         * modules/unictype/category-So: New file.
62016         * modules/unictype/category-Z: New file.
62017         * modules/unictype/category-Zs: New file.
62018         * modules/unictype/category-Zl: New file.
62019         * modules/unictype/category-Zp: New file.
62020         * modules/unictype/category-C: New file.
62021         * modules/unictype/category-Cc: New file.
62022         * modules/unictype/category-Cf: New file.
62023         * modules/unictype/category-Cs: New file.
62024         * modules/unictype/category-Co: New file.
62025         * modules/unictype/category-Cn: New file.
62026         * modules/unictype/category-or: New file.
62027         * modules/unictype/category-of: New file.
62028         * modules/unictype/category-test: New file.
62029         * modules/unictype/category-test-withtable: New file.
62030         * modules/unictype/category-byname: New file.
62031         * modules/unictype/category-none: New file.
62032         * modules/unictype/category-and: New file.
62033         * modules/unictype/category-and-not: New file.
62034         * modules/unictype/category-name: New file.
62035         * modules/unictype/combining-class: New file.
62036         * modules/unictype/category-all: New file.
62037         * modules/unictype/bidicategory-all: New file.
62038         * modules/unictype/bidicategory-byname: New file.
62039         * modules/unictype/bidicategory-name: New file.
62040         * modules/unictype/bidicategory-of: New file.
62041         * modules/unictype/bidicategory-test: New file.
62042         * modules/unictype/decimal-digit: New file.
62043         * modules/unictype/digit: New file.
62044         * modules/unictype/numeric: New file.
62045         * modules/unictype/mirror: New file.
62046         * modules/unictype/property-white-space: New file.
62047         * modules/unictype/property-alphabetic: New file.
62048         * modules/unictype/property-other-alphabetic: New file.
62049         * modules/unictype/property-not-a-character: New file.
62050         * modules/unictype/property-default-ignorable-code-point: New file.
62051         * modules/unictype/property-other-default-ignorable-code-point: New
62052         file.
62053         * modules/unictype/property-deprecated: New file.
62054         * modules/unictype/property-logical-order-exception: New file.
62055         * modules/unictype/property-variation-selector: New file.
62056         * modules/unictype/property-private-use: New file.
62057         * modules/unictype/property-unassigned-code-value: New file.
62058         * modules/unictype/property-uppercase: New file.
62059         * modules/unictype/property-other-uppercase: New file.
62060         * modules/unictype/property-lowercase: New file.
62061         * modules/unictype/property-other-lowercase: New file.
62062         * modules/unictype/property-titlecase: New file.
62063         * modules/unictype/property-soft-dotted: New file.
62064         * modules/unictype/property-id-start: New file.
62065         * modules/unictype/property-other-id-start: New file.
62066         * modules/unictype/property-id-continue: New file.
62067         * modules/unictype/property-other-id-continue: New file.
62068         * modules/unictype/property-xid-start: New file.
62069         * modules/unictype/property-xid-continue: New file.
62070         * modules/unictype/property-pattern-white-space: New file.
62071         * modules/unictype/property-pattern-syntax: New file.
62072         * modules/unictype/property-join-control: New file.
62073         * modules/unictype/property-grapheme-base: New file.
62074         * modules/unictype/property-grapheme-extend: New file.
62075         * modules/unictype/property-other-grapheme-extend: New file.
62076         * modules/unictype/property-grapheme-link: New file.
62077         * modules/unictype/property-bidi-control: New file.
62078         * modules/unictype/property-bidi-left-to-right: New file.
62079         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62080         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62081         * modules/unictype/property-bidi-european-digit: New file.
62082         * modules/unictype/property-bidi-eur-num-separator: New file.
62083         * modules/unictype/property-bidi-eur-num-terminator: New file.
62084         * modules/unictype/property-bidi-arabic-digit: New file.
62085         * modules/unictype/property-bidi-common-separator: New file.
62086         * modules/unictype/property-bidi-block-separator: New file.
62087         * modules/unictype/property-bidi-segment-separator: New file.
62088         * modules/unictype/property-bidi-whitespace: New file.
62089         * modules/unictype/property-bidi-non-spacing-mark: New file.
62090         * modules/unictype/property-bidi-boundary-neutral: New file.
62091         * modules/unictype/property-bidi-pdf: New file.
62092         * modules/unictype/property-bidi-embedding-or-override: New file.
62093         * modules/unictype/property-bidi-other-neutral: New file.
62094         * modules/unictype/property-hex-digit: New file.
62095         * modules/unictype/property-ascii-hex-digit: New file.
62096         * modules/unictype/property-ideographic: New file.
62097         * modules/unictype/property-unified-ideograph: New file.
62098         * modules/unictype/property-radical: New file.
62099         * modules/unictype/property-ids-binary-operator: New file.
62100         * modules/unictype/property-ids-trinary-operator: New file.
62101         * modules/unictype/property-zero-width: New file.
62102         * modules/unictype/property-space: New file.
62103         * modules/unictype/property-non-break: New file.
62104         * modules/unictype/property-iso-control: New file.
62105         * modules/unictype/property-format-control: New file.
62106         * modules/unictype/property-dash: New file.
62107         * modules/unictype/property-hyphen: New file.
62108         * modules/unictype/property-punctuation: New file.
62109         * modules/unictype/property-line-separator: New file.
62110         * modules/unictype/property-paragraph-separator: New file.
62111         * modules/unictype/property-quotation-mark: New file.
62112         * modules/unictype/property-sentence-terminal: New file.
62113         * modules/unictype/property-terminal-punctuation: New file.
62114         * modules/unictype/property-currency-symbol: New file.
62115         * modules/unictype/property-math: New file.
62116         * modules/unictype/property-other-math: New file.
62117         * modules/unictype/property-paired-punctuation: New file.
62118         * modules/unictype/property-left-of-pair: New file.
62119         * modules/unictype/property-combining: New file.
62120         * modules/unictype/property-composite: New file.
62121         * modules/unictype/property-decimal-digit: New file.
62122         * modules/unictype/property-numeric: New file.
62123         * modules/unictype/property-diacritic: New file.
62124         * modules/unictype/property-extender: New file.
62125         * modules/unictype/property-ignorable-control: New file.
62126         * modules/unictype/property-test: New file.
62127         * modules/unictype/property-byname: New file.
62128         * modules/unictype/property-all: New file.
62129         * modules/unictype/scripts: New file.
62130         * modules/unictype/scripts-all: New file.
62131         * modules/unictype/block-of: New file.
62132         * modules/unictype/block-test: New file.
62133         * modules/unictype/block-list: New file.
62134         * modules/unictype/block-all: New file.
62135         * modules/unictype/syntax-c-whitespace: New file.
62136         * modules/unictype/syntax-java-whitespace: New file.
62137         * modules/unictype/syntax-c-ident: New file.
62138         * modules/unictype/syntax-java-ident: New file.
62139         * modules/unictype/ctype-alnum: New file.
62140         * modules/unictype/ctype-alpha: New file.
62141         * modules/unictype/ctype-cntrl: New file.
62142         * modules/unictype/ctype-digit: New file.
62143         * modules/unictype/ctype-graph: New file.
62144         * modules/unictype/ctype-lower: New file.
62145         * modules/unictype/ctype-print: New file.
62146         * modules/unictype/ctype-punct: New file.
62147         * modules/unictype/ctype-space: New file.
62148         * modules/unictype/ctype-upper: New file.
62149         * modules/unictype/ctype-xdigit: New file.
62150         * modules/unictype/ctype-blank: New file.
62151         * lib/unictype/bidi_byname.c: New file.
62152         * lib/unictype/bidi_name.c: New file.
62153         * lib/unictype/bidi_of.c: New file.
62154         * lib/unictype/bidi_test.c: New file.
62155         * lib/unictype/bitmap.h: New file.
62156         * lib/unictype/block_test.c: New file.
62157         * lib/unictype/blocks.c: New file.
62158         * lib/unictype/categ_C.c: New file.
62159         * lib/unictype/categ_Cc.c: New file.
62160         * lib/unictype/categ_Cf.c: New file.
62161         * lib/unictype/categ_Cn.c: New file.
62162         * lib/unictype/categ_Co.c: New file.
62163         * lib/unictype/categ_Cs.c: New file.
62164         * lib/unictype/categ_L.c: New file.
62165         * lib/unictype/categ_Ll.c: New file.
62166         * lib/unictype/categ_Lm.c: New file.
62167         * lib/unictype/categ_Lo.c: New file.
62168         * lib/unictype/categ_Lt.c: New file.
62169         * lib/unictype/categ_Lu.c: New file.
62170         * lib/unictype/categ_M.c: New file.
62171         * lib/unictype/categ_Mc.c: New file.
62172         * lib/unictype/categ_Me.c: New file.
62173         * lib/unictype/categ_Mn.c: New file.
62174         * lib/unictype/categ_N.c: New file.
62175         * lib/unictype/categ_Nd.c: New file.
62176         * lib/unictype/categ_Nl.c: New file.
62177         * lib/unictype/categ_No.c: New file.
62178         * lib/unictype/categ_P.c: New file.
62179         * lib/unictype/categ_Pc.c: New file.
62180         * lib/unictype/categ_Pd.c: New file.
62181         * lib/unictype/categ_Pe.c: New file.
62182         * lib/unictype/categ_Pf.c: New file.
62183         * lib/unictype/categ_Pi.c: New file.
62184         * lib/unictype/categ_Po.c: New file.
62185         * lib/unictype/categ_Ps.c: New file.
62186         * lib/unictype/categ_S.c: New file.
62187         * lib/unictype/categ_Sc.c: New file.
62188         * lib/unictype/categ_Sk.c: New file.
62189         * lib/unictype/categ_Sm.c: New file.
62190         * lib/unictype/categ_So.c: New file.
62191         * lib/unictype/categ_Z.c: New file.
62192         * lib/unictype/categ_Zl.c: New file.
62193         * lib/unictype/categ_Zp.c: New file.
62194         * lib/unictype/categ_Zs.c: New file.
62195         * lib/unictype/categ_and.c: New file.
62196         * lib/unictype/categ_and_not.c: New file.
62197         * lib/unictype/categ_byname.c: New file.
62198         * lib/unictype/categ_name.c: New file.
62199         * lib/unictype/categ_none.c: New file.
62200         * lib/unictype/categ_of.c: New file.
62201         * lib/unictype/categ_or.c: New file.
62202         * lib/unictype/categ_test.c: New file.
62203         * lib/unictype/combining.c: New file.
62204         * lib/unictype/ctype_alnum.c: New file.
62205         * lib/unictype/ctype_alpha.c: New file.
62206         * lib/unictype/ctype_blank.c: New file.
62207         * lib/unictype/ctype_cntrl.c: New file.
62208         * lib/unictype/ctype_digit.c: New file.
62209         * lib/unictype/ctype_graph.c: New file.
62210         * lib/unictype/ctype_lower.c: New file.
62211         * lib/unictype/ctype_print.c: New file.
62212         * lib/unictype/ctype_punct.c: New file.
62213         * lib/unictype/ctype_space.c: New file.
62214         * lib/unictype/ctype_upper.c: New file.
62215         * lib/unictype/ctype_xdigit.c: New file.
62216         * lib/unictype/decdigit.c: New file.
62217         * lib/unictype/digit.c: New file.
62218         * lib/unictype/identsyntaxmap.h: New file.
62219         * lib/unictype/mirror.c: New file.
62220         * lib/unictype/numeric.c: New file.
62221         * lib/unictype/pr_alphabetic.c: New file.
62222         * lib/unictype/pr_ascii_hex_digit.c: New file.
62223         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62224         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62225         * lib/unictype/pr_bidi_block_separator.c: New file.
62226         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62227         * lib/unictype/pr_bidi_common_separator.c: New file.
62228         * lib/unictype/pr_bidi_control.c: New file.
62229         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62230         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62231         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62232         * lib/unictype/pr_bidi_european_digit.c: New file.
62233         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62234         * lib/unictype/pr_bidi_left_to_right.c: New file.
62235         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62236         * lib/unictype/pr_bidi_other_neutral.c: New file.
62237         * lib/unictype/pr_bidi_pdf.c: New file.
62238         * lib/unictype/pr_bidi_segment_separator.c: New file.
62239         * lib/unictype/pr_bidi_whitespace.c: New file.
62240         * lib/unictype/pr_byname.c: New file.
62241         * lib/unictype/pr_byname.gperf: New file.
62242         * lib/unictype/pr_combining.c: New file.
62243         * lib/unictype/pr_composite.c: New file.
62244         * lib/unictype/pr_currency_symbol.c: New file.
62245         * lib/unictype/pr_dash.c: New file.
62246         * lib/unictype/pr_decimal_digit.c: New file.
62247         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62248         * lib/unictype/pr_deprecated.c: New file.
62249         * lib/unictype/pr_diacritic.c: New file.
62250         * lib/unictype/pr_extender.c: New file.
62251         * lib/unictype/pr_format_control.c: New file.
62252         * lib/unictype/pr_grapheme_base.c: New file.
62253         * lib/unictype/pr_grapheme_extend.c: New file.
62254         * lib/unictype/pr_grapheme_link.c: New file.
62255         * lib/unictype/pr_hex_digit.c: New file.
62256         * lib/unictype/pr_hyphen.c: New file.
62257         * lib/unictype/pr_id_continue.c: New file.
62258         * lib/unictype/pr_id_start.c: New file.
62259         * lib/unictype/pr_ideographic.c: New file.
62260         * lib/unictype/pr_ids_binary_operator.c: New file.
62261         * lib/unictype/pr_ids_trinary_operator.c: New file.
62262         * lib/unictype/pr_ignorable_control.c: New file.
62263         * lib/unictype/pr_iso_control.c: New file.
62264         * lib/unictype/pr_join_control.c: New file.
62265         * lib/unictype/pr_left_of_pair.c: New file.
62266         * lib/unictype/pr_line_separator.c: New file.
62267         * lib/unictype/pr_logical_order_exception.c: New file.
62268         * lib/unictype/pr_lowercase.c: New file.
62269         * lib/unictype/pr_math.c: New file.
62270         * lib/unictype/pr_non_break.c: New file.
62271         * lib/unictype/pr_not_a_character.c: New file.
62272         * lib/unictype/pr_numeric.c: New file.
62273         * lib/unictype/pr_other_alphabetic.c: New file.
62274         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62275         * lib/unictype/pr_other_grapheme_extend.c: New file.
62276         * lib/unictype/pr_other_id_continue.c: New file.
62277         * lib/unictype/pr_other_id_start.c: New file.
62278         * lib/unictype/pr_other_lowercase.c: New file.
62279         * lib/unictype/pr_other_math.c: New file.
62280         * lib/unictype/pr_other_uppercase.c: New file.
62281         * lib/unictype/pr_paired_punctuation.c: New file.
62282         * lib/unictype/pr_paragraph_separator.c: New file.
62283         * lib/unictype/pr_pattern_syntax.c: New file.
62284         * lib/unictype/pr_pattern_white_space.c: New file.
62285         * lib/unictype/pr_private_use.c: New file.
62286         * lib/unictype/pr_punctuation.c: New file.
62287         * lib/unictype/pr_quotation_mark.c: New file.
62288         * lib/unictype/pr_radical.c: New file.
62289         * lib/unictype/pr_sentence_terminal.c: New file.
62290         * lib/unictype/pr_soft_dotted.c: New file.
62291         * lib/unictype/pr_space.c: New file.
62292         * lib/unictype/pr_terminal_punctuation.c: New file.
62293         * lib/unictype/pr_test.c: New file.
62294         * lib/unictype/pr_titlecase.c: New file.
62295         * lib/unictype/pr_unassigned_code_value.c: New file.
62296         * lib/unictype/pr_unified_ideograph.c: New file.
62297         * lib/unictype/pr_uppercase.c: New file.
62298         * lib/unictype/pr_variation_selector.c: New file.
62299         * lib/unictype/pr_white_space.c: New file.
62300         * lib/unictype/pr_xid_continue.c: New file.
62301         * lib/unictype/pr_xid_start.c: New file.
62302         * lib/unictype/pr_zero_width.c: New file.
62303         * lib/unictype/scripts.c: New file.
62304         * lib/unictype/sy_c_ident.c: New file.
62305         * lib/unictype/sy_c_whitespace.c: New file.
62306         * lib/unictype/sy_java_ident.c: New file.
62307         * lib/unictype/sy_java_whitespace.c: New file.
62308
62309         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62310         Unicode 5.0.0.
62311         * lib/unictype/blocks.h: Likewise.
62312         * lib/unictype/categ_C.h: Likewise.
62313         * lib/unictype/categ_Cc.h: Likewise.
62314         * lib/unictype/categ_Cf.h: Likewise.
62315         * lib/unictype/categ_Cn.h: Likewise.
62316         * lib/unictype/categ_Co.h: Likewise.
62317         * lib/unictype/categ_Cs.h: Likewise.
62318         * lib/unictype/categ_L.h: Likewise.
62319         * lib/unictype/categ_Ll.h: Likewise.
62320         * lib/unictype/categ_Lm.h: Likewise.
62321         * lib/unictype/categ_Lo.h: Likewise.
62322         * lib/unictype/categ_Lt.h: Likewise.
62323         * lib/unictype/categ_Lu.h: Likewise.
62324         * lib/unictype/categ_M.h: Likewise.
62325         * lib/unictype/categ_Mc.h: Likewise.
62326         * lib/unictype/categ_Me.h: Likewise.
62327         * lib/unictype/categ_Mn.h: Likewise.
62328         * lib/unictype/categ_N.h: Likewise.
62329         * lib/unictype/categ_Nd.h: Likewise.
62330         * lib/unictype/categ_Nl.h: Likewise.
62331         * lib/unictype/categ_No.h: Likewise.
62332         * lib/unictype/categ_P.h: Likewise.
62333         * lib/unictype/categ_Pc.h: Likewise.
62334         * lib/unictype/categ_Pd.h: Likewise.
62335         * lib/unictype/categ_Pe.h: Likewise.
62336         * lib/unictype/categ_Pf.h: Likewise.
62337         * lib/unictype/categ_Pi.h: Likewise.
62338         * lib/unictype/categ_Po.h: Likewise.
62339         * lib/unictype/categ_Ps.h: Likewise.
62340         * lib/unictype/categ_S.h: Likewise.
62341         * lib/unictype/categ_Sc.h: Likewise.
62342         * lib/unictype/categ_Sk.h: Likewise.
62343         * lib/unictype/categ_Sm.h: Likewise.
62344         * lib/unictype/categ_So.h: Likewise.
62345         * lib/unictype/categ_Z.h: Likewise.
62346         * lib/unictype/categ_Zl.h: Likewise.
62347         * lib/unictype/categ_Zp.h: Likewise.
62348         * lib/unictype/categ_Zs.h: Likewise.
62349         * lib/unictype/categ_of.h: Likewise.
62350         * lib/unictype/combining.h: Likewise.
62351         * lib/unictype/ctype_alnum.h: Likewise.
62352         * lib/unictype/ctype_alpha.h: Likewise.
62353         * lib/unictype/ctype_blank.h: Likewise.
62354         * lib/unictype/ctype_cntrl.h: Likewise.
62355         * lib/unictype/ctype_digit.h: Likewise.
62356         * lib/unictype/ctype_graph.h: Likewise.
62357         * lib/unictype/ctype_lower.h: Likewise.
62358         * lib/unictype/ctype_print.h: Likewise.
62359         * lib/unictype/ctype_punct.h: Likewise.
62360         * lib/unictype/ctype_space.h: Likewise.
62361         * lib/unictype/ctype_upper.h: Likewise.
62362         * lib/unictype/ctype_xdigit.h: Likewise.
62363         * lib/unictype/decdigit.h: Likewise.
62364         * lib/unictype/digit.h: Likewise.
62365         * lib/unictype/mirror.h: Likewise.
62366         * lib/unictype/numeric.h: Likewise.
62367         * lib/unictype/pr_alphabetic.h: Likewise.
62368         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62369         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62370         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62371         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62372         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62373         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62374         * lib/unictype/pr_bidi_control.h: Likewise.
62375         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62376         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62377         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62378         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62379         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62380         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62381         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62382         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62383         * lib/unictype/pr_bidi_pdf.h: Likewise.
62384         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62385         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62386         * lib/unictype/pr_combining.h: Likewise.
62387         * lib/unictype/pr_composite.h: Likewise.
62388         * lib/unictype/pr_currency_symbol.h: Likewise.
62389         * lib/unictype/pr_dash.h: Likewise.
62390         * lib/unictype/pr_decimal_digit.h: Likewise.
62391         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62392         * lib/unictype/pr_deprecated.h: Likewise.
62393         * lib/unictype/pr_diacritic.h: Likewise.
62394         * lib/unictype/pr_extender.h: Likewise.
62395         * lib/unictype/pr_format_control.h: Likewise.
62396         * lib/unictype/pr_grapheme_base.h: Likewise.
62397         * lib/unictype/pr_grapheme_extend.h: Likewise.
62398         * lib/unictype/pr_grapheme_link.h: Likewise.
62399         * lib/unictype/pr_hex_digit.h: Likewise.
62400         * lib/unictype/pr_hyphen.h: Likewise.
62401         * lib/unictype/pr_id_continue.h: Likewise.
62402         * lib/unictype/pr_id_start.h: Likewise.
62403         * lib/unictype/pr_ideographic.h: Likewise.
62404         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62405         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62406         * lib/unictype/pr_ignorable_control.h: Likewise.
62407         * lib/unictype/pr_iso_control.h: Likewise.
62408         * lib/unictype/pr_join_control.h: Likewise.
62409         * lib/unictype/pr_left_of_pair.h: Likewise.
62410         * lib/unictype/pr_line_separator.h: Likewise.
62411         * lib/unictype/pr_logical_order_exception.h: Likewise.
62412         * lib/unictype/pr_lowercase.h: Likewise.
62413         * lib/unictype/pr_math.h: Likewise.
62414         * lib/unictype/pr_non_break.h: Likewise.
62415         * lib/unictype/pr_not_a_character.h: Likewise.
62416         * lib/unictype/pr_numeric.h: Likewise.
62417         * lib/unictype/pr_other_alphabetic.h: Likewise.
62418         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62419         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62420         * lib/unictype/pr_other_id_continue.h: Likewise.
62421         * lib/unictype/pr_other_id_start.h: Likewise.
62422         * lib/unictype/pr_other_lowercase.h: Likewise.
62423         * lib/unictype/pr_other_math.h: Likewise.
62424         * lib/unictype/pr_other_uppercase.h: Likewise.
62425         * lib/unictype/pr_paired_punctuation.h: Likewise.
62426         * lib/unictype/pr_paragraph_separator.h: Likewise.
62427         * lib/unictype/pr_pattern_syntax.h: Likewise.
62428         * lib/unictype/pr_pattern_white_space.h: Likewise.
62429         * lib/unictype/pr_private_use.h: Likewise.
62430         * lib/unictype/pr_punctuation.h: Likewise.
62431         * lib/unictype/pr_quotation_mark.h: Likewise.
62432         * lib/unictype/pr_radical.h: Likewise.
62433         * lib/unictype/pr_sentence_terminal.h: Likewise.
62434         * lib/unictype/pr_soft_dotted.h: Likewise.
62435         * lib/unictype/pr_space.h: Likewise.
62436         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62437         * lib/unictype/pr_titlecase.h: Likewise.
62438         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62439         * lib/unictype/pr_unified_ideograph.h: Likewise.
62440         * lib/unictype/pr_uppercase.h: Likewise.
62441         * lib/unictype/pr_variation_selector.h: Likewise.
62442         * lib/unictype/pr_white_space.h: Likewise.
62443         * lib/unictype/pr_xid_continue.h: Likewise.
62444         * lib/unictype/pr_xid_start.h: Likewise.
62445         * lib/unictype/pr_zero_width.h: Likewise.
62446         * lib/unictype/scripts.h: Likewise.
62447         * lib/unictype/scripts_byname.gperf: Likewise.
62448         * lib/unictype/sy_c_ident.h: Likewise.
62449         * lib/unictype/sy_c_whitespace.h: Likewise.
62450         * lib/unictype/sy_java_ident.h: Likewise.
62451         * lib/unictype/sy_java_whitespace.h: Likewise.
62452
62453         * lib/unictype/Makefile: New file.
62454         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62455         glibc.
62456         * lib/unictype/3level.h: New file, copied from glibc.
62457         * lib/unictype/3levelbit.h: New file.
62458
62459 2007-11-11  Bruno Haible  <bruno@clisp.org>
62460
62461         * modules/gperf: New file.
62462         * modules/iconv_open (Depends-on): Add it.
62463         (Makefile.am): Remove the GPERF definition.
62464
62465 2007-11-11  Bruno Haible  <bruno@clisp.org>
62466
62467         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62468         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62469
62470 2007-11-11  Bruno Haible  <bruno@clisp.org>
62471
62472         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62473         (usage): Remove function.
62474
62475 2007-11-11  Bruno Haible  <bruno@clisp.org>
62476
62477         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62478         gl_FUNC_CEILF_LIBS.
62479         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62480         gl_FUNC_CEIL_LIBS.
62481         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62482         gl_FUNC_CEILL_LIBS.
62483         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62484         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62485         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62486
62487 2007-11-11  Bruno Haible  <bruno@clisp.org>
62488
62489         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62490         roundf were declared but do not exist on functions.
62491         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62492         roundl were declared but do not exist on functions.
62493         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62494         HAVE_FLOORL_AND_CEILL, respectively.
62495         Needed for Sun C on Solaris 10.
62496
62497 2007-11-11  Bruno Haible  <bruno@clisp.org>
62498
62499         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62500         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62501         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62502         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62503         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62504         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62505         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62506         HAVE_DECL_ROUNDF.
62507         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62508         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62510         of HAVE_DECL_ROUND*.
62511         * modules/math (Makefile.am): Update.
62512
62513 2007-11-10  Bruno Haible  <bruno@clisp.org>
62514
62515         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62516         ptrdiff_t as m4/intl.m4.
62517
62518 2007-11-10  Jim Meyering  <meyering@redhat.com>
62519
62520         Avoid link failure for the argmatch test.
62521         * tests/test-argmatch.c (usage): Define function to avoid a link
62522         failure: argmatch_die requires a usage function.
62523
62524 2007-11-09  Bruno Haible  <bruno@clisp.org>
62525
62526         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62527         * doc/functions/vsnprintf.texi: Likewise.
62528         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62529         with a size argument < 2.
62530
62531 2007-11-09  Bruno Haible  <bruno@clisp.org>
62532
62533         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62534         buffer. Fixes an inefficiency introduced on 2007-11-03.
62535
62536 2007-11-09  Bruno Haible  <bruno@clisp.org>
62537
62538         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62539         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62540
62541 2007-11-08  Jim Meyering  <meyering@redhat.com>
62542
62543         Change cache variable name prefix "jm_" to "gl_" everywhere.
62544         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62545         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62546         * m4/uptime.m4: s/gl_/jm_/
62547
62548 2007-11-07  Bruno Haible  <bruno@clisp.org>
62549
62550         Update to GNU gettext 0.17.
62551         * m4/intl.m4: Update to GNU gettext 0.17.
62552         * m4/po.m4: Likewise.
62553         * modules/gettext (Files): Remove m4/ulonglong.m4.
62554         (configure.ac): Require gettext infrastructure from version 0.17.
62555
62556 2007-11-06  Bruno Haible  <bruno@clisp.org>
62557
62558         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62559         symbolic values are not defined in a public header.
62560         * lib/freadable.c (freadable) [QNX]: Likewise.
62561         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62562         * lib/freading.c (freading) [QNX]: Likewise.
62563         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62564         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62565         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62566         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62567         Reported by Alain Magloire.
62568
62569         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62570
62571 2007-11-05  Bruno Haible  <bruno@clisp.org>
62572
62573         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62574         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62575         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62576         Reported by Eric Blake.
62577
62578 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62579             Bruno Haible  <bruno@clisp.org>
62580
62581         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62582         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62583         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62584         (malloc): Undefine also before including <stdlib.h>.
62585         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62586         Needed on OSF/1 4.0.
62587
62588 2007-11-05  Jim Meyering  <meyering@redhat.com>
62589
62590         git-version-gen: sync from coreutils.
62591         * build-aux/git-version-gen: Add comments.
62592         Change the first '-' to '.' in the snapshot version string,
62593         e.g., 6.9-377-08144 -> 6.9.377-08144
62594         Remove first parameter.
62595         Don't declare a version "-dirty" merely because a time
62596         stamp has changed.
62597
62598 2007-11-04  Bruno Haible  <bruno@clisp.org>
62599
62600         * lib/lock.h: Protect all macro definitions containing an 'if'
62601         statement through a "do { ... } while (0)".
62602         * lib/tls.h: Likewise.
62603
62604 2007-11-04  Bruno Haible  <bruno@clisp.org>
62605
62606         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62607
62608 2007-11-04  Bruno Haible  <bruno@clisp.org>
62609
62610         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62611         * modules/fprintf-posix (Depends-on): Add nocrash.
62612         * modules/snprintf-posix (Depends-on): Likewise.
62613         * modules/sprintf-posix (Depends-on): Likewise.
62614         * modules/vasnprintf-posix (Depends-on): Likewise.
62615         * modules/vasprintf-posix (Depends-on): Likewise.
62616         * modules/vfprintf-posix (Depends-on): Likewise.
62617         * modules/vsnprintf-posix (Depends-on): Likewise.
62618         * modules/vsprintf-posix (Depends-on): Likewise.
62619         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62620         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62621         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62622         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62623         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62624         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62625         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62626
62627 2007-11-04  Bruno Haible  <bruno@clisp.org>
62628
62629         * modules/nocrash: New file.
62630         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62631         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62632
62633 2007-11-04  Bruno Haible  <bruno@clisp.org>
62634
62635         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62636         precision handling.
62637         * tests/test-vasprintf-posix.c (test_function): Likewise.
62638         * tests/test-snprintf-posix.h (test_function): Likewise.
62639         * tests/test-sprintf-posix.h (test_function): Likewise.
62640
62641         Fix *printf behaviour for large precisions on mingw and BeOS.
62642         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62643         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62645         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62646         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62647         gl_PRINTF_PRECISION and test its result. Invoke
62648         gl_PREREQ_VASNPRINTF_PRECISION.
62649         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62650         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62651         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62652         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62653         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62655         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62656         * doc/functions/fprintf.texi: Update.
62657         * doc/functions/printf.texi: Update.
62658         * doc/functions/snprintf.texi: Update.
62659         * doc/functions/sprintf.texi: Update.
62660         * doc/functions/vfprintf.texi: Update.
62661         * doc/functions/vprintf.texi: Update.
62662         * doc/functions/vsnprintf.texi: Update.
62663         * doc/functions/vsprintf.texi: Update.
62664
62665 2007-11-04  Bruno Haible  <bruno@clisp.org>
62666
62667         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62668
62669 2007-11-04  Bruno Haible  <bruno@clisp.org>
62670
62671         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62672         Reported by Sylvain Beucler <beuc@gnu.org>.
62673
62674 2007-11-03  Bruno Haible  <bruno@clisp.org>
62675
62676         * tests/test-fprintf-posix2.sh: New file.
62677         * tests/test-fprintf-posix2.c: New file.
62678         * modules/fprintf-posix-tests (Files): Add them.
62679         (TESTS): Add test-fprintf-posix2.sh.
62680         (configure.ac): Check for getrlimit and setrlimit.
62681         (check_PROGRAMS): Add test-fprintf-posix2.
62682
62683         * tests/test-printf-posix2.sh: New file.
62684         * tests/test-printf-posix2.c: New file.
62685         * modules/printf-posix-tests (Files): Add them.
62686         (TESTS): Add test-printf-posix2.sh.
62687         (configure.ac): Check for getrlimit and setrlimit.
62688         (check_PROGRAMS): Add test-printf-posix2.
62689
62690         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62691         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62692         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62693         (decode_double): New function, copied from decode_long_double.
62694         (scale10_round_decimal_decoded): New function, extracted from
62695         scale10_round_decimal_long_double.
62696         (scale10_round_decimal_long_double): Use it.
62697         (scale10_round_decimal_double): New function.
62698         (floorlog10): New function.
62699         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62700         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62701         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62702         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62703         gl_PRINTF_ENOMEM and test its result. Invoke
62704         gl_PREREQ_VASNPRINTF_ENOMEM.
62705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62706         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62707         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62709         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62711         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62712         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62713         * modules/snprintf-posix (Depends-on): Likewise.
62714         * modules/sprintf-posix (Depends-on): Likewise.
62715         * modules/vasnprintf-posix (Depends-on): Likewise.
62716         * modules/vasprintf-posix (Depends-on): Likewise.
62717         * modules/vfprintf-posix (Depends-on): Likewise.
62718         * modules/vsnprintf-posix (Depends-on): Likewise.
62719         * modules/vsprintf-posix (Depends-on): Likewise.
62720         * doc/functions/fprintf.texi: Update.
62721         * doc/functions/printf.texi: Update.
62722         * doc/functions/snprintf.texi: Update.
62723         * doc/functions/sprintf.texi: Update.
62724         * doc/functions/vfprintf.texi: Update.
62725         * doc/functions/vprintf.texi: Update.
62726         * doc/functions/vsnprintf.texi: Update.
62727         * doc/functions/vsprintf.texi: Update.
62728
62729 2007-11-03  Bruno Haible  <bruno@clisp.org>
62730
62731         * modules/frexp-nolibm-tests: New file.
62732
62733         * modules/frexp-nolibm: New file.
62734         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62735
62736 2007-11-03  Bruno Haible  <bruno@clisp.org>
62737
62738         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62739         value is C99 compliant.
62740         Needed for OSF/1 5.1.
62741
62742 2007-11-03  Bruno Haible  <bruno@clisp.org>
62743
62744         Fix out-of-memory handling of vasnprintf.
62745         * lib/printf-parse.c: Include <errno.h>.
62746         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62747         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62748         is already set.
62749
62750 2007-11-02  Eric Blake  <ebb9@byu.net>
62751
62752         Fix tests on cygwin.
62753         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62754
62755 2007-11-01  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62758         warning.
62759         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62760         needed for POSIX compatibility.
62761
62762 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62763
62764         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62765         for compatibility with GNU.
62766
62767 2007-11-01  Bruno Haible  <bruno@clisp.org>
62768
62769         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62770         (putenv): Renamed from rpl_putenv. Change argument type from
62771         'const char *' to 'char *'.
62772         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62773         of defining putenv in config.h, just set REPLACE_PUTENV.
62774         * modules/putenv (Depends-on): Add stdlib.
62775         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62776         (Include): Use <stdlib.h>.
62777         * lib/stdlib.in.h (putenv): New declaration.
62778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62779         REPLACE_PUTENV.
62780         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62781         REPLACE_PUTENV.
62782         Needed for MacOS X 10.5.0.
62783         Reported by Peter O'Gorman <peter@pogma.com>.
62784
62785 2007-11-01  Jim Meyering  <meyering@redhat.com>
62786
62787         Treat an empty date string exactly like "0".
62788         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62789         if the remaining date string (to be parsed) is empty, use "0".
62790         Reported by Mischa Molhoek and discussed in this thread:
62791         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62792
62793 2007-10-31  Bruno Haible  <bruno@clisp.org>
62794
62795         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62796         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62797         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62798         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62799         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62800         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62801
62802 2007-10-31  Bruno Haible  <bruno@clisp.org>
62803
62804         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62805         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62806         (AC_TYPE_LONG_LONG_INT): Use it.
62807         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62808         it as well.
62809         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62810         to m4/longlong.m4.
62811         * modules/stdint (Files): Remove m4/ulonglong.m4.
62812         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62813         m4/ulonglong.m4.
62814         * modules/strtoumax (Files): Likewise.
62815
62816 2007-10-30  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/xvasprintf-posix: New file.
62819         Suggested by Eric Blake.
62820
62821 2007-10-30  Bruno Haible  <bruno@clisp.org>
62822
62823         * modules/xprintf-posix-tests: New file.
62824         * tests/test-xprintf-posix.sh: New file.
62825         * tests/test-xprintf-posix.c: New file.
62826         * tests/test-xfprintf-posix.c: New file.
62827
62828         * modules/xprintf-posix: New file.
62829
62830 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62831
62832         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
62833         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
62834         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
62835
62836 2007-10-29  Bruno Haible  <bruno@clisp.org>
62837
62838         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
62839         contain the special marker '_cv_'.
62840         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62841         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62842         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62843         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62844         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62845         Reported by Ralf Wildenhues.
62846
62847 2007-10-29  Bruno Haible  <bruno@clisp.org>
62848
62849         * gnulib-tool (func_import): When --lgpl is not specified, set
62850         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
62851         GPLv3.
62852         Reported by Simon Josefsson.
62853
62854 2007-10-28  Bruno Haible  <bruno@clisp.org>
62855
62856         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
62857         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
62858         HAVE_DECL_ISFINITE.
62859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62860         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
62861         HAVE_DECL_ISFINITE.
62862
62863 2007-10-28  Bruno Haible  <bruno@clisp.org>
62864
62865         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
62866         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
62867
62868 2007-10-28  Bruno Haible  <bruno@clisp.org>
62869
62870         Fix link errors with Sun C 5.0 on Solaris 10.
62871         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
62872         function is declared but not present in the compiler's libm.
62873         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
62874         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
62875         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
62876         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
62877         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
62878         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
62879         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
62880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62881         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
62882         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
62883         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
62884         HAVE_DECL_FLOORL.
62885
62886 2007-10-28  Bruno Haible  <bruno@clisp.org>
62887
62888         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
62889         gl_FUNC_FLOORL. Cache the result.
62890         (gl_FUNC_FLOORL): Use it.
62891         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
62892         gl_FUNC_CEILL. Cache the result.
62893         (gl_FUNC_CEILL): Use it.
62894
62895         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
62896         gl_FUNC_FLOOR. Cache the result.
62897         (gl_FUNC_FLOOR): Use it.
62898         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
62899         gl_FUNC_CEIL. Cache the result.
62900         (gl_FUNC_CEIL): Use it.
62901
62902         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
62903         gl_FUNC_FLOORF. Cache the result.
62904         (gl_FUNC_FLOORF): Use it.
62905         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
62906         gl_FUNC_CEILF. Cache the result.
62907         (gl_FUNC_CEILF): Use it.
62908
62909 2007-10-28  Bruno Haible  <bruno@clisp.org>
62910
62911         * gnulib-tool: Allow specifying the LGPL version number through
62912         --lgpl=2 or --lgpl=3.
62913         (func_usage): Document --lgpl with argument.
62914         Handle --lgpl=... arguments.
62915         (func_import): Recognize also gl_LGPL calls with an argument. When
62916         --lgpl=2 is used and the module's license is just LGPL, report an
62917         error. Set sed_transform_lib_file according to the lgpl variable. In
62918         the generated files, use --lgpl or gl_LGPL invocations with argument,
62919         if necessary.
62920         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
62921         an LGPv2+ license.
62922         * doc/gnulib-tool.texi (Modified imports): Update explanation of
62923         gl_LGPL macro.
62924
62925 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62926             Bruno Haible  <bruno@clisp.org>
62927
62928         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
62929         (u16_uctomb_aux): Likewise.
62930         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
62931         !HAVE_INLINE.
62932         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
62933
62934 2007-10-28  Bruno Haible  <bruno@clisp.org>
62935
62936         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
62937         Invoke AM_GETTEXT_OPTION if it exists.
62938         * modules/vasprintf: Likewise.
62939         * modules/verror: Likewise.
62940         * modules/xprintf: Likewise.
62941         * modules/xvasprintf: Likewise.
62942
62943 2007-10-27  Ben Pfaff  <blp@gnu.org>
62944
62945         * lib/math.in.h: Define isfinite macro and prototypes for
62946         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
62947         implementations.
62948         * m4/math_h.m4: New substitutions for isfinite module.
62949         * lib/isfinite.c: New file.
62950         * m4/isfinite.m4: New file.
62951         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
62952         * modules/isfinite: New file.
62953         * modules/isfinite-tests: New file.
62954         * tests/tests-isfinite.c: New file.
62955         * doc/functions/isfinite.texi: Mention isfinite module.
62956         * MODULES.html.sh: Mention new module.
62957
62958 2007-10-27  Ben Pfaff  <blp@gnu.org>
62959
62960         Ralf Wildenhues reported that Tru64 4.0D declares the round
62961         functions but does not have definitions.
62962         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
62963         cannot be found in any library, set the output variable to
62964         "missing" instead of "".
62965         * m4/round.m4: Also use our substitute if we cannot find round in
62966         any library, even if it is declared.
62967         * m4/roundf.m4: Likewise for roundf.
62968         * m4/roundl.m4: Likewise for roundl.
62969         * lib/math.in.h: Undefine roundf, round, roundl before defining
62970         their replacements, to allow for hypothetical systems where these
62971         may be defined as macros but not available in libraries.
62972
62973 2007-10-27  Bruno Haible  <bruno@clisp.org>
62974
62975         * doc/gnulib.texi: Invoke @firstparagraphindent.
62976         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62977         changes in gnulib.
62978         (Source changes): New section.
62979
62980 2007-10-26  Bruno Haible  <bruno@clisp.org>
62981
62982         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62983         borrowed from autoconf.
62984
62985 2007-10-26  Bruno Haible  <bruno@clisp.org>
62986
62987         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62988         strerror returned the empty string. Needed on HP-UX 11.00.
62989
62990 2007-10-24  Micah Cowan  <micah@cowan.name>
62991
62992         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62993         * build-aux/bootstrap: Remove support for now-unnecessary option,
62994         --cvs-user, and envvars CVS_USER, CVS_RSH.
62995
62996 2007-10-24  Jim Meyering  <meyering@redhat.com>
62997
62998         Avoid diagnostics from sha1sum when there is no cached checksum.
62999         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63000         if the po.s1 file hasn't been created yet.
63001
63002         * build-aux/bootstrap: Sync from coreutils:
63003         2007-10-24  Jim Meyering  <meyering@redhat.com>
63004         Get gnulib from the git repository, not from an obsolete cvs one.
63005         * build-aux/bootstrap: Suggestion from Micah Cowan.
63006         2007-10-04  Jim Meyering  <jim@meyering.net>
63007         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63008         (update_po_files): Work also when there are no .po files in po/.
63009
63010 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63011
63012         * README: Append ".git" to git and cg examples.
63013         Problem reported by Benoit Sigoure.
63014
63015 2007-10-23  Micah Cowan  <micah@cowan.name>
63016
63017         * users.txt: Add wget.
63018
63019 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63020
63021         Fix linking of some unistdio tests on FreeBSD.
63022         * modules/unistdio/u16-vsnprintf-tests
63023         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63024         * modules/unistdio/u16-vsprintf-tests
63025         (test_u16_vsnprintf1_LDADD): Likewise.
63026         * modules/unistdio/u32-vsnprintf-tests
63027         (test_u32_vsnprintf1_LDADD): Likewise.
63028         * modules/unistdio/u32-vsprintf-tests
63029         (test_u32_vsprintf1_LDADD): Likewise.
63030         * modules/unistdio/u8-vsnprintf-tests
63031         (test_u8_vsnprintf1_LDADD): Likewise.
63032         * modules/unistdio/u8-vsprintf-tests
63033         (test_u8_vsprintf1_LDADD): Likewise.
63034         * modules/unistdio/ulc-vsnprintf-tests
63035         (test_ulc_vsnprintf1_LDADD): Likewise.
63036         * modules/unistdio/ulc-vsprintf-tests
63037         (test_ulc_vsprintf1_LDADD): Likewise.
63038
63039         Fix linking of some uniconv tests on FreeBSD.
63040         * modules/uniconv/u16-conv-from-enc-tests
63041         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63042         * modules/uniconv/u16-conv-to-enc-tests
63043         (test_u16_conv_to_enc_LDADD): Likewise.
63044         * modules/uniconv/u16-strconv-from-enc-tests
63045         (test_u16_strconv_from_enc_LDADD): Likewise.
63046         * modules/uniconv/u16-strconv-to-enc-tests
63047         (test_u16_strconv_to_enc_LDADD): Likewise.
63048         * modules/uniconv/u32-conv-from-enc-tests
63049         (test_u32_conv_from_enc_LDADD): Likewise.
63050         * modules/uniconv/u32-conv-to-enc-tests
63051         (test_u32_conv_to_enc_LDADD): Likewise.
63052         * modules/uniconv/u32-strconv-from-enc-tests
63053         (test_u32_strconv_from_enc_LDADD): Likewise.
63054         * modules/uniconv/u32-strconv-to-enc-tests
63055         (test_u32_strconv_to_enc_LDADD): Likewise.
63056         * modules/uniconv/u8-conv-from-enc-tests
63057         (test_u8_conv_from_enc_LDADD): Likewise.
63058         * modules/uniconv/u8-conv-to-enc-tests
63059         (test_u8_conv_to_enc_LDADD): Likewise.
63060         * modules/uniconv/u8-strconv-from-enc-tests
63061         (test_u8_strconv_from_enc_LDADD): Likewise.
63062         * modules/uniconv/u8-strconv-to-enc-tests
63063         (test_u8_strconv_to_enc_LDADD): Likewise.
63064
63065 2007-10-22  Bruno Haible  <bruno@clisp.org>
63066
63067         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63068         size.
63069
63070 2007-10-22  Eric Blake  <ebb9@byu.net>
63071
63072         Tweak x*printf documentation.
63073         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63074         variable name and comments.
63075         Suggested by Bruno Haible.
63076
63077 2007-10-22  Bruno Haible  <bruno@clisp.org>
63078
63079         * lib/acl.c (copy_acl): Fix file name in comment.
63080
63081 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63082
63083         Fix Tru64 problem with stdbool.h.
63084         * lib/stdbool.in.h (false, true):
63085         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63086         Don't declare as an enum in this situation; it runs afoul of Tru64.
63087         Problem reported by Steven M. Schweda in
63088         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63089
63090 2007-10-22  Eric Blake  <ebb9@byu.net>
63091
63092         Also wrap vf?printf.
63093         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63094         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63095         (xvprintf, xvfprintf): New functions.
63096
63097 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63098
63099         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63100         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63101
63102         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63103         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63104
63105 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63108         by Bruno Haible.
63109
63110 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63111
63112         * lib/getloadavg.c
63113         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63114         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63115
63116         * tests/test-i-ring.c: Work for C89.
63117
63118 2007-10-22  Bruno Haible  <bruno@clisp.org>
63119
63120         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63121         -1u, in preprocessor expression, so that we don't test for the bug
63122         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63123         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63124
63125 2007-10-22  Eric Blake  <ebb9@byu.net>
63126
63127         * tests/test-yesno.sh: Silence stderr during test.
63128
63129 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63130
63131         * modules/crypto/gc-camellia: New file.
63132
63133         * m4/gc-camellia.m4: New file.
63134
63135         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63136
63137         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63138
63139 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63140
63141         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63142         --help to stdout.  Reported by sms@antinode.org (Steven
63143         M. Schweda).
63144
63145 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63146
63147         * users.txt: Fix link to libksba.
63148
63149 2007-10-21  Ben Pfaff  <blp@gnu.org>
63150
63151         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63152         round.c roundf implementation that depends on floorf and ceilf to
63153         be tested unconditionally.
63154
63155 2007-10-21  Ben Pfaff  <blp@gnu.org>
63156
63157         * m4/check-libm-func.m4: Removed.
63158         * m4/check-math-lib.m4: New file.
63159         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63160         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63161         definition and lack of AC_LIBOBJ([roundf]).
63162         * m4/roundl.m4: Ditto, and similarly for roundl.
63163         * modules/round: Reference new m4 file.
63164         * modules/roundf: Ditto.
63165         * modules/roundl: Ditto.
63166         * tests/test-round2.c (main): Use ROUND instead of round.
63167         Bug report from Bruno Haible.
63168
63169 2007-10-21  Bruno Haible  <bruno@clisp.org>
63170
63171         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63172         context.
63173
63174 2007-10-21  Bruno Haible  <bruno@clisp.org>
63175
63176         * tests/test-wcwidth.c (main): Allow negative result for some control
63177         characters.
63178
63179         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63180         Needed on OSF/1 5.1.
63181
63182 2007-10-21  Bruno Haible  <bruno@clisp.org>
63183
63184         * tests/test-floorf1.c: Include isnanf.h.
63185         (main): Use isnanf() instead of isnan().
63186         * tests/test-ceilf1.c: Include isnanf.h.
63187         (main): Use isnanf() instead of isnan().
63188         * tests/test-truncf1.c: Include isnanf.h.
63189         (main): Use isnanf() instead of isnan().
63190         * tests/test-roundf1.c: Include isnanf.h.
63191         (main): Use isnanf() instead of isnan().
63192
63193 2007-10-21  Eric Blake  <ebb9@byu.net>
63194
63195         * users.txt: Update URL for m4.
63196
63197 2007-10-21  Bruno Haible  <bruno@clisp.org>
63198
63199         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63200
63201 2007-10-21  Bruno Haible  <bruno@clisp.org>
63202
63203         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63204         Git's management files if the CVS files are not present.
63205
63206 2007-10-20  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63209         gcc-3.4.x.
63210
63211 2007-10-20  Ben Pfaff  <blp@gnu.org>
63212
63213         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63214         implementations.
63215         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63216         * lib/round.c: New file.
63217         * lib/roundf.c: New file.
63218         * lib/roundl.c: New file.
63219         * m4/round.m4: New file.
63220         * m4/roundf.m4: New file.
63221         * m4/roundl.m4: New file.
63222         * m4/check-libm-func-m4: New file.
63223         * modules/math: Replace round, roundf, roundl related @VARS@ in
63224         math.in.h.
63225         * modules/round: New file.
63226         * modules/round-tests: New file.
63227         * modules/roundf: New file.
63228         * modules/roundf-tests: New file.
63229         * modules/roundl: New file.
63230         * modules/roundl-tests: New file.
63231         * tests/test-round1.c: New file.
63232         * tests/test-round2.c: New file.
63233         * tests/test-roundf1.c: New file.
63234         * tests/test-roundf2.c: New file.
63235         * tests/test-roundl.c: New file.
63236         * doc/functions/round.texi: Mention round module.
63237         * doc/functions/roundf.texi: Mention roundf module.
63238         * doc/functions/roundl.texi: Mention roundl module.
63239         * MODULES.html.sh: Mention new modules.
63240         Thanks to Bruno Haible for suggestions.
63241
63242 2007-10-20  Jim Meyering  <meyering@redhat.com>
63243
63244         * lib/xprintf.c: Include <config.h> unconditionally.
63245
63246         Change xprintf's license to GPL.
63247         * modules/xprintf (License): s/LGPL/GPL/, since this module
63248         depends on modules (exit and exitfail) which are GPL.
63249         Suggestion from Bruno Haible.
63250
63251         xprintf fixes.
63252         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63253         Use a clearer diagnostic.
63254         Patch from Bruno Haible.
63255
63256 2007-10-20  Bruno Haible  <bruno@clisp.org>
63257
63258         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63259         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63261
63262 2007-10-20  Bruno Haible  <bruno@clisp.org>
63263
63264         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63265         precision in the comparison result > x - 1 or similar.
63266         * tests/test-ceilf2.c (correct_result_p): Likewise.
63267         * tests/test-truncf2.c (correct_result_p): Likewise.
63268         * tests/test-trunc2.c (correct_result_p): Likewise.
63269         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63270
63271 2007-10-20  Bruno Haible  <bruno@clisp.org>
63272
63273         * modules/ceil: New file.
63274         * m4/ceil.m4: New file.
63275         * doc/functions/ceil.texi: Mention the 'ceil' module.
63276
63277 2007-10-20  Bruno Haible  <bruno@clisp.org>
63278
63279         * modules/floor: New file.
63280         * m4/floor.m4: New file.
63281         * doc/functions/floor.texi: Mention the 'floor' module.
63282
63283 2007-10-20  Bruno Haible  <bruno@clisp.org>
63284
63285         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63286         of %a.
63287         * modules/floorf-tests (Depends-on): Likewise.
63288         * modules/truncf-tests (Depends-on): Likewise.
63289         * modules/trunc-tests (Depends-on): Likewise.
63290         Reported by Ben Pfaff.
63291
63292 2007-10-19  Jim Meyering  <meyering@redhat.com>
63293
63294         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63295         Don't bother testing specific errno values.  Just test ferror.
63296
63297         New module: xprintf
63298         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63299
63300 2007-10-19  Bruno Haible  <bruno@clisp.org>
63301
63302         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63303         syntax.
63304         * modules/javaexec (Makefile.am): Likewise.
63305         * modules/relocatable-prog (Makefile.am): Likewise.
63306         Suggested by Jim Meyering.
63307
63308 2007-10-18  Bruno Haible  <bruno@clisp.org>
63309
63310         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63311         Reported by Jim Meyering.
63312
63313 2007-10-18  Eric Blake  <ebb9@byu.net>
63314
63315         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63316
63317 2007-10-18  Bruno Haible  <bruno@clisp.org>
63318
63319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63320         the format string into writable memory. Needed in Fortify conditions.
63321
63322 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63323             Bruno Haible  <bruno@clisp.org>
63324
63325         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63326         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63327         * modules/trim (Depends-on): Add mbchar.
63328         (configure.ac): Add gl_FUNC_MBRTOWC.
63329         (Makefile.am): Augment lib_SOURCES.
63330
63331 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63332
63333         Modify glob.c to use fstatat and dirfd, to simplify it.
63334         Suggested by Eric Blake.
63335         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63336         Don't include <stdbool.h>; not used.
63337         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63338         (link_exists_p): Simplify implementation, since we can now assume
63339         dirfd and fstatat.
63340         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63341
63342 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63343
63344         * gnulib-tool (func_get_dependencies): Fix sed script to
63345         match only tests.
63346
63347 2007-10-17  Bruno Haible  <bruno@clisp.org>
63348
63349         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63350         allow locale names without encoding suffix.
63351         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63352         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63353
63354 2007-10-16  Bruno Haible  <bruno@clisp.org>
63355
63356         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63357         * lib/getgroups.c (getgroups): Likewise.
63358         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63359
63360 2007-10-16  Bruno Haible  <bruno@clisp.org>
63361
63362         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63363         * modules/malloc-posix (License): Likewise.
63364         * modules/realloc-posix (License): Likewise.
63365         * modules/calloc-posix (License): Likewise.
63366         * modules/intprops (License): Change from GPL to LGPL, with
63367         Paul Eggert's approval.
63368
63369 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         Merge glibc changes into lib/glob.c.
63372
63373         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63374         2007-10-15 04:59:03 UTC.  Here are the changes:
63375
63376         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63377
63378         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63379
63380         * lib/glob.c: Add some branch prediction throughout.
63381
63382         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63383
63384         [BZ #5103]
63385         * lib/glob.c (glob): Recognize patterns starting \/.
63386
63387         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63388
63389         [BZ #3996]
63390         * lib/glob.c (attribute_hidden): Define if not defined.
63391         (glob): Unescape dirname, filename or username when needed and not
63392         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63393         is NULL.  Handle unescaped [ in pattern without closing ].
63394         Don't pass GLOB_CHECK down to recursive glob for directories.
63395         (__glob_pattern_type): New function.
63396         (__glob_pattern_p): Implement using __glob_pattern_type.
63397         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63398         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63399         Remove unreachable code.
63400
63401         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63402
63403         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63404         explain why there are no leaks.
63405
63406         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63407
63408         [BZ #3253]
63409         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63410         time, rather allocate increasingly bigger arrays of pointers, if
63411         possible with alloca, if too large with malloc.
63412
63413 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63414
63415         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63416         Problem reported by H.Merijn Brand in
63417         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63418         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63419         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63420
63421 2007-10-15  Bruno Haible  <bruno@clisp.org>
63422
63423         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63424         with explicit rpl_ prefix.
63425         * lib/fopen.c (fopen): Likewise.
63426         * lib/freopen.c (freopen): Likewise.
63427         * lib/iconv.c (iconv): Likewise.
63428         * lib/iconv_close.c (iconv_close): Likewise.
63429
63430 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63431
63432         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63433
63434 2007-10-15  Bruno Haible  <bruno@clisp.org>
63435
63436         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63437         <stddef.h> instead of <stdlib.h> since we only need NULL.
63438         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63439
63440 2007-10-15  Bruno Haible  <bruno@clisp.org>
63441
63442         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63443         Replace paragraph talking about LIBOBJS.
63444         Reported by Colin Watson <cjwatson@debian.org>.
63445
63446 2007-10-15  Bruno Haible  <bruno@clisp.org>
63447
63448         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63449         <stdlib.h> before using NULL.
63450
63451 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63452
63453         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63454         Reported by Albert Chin <china@thewrittenword.com>.
63455
63456 2007-10-14  Bruno Haible  <bruno@clisp.org>
63457
63458         * modules/iconv_open-utf-tests: New file.
63459         * tests/test-iconv-utf.c: New file.
63460
63461         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63462         * modules/iconv_open-utf: New file.
63463         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63464         (iconv, iconv_close): New declarations.
63465         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63466         be defined.
63467         (iconv_open): Add special handling of conversion between UTF-8 and
63468         UTF-{16,32}{BE,LE}.
63469         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63470         * lib/iconv_close.c: New file.
63471         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63472         gl_FUNC_ICONV_OPEN.
63473         (gl_FUNC_ICONV_OPEN): Use it.
63474         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63475         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63476         and REPLACE_ICONV_UTF.
63477         * modules/iconv_open (Depends-on): Add c-strcase.
63478         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63479         ICONV_CONST.
63480         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63481
63482 2007-10-13  Albert Chin  <china@thewrittenword.com>
63483             Bruno Haible  <bruno@clisp.org>
63484
63485         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63486         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63487
63488 2007-10-13  Bruno Haible  <bruno@clisp.org>
63489
63490         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63491         defined, use the ISO C99 inline semantics.
63492         * lib/argp.h (ARGP_EI): Likewise.
63493
63494 2007-10-13  Bruno Haible  <bruno@clisp.org>
63495
63496         Handle 'inline' change in gcc 4.3.0.
63497         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63498         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63499         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63500         argp_fmtstream_point): Disable 'extern' declaration if the function
63501         definition is going to be provided inline.
63502         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63503         semantics, not the ISO C99 inline semantics.
63504         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63505         'extern' declaration if the function definition is going to be provided
63506         inline.
63507         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63508         the GNU C inline semantics, not the ISO C99 inline semantics. With
63509         GCC 4.2, avoid a warning.
63510
63511 2007-10-13  Bruno Haible  <bruno@clisp.org>
63512
63513         * lib/freading.h (freading): Enable the use of __freading for
63514         glibc >= 2.7.
63515         * lib/freading.c (freading): Likewise.
63516
63517 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63520         "warning: C99 inline functions are not supported; using GNU89".
63521
63522 2007-10-12  Bruno Haible  <bruno@clisp.org>
63523
63524         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63525         of 2.
63526         * tests/test-ceilf2.c: New file.
63527         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63528
63529         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63530         * modules/ceilf-tests: Update.
63531
63532 2007-10-12  Bruno Haible  <bruno@clisp.org>
63533
63534         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63535         of 2.
63536         * tests/test-floorf2.c: New file.
63537         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63538
63539         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63540         * modules/floorf-tests: Update.
63541
63542 2007-10-12  Bruno Haible  <bruno@clisp.org>
63543
63544         * tests/test-trunc2.c: New file.
63545         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63546
63547         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63548         * modules/trunc-tests: Update.
63549
63550 2007-10-12  Bruno Haible  <bruno@clisp.org>
63551
63552         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63553         of 2.
63554         * tests/test-truncf2.c: New file.
63555         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63556
63557         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63558         * modules/truncf-tests: Update.
63559
63560 2007-10-11  Eric Blake  <ebb9@byu.net>
63561
63562         Don't claim strerror is broken on Interix.
63563         * doc/functions/strerror.texi (strerror): Known broken systems are
63564         now Solaris 8, and not Interix.
63565         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63566         Interix on cross-compile.
63567         Reported by Martin Koeppe in
63568         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63569
63570 2007-10-11  Bruno Haible  <bruno@clisp.org>
63571
63572         * modules/i-ring-tests: New file.
63573         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63574         instead of assert.
63575
63576 2007-10-11  Bruno Haible  <bruno@clisp.org>
63577
63578         * modules/filenamecat-tests: New file.
63579         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63580         * lib/filenamecat.c: Remove test code.
63581
63582 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63583
63584         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63585
63586         * lib/strerror.c: Include <string.h> always, to test interface,
63587         and to remove the need for the dummy.
63588         Include intprops.h to compute width instead of doing it ourselves
63589         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63590         (strerror): Define it to return NULL if there's no system strerror.
63591         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63592         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63593         ancient pre-strerror Unix systems well any more.  Saying "unknown
63594         system error" is enough.
63595         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63596         simpler strerror.c implementation.
63597         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63598         Simplify the tests to reflect the simpler strerror implementation.
63599         * modules/strerror (Depends-on): Add intprops.
63600
63601 2007-10-09  Eric Blake  <ebb9@byu.net>
63602
63603         Silence test-fpending.
63604         * modules/fpending-tests (Files): Add wrapper script.
63605         * tests/test-fpending.sh: New file.
63606
63607 2007-10-09  Bruno Haible  <bruno@clisp.org>
63608
63609         * MODULES.html.sh (func_module): Don't create a hyperlink for
63610         function names like 'printf_frexp'.
63611         (Misc): Add crc, memxor.
63612         (Characteristics of floating types): New section.
63613         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63614         isnanf-nolibm, signbit, trunc, truncf, truncl.
63615         (Enhancements for ISO C 99 functions): New subsection Input/output.
63616         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63617         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63618         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63619         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63620         (Enhancements for POSIX:2001 functions): Add chdir-long.
63621         (File system functions): Add areadlink, chdir-safer, read-file.
63622         Remove cycle-check.
63623         (File system as inode set): New section.
63624         (Date and time): Add gethrxtime.
63625         (Multithreading): Add openmp.
63626         (Internationalization functions): Add localename.
63627         (Unicode string functions): Add unistr/u*-mbsnlen.
63628         (Support for maintaining and releasing projects): Add git-version-gen.
63629         (Lone files): Remove directories.
63630
63631 2007-10-08  Ben Pfaff  <blp@gnu.org>
63632
63633         * lib/xmalloca.h: Fix typo in comment.
63634
63635 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63636
63637         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63638         when avoiding problems with integer overflow.  Use a portable test
63639         instead.
63640
63641 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63642
63643         * modules/dummy (License): Change to LGPLv2+.
63644         * modules/float (License): Likewise
63645         * modules/realloc (License): Likewise
63646         * modules/stdlib (License): Likewise
63647
63648 2007-10-07  Bruno Haible  <bruno@clisp.org>
63649
63650         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63651         * floor.c (TWO_MANT_DIG): Likewise.
63652         * ceil.c (TWO_MANT_DIG): Likewise.
63653         Reported by Ben Pfaff.
63654
63655 2007-10-07  Bruno Haible  <bruno@clisp.org>
63656
63657         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63658         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63659         * lib/frexp.c (FUNC): Likewise.
63660         * lib/printf-frexp.h (printf_frexp): Likewise.
63661         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63662         * lib/printf-frexp.c (FUNC): Likewise.
63663         Suggested by Jim Meyering.
63664
63665 2007-10-07  Jim Meyering  <meyering@redhat.com>
63666
63667         Make xnanosleep's integer overflow test more robust.
63668         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63669         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63670
63671 2007-10-07  Bruno Haible  <bruno@clisp.org>
63672
63673         * NEWS: Mention the license change.
63674
63675         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63676         abbreviations in the modules files.
63677
63678         Change copyright notice from GPLv2+ to GPLv3+.
63679         * README: Change copyright notice.
63680         * MODULES.html.sh: Likewise.
63681         * build-aux/bootstrap.conf: Likewise.
63682         * build-aux/config.libpath: Likewise.
63683         * build-aux/csharpcomp.sh.in: Likewise.
63684         * build-aux/csharpexec.sh.in: Likewise.
63685         * build-aux/install-reloc: Likewise.
63686         * build-aux/javacomp.sh.in: Likewise.
63687         * build-aux/javaexec.sh.in: Likewise.
63688         * build-aux/ldd.sh.in: Likewise.
63689         * build-aux/reloc-ldflags: Likewise.
63690         * build-aux/relocatable.sh.in: Likewise.
63691         * build-aux/x-to-1.in: Likewise.
63692         * check-module: Likewise.
63693         * config/srclistvars.sh: Likewise.
63694         * gnulib-tool: Likewise.
63695         * lib/acl-internal.h: Likewise.
63696         * lib/acl.c: Likewise.
63697         * lib/acl.h: Likewise.
63698         * lib/acl_entries.c: Likewise.
63699         * lib/areadlink-with-size.c: Likewise.
63700         * lib/areadlink.c: Likewise.
63701         * lib/areadlink.h: Likewise.
63702         * lib/argmatch.c: Likewise.
63703         * lib/argmatch.h: Likewise.
63704         * lib/argp-ba.c: Likewise.
63705         * lib/argp-eexst.c: Likewise.
63706         * lib/argp-fmtstream.c: Likewise.
63707         * lib/argp-fmtstream.h: Likewise.
63708         * lib/argp-fs-xinl.c: Likewise.
63709         * lib/argp-help.c: Likewise.
63710         * lib/argp-namefrob.h: Likewise.
63711         * lib/argp-parse.c: Likewise.
63712         * lib/argp-pin.c: Likewise.
63713         * lib/argp-pv.c: Likewise.
63714         * lib/argp-pvh.c: Likewise.
63715         * lib/argp-xinl.c: Likewise.
63716         * lib/argp.h: Likewise.
63717         * lib/at-func.c: Likewise.
63718         * lib/atanl.c: Likewise.
63719         * lib/backupfile.c: Likewise.
63720         * lib/backupfile.h: Likewise.
63721         * lib/basename.c: Likewise.
63722         * lib/binary-io.h: Likewise.
63723         * lib/byteswap.in.h: Likewise.
63724         * lib/c-stack.c: Likewise.
63725         * lib/c-stack.h: Likewise.
63726         * lib/c-strcasestr.c: Likewise.
63727         * lib/c-strcasestr.h: Likewise.
63728         * lib/c-strstr.c: Likewise.
63729         * lib/c-strstr.h: Likewise.
63730         * lib/c-strtod.c: Likewise.
63731         * lib/calloc.c: Likewise.
63732         * lib/canon-host.c: Likewise.
63733         * lib/canon-host.h: Likewise.
63734         * lib/canonicalize-lgpl.c: Likewise.
63735         * lib/canonicalize.c: Likewise.
63736         * lib/canonicalize.h: Likewise.
63737         * lib/ceil.c: Likewise.
63738         * lib/ceilf.c: Likewise.
63739         * lib/ceill.c: Likewise.
63740         * lib/chdir-long.c: Likewise.
63741         * lib/chdir-long.h: Likewise.
63742         * lib/chdir-safer.c: Likewise.
63743         * lib/chdir-safer.h: Likewise.
63744         * lib/chown.c: Likewise.
63745         * lib/classpath.c: Likewise.
63746         * lib/classpath.h: Likewise.
63747         * lib/clean-temp.c: Likewise.
63748         * lib/clean-temp.h: Likewise.
63749         * lib/cloexec.c: Likewise.
63750         * lib/close-stream.c: Likewise.
63751         * lib/closein.c: Likewise.
63752         * lib/closein.h: Likewise.
63753         * lib/closeout.c: Likewise.
63754         * lib/closeout.h: Likewise.
63755         * lib/concat-filename.c: Likewise.
63756         * lib/copy-file.c: Likewise.
63757         * lib/copy-file.h: Likewise.
63758         * lib/count-one-bits.h: Likewise.
63759         * lib/crc.c: Likewise.
63760         * lib/crc.h: Likewise.
63761         * lib/creat-safer.c: Likewise.
63762         * lib/csharpcomp.c: Likewise.
63763         * lib/csharpcomp.h: Likewise.
63764         * lib/csharpexec.c: Likewise.
63765         * lib/csharpexec.h: Likewise.
63766         * lib/cycle-check.c: Likewise.
63767         * lib/cycle-check.h: Likewise.
63768         * lib/diacrit.c: Likewise.
63769         * lib/diacrit.h: Likewise.
63770         * lib/diffseq.h: Likewise.
63771         * lib/dirchownmod.c: Likewise.
63772         * lib/dirent.in.h: Likewise.
63773         * lib/dirfd.c: Likewise.
63774         * lib/dirfd.h: Likewise.
63775         * lib/dirname.c: Likewise.
63776         * lib/dirname.h: Likewise.
63777         * lib/dummy.c: Likewise.
63778         * lib/dup-safer.c: Likewise.
63779         * lib/dup2.c: Likewise.
63780         * lib/eealloc.h: Likewise.
63781         * lib/error.c: Likewise.
63782         * lib/error.h: Likewise.
63783         * lib/euidaccess.c: Likewise.
63784         * lib/exclude.c: Likewise.
63785         * lib/exclude.h: Likewise.
63786         * lib/execute.c: Likewise.
63787         * lib/execute.h: Likewise.
63788         * lib/exitfail.c: Likewise.
63789         * lib/exitfail.h: Likewise.
63790         * lib/expl.c: Likewise.
63791         * lib/fatal-signal.c: Likewise.
63792         * lib/fatal-signal.h: Likewise.
63793         * lib/fbufmode.c: Likewise.
63794         * lib/fbufmode.h: Likewise.
63795         * lib/fchdir.c: Likewise.
63796         * lib/fchmodat.c: Likewise.
63797         * lib/fchownat.c: Likewise.
63798         * lib/fcntl--.h: Likewise.
63799         * lib/fcntl-safer.h: Likewise.
63800         * lib/fcntl.in.h: Likewise.
63801         * lib/fd-safer.c: Likewise.
63802         * lib/fflush.c: Likewise.
63803         * lib/file-has-acl.c: Likewise.
63804         * lib/file-set.c: Likewise.
63805         * lib/file-type.c: Likewise.
63806         * lib/file-type.h: Likewise.
63807         * lib/fileblocks.c: Likewise.
63808         * lib/filemode.c: Likewise.
63809         * lib/filemode.h: Likewise.
63810         * lib/filename.h: Likewise.
63811         * lib/filenamecat.c: Likewise.
63812         * lib/filenamecat.h: Likewise.
63813         * lib/findprog.c: Likewise.
63814         * lib/findprog.h: Likewise.
63815         * lib/float.in.h: Likewise.
63816         * lib/floor.c: Likewise.
63817         * lib/floorf.c: Likewise.
63818         * lib/floorl.c: Likewise.
63819         * lib/fopen-safer.c: Likewise.
63820         * lib/fopen.c: Likewise.
63821         * lib/fpending.c: Likewise.
63822         * lib/fpending.h: Likewise.
63823         * lib/fprintf.c: Likewise.
63824         * lib/fprintftime.h: Likewise.
63825         * lib/fpucw.h: Likewise.
63826         * lib/fpurge.c: Likewise.
63827         * lib/fpurge.h: Likewise.
63828         * lib/freadable.c: Likewise.
63829         * lib/freadable.h: Likewise.
63830         * lib/freadahead.c: Likewise.
63831         * lib/freadahead.h: Likewise.
63832         * lib/freading.c: Likewise.
63833         * lib/freading.h: Likewise.
63834         * lib/free.c: Likewise.
63835         * lib/freopen.c: Likewise.
63836         * lib/frexp.c: Likewise.
63837         * lib/frexpl.c: Likewise.
63838         * lib/fseek.c: Likewise.
63839         * lib/fseterr.c: Likewise.
63840         * lib/fseterr.h: Likewise.
63841         * lib/fstatat.c: Likewise.
63842         * lib/fstrcmp.c: Likewise.
63843         * lib/fstrcmp.h: Likewise.
63844         * lib/fsusage.c: Likewise.
63845         * lib/fsusage.h: Likewise.
63846         * lib/ftell.c: Likewise.
63847         * lib/ftello.c: Likewise.
63848         * lib/fts-cycle.c: Likewise.
63849         * lib/fts.c: Likewise.
63850         * lib/fts_.h: Likewise.
63851         * lib/full-read.c: Likewise.
63852         * lib/full-read.h: Likewise.
63853         * lib/full-write.c: Likewise.
63854         * lib/full-write.h: Likewise.
63855         * lib/fwritable.c: Likewise.
63856         * lib/fwritable.h: Likewise.
63857         * lib/fwriteerror.c: Likewise.
63858         * lib/fwriteerror.h: Likewise.
63859         * lib/fwriting.c: Likewise.
63860         * lib/fwriting.h: Likewise.
63861         * lib/gcd.c: Likewise.
63862         * lib/gcd.h: Likewise.
63863         * lib/getcwd.c: Likewise.
63864         * lib/getdate.h: Likewise.
63865         * lib/getdate.y: Likewise.
63866         * lib/getdomainname.c: Likewise.
63867         * lib/getdomainname.h: Likewise.
63868         * lib/getgroups.c: Likewise.
63869         * lib/gethostname.c: Likewise.
63870         * lib/gethrxtime.c: Likewise.
63871         * lib/gethrxtime.h: Likewise.
63872         * lib/getloadavg.c: Likewise.
63873         * lib/getndelim2.c: Likewise.
63874         * lib/getndelim2.h: Likewise.
63875         * lib/getnline.c: Likewise.
63876         * lib/getnline.h: Likewise.
63877         * lib/getopt.c: Likewise.
63878         * lib/getopt.in.h: Likewise.
63879         * lib/getopt1.c: Likewise.
63880         * lib/getopt_int.h: Likewise.
63881         * lib/getpagesize.h: Likewise.
63882         * lib/getsubopt.c: Likewise.
63883         * lib/gettime.c: Likewise.
63884         * lib/getugroups.c: Likewise.
63885         * lib/getugroups.h: Likewise.
63886         * lib/getusershell.c: Likewise.
63887         * lib/gl_anyavltree_list1.h: Likewise.
63888         * lib/gl_anyavltree_list2.h: Likewise.
63889         * lib/gl_anyhash_list1.h: Likewise.
63890         * lib/gl_anyhash_list2.h: Likewise.
63891         * lib/gl_anylinked_list1.h: Likewise.
63892         * lib/gl_anylinked_list2.h: Likewise.
63893         * lib/gl_anyrbtree_list1.h: Likewise.
63894         * lib/gl_anyrbtree_list2.h: Likewise.
63895         * lib/gl_anytree_list1.h: Likewise.
63896         * lib/gl_anytree_list2.h: Likewise.
63897         * lib/gl_anytree_oset.h: Likewise.
63898         * lib/gl_anytreehash_list1.h: Likewise.
63899         * lib/gl_anytreehash_list2.h: Likewise.
63900         * lib/gl_array_list.c: Likewise.
63901         * lib/gl_array_list.h: Likewise.
63902         * lib/gl_array_oset.c: Likewise.
63903         * lib/gl_array_oset.h: Likewise.
63904         * lib/gl_avltree_list.c: Likewise.
63905         * lib/gl_avltree_list.h: Likewise.
63906         * lib/gl_avltree_oset.c: Likewise.
63907         * lib/gl_avltree_oset.h: Likewise.
63908         * lib/gl_avltreehash_list.c: Likewise.
63909         * lib/gl_avltreehash_list.h: Likewise.
63910         * lib/gl_carray_list.c: Likewise.
63911         * lib/gl_carray_list.h: Likewise.
63912         * lib/gl_linked_list.c: Likewise.
63913         * lib/gl_linked_list.h: Likewise.
63914         * lib/gl_linkedhash_list.c: Likewise.
63915         * lib/gl_linkedhash_list.h: Likewise.
63916         * lib/gl_list.c: Likewise.
63917         * lib/gl_list.h: Likewise.
63918         * lib/gl_oset.c: Likewise.
63919         * lib/gl_oset.h: Likewise.
63920         * lib/gl_rbtree_list.c: Likewise.
63921         * lib/gl_rbtree_list.h: Likewise.
63922         * lib/gl_rbtree_oset.c: Likewise.
63923         * lib/gl_rbtree_oset.h: Likewise.
63924         * lib/gl_rbtreehash_list.c: Likewise.
63925         * lib/gl_rbtreehash_list.h: Likewise.
63926         * lib/gl_sublist.c: Likewise.
63927         * lib/gl_sublist.h: Likewise.
63928         * lib/group-member.c: Likewise.
63929         * lib/group-member.h: Likewise.
63930         * lib/hard-locale.c: Likewise.
63931         * lib/hard-locale.h: Likewise.
63932         * lib/hash-pjw.c: Likewise.
63933         * lib/hash-pjw.h: Likewise.
63934         * lib/hash-triple.c: Likewise.
63935         * lib/hash.c: Likewise.
63936         * lib/hash.h: Likewise.
63937         * lib/human.c: Likewise.
63938         * lib/human.h: Likewise.
63939         * lib/i-ring.c: Likewise.
63940         * lib/i-ring.h: Likewise.
63941         * lib/idcache.c: Likewise.
63942         * lib/imaxabs.c: Likewise.
63943         * lib/imaxdiv.c: Likewise.
63944         * lib/inet_pton.c: Likewise.
63945         * lib/inet_pton.h: Likewise.
63946         * lib/intprops.h: Likewise.
63947         * lib/inttostr.c: Likewise.
63948         * lib/inttostr.h: Likewise.
63949         * lib/inttypes.in.h: Likewise.
63950         * lib/isapipe.c: Likewise.
63951         * lib/isdir.c: Likewise.
63952         * lib/isnan.c: Likewise.
63953         * lib/isnan.h: Likewise.
63954         * lib/isnanf.c: Likewise.
63955         * lib/isnanf.h: Likewise.
63956         * lib/isnanl-nolibm.h: Likewise.
63957         * lib/isnanl.c: Likewise.
63958         * lib/isnanl.h: Likewise.
63959         * lib/javacomp.c: Likewise.
63960         * lib/javacomp.h: Likewise.
63961         * lib/javaexec.c: Likewise.
63962         * lib/javaexec.h: Likewise.
63963         * lib/javaversion.c: Likewise.
63964         * lib/javaversion.h: Likewise.
63965         * lib/javaversion.java: Likewise.
63966         * lib/lbrkprop.h: Likewise.
63967         * lib/lchmod.h: Likewise.
63968         * lib/lchown.c: Likewise.
63969         * lib/ldexpl.c: Likewise.
63970         * lib/linebreak.c: Likewise.
63971         * lib/linebreak.h: Likewise.
63972         * lib/linebuffer.c: Likewise.
63973         * lib/linebuffer.h: Likewise.
63974         * lib/locale.in.h: Likewise.
63975         * lib/logl.c: Likewise.
63976         * lib/long-options.c: Likewise.
63977         * lib/long-options.h: Likewise.
63978         * lib/lstat.c: Likewise.
63979         * lib/lstat.h: Likewise.
63980         * lib/math.in.h: Likewise.
63981         * lib/mbchar.c: Likewise.
63982         * lib/mbchar.h: Likewise.
63983         * lib/mbfile.h: Likewise.
63984         * lib/mbiter.h: Likewise.
63985         * lib/mbscasecmp.c: Likewise.
63986         * lib/mbscasestr.c: Likewise.
63987         * lib/mbschr.c: Likewise.
63988         * lib/mbscspn.c: Likewise.
63989         * lib/mbslen.c: Likewise.
63990         * lib/mbsncasecmp.c: Likewise.
63991         * lib/mbsnlen.c: Likewise.
63992         * lib/mbspbrk.c: Likewise.
63993         * lib/mbspcasecmp.c: Likewise.
63994         * lib/mbsrchr.c: Likewise.
63995         * lib/mbssep.c: Likewise.
63996         * lib/mbsspn.c: Likewise.
63997         * lib/mbsstr.c: Likewise.
63998         * lib/mbstok_r.c: Likewise.
63999         * lib/mbswidth.c: Likewise.
64000         * lib/mbswidth.h: Likewise.
64001         * lib/mbuiter.h: Likewise.
64002         * lib/memcasecmp.c: Likewise.
64003         * lib/memcasecmp.h: Likewise.
64004         * lib/memchr.c: Likewise.
64005         * lib/memcmp.c: Likewise.
64006         * lib/memcoll.c: Likewise.
64007         * lib/memcoll.h: Likewise.
64008         * lib/memcpy.c: Likewise.
64009         * lib/memrchr.c: Likewise.
64010         * lib/mkancesdirs.c: Likewise.
64011         * lib/mkdir-p.c: Likewise.
64012         * lib/mkdir-p.h: Likewise.
64013         * lib/mkdir.c: Likewise.
64014         * lib/mkdirat.c: Likewise.
64015         * lib/mkdtemp.c: Likewise.
64016         * lib/mkstemp-safer.c: Likewise.
64017         * lib/mkstemp.c: Likewise.
64018         * lib/modechange.c: Likewise.
64019         * lib/modechange.h: Likewise.
64020         * lib/mountlist.c: Likewise.
64021         * lib/mountlist.h: Likewise.
64022         * lib/mpsort.c: Likewise.
64023         * lib/nanosleep.c: Likewise.
64024         * lib/obstack.c: Likewise.
64025         * lib/obstack.h: Likewise.
64026         * lib/open-safer.c: Likewise.
64027         * lib/open.c: Likewise.
64028         * lib/openat-die.c: Likewise.
64029         * lib/openat-priv.h: Likewise.
64030         * lib/openat-proc.c: Likewise.
64031         * lib/openat.c: Likewise.
64032         * lib/openat.h: Likewise.
64033         * lib/pagealign_alloc.c: Likewise.
64034         * lib/pagealign_alloc.h: Likewise.
64035         * lib/physmem.c: Likewise.
64036         * lib/physmem.h: Likewise.
64037         * lib/pipe-safer.c: Likewise.
64038         * lib/pipe.c: Likewise.
64039         * lib/pipe.h: Likewise.
64040         * lib/posixtm.c: Likewise.
64041         * lib/posixtm.h: Likewise.
64042         * lib/posixver.c: Likewise.
64043         * lib/printf-frexp.c: Likewise.
64044         * lib/printf-frexp.h: Likewise.
64045         * lib/printf-frexpl.c: Likewise.
64046         * lib/printf-frexpl.h: Likewise.
64047         * lib/printf.c: Likewise.
64048         * lib/progname.c: Likewise.
64049         * lib/progname.h: Likewise.
64050         * lib/progreloc.c: Likewise.
64051         * lib/putenv.c: Likewise.
64052         * lib/quote.c: Likewise.
64053         * lib/quote.h: Likewise.
64054         * lib/quotearg.c: Likewise.
64055         * lib/quotearg.h: Likewise.
64056         * lib/raise.c: Likewise.
64057         * lib/readline.c: Likewise.
64058         * lib/readline.h: Likewise.
64059         * lib/readlink.c: Likewise.
64060         * lib/readtokens.c: Likewise.
64061         * lib/readtokens.h: Likewise.
64062         * lib/readtokens0.c: Likewise.
64063         * lib/readtokens0.h: Likewise.
64064         * lib/readutmp.c: Likewise.
64065         * lib/readutmp.h: Likewise.
64066         * lib/realloc.c: Likewise.
64067         * lib/relocwrapper.c: Likewise.
64068         * lib/rename-dest-slash.c: Likewise.
64069         * lib/rename.c: Likewise.
64070         * lib/rmdir.c: Likewise.
64071         * lib/rpmatch.c: Likewise.
64072         * lib/safe-read.c: Likewise.
64073         * lib/safe-read.h: Likewise.
64074         * lib/safe-write.c: Likewise.
64075         * lib/safe-write.h: Likewise.
64076         * lib/same-inode.h: Likewise.
64077         * lib/same.c: Likewise.
64078         * lib/same.h: Likewise.
64079         * lib/save-cwd.c: Likewise.
64080         * lib/save-cwd.h: Likewise.
64081         * lib/savedir.c: Likewise.
64082         * lib/savedir.h: Likewise.
64083         * lib/savewd.c: Likewise.
64084         * lib/savewd.h: Likewise.
64085         * lib/search.in.h: Likewise.
64086         * lib/setenv.c: Likewise.
64087         * lib/setenv.h: Likewise.
64088         * lib/settime.c: Likewise.
64089         * lib/sh-quote.c: Likewise.
64090         * lib/sh-quote.h: Likewise.
64091         * lib/sig2str.c: Likewise.
64092         * lib/sig2str.h: Likewise.
64093         * lib/signal.in.h: Likewise.
64094         * lib/signbitd.c: Likewise.
64095         * lib/signbitf.c: Likewise.
64096         * lib/signbitl.c: Likewise.
64097         * lib/sigprocmask.c: Likewise.
64098         * lib/sincosl.c: Likewise.
64099         * lib/sleep.c: Likewise.
64100         * lib/sprintf.c: Likewise.
64101         * lib/sqrtl.c: Likewise.
64102         * lib/stat-time.h: Likewise.
64103         * lib/stdio--.h: Likewise.
64104         * lib/stdio-safer.h: Likewise.
64105         * lib/stdlib--.h: Likewise.
64106         * lib/stdlib-safer.h: Likewise.
64107         * lib/stdlib.in.h: Likewise.
64108         * lib/stpcpy.c: Likewise.
64109         * lib/stpncpy.c: Likewise.
64110         * lib/strchrnul.c: Likewise.
64111         * lib/strcspn.c: Likewise.
64112         * lib/strerror.c: Likewise.
64113         * lib/strftime.c: Likewise.
64114         * lib/strftime.h: Likewise.
64115         * lib/striconveh.c: Likewise.
64116         * lib/striconveh.h: Likewise.
64117         * lib/striconveha.c: Likewise.
64118         * lib/striconveha.h: Likewise.
64119         * lib/stripslash.c: Likewise.
64120         * lib/strnlen1.c: Likewise.
64121         * lib/strnlen1.h: Likewise.
64122         * lib/strtod.c: Likewise.
64123         * lib/strtoimax.c: Likewise.
64124         * lib/strtok_r.c: Likewise.
64125         * lib/strtol.c: Likewise.
64126         * lib/strtoll.c: Likewise.
64127         * lib/strtoul.c: Likewise.
64128         * lib/strtoull.c: Likewise.
64129         * lib/sysexits.in.h: Likewise.
64130         * lib/tempname.c: Likewise.
64131         * lib/tempname.h: Likewise.
64132         * lib/timespec.h: Likewise.
64133         * lib/tls.c: Likewise.
64134         * lib/tls.h: Likewise.
64135         * lib/tmpdir.c: Likewise.
64136         * lib/tmpdir.h: Likewise.
64137         * lib/tmpfile-safer.c: Likewise.
64138         * lib/tmpfile.c: Likewise.
64139         * lib/trigl.c: Likewise.
64140         * lib/trigl.h: Likewise.
64141         * lib/trim.c: Likewise.
64142         * lib/trim.h: Likewise.
64143         * lib/trunc.c: Likewise.
64144         * lib/truncf.c: Likewise.
64145         * lib/truncl.c: Likewise.
64146         * lib/tsearch.c: Likewise.
64147         * lib/unicodeio.c: Likewise.
64148         * lib/unicodeio.h: Likewise.
64149         * lib/unistd--.h: Likewise.
64150         * lib/unistd-safer.h: Likewise.
64151         * lib/unistdio/ulc-fprintf.c: Likewise.
64152         * lib/unistdio/ulc-vfprintf.c: Likewise.
64153         * lib/unlinkdir.c: Likewise.
64154         * lib/unlinkdir.h: Likewise.
64155         * lib/unlocked-io.h: Likewise.
64156         * lib/unsetenv.c: Likewise.
64157         * lib/userspec.c: Likewise.
64158         * lib/utime.c: Likewise.
64159         * lib/utimecmp.c: Likewise.
64160         * lib/utimecmp.h: Likewise.
64161         * lib/utimens.c: Likewise.
64162         * lib/verify.h: Likewise.
64163         * lib/verror.c: Likewise.
64164         * lib/verror.h: Likewise.
64165         * lib/version-etc-fsf.c: Likewise.
64166         * lib/version-etc.c: Likewise.
64167         * lib/version-etc.h: Likewise.
64168         * lib/vfprintf.c: Likewise.
64169         * lib/vprintf.c: Likewise.
64170         * lib/vsprintf.c: Likewise.
64171         * lib/w32spawn.h: Likewise.
64172         * lib/wait-process.c: Likewise.
64173         * lib/wait-process.h: Likewise.
64174         * lib/wcwidth.c: Likewise.
64175         * lib/write-any-file.c: Likewise.
64176         * lib/xalloc-die.c: Likewise.
64177         * lib/xalloc.h: Likewise.
64178         * lib/xasprintf.c: Likewise.
64179         * lib/xgetcwd.c: Likewise.
64180         * lib/xgetcwd.h: Likewise.
64181         * lib/xgetdomainname.c: Likewise.
64182         * lib/xgetdomainname.h: Likewise.
64183         * lib/xgethostname.c: Likewise.
64184         * lib/xmalloc.c: Likewise.
64185         * lib/xmalloca.c: Likewise.
64186         * lib/xmalloca.h: Likewise.
64187         * lib/xmemcoll.c: Likewise.
64188         * lib/xnanosleep.c: Likewise.
64189         * lib/xreadlink.c: Likewise.
64190         * lib/xreadlink.h: Likewise.
64191         * lib/xsetenv.c: Likewise.
64192         * lib/xsetenv.h: Likewise.
64193         * lib/xstriconv.c: Likewise.
64194         * lib/xstriconv.h: Likewise.
64195         * lib/xstrndup.c: Likewise.
64196         * lib/xstrndup.h: Likewise.
64197         * lib/xstrtod.c: Likewise.
64198         * lib/xstrtod.h: Likewise.
64199         * lib/xstrtol-error.c: Likewise.
64200         * lib/xstrtol.c: Likewise.
64201         * lib/xstrtol.h: Likewise.
64202         * lib/xtime.h: Likewise.
64203         * lib/xvasprintf.c: Likewise.
64204         * lib/xvasprintf.h: Likewise.
64205         * lib/yesno.c: Likewise.
64206         * lib/yesno.h: Likewise.
64207         * posix-modules: Likewise.
64208         * tests/test-alloca-opt.c: Likewise.
64209         * tests/test-arcfour.c: Likewise.
64210         * tests/test-arctwo.c: Likewise.
64211         * tests/test-argmatch.c: Likewise.
64212         * tests/test-argp-2.sh: Likewise.
64213         * tests/test-argp.c: Likewise.
64214         * tests/test-arpa_inet.c: Likewise.
64215         * tests/test-array_list.c: Likewise.
64216         * tests/test-array_oset.c: Likewise.
64217         * tests/test-atexit.c: Likewise.
64218         * tests/test-avltree_list.c: Likewise.
64219         * tests/test-avltree_oset.c: Likewise.
64220         * tests/test-avltreehash_list.c: Likewise.
64221         * tests/test-base64.c: Likewise.
64222         * tests/test-binary-io.c: Likewise.
64223         * tests/test-byteswap.c: Likewise.
64224         * tests/test-c-ctype.c: Likewise.
64225         * tests/test-c-strcasecmp.c: Likewise.
64226         * tests/test-c-strcasestr.c: Likewise.
64227         * tests/test-c-strncasecmp.c: Likewise.
64228         * tests/test-c-strstr.c: Likewise.
64229         * tests/test-canonicalize-lgpl.c: Likewise.
64230         * tests/test-canonicalize.c: Likewise.
64231         * tests/test-carray_list.c: Likewise.
64232         * tests/test-ceilf.c: Likewise.
64233         * tests/test-ceill.c: Likewise.
64234         * tests/test-count-one-bits.c: Likewise.
64235         * tests/test-crc.c: Likewise.
64236         * tests/test-dirname.c: Likewise.
64237         * tests/test-fbufmode.c: Likewise.
64238         * tests/test-fcntl.c: Likewise.
64239         * tests/test-fflush.c: Likewise.
64240         * tests/test-floorf.c: Likewise.
64241         * tests/test-floorl.c: Likewise.
64242         * tests/test-fopen.c: Likewise.
64243         * tests/test-fprintf-posix.c: Likewise.
64244         * tests/test-fprintf-posix.h: Likewise.
64245         * tests/test-fpurge.c: Likewise.
64246         * tests/test-freadable.c: Likewise.
64247         * tests/test-freadahead.c: Likewise.
64248         * tests/test-freading.c: Likewise.
64249         * tests/test-freopen.c: Likewise.
64250         * tests/test-frexp.c: Likewise.
64251         * tests/test-frexpl.c: Likewise.
64252         * tests/test-fseek.c: Likewise.
64253         * tests/test-fseeko.c: Likewise.
64254         * tests/test-fseterr.c: Likewise.
64255         * tests/test-fstrcmp.c: Likewise.
64256         * tests/test-ftell.c: Likewise.
64257         * tests/test-ftello.c: Likewise.
64258         * tests/test-fwritable.c: Likewise.
64259         * tests/test-fwriting.c: Likewise.
64260         * tests/test-getaddrinfo.c: Likewise.
64261         * tests/test-getpass.c: Likewise.
64262         * tests/test-gettimeofday.c: Likewise.
64263         * tests/test-hmac-md5.c: Likewise.
64264         * tests/test-hmac-sha1.c: Likewise.
64265         * tests/test-iconv.c: Likewise.
64266         * tests/test-iconvme.c: Likewise.
64267         * tests/test-inttypes.c: Likewise.
64268         * tests/test-isnan.c: Likewise.
64269         * tests/test-isnanf.c: Likewise.
64270         * tests/test-isnanl-nolibm.c: Likewise.
64271         * tests/test-isnanl.c: Likewise.
64272         * tests/test-isnanl.h: Likewise.
64273         * tests/test-ldexpl.c: Likewise.
64274         * tests/test-linked_list.c: Likewise.
64275         * tests/test-linkedhash_list.c: Likewise.
64276         * tests/test-locale.c: Likewise.
64277         * tests/test-localename.c: Likewise.
64278         * tests/test-lock.c: Likewise.
64279         * tests/test-lseek.c: Likewise.
64280         * tests/test-malloca.c: Likewise.
64281         * tests/test-math.c: Likewise.
64282         * tests/test-mbscasecmp.c: Likewise.
64283         * tests/test-mbscasestr1.c: Likewise.
64284         * tests/test-mbscasestr2.c: Likewise.
64285         * tests/test-mbscasestr3.c: Likewise.
64286         * tests/test-mbscasestr4.c: Likewise.
64287         * tests/test-mbschr.c: Likewise.
64288         * tests/test-mbscspn.c: Likewise.
64289         * tests/test-mbsncasecmp.c: Likewise.
64290         * tests/test-mbspbrk.c: Likewise.
64291         * tests/test-mbspcasecmp.c: Likewise.
64292         * tests/test-mbsrchr.c: Likewise.
64293         * tests/test-mbsspn.c: Likewise.
64294         * tests/test-mbsstr1.c: Likewise.
64295         * tests/test-mbsstr2.c: Likewise.
64296         * tests/test-mbsstr3.c: Likewise.
64297         * tests/test-md5.c: Likewise.
64298         * tests/test-memmem.c: Likewise.
64299         * tests/test-netinet_in.c: Likewise.
64300         * tests/test-open.c: Likewise.
64301         * tests/test-printf-frexp.c: Likewise.
64302         * tests/test-printf-frexpl.c: Likewise.
64303         * tests/test-printf-posix.c: Likewise.
64304         * tests/test-printf-posix.h: Likewise.
64305         * tests/test-rbtree_list.c: Likewise.
64306         * tests/test-rbtree_oset.c: Likewise.
64307         * tests/test-rbtreehash_list.c: Likewise.
64308         * tests/test-read-file.c: Likewise.
64309         * tests/test-rijndael.c: Likewise.
64310         * tests/test-search.c: Likewise.
64311         * tests/test-signbit.c: Likewise.
64312         * tests/test-sleep.c: Likewise.
64313         * tests/test-snprintf-posix.c: Likewise.
64314         * tests/test-snprintf-posix.h: Likewise.
64315         * tests/test-snprintf.c: Likewise.
64316         * tests/test-sprintf-posix.c: Likewise.
64317         * tests/test-sprintf-posix.h: Likewise.
64318         * tests/test-stat-time.c: Likewise.
64319         * tests/test-stdbool.c: Likewise.
64320         * tests/test-stdint.c: Likewise.
64321         * tests/test-stdio.c: Likewise.
64322         * tests/test-stdlib.c: Likewise.
64323         * tests/test-stpncpy.c: Likewise.
64324         * tests/test-strcasestr.c: Likewise.
64325         * tests/test-striconv.c: Likewise.
64326         * tests/test-striconveh.c: Likewise.
64327         * tests/test-striconveha.c: Likewise.
64328         * tests/test-string.c: Likewise.
64329         * tests/test-sys_select.c: Likewise.
64330         * tests/test-sys_socket.c: Likewise.
64331         * tests/test-sys_stat.c: Likewise.
64332         * tests/test-sys_time.c: Likewise.
64333         * tests/test-sysexits.c: Likewise.
64334         * tests/test-time.c: Likewise.
64335         * tests/test-tls.c: Likewise.
64336         * tests/test-trunc.c: Likewise.
64337         * tests/test-truncf.c: Likewise.
64338         * tests/test-truncl.c: Likewise.
64339         * tests/test-unistd.c: Likewise.
64340         * tests/test-vasnprintf-posix.c: Likewise.
64341         * tests/test-vasnprintf-posix2.c: Likewise.
64342         * tests/test-vasnprintf.c: Likewise.
64343         * tests/test-vasprintf-posix.c: Likewise.
64344         * tests/test-vasprintf.c: Likewise.
64345         * tests/test-verify.c: Likewise.
64346         * tests/test-vfprintf-posix.c: Likewise.
64347         * tests/test-vprintf-posix.c: Likewise.
64348         * tests/test-vsnprintf-posix.c: Likewise.
64349         * tests/test-vsnprintf.c: Likewise.
64350         * tests/test-vsprintf-posix.c: Likewise.
64351         * tests/test-wchar.c: Likewise.
64352         * tests/test-wctype.c: Likewise.
64353         * tests/test-wcwidth.c: Likewise.
64354         * tests/test-xstrtol.c: Likewise.
64355         * tests/test-xvasprintf.c: Likewise.
64356         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64357         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64358         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64359         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64360         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64361         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64362         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64363         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64364         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64365         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64366         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64367         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64368         * tests/uniname/test-uninames.c: Likewise.
64369         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64370         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64371         * tests/unistdio/test-u16-printf1.h: Likewise.
64372         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64373         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64374         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64375         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64376         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64377         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64378         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64379         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64380         * tests/unistdio/test-u32-printf1.h: Likewise.
64381         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64382         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64383         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64384         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64385         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64386         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64387         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64388         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64389         * tests/unistdio/test-u8-printf1.h: Likewise.
64390         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64391         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64392         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64393         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64394         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64395         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64396         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64397         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64398         * tests/unistdio/test-ulc-printf1.h: Likewise.
64399         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64400         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64401         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64402         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64403         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64404         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64405         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64406         * tests/uniwidth/test-u16-width.c: Likewise.
64407         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64408         * tests/uniwidth/test-u32-width.c: Likewise.
64409         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64410         * tests/uniwidth/test-u8-width.c: Likewise.
64411         * tests/uniwidth/test-uc_width.c: Likewise.
64412         * config/srclist-update: Likewise.
64413         (fixlicense): Update to GPLv3+.
64414
64415         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64416         * tests/test-tsearch.c: Change copyright notice.
64417
64418         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64419         * lib/c-strcaseeq.h: Change copyright notice.
64420         * lib/streq.h: Likewise.
64421         * lib/uniconv.h: Likewise.
64422         * lib/uniconv/u-conv-from-enc.h: Likewise.
64423         * lib/uniconv/u-conv-to-enc.h: Likewise.
64424         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64425         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64426         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64427         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64428         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64429         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64430         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64431         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64432         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64433         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64434         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64435         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64436         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64437         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64438         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64439         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64440         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64441         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64442         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64443         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64444         * lib/uniname.h: Likewise.
64445         * lib/uniname/uniname.c: Likewise.
64446         * lib/unistdio.h: Likewise.
64447         * lib/unistdio/u-asnprintf.h: Likewise.
64448         * lib/unistdio/u-asprintf.h: Likewise.
64449         * lib/unistdio/u-printf-args.c: Likewise.
64450         * lib/unistdio/u-printf-args.h: Likewise.
64451         * lib/unistdio/u-printf-parse.h: Likewise.
64452         * lib/unistdio/u-snprintf.h: Likewise.
64453         * lib/unistdio/u-sprintf.h: Likewise.
64454         * lib/unistdio/u-vasprintf.h: Likewise.
64455         * lib/unistdio/u-vsnprintf.h: Likewise.
64456         * lib/unistdio/u-vsprintf.h: Likewise.
64457         * lib/unistdio/u16-asnprintf.c: Likewise.
64458         * lib/unistdio/u16-asprintf.c: Likewise.
64459         * lib/unistdio/u16-printf-parse.c: Likewise.
64460         * lib/unistdio/u16-snprintf.c: Likewise.
64461         * lib/unistdio/u16-sprintf.c: Likewise.
64462         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64463         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64464         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64465         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64466         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64467         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64468         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64469         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64470         * lib/unistdio/u16-vasnprintf.c: Likewise.
64471         * lib/unistdio/u16-vasprintf.c: Likewise.
64472         * lib/unistdio/u16-vsnprintf.c: Likewise.
64473         * lib/unistdio/u16-vsprintf.c: Likewise.
64474         * lib/unistdio/u32-asnprintf.c: Likewise.
64475         * lib/unistdio/u32-asprintf.c: Likewise.
64476         * lib/unistdio/u32-printf-parse.c: Likewise.
64477         * lib/unistdio/u32-snprintf.c: Likewise.
64478         * lib/unistdio/u32-sprintf.c: Likewise.
64479         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64480         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64481         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64482         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64483         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64484         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64485         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64486         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64487         * lib/unistdio/u32-vasnprintf.c: Likewise.
64488         * lib/unistdio/u32-vasprintf.c: Likewise.
64489         * lib/unistdio/u32-vsnprintf.c: Likewise.
64490         * lib/unistdio/u32-vsprintf.c: Likewise.
64491         * lib/unistdio/u8-asnprintf.c: Likewise.
64492         * lib/unistdio/u8-asprintf.c: Likewise.
64493         * lib/unistdio/u8-printf-parse.c: Likewise.
64494         * lib/unistdio/u8-snprintf.c: Likewise.
64495         * lib/unistdio/u8-sprintf.c: Likewise.
64496         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64497         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64498         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64499         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64500         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64501         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64502         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64503         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64504         * lib/unistdio/u8-vasnprintf.c: Likewise.
64505         * lib/unistdio/u8-vasprintf.c: Likewise.
64506         * lib/unistdio/u8-vsnprintf.c: Likewise.
64507         * lib/unistdio/u8-vsprintf.c: Likewise.
64508         * lib/unistdio/ulc-asnprintf.c: Likewise.
64509         * lib/unistdio/ulc-asprintf.c: Likewise.
64510         * lib/unistdio/ulc-printf-parse.c: Likewise.
64511         * lib/unistdio/ulc-snprintf.c: Likewise.
64512         * lib/unistdio/ulc-sprintf.c: Likewise.
64513         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64514         * lib/unistdio/ulc-vasprintf.c: Likewise.
64515         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64516         * lib/unistdio/ulc-vsprintf.c: Likewise.
64517         * lib/unistr.h: Likewise.
64518         * lib/unistr/u-cpy-alloc.h: Likewise.
64519         * lib/unistr/u-cpy.h: Likewise.
64520         * lib/unistr/u-endswith.h: Likewise.
64521         * lib/unistr/u-move.h: Likewise.
64522         * lib/unistr/u-set.h: Likewise.
64523         * lib/unistr/u-startswith.h: Likewise.
64524         * lib/unistr/u-stpcpy.h: Likewise.
64525         * lib/unistr/u-stpncpy.h: Likewise.
64526         * lib/unistr/u-strcat.h: Likewise.
64527         * lib/unistr/u-strcpy.h: Likewise.
64528         * lib/unistr/u-strcspn.h: Likewise.
64529         * lib/unistr/u-strdup.h: Likewise.
64530         * lib/unistr/u-strlen.h: Likewise.
64531         * lib/unistr/u-strncat.h: Likewise.
64532         * lib/unistr/u-strncpy.h: Likewise.
64533         * lib/unistr/u-strnlen.h: Likewise.
64534         * lib/unistr/u-strpbrk.h: Likewise.
64535         * lib/unistr/u-strspn.h: Likewise.
64536         * lib/unistr/u-strstr.h: Likewise.
64537         * lib/unistr/u-strtok.h: Likewise.
64538         * lib/unistr/u16-check.c: Likewise.
64539         * lib/unistr/u16-chr.c: Likewise.
64540         * lib/unistr/u16-cmp.c: Likewise.
64541         * lib/unistr/u16-cpy-alloc.c: Likewise.
64542         * lib/unistr/u16-cpy.c: Likewise.
64543         * lib/unistr/u16-endswith.c: Likewise.
64544         * lib/unistr/u16-mblen.c: Likewise.
64545         * lib/unistr/u16-mbsnlen.c: Likewise.
64546         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64547         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64548         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64549         * lib/unistr/u16-mbtouc.c: Likewise.
64550         * lib/unistr/u16-mbtoucr.c: Likewise.
64551         * lib/unistr/u16-move.c: Likewise.
64552         * lib/unistr/u16-next.c: Likewise.
64553         * lib/unistr/u16-prev.c: Likewise.
64554         * lib/unistr/u16-set.c: Likewise.
64555         * lib/unistr/u16-startswith.c: Likewise.
64556         * lib/unistr/u16-stpcpy.c: Likewise.
64557         * lib/unistr/u16-stpncpy.c: Likewise.
64558         * lib/unistr/u16-strcat.c: Likewise.
64559         * lib/unistr/u16-strchr.c: Likewise.
64560         * lib/unistr/u16-strcmp.c: Likewise.
64561         * lib/unistr/u16-strcpy.c: Likewise.
64562         * lib/unistr/u16-strcspn.c: Likewise.
64563         * lib/unistr/u16-strdup.c: Likewise.
64564         * lib/unistr/u16-strlen.c: Likewise.
64565         * lib/unistr/u16-strmblen.c: Likewise.
64566         * lib/unistr/u16-strmbtouc.c: Likewise.
64567         * lib/unistr/u16-strncat.c: Likewise.
64568         * lib/unistr/u16-strncmp.c: Likewise.
64569         * lib/unistr/u16-strncpy.c: Likewise.
64570         * lib/unistr/u16-strnlen.c: Likewise.
64571         * lib/unistr/u16-strpbrk.c: Likewise.
64572         * lib/unistr/u16-strrchr.c: Likewise.
64573         * lib/unistr/u16-strspn.c: Likewise.
64574         * lib/unistr/u16-strstr.c: Likewise.
64575         * lib/unistr/u16-strtok.c: Likewise.
64576         * lib/unistr/u16-to-u32.c: Likewise.
64577         * lib/unistr/u16-to-u8.c: Likewise.
64578         * lib/unistr/u16-uctomb-aux.c: Likewise.
64579         * lib/unistr/u16-uctomb.c: Likewise.
64580         * lib/unistr/u32-check.c: Likewise.
64581         * lib/unistr/u32-chr.c: Likewise.
64582         * lib/unistr/u32-cmp.c: Likewise.
64583         * lib/unistr/u32-cpy-alloc.c: Likewise.
64584         * lib/unistr/u32-cpy.c: Likewise.
64585         * lib/unistr/u32-endswith.c: Likewise.
64586         * lib/unistr/u32-mblen.c: Likewise.
64587         * lib/unistr/u32-mbsnlen.c: Likewise.
64588         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64589         * lib/unistr/u32-mbtouc.c: Likewise.
64590         * lib/unistr/u32-mbtoucr.c: Likewise.
64591         * lib/unistr/u32-move.c: Likewise.
64592         * lib/unistr/u32-next.c: Likewise.
64593         * lib/unistr/u32-prev.c: Likewise.
64594         * lib/unistr/u32-set.c: Likewise.
64595         * lib/unistr/u32-startswith.c: Likewise.
64596         * lib/unistr/u32-stpcpy.c: Likewise.
64597         * lib/unistr/u32-stpncpy.c: Likewise.
64598         * lib/unistr/u32-strcat.c: Likewise.
64599         * lib/unistr/u32-strchr.c: Likewise.
64600         * lib/unistr/u32-strcmp.c: Likewise.
64601         * lib/unistr/u32-strcpy.c: Likewise.
64602         * lib/unistr/u32-strcspn.c: Likewise.
64603         * lib/unistr/u32-strdup.c: Likewise.
64604         * lib/unistr/u32-strlen.c: Likewise.
64605         * lib/unistr/u32-strmblen.c: Likewise.
64606         * lib/unistr/u32-strmbtouc.c: Likewise.
64607         * lib/unistr/u32-strncat.c: Likewise.
64608         * lib/unistr/u32-strncmp.c: Likewise.
64609         * lib/unistr/u32-strncpy.c: Likewise.
64610         * lib/unistr/u32-strnlen.c: Likewise.
64611         * lib/unistr/u32-strpbrk.c: Likewise.
64612         * lib/unistr/u32-strrchr.c: Likewise.
64613         * lib/unistr/u32-strspn.c: Likewise.
64614         * lib/unistr/u32-strstr.c: Likewise.
64615         * lib/unistr/u32-strtok.c: Likewise.
64616         * lib/unistr/u32-to-u16.c: Likewise.
64617         * lib/unistr/u32-to-u8.c: Likewise.
64618         * lib/unistr/u32-uctomb.c: Likewise.
64619         * lib/unistr/u8-check.c: Likewise.
64620         * lib/unistr/u8-chr.c: Likewise.
64621         * lib/unistr/u8-cmp.c: Likewise.
64622         * lib/unistr/u8-cpy-alloc.c: Likewise.
64623         * lib/unistr/u8-cpy.c: Likewise.
64624         * lib/unistr/u8-endswith.c: Likewise.
64625         * lib/unistr/u8-mblen.c: Likewise.
64626         * lib/unistr/u8-mbsnlen.c: Likewise.
64627         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64628         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64629         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64630         * lib/unistr/u8-mbtouc.c: Likewise.
64631         * lib/unistr/u8-mbtoucr.c: Likewise.
64632         * lib/unistr/u8-move.c: Likewise.
64633         * lib/unistr/u8-next.c: Likewise.
64634         * lib/unistr/u8-prev.c: Likewise.
64635         * lib/unistr/u8-set.c: Likewise.
64636         * lib/unistr/u8-startswith.c: Likewise.
64637         * lib/unistr/u8-stpcpy.c: Likewise.
64638         * lib/unistr/u8-stpncpy.c: Likewise.
64639         * lib/unistr/u8-strcat.c: Likewise.
64640         * lib/unistr/u8-strchr.c: Likewise.
64641         * lib/unistr/u8-strcmp.c: Likewise.
64642         * lib/unistr/u8-strcpy.c: Likewise.
64643         * lib/unistr/u8-strcspn.c: Likewise.
64644         * lib/unistr/u8-strdup.c: Likewise.
64645         * lib/unistr/u8-strlen.c: Likewise.
64646         * lib/unistr/u8-strmblen.c: Likewise.
64647         * lib/unistr/u8-strmbtouc.c: Likewise.
64648         * lib/unistr/u8-strncat.c: Likewise.
64649         * lib/unistr/u8-strncmp.c: Likewise.
64650         * lib/unistr/u8-strncpy.c: Likewise.
64651         * lib/unistr/u8-strnlen.c: Likewise.
64652         * lib/unistr/u8-strpbrk.c: Likewise.
64653         * lib/unistr/u8-strrchr.c: Likewise.
64654         * lib/unistr/u8-strspn.c: Likewise.
64655         * lib/unistr/u8-strstr.c: Likewise.
64656         * lib/unistr/u8-strtok.c: Likewise.
64657         * lib/unistr/u8-to-u16.c: Likewise.
64658         * lib/unistr/u8-to-u32.c: Likewise.
64659         * lib/unistr/u8-uctomb-aux.c: Likewise.
64660         * lib/unistr/u8-uctomb.c: Likewise.
64661         * lib/unitypes.h: Likewise.
64662         * lib/uniwidth.h: Likewise.
64663         * lib/uniwidth/cjk.h: Likewise.
64664         * lib/uniwidth/u16-strwidth.c: Likewise.
64665         * lib/uniwidth/u16-width.c: Likewise.
64666         * lib/uniwidth/u32-strwidth.c: Likewise.
64667         * lib/uniwidth/u32-width.c: Likewise.
64668         * lib/uniwidth/u8-strwidth.c: Likewise.
64669         * lib/uniwidth/u8-width.c: Likewise.
64670         * lib/uniwidth/width.c: Likewise.
64671
64672 2007-10-07  Bruno Haible  <bruno@clisp.org>
64673
64674         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64675         The file is still under LGPL (see modules/inttypes).
64676
64677 2007-10-06  Bruno Haible  <bruno@clisp.org>
64678
64679         * modules/trunc (Dependencies): Add 'extensions'.
64680         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64681         Reported by Ben Pfaff <blp@gnu.org>.
64682
64683 2007-10-06  Bruno Haible  <bruno@clisp.org>
64684
64685         * modules/freopen-tests: New file.
64686         * tests/test-freopen.c: New file.
64687
64688         * modules/fopen-tests: New file.
64689         * tests/test-fopen.c: New file.
64690
64691         * modules/fopen: New file.
64692         * lib/fopen.c: New file.
64693         * m4/fopen.m4: New file.
64694         * modules/freopen: New file.
64695         * lib/freopen.c: New file.
64696         * m4/freopen.m4: New file.
64697         * lib/stdio.in.h (fopen, freopen): New declarations.
64698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64699         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64700         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64701         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64702         * doc/functions/fopen.texi: Mention the 'fopen' module.
64703         * doc/functions/freopen.texi: Mention the 'freopen' module.
64704
64705 2007-10-06  Bruno Haible  <bruno@clisp.org>
64706
64707         * modules/open-tests: New file.
64708         * tests/test-open.c: New file.
64709
64710         * modules/open: New file.
64711         * lib/open.c: New file.
64712         * m4/open.m4: New file.
64713         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64714         lib/open.c does.
64715         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64716         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64717         macros.
64718         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64719         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64720         REPLACE_OPEN.
64721         * doc/functions/open.texi: Mention the 'open' module.
64722
64723 2007-10-04  Bruno Haible  <bruno@clisp.org>
64724
64725         * modules/ceill-tests: New file.
64726         * tests/test-ceill.c: New file.
64727
64728         * modules/ceill: New file.
64729         * lib/ceill.c: Replace entire file.
64730         * m4/ceill.m4: New file.
64731         * lib/math.in.h (ceill): Replace declaration.
64732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64733         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64734         * doc/functions/ceill.texi: Mention the 'ceill' module.
64735         * modules/mathl (Files): Remove lib/ceill.c.
64736         (Depends-on): Add ceill.
64737
64738 2007-10-04  Bruno Haible  <bruno@clisp.org>
64739
64740         * modules/ceilf-tests: New file.
64741         * tests/test-ceilf.c: New file.
64742
64743         * modules/ceilf: New file.
64744         * lib/ceil.c: New file.
64745         * lib/ceilf.c: New file.
64746         * m4/ceilf.m4: New file.
64747         * lib/math.in.h (ceilf): New declaration.
64748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64749         HAVE_DECL_CEILF.
64750         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64751         HAVE_DECL_CEILF.
64752         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64753
64754 2007-10-04  Bruno Haible  <bruno@clisp.org>
64755
64756         * modules/floorl-tests: New file.
64757         * tests/test-floorl.c: New file.
64758
64759         * modules/floorl: New file.
64760         * lib/floorl.c: Replace entire file.
64761         * m4/floorl.m4: New file.
64762         * lib/math.in.h (floorl): Replace declaration.
64763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64764         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64765         * doc/functions/floorl.texi: Mention the 'floorl' module.
64766         * modules/mathl (Files): Remove lib/floorl.c.
64767         (Depends-on): Add floorl.
64768
64769 2007-10-04  Bruno Haible  <bruno@clisp.org>
64770
64771         * modules/floorf-tests: New file.
64772         * tests/test-floorf.c: New file.
64773
64774         * modules/floorf: New file.
64775         * lib/floor.c: New file.
64776         * lib/floorf.c: New file.
64777         * m4/floorf.m4: New file.
64778         * lib/math.in.h (floorf): New declaration.
64779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64780         HAVE_DECL_FLOORF.
64781         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64782         HAVE_DECL_FLOORF.
64783         * doc/functions/floorf.texi: Mention the 'floorf' module.
64784
64785 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64786             Bruno Haible  <bruno@clisp.org>
64787
64788         Advertise for the Git server instead of the CVS server.
64789         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64790         repository instead of the CVS one.
64791         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64792         about all VCS systems generically.
64793         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64794
64795 2007-10-04  Bruno Haible  <bruno@clisp.org>
64796
64797         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64798         means.
64799         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64800
64801 2007-10-04  Bruno Haible  <bruno@clisp.org>
64802
64803         * modules/truncl-tests: New file.
64804         * tests/test-truncl.c: New file.
64805
64806         * modules/truncl: New file.
64807         * lib/truncl.c: New file.
64808         * m4/truncl.m4: New file.
64809         * lib/math.in.h (truncl): New declaration.
64810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64811         HAVE_DECL_TRUNCL.
64812         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64813         HAVE_DECL_TRUNCL.
64814         * doc/functions/truncl.texi: Mention the 'truncl' module.
64815
64816 2007-10-04  Bruno Haible  <bruno@clisp.org>
64817
64818         * modules/truncf-tests: New file.
64819         * tests/test-truncf.c: New file.
64820
64821         * modules/truncf: New file.
64822         * lib/trunc.c: Make paramerizable through USE_* macros.
64823         * lib/truncf.c: New file.
64824         * m4/truncf.m4: New file.
64825         * lib/math.in.h (truncf): New declaration.
64826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64827         HAVE_DECL_TRUNCF.
64828         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64829         HAVE_DECL_TRUNCF.
64830         * doc/functions/truncf.texi: Mention the 'truncf' module.
64831
64832 2007-10-03  Bruno Haible  <bruno@clisp.org>
64833
64834         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
64835         augmentation also for tests modules.
64836         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
64837         * modules/atexit-tests (Makefile.am): Likewise.
64838         * modules/binary-io-tests (Makefile.am): Likewise.
64839         * modules/c-strcase-tests (Makefile.am): Likewise.
64840         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
64841         * modules/canonicalize-tests (Makefile.am): Likewise.
64842         * modules/closein-tests (Makefile.am): Likewise.
64843         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64844         * modules/freadahead-tests (Makefile.am): Likewise.
64845         * modules/fseek-tests (Makefile.am): Likewise.
64846         * modules/fseeko-tests (Makefile.am): Likewise.
64847         * modules/ftell-tests (Makefile.am): Likewise.
64848         * modules/ftello-tests (Makefile.am): Likewise.
64849         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
64850         * modules/isnanl-tests (Makefile.am): Likewise.
64851         * modules/lseek-tests (Makefile.am): Likewise.
64852         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64853         * modules/mbscasestr-tests (Makefile.am): Likewise.
64854         * modules/mbschr-tests (Makefile.am): Likewise.
64855         * modules/mbscspn-tests (Makefile.am): Likewise.
64856         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64857         * modules/mbspbrk-tests (Makefile.am): Likewise.
64858         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64859         * modules/mbsrchr-tests (Makefile.am): Likewise.
64860         * modules/mbsspn-tests (Makefile.am): Likewise.
64861         * modules/mbsstr-tests (Makefile.am): Likewise.
64862         * modules/printf-posix-tests (Makefile.am): Likewise.
64863         * modules/snprintf-posix-tests (Makefile.am): Likewise.
64864         * modules/sprintf-posix-tests (Makefile.am): Likewise.
64865         * modules/tsearch-tests (Makefile.am): Likewise.
64866         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64867         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64868         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64869         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64870         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64871         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64872         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64873         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64874         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
64875         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
64876         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64877         * modules/xstrtol-tests (Makefile.am): Likewise.
64878         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64879         * modules/yesno-tests (Makefile.am): Likewise.
64880
64881 2007-10-03  Bruno Haible  <bruno@clisp.org>
64882
64883         * modules/trunc-tests: New file.
64884         * tests/test-trunc.c: New file.
64885
64886         * modules/trunc: New file.
64887         * lib/trunc.c: New file.
64888         * m4/trunc.m4: New file.
64889         * lib/math.in.h (trunc): New declaration.
64890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
64891         HAVE_DECL_TRUNC.
64892         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
64893         HAVE_DECL_TRUNC.
64894         * doc/functions/trunc.texi: Mention the 'trunc' module.
64895
64896 2007-10-03  Bruno Haible  <bruno@clisp.org>
64897
64898         * tests/test-fpending.c: New file, mostly copied
64899         from coreutils/lib/t-fpending.c.
64900         * modules/fpending-tests: New file.
64901
64902 2007-10-03  Bruno Haible  <bruno@clisp.org>
64903
64904         Port the stdio extensions to QNX (untested).
64905         * lib/fseterr.c (fseterr): Add support for QNX.
64906         * lib/fbufmode.c (fbufmode): Likewise.
64907         * lib/freadable.c (freadable): Likewise.
64908         * lib/fwritable.c (fwritable): Likewise.
64909         * lib/freading.c (freading): Likewise.
64910         * lib/fwriting.c (fwriting): Likewise.
64911         * lib/freadahead.c (freadahed): Likewise.
64912         * lib/fpurge.c (fpurge): Likewise.
64913         * lib/fseeko.c (rpl_fseeko): Likewise.
64914
64915 2007-10-03  Bruno Haible  <bruno@clisp.org>
64916             Jim Meyering  <jim@meyering.net>
64917             Eric Blake  <ebb9@byu.net>
64918
64919         * doc/relocatable.texi: Use @command instead of @program.
64920
64921 2007-10-02  Jim Meyering  <jim@meyering.net>
64922
64923         Perform one more "_.h" -> ".in.h" substitution.
64924         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
64925         instead of unistd_.h here, too.
64926
64927 2007-10-01  Bruno Haible  <bruno@clisp.org>
64928
64929         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
64930         Needed for the alloca-opt module.
64931
64932 2007-09-30  Bruno Haible  <bruno@clisp.org>
64933
64934         * lib/alloca.in.h: Renamed from lib/alloca_.h.
64935         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
64936         alloca_.h.
64937         * lib/argz.in.h: Renamed from lib/argz_.h.
64938         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
64939         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
64940         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
64941         byteswap_.h.
64942         * lib/dirent.in.h: Renamed from lib/dirent_.h.
64943         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
64944         dirent_.h.
64945         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
64946         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
64947         fcntl_.h.
64948         * lib/float.in.h: Renamed from lib/float_.h.
64949         * modules/float (Files, Makefile.am): Use float.in.h instead of
64950         float_.h.
64951         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
64952         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
64953         fnmatch_.h.
64954         * lib/getopt.in.h: Renamed from lib/getopt_.h.
64955         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
64956         getopt_.h.
64957         * lib/glob.in.h: Renamed from lib/glob_.h.
64958         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
64959         * lib/iconv.in.h: Renamed from lib/iconv_.h.
64960         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
64961         iconv_.h.
64962         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
64963         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64964         inttypes_.h.
64965         * lib/locale.in.h: Renamed from lib/locale_.h.
64966         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
64967         locale_.h.
64968         * lib/math.in.h: Renamed from lib/math_.h.
64969         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
64970         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
64971         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
64972         of netinet_in_.h. Add dependency.
64973         * lib/poll.in.h: Renamed from lib/poll_.h.
64974         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
64975         * lib/search.in.h: Renamed from lib/search_.h.
64976         * modules/search (Files, Makefile.am): Use search.in.h instead of
64977         search_.h.
64978         * lib/signal.in.h: Renamed from lib/signal_.h.
64979         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64980         _signal.h.
64981         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64982         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64983         stdbool_.h.
64984         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64985         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64986         stdint_.h.
64987         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64988         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64989         stdio_.h.
64990         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64991         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64992         stdlib_.h.
64993         * lib/string.in.h: Renamed from lib/string_.h.
64994         * modules/string (Files, Makefile.am): Use string.in.h instead of
64995         string_.h.
64996         * doc/gnulib-tool.texi (Initial import): Update.
64997         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64998         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64999         of sys_select_.h. Add dependency.
65000         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65001         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65002         of sys_socket_.h.
65003         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65004         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65005         sys_stat_.h.
65006         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65007         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65008         sys_time_.h.
65009         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65010         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65011         sysexits_.h.
65012         * lib/time.in.h: Renamed from lib/time_.h.
65013         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65014         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65015         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65016         unistd_.h.
65017         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65018         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65019         wchar_.h.
65020         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65021         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65022         wctype_.h.
65023         * build-aux/bootstrap (slurp): Update.
65024         * lib/.cppi-disable: Update.
65025
65026 2007-09-30  Bruno Haible  <bruno@clisp.org>
65027
65028         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65029         Needed on BeOS.
65030
65031 2007-09-30  Bruno Haible  <bruno@clisp.org>
65032
65033         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65034
65035 2007-09-29  Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65038
65039 2007-09-29  Bruno Haible  <bruno@clisp.org>
65040
65041         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65042         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65043         * build-aux/install-reloc: Compile also areadlink.c.
65044         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65045
65046 2007-09-29  Bruno Haible  <bruno@clisp.org>
65047
65048         * gnulib-tool (func_emit_initmacro_done): Indentation.
65049
65050 2007-09-29  Bruno Haible  <bruno@clisp.org>
65051
65052         * README: Add CVS checkout update instructions.
65053         Info from Bob Proulx <bob@proulx.com>.
65054
65055 2007-09-28  Eric Blake  <ebb9@byu.net>
65056
65057         Provide move-if-change.
65058         * build-aux/move-if-change: New file, based on best practice
65059         rather than any canonical upstream location.
65060
65061 2007-09-28  Jim Meyering  <jim@meyering.net>
65062
65063         Fix canonicalize loop-detection corner case.
65064         Do not attempt to stat the symlink values stored via seen_triple.
65065         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65066         on linux-2.6.18, (but not 2.6.22).
65067         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65068         triple_compare.  The former compares dev,ino,filename, while the latter
65069         would actually stat dirname(filename) when dev and ino were equal.
65070         * lib/hash-triple.c: Install <string.h>.
65071         (STREQ): Define.
65072         (triple_compare_ino_str): New function.
65073         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65074
65075 2007-09-28  Eric Blake  <ebb9@byu.net>
65076
65077         Enforce that AC_REPLACE_FUNCS files exist.
65078         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65079         override check for typos.
65080
65081         Fix test-closein on Solaris 10.
65082         * tests/test-closein.c (main): Don't assume stdin can be inherited
65083         closed on all systems.
65084         * tests/test-closein.sh: Likewise.
65085         Reported by Piotr Tarnowski.
65086
65087 2007-09-28  Jim Meyering  <jim@meyering.net>
65088
65089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65090
65091 2007-09-27  Jim Meyering  <jim@meyering.net>
65092
65093         canonicalize: Avoid a false-positive cycle failure.
65094         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65095         Sort.  Remove cycle-check.
65096         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65097         not cycle-check.h.
65098         (seen_triple): New function.
65099         (canonicalize_filename_mode): Use it instead of cycle-check.
65100         * tests/test-canonicalize.c: Add a test for this bug.
65101         * tests/test-canonicalize.sh: Set up and run the test.
65102
65103         New module, file-set, from coreutils.
65104         * modules/file-set: Define it.
65105         * lib/file-set.c, lib/file-set.h: Implement.
65106
65107         New module, hash-triple, from coreutils.
65108         * modules/hash-triple: Define it.
65109         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65110
65111 2007-09-25  Eric Blake  <ebb9@byu.net>
65112
65113         Fix strerror on Interix.
65114         * lib/string_.h (strerror): Declare replacement.
65115         * doc/functions/strerror.texi (strerror): Document the Interix
65116         shortcoming.
65117         * modules/string (Makefile.am): Support new hooks.
65118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65119         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65120         gl_FUNC_STRERROR_SEPARATE.
65121         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65122         * lib/strerror.c (rpl_strerror): Provide replacement.
65123         * modules/strerror (Depends-on): Add string.
65124         (configure.ac): Detect use of module.
65125         * tests/test-strerror.c: New file.
65126         * modules/strerror-tests: New test module.
65127         * modules/argp (Depends-on): Add strerror.
65128         * modules/error (Depends-on): Likewise.
65129         Reported by Martin Koeppe.
65130
65131 2007-09-24  Bruno Haible  <bruno@clisp.org>
65132
65133         * README: Update git instructions.
65134
65135 2007-09-24  Eric Blake  <ebb9@byu.net>
65136
65137         Revert fpending breakage from 2007-09-08.
65138         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65139         __fpending.c.
65140
65141 2007-09-24  Jim Meyering  <jim@meyering.net>
65142
65143         filenamecat.c: Add a test.
65144         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65145         showing how the function works when DIR is the empty string.
65146
65147 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65148
65149         * tests/test-canonicalize.sh: Turn on executable bit.
65150
65151 2007-09-19  Eric Blake  <ebb9@byu.net>
65152
65153         * README: Update CVS instructions.
65154
65155 2007-09-18  Bruno Haible  <bruno@clisp.org>
65156
65157         * modules/areadlink: New file.
65158         * lib/areadlink.h (areadlink): New declaration.
65159         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65160
65161 2007-09-17  Jim Meyering  <jim@meyering.net>
65162
65163         * lib/savewd.c (ESTALE) [!defined]: Define.
65164         Reported to be required on Interix by Martin Koeppe.
65165
65166 2007-09-17  Bruno Haible  <bruno@clisp.org>
65167
65168         * gnulib-tool (func_version): Use $version.
65169
65170 2007-09-16  Bruno Haible  <bruno@clisp.org>
65171
65172         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65173         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65174         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65175         Reported by Greg Schafer <gschafer@zip.com.au>.
65176
65177 2007-09-15  Bruno Haible  <bruno@clisp.org>
65178
65179         * gnulib-tool (sed): Try a little harder to make bash understand the
65180         alias.
65181         Reported by Bruce Korb <bruce.korb@gmail.com>.
65182
65183 2007-09-13  Eric Blake  <ebb9@byu.net>
65184
65185         * ChangeLog: Remove conflict markers.
65186
65187 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65188
65189         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65190         Reported by Bruno Haible <bruno@clisp.org>.
65191
65192 2007-09-12  Bruno Haible  <bruno@clisp.org>
65193
65194         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65195         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65196         is not defined.
65197
65198 2007-09-12  Eric Blake  <ebb9@byu.net>
65199
65200         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65201         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65202         Autoconf definition.
65203         * modules/euidaccess (Depends-on): Add extensions, for
65204         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65205         * modules/fnmatch (Depends-on): Likewise.
65206         * modules/getaddrinfo (Depends-on): Likewise.
65207         * modules/getdelim (Depends-on): Likewise.
65208         * modules/getline (Depends-on): Likewise.
65209         * modules/getsubopt (Depends-on): Likewise.
65210         * modules/gettext (Depends-on): Likewise.
65211         * modules/group-member (Depends-on): Likewise.
65212         * modules/mbchar (Depends-on): Likewise.
65213         * modules/memmem (Depends-on): Likewise.
65214         * modules/mempcpy (Depends-on): Likewise.
65215         * modules/memrchr (Depends-on): Likewise.
65216         * modules/pagealign_alloc (Depends-on): Likewise.
65217         * modules/readutmp (Depends-on): Likewise.
65218         * modules/stpcpy (Depends-on): Likewise.
65219         * modules/stpncpy (Depends-on): Likewise.
65220         * modules/strchrnul (Depends-on): Likewise.
65221         * modules/strndup (Depends-on): Likewise.
65222         * modules/strsep (Depends-on): Likewise.
65223         * modules/strverscmp (Depends-on): Likewise.
65224         * modules/vasprintf (Depends-on): Likewise.
65225         * modules/wcwidth (Depends-on): Likewise.
65226         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65227         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65228         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65229         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65230         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65231         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65232         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65233         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65234         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65235         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65236         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65237         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65238         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65239         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65240         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65241         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65242         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65243         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65244         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65245         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65246         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65247         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65248         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65249         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65250         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65252         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65253         so that lock.m4 can be used in gettext without extensions module.
65254
65255 2007-09-11  Bruno Haible  <bruno@clisp.org>
65256
65257         * m4/isc-posix.m4: Remove file.
65258         Suggested by Eric Blake.
65259
65260 2007-09-11  Eric Blake  <ebb9@byu.net>
65261
65262         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65263
65264 2007-09-10  Bruno Haible  <bruno@clisp.org>
65265
65266         * posix-modules: Fix typo in error message.
65267         Reported by Matt <mkraai@beckman.com>.
65268
65269 2007-09-09  Bruno Haible  <bruno@clisp.org>
65270
65271         * doc/functions/getdelim.texi: Update list of platforms lacking the
65272         function.
65273         * doc/functions/getline.texi: Likewise.
65274
65275 2007-09-09  Jim Meyering  <jim@meyering.net>
65276
65277         * lib/hash.c (hash_initialize): Detect calloc failure.
65278         Reported by Bruno Haible.
65279
65280 2007-09-09  Bruno Haible  <bruno@clisp.org>
65281
65282         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65283         malloc or realloc fails.
65284
65285 2007-09-09  Bruno Haible  <bruno@clisp.org>
65286
65287         * modules/getcwd (Depends-on): Add malloc-posix.
65288         * modules/glob (Depends-on): Likewise.
65289         * modules/putenv (Depends-on): Likewise.
65290         * modules/strdup (Depends-on): Likewise.
65291         * modules/getdelim (Depends-on): Add realloc-posix.
65292         * modules/read-file (Depends-on): Likewise.
65293
65294 2007-09-09  Bruno Haible  <bruno@clisp.org>
65295
65296         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65297         (gl_FUNC_MALLOC_POSIX): Require it.
65298         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65299         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65300         * modules/realloc (Files): Add m4/malloc.m4.
65301         * modules/calloc (Files): Likewise.
65302
65303 2007-09-09  Bruno Haible  <bruno@clisp.org>
65304
65305         * modules/malloc-posix: New file.
65306         * modules/malloc (Depends-on): Add malloc-posix.
65307         * lib/malloc.c: Include errno.h.
65308         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65309         and a POSIX-compatible malloc into a single function. Set ENOMEM
65310         when returning NULL.
65311         * m4/malloc.m4: New file.
65312         * doc/functions/malloc.texi: Mention the malloc-posix module.
65313         * lib/stdlib_.h (malloc): New declaration.
65314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65315         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65316         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65317         and HAVE_MALLOC_POSIX.
65318
65319 2007-09-09  Bruno Haible  <bruno@clisp.org>
65320
65321         * modules/realloc-posix: New file.
65322         * modules/realloc (Depends-on): Add realloc-posix.
65323         * lib/realloc.c: Include errno.h.
65324         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65325         and a POSIX-compatible realloc into a single function. Set ENOMEM
65326         when returning NULL.
65327         * m4/realloc.m4: New file.
65328         * doc/functions/realloc.texi: Mention the realloc-posix module.
65329         * lib/stdlib_.h (realloc): New declaration.
65330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65331         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65332         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65333         and HAVE_REALLOC_POSIX.
65334
65335 2007-09-09  Bruno Haible  <bruno@clisp.org>
65336
65337         * modules/calloc-posix: New file.
65338         * modules/calloc (Depends-on): Add calloc-posix.
65339         * lib/calloc.c: Include errno.h.
65340         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65341         and a POSIX-compatible calloc into a single function. Set ENOMEM
65342         when returning NULL.
65343         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65344         * doc/functions/calloc.texi: Mention the calloc-posix module.
65345         * lib/stdlib_.h (calloc): New declaration.
65346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65347         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65348         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65349         and HAVE_CALLOC_POSIX.
65350
65351 2007-09-09  Bruno Haible  <bruno@clisp.org>
65352
65353         Allow for modules to show an arbitrary notice.
65354         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65355         * gnulib-tool: New option --extract-notice.
65356         (func_usage): Document it.
65357         (sed_extract_prog): Update.
65358         (func_get_notice): New function.
65359         (func_modules_notice): New function.
65360         (func_import, func_create_testdir): Invoke it.
65361         Suggested by Jim Meyering.
65362
65363 2007-09-09  Bruno Haible  <bruno@clisp.org>
65364
65365         * gnulib-tool: New options --verbose, --quiet.
65366         (func_usage): Document them.
65367         (verbose): New variable.
65368         (func_execute_command): New function.
65369         (func_import): Don't show the module list and the file list if
65370         $verbose < 0.
65371         (func_create_testdir): Likewise. Use func_execute_command.
65372         (func_create_megatestdir): Use func_execute_command.
65373
65374 2007-09-08  Bruno Haible  <bruno@clisp.org>
65375
65376         * gnulib-tool (func_import): Prefer rsync over wget when available,
65377         for fetching the PO files.
65378
65379 2007-09-08  Bruno Haible  <bruno@clisp.org>
65380
65381         * posix-modules: New file. Portions copied from gnulib-tool.
65382         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65383
65384 2007-09-08  Jim Meyering  <jim@meyering.net>
65385
65386         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65387         * lib/fpending.h: Rename from __fpending.h.
65388         * lib/fpending.c: Rename from __fpending.c.
65389         Include "fpending.h", not "__fpending.h".
65390         * lib/__fpending.h, lib/__fpending.c: Remove files.
65391         * modules/fpending (Files): Reflect new file names.
65392         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65393
65394 2007-09-08  Bruno Haible  <bruno@clisp.org>
65395
65396         * m4/inttypes-h.m4: Remove stub file.
65397
65398 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65399
65400         * doc/headers/stdint.texi: Discuss #include_next issue.
65401
65402 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65403
65404         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65405
65406 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65407
65408         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65409         in variable name.
65410
65411 2007-09-03  Jim Meyering  <jim@meyering.net>
65412
65413         New module: git-version-gen.
65414         * modules/git-version-gen: New file.
65415
65416         Import changes from coreutils for bootstrap script.
65417
65418         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65419
65420         bootstrap: uses rsync to download the .po files
65421         * build-aux/bootstrap (po_download_command_format): New global.
65422         (download_po_files): Use rsync.
65423         (update_po_files): Don't remove .po files after download,
65424         so future rsync runs can take advantage of the copies.
65425
65426         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65427
65428         Solve the unnecessary-.po-file-regeneration problem once and for all.
65429         * build-aux/bootstrap (download_po_files): New function, renamed from
65430         get_translations.  Now, downloads, but doesn't update LINGUAS.
65431         (update_po_files): New function.
65432
65433         bootstrap: Ignore more.
65434         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65435         uniwidth to e.g., lib/.gitignore.
65436         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65437
65438         * build-aux/bootstrap: New setting: vc_ignore.
65439         (insert_sorted_if_absent): Create $file if absent.
65440         Adapt to new, possibly empty, list: $vc_ignore.
65441
65442         bootstrap: generate more ignorable names
65443         * build-aux/bootstrap (slurp): When generating ignorable names,
65444         also map .sin to .sed, .gperf to .c, and .y to .c.
65445
65446 2007-09-03  Jim Meyering  <jim@meyering.net>
65447
65448         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65449         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65450
65451 2007-09-02  Bruno Haible  <bruno@clisp.org>
65452
65453         Fix mis-recognition of 'mcs' on QNX 6.
65454         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65455         output contains the string "Mono".
65456         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65457         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65458
65459 2007-09-01  Bruno Haible  <bruno@clisp.org>
65460
65461         Fix collision between uniwidth/* and linebreak modules.
65462         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65463         u32_width): Remove declarations.
65464         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65465         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65466         streq3, streq2, streq1, streq0): Remove functions.
65467         (STREQ): Remove macro.
65468         (is_cjk_encoding): Remove function.
65469         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65470         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65471         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65472         * NEWS: Document the change.
65473
65474 2007-09-01  Bruno Haible  <bruno@clisp.org>
65475
65476         * lib/streq.h: Add double-inclusion guard.
65477
65478 2007-09-01  Karl Berry  <karl@gnu.org>
65479
65480         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65481
65482 2007-08-28  Jim Meyering  <jim@meyering.net>
65483
65484         Rename mreadlink_with_size to areadlink_with_size.
65485         * NEWS: Document the change.
65486         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65487         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65488         * lib/mreadlink.h: Rename this to...
65489         * lib/areadlink.h: ...this.
65490         * modules/mreadlink-with-size: Rename this to...
65491         * modules/areadlink-with-size: ...this.
65492         * lib/canonicalize.c: Reflect the renaming.
65493         * modules/canonicalize: Likewise.
65494
65495 2007-08-26  Bruno Haible  <bruno@clisp.org>
65496
65497         * gnulib-tool (func_import): When deciding which files to remove,
65498         consider also dangling symbolic links.
65499         Reported by Eric Blake.
65500
65501 2007-08-26  Bruno Haible  <bruno@clisp.org>
65502
65503         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65504
65505 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65506
65507         * lib/readline.c: Don't include getline.h, the prototype is now
65508         found in stdio.h.
65509
65510 2007-08-23  Jim Meyering  <jim@meyering.net>
65511
65512         Getdelim touchup.
65513         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65514         around the funlockfile call, since funlockfile never sets errno.
65515         Don't set errno upon failed realloc.
65516
65517 2007-08-22  Eric Blake  <ebb9@byu.net>
65518
65519         Getline touchups.
65520         * lib/getdelim.c (getdelim): Revert regression that required *n to
65521         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65523         getdelim, rather than whether implementation is missing.
65524         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65525         * lib/stdio_.h (getline): Also declare if replacement is
65526         required.
65527         * doc/functions/getdelim.texi: New file.
65528         * doc/functions/getline.texi: Likewise.
65529         * doc/gnulib.texi (Function Substitutes): Add new files.
65530         Reported by Bruno Haible.
65531
65532 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65533
65534         * users.txt: Add Guile.
65535
65536 2007-08-22  Eric Blake  <ebb9@byu.net>
65537
65538         * tests/test-getdelim.c (main): Use remove, not unlink.
65539         * tests/test-getline.c (main): Likewise.
65540
65541         Move getline and getdelim into stdio.h, per POSIX 200x.
65542         * modules/getline (Files): Remove getline.h.
65543         (Depends-on): Add stdio.
65544         (configure.ac): Add module indicator.
65545         * modules/getdelim (Files): Remove getdelim.h.
65546         (Depends-on): Add stdio.
65547         (configure.ac): Add module indicator.
65548         * modules/stdio (Makefile.am): Work with new indicators.
65549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65551         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65552         * lib/getdelim.h: Delete.
65553         * lib/getline.h: Delete.
65554         * lib/stdio_.h (getdelim, getline): Declare.
65555         * modules/getdelim-tests: New module.
65556         * modules/getline-tests: Likewise.
65557         * tests/test-getdelim.c: New file.
65558         * tests/test-getline.c: Likewise.
65559         * NEWS: Document the change.
65560         * lib/getline.c: Update choice of header.
65561         * lib/csharpcomp.c: Likewise.
65562         * lib/getpass.c: Likewise.
65563         * lib/javacomp.c: Likewise.
65564         * lib/javaversion.c: Likewise.
65565         * lib/yesno.c: Likewise.
65566         * lib/getdelim.c: Likewise.
65567         (getdelim): Set errno on failure, and avoid memory leak.
65568
65569 2007-08-19  Bruno Haible  <bruno@clisp.org>
65570
65571         * modules/closein (Depends-on): Add freadahead.
65572         * lib/closein.c: Include freadahead.h.
65573         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65574         is zero.
65575
65576 2007-08-19  Bruno Haible  <bruno@clisp.org>
65577
65578         * modules/freadahead-tests: New file.
65579         * tests/test-freadahead.sh: New file.
65580         * tests/test-freadahead.c: New file.
65581
65582         * modules/freadahead: New file.
65583         * lib/freadahead.h: New file.
65584         * lib/freadahead.c: New file.
65585         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65586         fbufmode, fpurge, freadable, fwritable.
65587
65588 2007-08-19  Eric Blake  <ebb9@byu.net>
65589
65590         Test yesno in combination with closein.
65591         * lib/yesno.c (yesno): Document use of stdin.
65592         * modules/yesno-tests (Files): New module.
65593         * tests/test-yesno.c (main): New file.
65594         * tests/test-yesno.sh: Likewise.
65595
65596 2007-08-19  Bruno Haible  <bruno@clisp.org>
65597
65598         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65599         * lib/fseeko.c (rpl_fseeko): Likewise.
65600         * lib/fseterr.c (fseterr): Likewise.
65601
65602 2007-08-19  Bruno Haible  <bruno@clisp.org>
65603
65604         * tests/test-lseek.c (main): Disable a test for BeOS.
65605         * doc/functions/lseek.texi: Document the BeOS bug.
65606
65607 2007-08-19  Bruno Haible  <bruno@clisp.org>
65608             Eric Blake  <ebb9@byu.net>
65609
65610         * lib/lseek.c: Include <sys/stat.h>.
65611         (rpl_lseek): Add workaround code also for Unix platforms.
65612         Needed for BeOS.
65613         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65614         * doc/functions/lseek.texi: Document BeOS definiency.
65615
65616 2007-08-18  Bruno Haible  <bruno@clisp.org>
65617
65618         * modules/fstrcmp-tests: New file.
65619         * tests/test-fstrcmp.c: New file.
65620
65621 2007-08-18  Bruno Haible  <bruno@clisp.org>
65622
65623         * modules/fstrcmp: New file, from GNU gettext with modifications.
65624         * lib/fstrcmp.h: New file, from GNU gettext.
65625         * lib/fstrcmp.c: New file, from GNU gettext.
65626         * MODULES.html.sh (String handling): Add fstrcmp.
65627
65628 2007-08-18  Bruno Haible  <bruno@clisp.org>
65629
65630         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65631         'bool'.
65632         (diag, compareseq): Remove const from the ctxt argument.
65633         (USE_HEURISTIC): Undefine at the end.
65634
65635 2007-08-18  Jim Meyering  <jim@meyering.net>
65636
65637         New file: lib/idcache.h
65638         * NEWS: Mention the addition.
65639         * modules/idcache (Files): Add lib/idcache.h
65640         * lib/idcache.c: Include "idcache.h".
65641         Don't include <sys/types.h>.
65642         Add a FIXME comment.
65643         Move file-scoped "static" declarations to the top.
65644         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65645
65646 2007-08-17  Bruno Haible  <bruno@clisp.org>
65647         and Paul Eggert  <eggert@cs.ucla.edu>
65648
65649         * MODULES.html.sh: Add diffseq.
65650         * modules/diffseq: New file.
65651         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65652         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65653
65654 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65655
65656         Import changes from coreutils for bootstrap script.
65657
65658         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65659
65660         * build-aux/bootstrap (slurp): Work even in environments where
65661         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65662         current code does not slurp files whose names start with ".", and
65663         this looks like it might be a troublesome area.
65664
65665         2007-07-11  Jim Meyering  <jim@meyering.net>
65666
65667         If there's a GPL vN copyright comment, require that N == 3.
65668
65669         2007-07-08  Jim Meyering  <jim@meyering.net>
65670
65671         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65672         * build-aux/bootstrap (mam_template): Move definition out of loop.
65673
65674         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65675
65676         * build-aux/bootstrap (symlink_to_dir): Rename function from
65677         symlink_to_gnulib.  Add a directory parameter.  Update all
65678         callers.
65679         (cp_mark_as_generated): Also check for -- and link to -- files in
65680         gl/.
65681
65682         2007-07-08  Jim Meyering  <jim@meyering.net>
65683
65684         Adapt to deeper hierarchy in gnulib.
65685         * build-aux/bootstrap (symlink_to_dir): If the destination
65686         directory doesn't exist, create it. This is required at least for
65687         "lib/uniwidth/cjk.h".
65688
65689         2007-05-15  Jim Meyering  <jim@meyering.net>
65690
65691         * build-aux/bootstrap: Now that generated Makefile.am files
65692         are no longer under version control, they must be created at
65693         bootstrap time.
65694
65695 2007-08-14  Ben Pfaff  <blp@gnu.org>
65696
65697         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65698
65699 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65702         given the changes below.
65703         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65704         even on hosts that have padding bits beyond the supported 64.
65705
65706 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65709         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65710         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65711         depends on it.
65712         (xstrtol_error): Remove.
65713         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65714         but with a different signature.
65715         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65716         * lib/xstrtol-error.c: Include exitfail.h.
65717         (xstrtol_fatal): New function, with a different signature from the
65718         old xstrtol_error, so that the caller need not worry about passing
65719         in an exit status, or about storage management of the option argument.
65720         (xstrtol_error): Now a static function.  Redo signature to
65721         implement xstrtol_fatal.  Output the correct number of hyphens in
65722         front of the option so that the caller need not worry about
65723         storage management.
65724         (N_): New macro.
65725         (_): Remove; not used now.
65726         * modules/xstrtol: Depend on getopt.
65727         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65728         of old STRTOL_FATAL_ERROR macro.
65729         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65730         of test program.
65731         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65732         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65733
65734 2007-08-08  Eric Blake  <ebb9@byu.net>
65735
65736         * lib/xstrtol-error.c: Add missing include.
65737
65738         Move xstrtol messages into gnulib domain, when --pobase is used.
65739         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65740         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65741         * modules/xstrtol (Files): Distribute new file.
65742         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65743         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65744         * tests/test-xstrtol.c: ...into new file.
65745         * tests/test-xstrtoul.c: Also test xstrtoul.
65746         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65747         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65748         * tests/test-xstrtol.sh: Drive the tests.
65749         * tests/test-xstrtoimax.sh: Likewise.
65750         * tests/test-xstrtoumax.sh: Likewise.
65751         * modules/xstrtol-tests: New module.
65752         * modules/xstrtoimax-tests: Likewise.
65753         * modules/xstrtoumax-tests: Likewise.
65754
65755 2007-08-08  Jim Meyering  <jim@meyering.net>
65756
65757         New function: mfile_name_concat.
65758         * lib/filenamecat.c (mfile_name_concat): New function, just like
65759         file_name_concat, but return NULL upon failure rather than exiting
65760         with a diagnostic.
65761         * lib/filenamecat.h: Declare it.
65762
65763 2007-08-07  Bruno Haible  <bruno@clisp.org>
65764
65765         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65766         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65767         warning from gcc.
65768         Reported by Eric Blake.
65769
65770 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65771
65772         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65773         * modules/crypto/arcfour (License): Likewise.
65774         * modules/crypto/des-tests (License): Likewise.
65775         * modules/crypto/gc-arctwo-tests (License): Likewise.
65776         * modules/crypto/gc-des-tests (License): Likewise.
65777         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65778         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65779         * modules/crypto/gc-md2-tests (License): Likewise.
65780         * modules/crypto/gc-md4-tests (License): Likewise.
65781         * modules/crypto/gc-md5-tests (License): Likewise.
65782         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65783         * modules/crypto/gc-rijndael-tests (License): Likewise.
65784         * modules/crypto/gc-sha1-tests (License): Likewise.
65785         * modules/crypto/gc-tests (License): Likewise.
65786         * modules/crypto/hmac-md5 (License): Likewise.
65787         * modules/crypto/hmac-sha1 (License): Likewise.
65788         * modules/crypto/md2-tests (License): Likewise.
65789         * modules/crypto/md4-tests (License): Likewise.
65790         * modules/crypto/md5 (License): Likewise.
65791         * modules/crypto/rijndael (License): Likewise.
65792         * modules/crypto/sha1 (License): Likewise.
65793         * modules/memxor (License): Likewise.
65794
65795 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65796         and Bruno Haible  <bruno@clisp.org>
65797
65798         * NEWS: Describe interface changes to human, xstrtol.
65799         * lib/human.h: Include <xstrtol.h>.
65800         (human_options): Return enum strtol_error, not int.  Remove
65801         bool arg; take int * instead.
65802         * lib/human.c: Don't include "gettext.h".
65803         (_): Remove; no longer used.
65804         Don't include <xstrtol.h>, since human.h does it.
65805         (human_options): Adjust to abovementioned interface changes.
65806         Do not report error to stderr; that's now the caller's
65807         responsibility.
65808         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65809         interface change.
65810         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65811         Str, Argument_type_string.  All uses changed.  Put " argument"
65812         in diagnostics to make them clearer.  Change wording of suffix
65813         message for clarity.
65814         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65815         Argument_type_string.
65816         (STRTOL_FATAL_WARN): Remove; no longer used.
65817         * modules/human (Depends-on): Remove gettext-h.
65818
65819 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65820
65821         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65822
65823 2007-07-31  Bruno Haible  <bruno@clisp.org>
65824
65825         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65826         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65827         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65828
65829 2007-07-31  Bruno Haible  <bruno@clisp.org>
65830
65831         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
65832         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
65833
65834 2007-07-30  Bruno Haible  <bruno@clisp.org>
65835
65836         * modules/base64 (License): Use the synonymous term "LGPLv2+".
65837         * modules/c-ctype (License): Likewise.
65838         * modules/c-strcase (License): Likewise.
65839         * modules/check-version (License): Likewise.
65840         * modules/iconv (License): Likewise.
65841         * modules/iconv_open (License): Likewise.
65842         * modules/read-file (License): Likewise.
65843         * modules/striconv (License): Likewise.
65844         * modules/strverscmp (License): Likewise.
65845         * modules/vasprintf (License): Likewise.
65846         * modules/crypto/des (License): Likewise.
65847         * modules/crypto/gc (License): Likewise.
65848         * modules/crypto/gc-arcfour (License): Likewise.
65849         * modules/crypto/gc-arctwo (License): Likewise.
65850         * modules/crypto/gc-des (License): Likewise.
65851         * modules/crypto/gc-hmac-md5 (License): Likewise.
65852         * modules/crypto/gc-hmac-sha1 (License): Likewise.
65853         * modules/crypto/gc-md2 (License): Likewise.
65854         * modules/crypto/gc-md4 (License): Likewise.
65855         * modules/crypto/gc-md5 (License): Likewise.
65856         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
65857         * modules/crypto/gc-random (License): Likewise.
65858         * modules/crypto/gc-rijndael (License): Likewise.
65859         * modules/crypto/gc-sha1 (License): Likewise.
65860         * modules/crypto/md2 (License): Likewise.
65861         * modules/crypto/md4 (License): Likewise.
65862
65863 2007-07-30  Jim Meyering  <jim@meyering.net>
65864
65865         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
65866         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
65867         it has valid stat data.  This bug would cause du not to count the
65868         sizes of inaccessible directories.
65869         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
65870         in <http://bugzilla.redhat.com/250077>.
65871
65872 2007-07-25  Peter O'Gorman  <peter@pogma.com>
65873             Bruno Haible  <bruno@clisp.org>
65874
65875         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
65876         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
65877         #include_next, gives a diagnostic about it, but reports no error in
65878         the exit code.
65879         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
65880
65881 2007-07-24  Ben Pfaff  <blp@gnu.org>
65882
65883         Improve name: "count-one-bits" is better than "popcount".
65884         * MODULES.html.sh: Update name.
65885         * lib/popcount.h: Renamed lib/count-one-bits.h.
65886         (popcount): Renamed count_one_bits.
65887         (popcountl): Renamed count_one_bits_l.
65888         (popcountll): Renamed count_one_bits_ll.
65889         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
65890         * modules/popcount: Renamed module/count-one-bits.
65891         * modules/popcount-tests: Renamed module/count-one-bits-tests.
65892         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
65893
65894 2007-07-23  Ben Pfaff  <blp@gnu.org>
65895
65896         * lib/popcount.h (popcount32): Reduce size of constants, to allow
65897         better code generation, and add U to large constants to avoid
65898         warnings, in non-GCC case.
65899         Suggested by Bruno Haible.
65900
65901 2007-07-23  Ben Pfaff  <blp@gnu.org>
65902
65903         * lib/popcount.h: Use verify_true instead of if...abort.
65904         * modules/popcount: Depend on verify module.
65905         Suggested by Jim Meyering.
65906
65907 2007-07-23  Bruno Haible  <bruno@clisp.org>
65908
65909         * gnulib-tool (func_import): Create a .cvsignore file also when the
65910         directory is not yet in CVS but the toplevel directory is. When
65911         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
65912         Reported by Karl Berry.
65913
65914 2007-07-22  Ben Pfaff  <blp@gnu.org>
65915
65916         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
65917         case.
65918         Suggested by Eric Blake.
65919
65920 2007-07-22  Ben Pfaff  <blp@gnu.org>
65921
65922         New module: popcount.
65923         * MODULES.html.sh: Add popcount.
65924         * modules/popcount: New file.
65925         * modules/popcount-tests: New file.
65926         * tests/test-popcount.c: New file.
65927         * lib/popcount.h: New file.
65928         * m4/popcount.m4: New file.
65929
65930 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * build-aux/announce-gen: Update to GPLv3.
65933
65934         * build-aux/config.guess: Update from config.
65935
65936 2007-07-21  Bruno Haible  <bruno@clisp.org>
65937
65938         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
65939         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
65940
65941 2007-07-20  Jim Meyering  <jim@meyering.net>
65942
65943         * check-module: Diagnose a self-dependency.
65944
65945 2007-07-19  Bruno Haible  <bruno@clisp.org>
65946
65947         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
65948         empty.
65949         Reported by Eric Blake.
65950
65951 2007-07-18  Bruno Haible  <bruno@clisp.org>
65952
65953         * gnulib-tool: New options --po-base, --po-domain.
65954         (func_usage): Document them.
65955         (pobase, po_domain): New variables.
65956         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
65957         DEFAULT_TEXT_DOMAIN.
65958         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
65959         (func_import): Consider pobase and po_domain. Create a po/ directory.
65960         (func_create_testdir): Set pobase and po_domain to empty.
65961         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
65962         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
65963
65964 2007-07-18  Bruno Haible  <bruno@clisp.org>
65965
65966         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65967         EXTRA_DIST augmentation for files in build-aux/.
65968
65969 2007-07-16  Bruno Haible  <bruno@clisp.org>
65970
65971         * modules/lseek (License): Use the synonymous term "LGPLv2+".
65972         * modules/getdelim (License): Likewise.
65973
65974 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65975
65976         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65977         * modules/d-type (License): Likewise.
65978         * modules/extensions (License): Likewise.
65979         * modules/fnmatch (License): Likewise.
65980         * modules/fseeko (License): Likewise.
65981         * modules/getaddrinfo (License): Likewise.
65982         * modules/getline (License): Likewise.
65983         * modules/getlogin_r (License): Likewise.
65984         * modules/getpass (License): Likewise.
65985         * modules/gettimeofday (License): Likewise.
65986         * modules/glob (License): Likewise.
65987         * modules/inet_ntop (License): Likewise.
65988         * modules/malloc (License): Likewise.
65989         * modules/malloca (License): Likewise.
65990         * modules/memmem (License): Likewise.
65991         * modules/mempcpy (License): Likewise.
65992         * modules/memset (License): Likewise.
65993         * modules/minmax (License): Likewise.
65994         * modules/mktime (License): Likewise.
65995         * modules/netinet_in (License): Likewise.
65996         * modules/pathmax (License): Likewise.
65997         * modules/poll (License): Likewise.
65998         * modules/regex (License): Likewise.
65999         * modules/snprintf (License): Likewise.
66000         * modules/stdbool (License): Likewise.
66001         * modules/stdint (License): Likewise.
66002         * modules/stdio (License): Likewise.
66003         * modules/strcase (License): Likewise.
66004         * modules/strcasestr (License): Likewise.
66005         * modules/strdup (License): Likewise.
66006         * modules/string (License): Likewise.
66007         * modules/strndup (License): Likewise.
66008         * modules/strnlen (License): Likewise.
66009         * modules/strpbrk (License): Likewise.
66010         * modules/strptime (License): Likewise.
66011         * modules/strsep (License): Likewise.
66012         * modules/sys_select (License): Likewise.
66013         * modules/sys_socket (License): Likewise.
66014         * modules/sys_stat (License): Likewise.
66015         * modules/sys_time (License): Likewise.
66016         * modules/time (License): Likewise.
66017         * modules/time_r (License): Likewise.
66018         * modules/timegm (License): Likewise.
66019         * modules/unistd (License): Likewise.
66020         * modules/vsnprintf (License): Likewise.
66021         * modules/wctype (License): Likewise.
66022
66023 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66024
66025         * modules/argz (License): LGPLv2+.
66026
66027 2007-07-15  Karl Berry  <karl@gnu.org>
66028
66029         * doc/gnulib.texi: revise node structure per new fdl.texi.
66030
66031 2007-07-14  Bruno Haible  <bruno@clisp.org>
66032
66033         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66034         the output file.
66035         * lib/uniname/uninames.h: Regenerated.
66036
66037 2007-07-14  Karl Berry  <karl@gnu.org>
66038
66039         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66040         omitting sectioning and index commands.
66041
66042 2007-07-13  Bruno Haible  <bruno@clisp.org>
66043
66044         New gnulib-tool option --more-symlinks.
66045         * gnulib-tool (func_usage): Document --more-symlinks.
66046         (do_copyrights): New variable.
66047         Recognize option --more-symlinks.
66048         (func_import): Don't add a copyright notice transform to
66049         sed_transform_lib_file if do_copyrights is empty.
66050
66051 2007-07-13  Bruno Haible  <bruno@clisp.org>
66052
66053         * lib/vasnprintf.c (decimal_point_char): Define also if
66054         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66055         && !NEED_PRINTF_DIRECTIVE_A.
66056         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66057         Gary V. Vaughan <gary@gnu.org>.
66058
66059 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66060
66061         * lib/inttypes_.h: Undo previous change, since it was fixed
66062         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66063
66064 2007-07-13  Bruno Haible  <bruno@clisp.org>
66065
66066         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66067         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66068
66069 2007-07-13  Jim Meyering  <jim@meyering.net>
66070
66071         df: Don't fail for Tru64's "file-on-file mount".
66072         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66073         so we fall through and use statfs instead.  Details here:
66074         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66075         Reported by Albert Chin.
66076
66077 2007-07-13  Bruno Haible  <bruno@clisp.org>
66078
66079         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66080         * modules/configmake (License): Likewise.
66081         * modules/gettext (License): Likewise.
66082         * modules/gettext-h (License): Likewise.
66083         * modules/include_next (License): Likewise.
66084         * modules/link-warning (License): Likewise.
66085         * modules/localcharset (License): Likewise.
66086         * modules/localename (License): Likewise.
66087         * modules/lock (License): Likewise.
66088         * modules/relocatable-lib-lgpl (License): Likewise.
66089         * modules/size_max (License): Likewise.
66090         * modules/vasnprintf (License): Likewise.
66091         * modules/wchar (License): Likewise.
66092         * modules/xsize (License): Likewise.
66093
66094 2007-07-13  Bruno Haible  <bruno@clisp.org>
66095
66096         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66097         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66098
66099 2007-07-12  Bruno Haible  <bruno@clisp.org>
66100
66101         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66102         in the modules files.
66103
66104 2007-07-11  Karl Berry  <karl@gnu.org>
66105
66106         * MODULES.html.sh (func_module): use
66107          sed -e '\|^'"${includefile}"'$|d'
66108          instead of /.../d, to avoid errors on $includefile's containing /.
66109
66110 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66111
66112         * gnulib-tool (func_import): Avoid duplication of --avoid
66113         statements
66114         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66115         names to `_' in variable names.
66116
66117 2007-07-10  Eric Blake  <ebb9@byu.net>
66118
66119         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66120         * NEWS: Document this change.
66121
66122 2007-07-08  Bruno Haible  <bruno@clisp.org>
66123
66124         Update to Unicode 5.0.
66125         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66126         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66127         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66128         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66129         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66130         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66131         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66132         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66133         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66134         U+10A3F, U+1D242..U+1D244.
66135         (nonspacing_table_ind): Update.
66136         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66137         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66138
66139 2007-07-08  Bruno Haible  <bruno@clisp.org>
66140
66141         Update to Unicode 5.0.
66142         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66143         code transform. Extend the name index field of unicode_name_to_code and
66144         unicode_code_to_name from 16 to 24 bits.
66145         * lib/uniname/uniname.c (unicode_character_name,
66146         unicode_name_character): Add the range 0x12xxx to the code transform.
66147         * lib/uniname/uninames.h: Regenerated.
66148         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66149
66150 2007-07-07  Bruno Haible  <bruno@clisp.org>
66151
66152         * modules/wcwidth-tests: New file.
66153         * tests/test-wcwidth.c: New file.
66154
66155         Work around MacOS X wcwidth() bug.
66156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66157         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66158         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66159         original wcwidth in non-UTF-8 locales.
66160         * modules/wcwidth (Depends-on): Add localcharset, streq,
66161         uniwidth/width.
66162         * doc/functions/wcwidth.texi: Update.
66163
66164 2007-07-07  Bruno Haible  <bruno@clisp.org>
66165
66166         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66167         (wcwidth): New declaration.
66168         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66169         macros.
66170         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66171         here. Prepare for creating <wchar.h> unconditionally.
66172         * modules/wchar (Depends-on): Add link-warning.
66173         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66174         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66175         * lib/wcwidth.h: Remove file.
66176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66177         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66178         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66179         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66180         (Include): Replace wcwidth.h with <wchar.h>.
66181         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66182         * lib/mbchar.h: Don't include wcwidth.h.
66183         * lib/mbswidth.c: Likewise.
66184         * NEWS: Mention the change.
66185
66186 2007-07-07  Bruno Haible  <bruno@clisp.org>
66187
66188         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66189         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66190         definition with an external declaration.
66191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66192         defined as a function. Remove AC_C_INLINE requirement.
66193         * modules/wcwidth (Files): Add lib/wcwidth.c.
66194         (Makefile.am): Remove redundant statement.
66195
66196 2007-07-07  Bruno Haible  <bruno@clisp.org>
66197
66198         * MODULES.html.sh (Unicode string functions): Add the new modules.
66199
66200         * tests/uniwidth/test-u32-strwidth.c: New file.
66201         * modules/uniwidth/u32-strwidth-tests: New file.
66202
66203         * lib/uniwidth/u32-strwidth.c: New file.
66204         * modules/uniwidth/u32-strwidth: New file.
66205
66206         * tests/uniwidth/test-u16-strwidth.c: New file.
66207         * modules/uniwidth/u16-strwidth-tests: New file.
66208
66209         * lib/uniwidth/u16-strwidth.c: New file.
66210         * modules/uniwidth/u16-strwidth: New file.
66211
66212         * tests/uniwidth/test-u8-strwidth.c: New file.
66213         * modules/uniwidth/u8-strwidth-tests: New file.
66214
66215         * lib/uniwidth/u8-strwidth.c: New file.
66216         * modules/uniwidth/u8-strwidth: New file.
66217
66218         * tests/uniwidth/test-u32-width.c: New file.
66219         * modules/uniwidth/u32-width-tests: New file.
66220
66221         * lib/uniwidth/u32-width.c: New file.
66222         * modules/uniwidth/u32-width: New file.
66223
66224         * tests/uniwidth/test-u16-width.c: New file.
66225         * modules/uniwidth/u16-width-tests: New file.
66226
66227         * lib/uniwidth/u16-width.c: New file.
66228         * modules/uniwidth/u16-width: New file.
66229
66230         * tests/uniwidth/test-u8-width.c: New file.
66231         * modules/uniwidth/u8-width-tests: New file.
66232
66233         * lib/uniwidth/u8-width.c: New file.
66234         * modules/uniwidth/u8-width: New file.
66235
66236         * tests/uniwidth/test-uc_width.c: New file.
66237         * modules/uniwidth/width-tests: New file.
66238
66239         * lib/uniwidth/width.c: New file, from GNU libiconv.
66240         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66241         * modules/uniwidth/width: New file.
66242
66243         * lib/uniwidth.h: New file, from GNU libiconv.
66244         * modules/uniwidth/base: New file.
66245
66246 2007-07-07  Bruno Haible  <bruno@clisp.org>
66247
66248         * lib/uniname.h: New file, from GNU gettext.
66249         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66250         * lib/uniname/uninames.h: New file, from GNU gettext.
66251         * lib/uniname/uniname.c: New file, from GNU gettext.
66252         * tests/uniname/test-uninames.sh: New file.
66253         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66254         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66255         * modules/uniname/base: New file.
66256         * modules/uniname/uniname: New file.
66257         * modules/uniname/uniname-tests: New file.
66258         * MODULES.html.sh (Unicode string functions): Add the new modules.
66259
66260 2007-07-06  Bruno Haible  <bruno@clisp.org>
66261
66262         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66263
66264 2007-07-06  Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66267         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66268         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66269         include <sys/time.h>.
66270         Reported by Eric Blake.
66271
66272 2007-07-06  Eric Blake  <ebb9@byu.net>
66273
66274         Fix testing canonicalize on cygwin.
66275         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66276         Revert patch from 2007-06-19.
66277         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66278         canonicalize module is also in use.
66279         * tests/test-canonicalize.c: New file.
66280         * tests/test-canonicalize.sh: Likewise.
66281         * modules/canonicalize-tests: Likewise.
66282
66283 2007-07-06  Jim Meyering  <jim@meyering.net>
66284
66285         * lib/getugroups.c (getugroups): Detect getgrent failure.
66286         Adjust comment to reflect reality: this function may return -1.
66287
66288 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66289
66290         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66291         the new TP address.
66292         (usage): Fix typo
66293         (gnulib_mk): New variable.
66294
66295 2007-07-05  Jim Meyering  <jim@meyering.net>
66296
66297         Don't let endgrent clobber errno, no matter how improbable.
66298         * lib/getugroups.c (getugroups): Save and restore errno around
66299         endgrent call.
66300
66301         Close the group DB even when failing with 2^31 or more members.
66302         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66303
66304 2007-07-04  Jim Meyering  <jim@meyering.net>
66305
66306         * lib/getugroups.h: New file.
66307         * lib/getugroups.c: Include "getugroups.h".
66308         Remove uses of "register" keyword.
66309         Move local variable, "cp", down into scope where used.
66310         Give "username" parameter the "const" attribute.
66311         * modules/getugroups (Files): Add lib/getugroups.h
66312
66313 2007-07-04  Karl Berry  <karl@gnu.org>
66314
66315         * MODULES.html.sh (func_all_modules): Complete rename of
66316         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66317
66318 2007-07-02  Bruno Haible  <bruno@clisp.org>
66319
66320         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66321         mode, when inttypes.h comes from gnulib.
66322         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66323
66324 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66325
66326         * NEWS: Mention lgpl module name change.
66327
66328         * modules/lgpl-2.1: Renamed from lgpl.
66329
66330         * NEWS: Mention gpl module name change.
66331
66332         * modules/gpl-3.0: New file, based on gpl-2.0.
66333
66334         * modules/gpl-2.0: Renamed from gpl.
66335
66336         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66337         doc/gpl-2.0.texi.
66338
66339 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66342         #define __STDC_LIMIT_MACROS temporarily while including
66343         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66344         Problem reported by Joel E. Denny in
66345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66346
66347 2007-07-01  Bruno Haible  <bruno@clisp.org>
66348
66349         * lib/unistdio.h: New file.
66350         * lib/unistdio/u-asnprintf.h: New file.
66351         * lib/unistdio/u-asprintf.h: New file.
66352         * lib/unistdio/u-printf-args.c: New file.
66353         * lib/unistdio/u-printf-args.h: New file.
66354         * lib/unistdio/u-printf-parse.h: New file.
66355         * lib/unistdio/u-snprintf.h: New file.
66356         * lib/unistdio/u-sprintf.h: New file.
66357         * lib/unistdio/u-vasprintf.h: New file.
66358         * lib/unistdio/u-vsnprintf.h: New file.
66359         * lib/unistdio/u-vsprintf.h: New file.
66360         * lib/unistdio/ulc-asnprintf.c: New file.
66361         * lib/unistdio/ulc-asprintf.c: New file.
66362         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66363         * lib/unistdio/ulc-printf-parse.c: New file.
66364         * lib/unistdio/ulc-snprintf.c: New file.
66365         * lib/unistdio/ulc-sprintf.c: New file.
66366         * lib/unistdio/ulc-vasnprintf.c: New file.
66367         * lib/unistdio/ulc-vasprintf.c: New file.
66368         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66369         * lib/unistdio/ulc-vsnprintf.c: New file.
66370         * lib/unistdio/ulc-vsprintf.c: New file.
66371         * lib/unistdio/u8-asnprintf.c: New file.
66372         * lib/unistdio/u8-asprintf.c: New file.
66373         * lib/unistdio/u8-printf-parse.c: New file.
66374         * lib/unistdio/u8-snprintf.c: New file.
66375         * lib/unistdio/u8-sprintf.c: New file.
66376         * lib/unistdio/u8-vasnprintf.c: New file.
66377         * lib/unistdio/u8-vasprintf.c: New file.
66378         * lib/unistdio/u8-vsnprintf.c: New file.
66379         * lib/unistdio/u8-vsprintf.c: New file.
66380         * lib/unistdio/u8-u8-asnprintf.c: New file.
66381         * lib/unistdio/u8-u8-asprintf.c: New file.
66382         * lib/unistdio/u8-u8-snprintf.c: New file.
66383         * lib/unistdio/u8-u8-sprintf.c: New file.
66384         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66385         * lib/unistdio/u8-u8-vasprintf.c: New file.
66386         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66387         * lib/unistdio/u8-u8-vsprintf.c: New file.
66388         * lib/unistdio/u16-asnprintf.c: New file.
66389         * lib/unistdio/u16-asprintf.c: New file.
66390         * lib/unistdio/u16-printf-parse.c: New file.
66391         * lib/unistdio/u16-snprintf.c: New file.
66392         * lib/unistdio/u16-sprintf.c: New file.
66393         * lib/unistdio/u16-vasnprintf.c: New file.
66394         * lib/unistdio/u16-vasprintf.c: New file.
66395         * lib/unistdio/u16-vsnprintf.c: New file.
66396         * lib/unistdio/u16-vsprintf.c: New file.
66397         * lib/unistdio/u16-u16-asnprintf.c: New file.
66398         * lib/unistdio/u16-u16-asprintf.c: New file.
66399         * lib/unistdio/u16-u16-snprintf.c: New file.
66400         * lib/unistdio/u16-u16-sprintf.c: New file.
66401         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66402         * lib/unistdio/u16-u16-vasprintf.c: New file.
66403         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66404         * lib/unistdio/u16-u16-vsprintf.c: New file.
66405         * lib/unistdio/u32-asnprintf.c: New file.
66406         * lib/unistdio/u32-asprintf.c: New file.
66407         * lib/unistdio/u32-printf-parse.c: New file.
66408         * lib/unistdio/u32-snprintf.c: New file.
66409         * lib/unistdio/u32-sprintf.c: New file.
66410         * lib/unistdio/u32-vasnprintf.c: New file.
66411         * lib/unistdio/u32-vasprintf.c: New file.
66412         * lib/unistdio/u32-vsnprintf.c: New file.
66413         * lib/unistdio/u32-vsprintf.c: New file.
66414         * lib/unistdio/u32-u32-asnprintf.c: New file.
66415         * lib/unistdio/u32-u32-asprintf.c: New file.
66416         * lib/unistdio/u32-u32-snprintf.c: New file.
66417         * lib/unistdio/u32-u32-sprintf.c: New file.
66418         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66419         * lib/unistdio/u32-u32-vasprintf.c: New file.
66420         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66421         * lib/unistdio/u32-u32-vsprintf.c: New file.
66422         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66423         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66424         * tests/unistdio/test-ulc-printf1.h: New file.
66425         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66426         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66427         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66428         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66429         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66430         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66431         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66432         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66433         * tests/unistdio/test-u8-asnprintf1.c: New file.
66434         * tests/unistdio/test-u8-asnprintf1.h: New file.
66435         * tests/unistdio/test-u8-printf1.h: New file.
66436         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66437         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66438         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66439         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66440         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66441         * tests/unistdio/test-u8-vasprintf1.c: New file.
66442         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66443         * tests/unistdio/test-u8-vsprintf1.c: New file.
66444         * tests/unistdio/test-u16-asnprintf1.c: New file.
66445         * tests/unistdio/test-u16-asnprintf1.h: New file.
66446         * tests/unistdio/test-u16-printf1.h: New file.
66447         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66448         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66449         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66450         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66451         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66452         * tests/unistdio/test-u16-vasprintf1.c: New file.
66453         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66454         * tests/unistdio/test-u16-vsprintf1.c: New file.
66455         * tests/unistdio/test-u32-asnprintf1.c: New file.
66456         * tests/unistdio/test-u32-asnprintf1.h: New file.
66457         * tests/unistdio/test-u32-printf1.h: New file.
66458         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66459         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66460         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66461         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66462         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66463         * tests/unistdio/test-u32-vasprintf1.c: New file.
66464         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66465         * tests/unistdio/test-u32-vsprintf1.c: New file.
66466         * modules/unistdio/base: New file.
66467         * modules/unistdio/u-printf-args: New file.
66468         * modules/unistdio/ulc-asnprintf: New file.
66469         * modules/unistdio/ulc-asprintf: New file.
66470         * modules/unistdio/ulc-fprintf: New file.
66471         * modules/unistdio/ulc-printf-parse: New file.
66472         * modules/unistdio/ulc-snprintf: New file.
66473         * modules/unistdio/ulc-sprintf: New file.
66474         * modules/unistdio/ulc-vasnprintf: New file.
66475         * modules/unistdio/ulc-vasprintf: New file.
66476         * modules/unistdio/ulc-vfprintf: New file.
66477         * modules/unistdio/ulc-vsnprintf: New file.
66478         * modules/unistdio/ulc-vsprintf: New file.
66479         * modules/unistdio/u8-asnprintf: New file.
66480         * modules/unistdio/u8-asprintf: New file.
66481         * modules/unistdio/u8-printf-parse: New file.
66482         * modules/unistdio/u8-snprintf: New file.
66483         * modules/unistdio/u8-sprintf: New file.
66484         * modules/unistdio/u8-vasnprintf: New file.
66485         * modules/unistdio/u8-vasprintf: New file.
66486         * modules/unistdio/u8-vsnprintf: New file.
66487         * modules/unistdio/u8-vsprintf: New file.
66488         * modules/unistdio/u8-u8-asnprintf: New file.
66489         * modules/unistdio/u8-u8-asprintf: New file.
66490         * modules/unistdio/u8-u8-snprintf: New file.
66491         * modules/unistdio/u8-u8-sprintf: New file.
66492         * modules/unistdio/u8-u8-vasnprintf: New file.
66493         * modules/unistdio/u8-u8-vasprintf: New file.
66494         * modules/unistdio/u8-u8-vsnprintf: New file.
66495         * modules/unistdio/u8-u8-vsprintf: New file.
66496         * modules/unistdio/u16-asnprintf: New file.
66497         * modules/unistdio/u16-asprintf: New file.
66498         * modules/unistdio/u16-printf-parse: New file.
66499         * modules/unistdio/u16-snprintf: New file.
66500         * modules/unistdio/u16-sprintf: New file.
66501         * modules/unistdio/u16-vasnprintf: New file.
66502         * modules/unistdio/u16-vasprintf: New file.
66503         * modules/unistdio/u16-vsnprintf: New file.
66504         * modules/unistdio/u16-vsprintf: New file.
66505         * modules/unistdio/u16-u16-asnprintf: New file.
66506         * modules/unistdio/u16-u16-asprintf: New file.
66507         * modules/unistdio/u16-u16-snprintf: New file.
66508         * modules/unistdio/u16-u16-sprintf: New file.
66509         * modules/unistdio/u16-u16-vasnprintf: New file.
66510         * modules/unistdio/u16-u16-vasprintf: New file.
66511         * modules/unistdio/u16-u16-vsnprintf: New file.
66512         * modules/unistdio/u16-u16-vsprintf: New file.
66513         * modules/unistdio/u32-asnprintf: New file.
66514         * modules/unistdio/u32-asprintf: New file.
66515         * modules/unistdio/u32-printf-parse: New file.
66516         * modules/unistdio/u32-snprintf: New file.
66517         * modules/unistdio/u32-sprintf: New file.
66518         * modules/unistdio/u32-vasnprintf: New file.
66519         * modules/unistdio/u32-vasprintf: New file.
66520         * modules/unistdio/u32-vsnprintf: New file.
66521         * modules/unistdio/u32-vsprintf: New file.
66522         * modules/unistdio/u32-u32-asnprintf: New file.
66523         * modules/unistdio/u32-u32-asprintf: New file.
66524         * modules/unistdio/u32-u32-snprintf: New file.
66525         * modules/unistdio/u32-u32-sprintf: New file.
66526         * modules/unistdio/u32-u32-vasnprintf: New file.
66527         * modules/unistdio/u32-u32-vasprintf: New file.
66528         * modules/unistdio/u32-u32-vsnprintf: New file.
66529         * modules/unistdio/u32-u32-vsprintf: New file.
66530         * modules/unistdio/ulc-asnprintf-tests: New file.
66531         * modules/unistdio/ulc-vasnprintf-tests: New file.
66532         * modules/unistdio/ulc-vasprintf-tests: New file.
66533         * modules/unistdio/ulc-vsnprintf-tests: New file.
66534         * modules/unistdio/ulc-vsprintf-tests: New file.
66535         * modules/unistdio/u8-asnprintf-tests: New file.
66536         * modules/unistdio/u8-vasnprintf-tests: New file.
66537         * modules/unistdio/u8-vasprintf-tests: New file.
66538         * modules/unistdio/u8-vsnprintf-tests: New file.
66539         * modules/unistdio/u8-vsprintf-tests: New file.
66540         * modules/unistdio/u16-asnprintf-tests: New file.
66541         * modules/unistdio/u16-vasnprintf-tests: New file.
66542         * modules/unistdio/u16-vasprintf-tests: New file.
66543         * modules/unistdio/u16-vsnprintf-tests: New file.
66544         * modules/unistdio/u16-vsprintf-tests: New file.
66545         * modules/unistdio/u32-asnprintf-tests: New file.
66546         * modules/unistdio/u32-vasnprintf-tests: New file.
66547         * modules/unistdio/u32-vasprintf-tests: New file.
66548         * modules/unistdio/u32-vsnprintf-tests: New file.
66549         * modules/unistdio/u32-vsprintf-tests: New file.
66550         * MODULES.html.sh (Unicode string functions): Add the new modules.
66551
66552 2007-07-01  Bruno Haible  <bruno@clisp.org>
66553
66554         * lib/sprintf.c (sprintf): Limit the available length estimation,
66555         to avoid address wraparound.
66556         * lib/vsprintf.c (vsprintf): Likewise.
66557         * modules/sprintf-posix (Dependencies): Add stdint.
66558         * modules/vsprintf-posix (Dependencies): Likewise.
66559
66560 2007-07-01  Bruno Haible  <bruno@clisp.org>
66561
66562         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66563         Windows PATH as well. Conservative double-quoting. Comments.
66564
66565 2007-07-01  Bruno Haible  <bruno@clisp.org>
66566             Eric Blake  <ebb9@byu.net>
66567             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66568
66569         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66570         empty components in $PATH, denoting '.'.
66571
66572 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66573
66574         * gnulib-tool: Fix indentation.
66575         (func_create_megatestdir): Likewise.
66576         Report by Bruno Haible.
66577
66578 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66579
66580         Sync from Automake.
66581         * build-aux/gnupload: Fix shell portability issues with for loops.
66582         Report by Karl Berry.
66583
66584 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66585
66586         * build-aux/maint.mk (POURL): Use translationproject.org.
66587
66588 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66589             Bruno Haible  <bruno@clisp.org>
66590
66591         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66592         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66593         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66594         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66595         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66596
66597 2007-06-27  Bruno Haible  <bruno@clisp.org>
66598
66599         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66600         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66601
66602 2007-06-26  Karl Berry  <karl@gnu.org>
66603
66604         * MODULES.html.sh: remove xreadlink-with-size.
66605
66606 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66607
66608         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66609         method that I hope also handles the double-include problem noted
66610         by Bruno Haible in
66611         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66612
66613 2007-06-23  Bruno Haible  <bruno@clisp.org>
66614
66615         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66616         Don't let the 'mostlyclean' target fail if the last subdirectory could
66617         not be removed.
66618         Reported by Karl Berry.
66619
66620 2007-06-23  Bruno Haible  <bruno@clisp.org>
66621
66622         * gnulib-tool (echo): Add a speedier workaround for ksh.
66623         * tests/test-echo.sh: Likewise.
66624
66625 2007-06-23  Bruno Haible  <bruno@clisp.org>
66626
66627         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66628         * tests/test-echo.sh: Likewise.
66629
66630 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66631
66632         * gnulib-tool (IFS): Initialize early, so we don't set it to
66633         empty later.
66634         (self_abspathname): Rewrite algorithm to set it, reindent.
66635         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66636         (func_create_megatestdir): Merge some sed scripts.
66637
66638 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66639
66640         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66641         exposed by Sun Studio 11 cc on Solaris 8.
66642
66643 2007-06-22  Bruno Haible  <bruno@clisp.org>
66644
66645         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66646         backslashes.
66647         * tests/test-echo.sh: New file.
66648
66649 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66650
66651         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66652         simplify `sed_replace_build_aux' scripts, they are portable but
66653         echoing them with `echo' is not.
66654         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66655
66656 2007-06-21  Karl Berry  <karl@gnu.org>
66657
66658         * config/srclist.txt: guess we can't handle the licenses via
66659         srclist at the moment.
66660
66661 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66662
66663         * MODULES.html.sh: Add include_next.
66664         * modules/include_next: New file.
66665
66666 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66667
66668         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66669         INCLUDE_NEXT.
66670         (gl_CHECK_NEXT_HEADERS): New macro.
66671         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66672         the obsolescent gl_ABSOLUTE_HEADER.
66673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66674         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66675         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66676         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66677         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66678         * m4/math_h.m4 (gl_MATH_H): Likewise.
66679         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66680         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66681         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66682         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66683         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66684         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66685         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66686         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66687         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66688         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66689         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66690         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66691         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66692         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66693         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66694         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66695         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66696         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66697         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66698         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66699         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66700         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66701         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66702         * lib/float_.h: Likewise.
66703         * lib/inttypes_.h: Likewise.
66704         * lib/math_.h: Likewise.
66705         * lib/search_.h: Likewise.
66706         * lib/signal_.h: Likewise.
66707         * lib/stdint_.h: Likewise.
66708         * lib/stdio_.h: Likewise.
66709         * lib/stdlib_.h: Likewise.
66710         * lib/string_.h: Likewise.
66711         * lib/sys_stat_.h: Likewise.
66712         * lib/sys_time_.h: Likewise.
66713         * lib/time_.h: Likewise.
66714         * lib/unistd_.h: Likewise.
66715         * lib/wchar_.h: Likewise.
66716         * lib/wctype_.h: Likewise.
66717         * lib/dirent_.h: Likewise.
66718         * lib/iconv_.h: Likewise.
66719         * lib/locale_.h: Likewise.
66720         * lib/netinet_in_.h: Likewise.
66721         * lib/sys_select_.h: Likewise.
66722         * lib/sys_socket_.h: Likewise.
66723         * lib/sysexits_.h: Likewise.
66724         * modules/fcntl (Depends-on): Depend on include_next, not
66725         absolute_header.
66726         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66727         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66728         * modules/fchdir: Likewise.
66729         * modules/float: Likewise.
66730         * modules/iconv_open: Likewise.
66731         * modules/inttypes: Likewise.
66732         * modules/locale: Likewise.
66733         * modules/math: Likewise.
66734         * modules/netinet_in: Likewise.
66735         * modules/search: Likewise.
66736         * modules/signal: Likewise.
66737         * modules/stdint: Likewise.
66738         * modules/stdio: Likewise.
66739         * modules/stdlib: Likewise.
66740         * modules/string: Likewise.
66741         * modules/sys_select: Likewise.
66742         * modules/sys_socket: Likewise.
66743         * modules/sys_stat: Likewise.
66744         * modules/sys_time: Likewise.
66745         * modules/sysexits: Likewise.
66746         * modules/time: Likewise.
66747         * modules/unistd: Likewise.
66748         * modules/wchar: Likewise.
66749         * modules/wctype: Likewise.
66750         * modules/sys_stat: Change maintainer to "all".
66751         * modules/unistd: Likewise.
66752
66753 2007-06-20  Karl Berry  <karl@gnu.org>
66754
66755         * config/srclist.txt: track www changes in license files.
66756
66757 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66758
66759         * build-aux/bootstrap: Remove stray dot.
66760         Make sure build_aux settings are honored when linking
66761         gnulib_extra_files.
66762
66763 2007-06-19  Eric Blake  <ebb9@byu.net>
66764
66765         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66766         Allow compilation on cygwin.
66767
66768 2007-06-19  Jim Meyering  <jim@meyering.net>
66769
66770         xreadlink-with-size: Remove module.  No longer used.
66771         Ex-callers now use xreadlink or mreadlink-with-size.
66772         * modules/xreadlink-with-size: Remove module.
66773         * lib/xreadlink-with-size.c: Remove file.
66774         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66775         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66776         just before the function definition *is* accurate.
66777
66778         Eliminate one way canonicalize_filename_mode could exit.
66779         * lib/canonicalize.c (canonicalize_filename_mode):
66780         Use mreadlink_with_size, not xreadlink_with_size.
66781
66782 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66783
66784         Detect porting problems to FreeBSD/arm, which has time_t wider than
66785         long int.  Original problem reported for GNU diff by Xin Li in
66786         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66787         * modules/getdate (Depends-on): Add intprops, verify.
66788         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66789         is an integer type no wider than long int.
66790
66791 2007-06-18  Jim Meyering  <jim@meyering.net>
66792
66793         New module: mreadlink-with-size.
66794         * MODULES.html.sh: Add mreadlink-with-size.
66795         * modules/mreadlink-with-size: New module
66796         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66797         not xreadlink-with-size.
66798         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66799
66800 2007-06-16  Bruno Haible  <bruno@clisp.org>
66801
66802         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66803         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66804         Reported by Gary V. Vaughan <gary@gnu.org>.
66805
66806 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66807
66808         Revamp lchown so that it lives in unistd.h where it belongs.
66809         * lib/lchown.h: Remove.
66810         * lib/dirchownmod.c: Don't include lib/lchown.h.
66811         * lib/fchownat.c: Likewise.
66812         * lib/openat.c: Likewise.
66813         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66814         does not follow symlinks.
66815         (EOPNOTSUPP): Define if not defined.
66816         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66817         is defined to 0.
66818         (lchown): New decl.
66819         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66820         Do not check for lchown decl.
66821         Set REPLACE_LCHOWN.
66822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66823         REPLACE_LCHOWN.
66824         * modules/chown: Make it clear it follows symlinks.
66825         * modules/lchown: Make it clear it doesn't follow symlinks.
66826         (Files): Remove lib/lchown.h
66827         (Depends-on): Add unistd.
66828         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66829         (Include): Include <unistd.h>, not "lchown.h".
66830         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66831         REPLACE_LCHOWN.
66832
66833 2007-06-15  Jim Meyering  <jim@meyering.net>
66834
66835         Change license (GPL to LGPL) of fsusage and dependents.
66836         * modules/fsusage (License): Change to LGPL.
66837         * modules/full-read (License): Likewise.
66838         * modules/full-write (License): Likewise.
66839         * modules/safe-read (License): Likewise.
66840         * modules/safe-write (License): Likewise.
66841
66842 2007-06-14  Ben Pfaff  <blp@gnu.org>
66843
66844         Missing part of allocsa -> malloca transition.
66845         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
66846         gl_MALLOCA.
66847
66848 2007-06-12  Bruno Haible  <bruno@clisp.org>
66849
66850         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
66851         to ia64, x86_64, i386.
66852         Reported by Eric Blake.
66853
66854 2007-06-12  Bruno Haible  <bruno@clisp.org>
66855
66856         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
66857         cross-compiling to x86_64.
66858
66859 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
66860
66861         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
66862         glitch reported by Ralf Wildenhues in
66863         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
66864
66865         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
66866         Vin Shelton.
66867
66868 2007-06-11  Bruno Haible  <bruno@clisp.org>
66869
66870         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
66871         replacement string.
66872         Reported by Eric Blake.
66873
66874 2007-06-10  Bruno Haible  <bruno@clisp.org>
66875
66876         Prepare vasnprintf code for use with Unicode strings.
66877         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
66878         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
66879         TYPE_U32_STRING.
66880         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
66881         a_u32_string variants.
66882         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66883         * lib/printf-args.c: Don't include config.h and the specification
66884         header if PRINTF_FETCHARGS is already defined.
66885         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66886         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
66887         TYPE_U16_STRING, TYPE_U32_STRING.
66888         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
66889         u16_directive, u16_directives, u32_directive, u32_directives): New
66890         types.
66891         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
66892         New declarations.
66893         * lib/printf-parse.c: Don't include config.h and the specification
66894         header if PRINTF_PARSE is already defined. Eliminate the set of
66895         parameters for WIDE_CHAR_VERSION; the user of this file must provide
66896         them now. Include c-ctype.h.
66897         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
66898         directive and CHAR_T_ONLY_ASCII.
66899         * lib/vasnprintf.c: Don't include config.h and the specification header
66900         if VASNPRINTF is already defined.
66901         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
66902         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
66903         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
66904         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
66905         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
66906         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
66907         code accordingly.
66908         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
66909         pad_ourselves also in this case, with the 'c' and 's' directives, and
66910         with a different notion of "width".
66911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
66912
66913 2007-06-10  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/unistr/u32-mbsnlen: New file.
66916         * lib/unistr/u32-mbsnlen.c: New file.
66917
66918         * modules/unistr/u16-mbsnlen: New file.
66919         * lib/unistr/u16-mbsnlen.c: New file.
66920
66921         * modules/unistr/u8-mbsnlen: New file.
66922         * lib/unistr/u8-mbsnlen.c: New file.
66923
66924         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
66925         declarations.
66926
66927 2007-06-10  Bruno Haible  <bruno@clisp.org>
66928
66929         * lib/string_.h (mbsnlen): New declaration.
66930         * lib/mbsnlen.c: New file.
66931         * m4/mbsnlen.m4: New file.
66932         * modules/mbsnlen: New file.
66933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
66934         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
66935         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
66936
66937 2007-06-10  Bruno Haible  <bruno@clisp.org>
66938
66939         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
66940
66941 2007-06-10  Bruno Haible  <bruno@clisp.org>
66942
66943         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
66944         * lib/mbuiter.h: Likewise.
66945
66946 2007-06-10  Bruno Haible  <bruno@clisp.org>
66947
66948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
66949         declaration.
66950
66951 2007-06-10  Karl Berry  <karl@gnu.org>
66952
66953         * config/srclist.txt: remove gettext entries, Bruno prefers
66954         to update individually.
66955
66956 2007-06-10  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
66959         'maxlen'. Ensure only length + width bytes are allocated, not
66960         length + 1 + width.
66961
66962 2007-06-09  Bruno Haible  <bruno@clisp.org>
66963
66964         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
66965         (CHAR_T): Remove macro.
66966         (VASNPRINTF): Update.
66967
66968 2007-06-09  Bruno Haible  <bruno@clisp.org>
66969
66970         * MODULES.html.sh (Unicode string functions): Add the new modules.
66971
66972         * modules/uniconv/u32-conv-to-enc: New file.
66973         * lib/uniconv/u32-conv-to-enc.c: New file.
66974         * modules/uniconv/u32-conv-to-enc-tests: New file.
66975         * tests/uniconv/test-u32-conv-to-enc.c: New file.
66976
66977         * modules/uniconv/u16-conv-to-enc: New file.
66978         * lib/uniconv/u16-conv-to-enc.c: New file.
66979         * lib/uniconv/u-conv-to-enc.h: New file.
66980         * modules/uniconv/u16-conv-to-enc-tests: New file.
66981         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66982
66983         * modules/uniconv/u8-conv-to-enc: New file.
66984         * lib/uniconv/u8-conv-to-enc.c: New file.
66985         * modules/uniconv/u8-conv-to-enc-tests: New file.
66986         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66987
66988         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66989         u32_conv_to_encoding): New declarations.
66990
66991 2007-06-09  Bruno Haible  <bruno@clisp.org>
66992
66993         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66994
66995 2007-06-09  Bruno Haible  <bruno@clisp.org>
66996
66997         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66998         * modules/malloca: Renamed from modules/allocsa, updated.
66999         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67000         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67001         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67002         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67003         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67004         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67005         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67006         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67007         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67008         * modules/c-strcasestr (Depends-on): Update.
67009         * lib/c-strcasestr.c: Update.
67010         * modules/c-strstr (Depends-on): Update.
67011         * lib/c-strstr.c: Update.
67012         * modules/canonicalize-lgpl (Depends-on): Update.
67013         * lib/canonicalize-lgpl.c: Update.
67014         * modules/clean-temp (Depends-on): Update.
67015         * lib/clean-temp.c: Update.
67016         * modules/csharpcomp (Depends-on): Update.
67017         * lib/csharpcomp.c: Update.
67018         * modules/csharpexec (Depends-on): Update.
67019         * lib/csharpexec.c: Update.
67020         * modules/javacomp (Depends-on): Update.
67021         * lib/javacomp.c: Update.
67022         * modules/javaexec (Depends-on): Update.
67023         * lib/javaexec.c: Update.
67024         * modules/mbscasestr (Depends-on): Update.
67025         * lib/mbscasestr.c: Update.
67026         * modules/mbsstr (Depends-on): Update.
67027         * lib/mbsstr.c: Update.
67028         * modules/setenv (Depends-on): Update.
67029         * lib/setenv.c: Update.
67030         * modules/strcasestr (Depends-on): Update.
67031         * lib/strcasestr.c: Update.
67032         * modules/striconveha (Depends-on): Update.
67033         * lib/striconveha.c: Update.
67034         * modules/relocatable-prog-wrapper (Files): Update.
67035         * lib/relocwrapper.c: Update.
67036         * build-aux/install-reloc: Update.
67037         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67038
67039 2007-06-08  Bruno Haible  <bruno@clisp.org>
67040
67041         Port to uClibc.
67042         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67043         * lib/fpurge.c (fpurge): Likewise.
67044         * lib/freading.c (freading): Likewise.
67045         * lib/fseeko.c (rpl_fseeko): Likewise.
67046         * lib/fseterr.c (fseterr): Likewise.
67047         * lib/fwriting.c (fwriting): Likewise.
67048         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67049
67050 2007-06-08  Bruno Haible  <bruno@clisp.org>
67051
67052         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67053         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67054         * modules/gettext (Files): Add m4/intlmacosx.m4.
67055
67056 2007-06-07  Bruno Haible  <bruno@clisp.org>
67057
67058         * modules/localename-tests: New file.
67059         * tests/test-localename.c: New file.
67060
67061         New module 'localename'.
67062         * lib/localename.h: New file.
67063         * lib/localename.c: New file, from GNU gettext.
67064         * m4/localename.m4: New file.
67065         * modules/localename: New file.
67066
67067 2007-06-07  Bruno Haible  <bruno@clisp.org>
67068
67069         Work around the lack of <wchar.h> on some builds of uClibc.
67070         * doc/headers/wchar.texi: Update.
67071         * lib/wchar_.h: Include <wchar.h> only if it exists.
67072         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67073         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67074         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67075         doesn't exist.
67076         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67077         * modules/mbfile (Depends-on): Add wchar.
67078         * modules/mbiter (Depends-on): Likewise.
67079         * modules/mbuiter (Depends-on): Likewise.
67080         Reported by Simon Josefsson.
67081
67082 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         Work around problem reported by Steven M. Schweda in
67085         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67086         Tru64 5.1B with the Compaq compiler environment installed declares
67087         an 'isblank' function but does not define it in the C library.
67088         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67089         * lib/regex_internal.h (isblank): Likewise.
67090         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67091         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67092
67093 2007-06-05  Bruno Haible  <bruno@clisp.org>
67094
67095         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67096         ia64.
67097         * modules/printf-safe: New file.
67098         * modules/fprintf-posix (Depends-on): Add printf-safe.
67099         * modules/printf-posix (Depends-on): Likewise.
67100         * modules/snprintf-posix (Depends-on): Likewise.
67101         * modules/sprintf-posix (Depends-on): Likewise.
67102         * modules/vasnprintf-posix (Depends-on): Likewise.
67103         * modules/vasprintf-posix (Depends-on): Likewise.
67104         * modules/vfprintf-posix (Depends-on): Likewise.
67105         * modules/vprintf-posix (Depends-on): Likewise.
67106         * modules/vsnprintf-posix (Depends-on): Likewise.
67107         * modules/vsprintf-posix (Depends-on): Likewise.
67108         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67109         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67110         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67111         "no" on i386, x86_64, ia64.
67112         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67113         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67114         on i386, x86_64, ia64.
67115         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67116         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67117         on i386, x86_64, ia64.
67118         * tests/test-vasnprintf-posix.c: Include float.h.
67119         (LDBL80_WORDS): New macro.
67120         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67121         on i386, x86_64, ia64.
67122         * tests/test-vasprintf-posix.c: Include float.h.
67123         (LDBL80_WORDS): New macro.
67124         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67125         on i386, x86_64, ia64.
67126         * tests/test-snprintf-posix.c: Include float.h.
67127         * tests/test-sprintf-posix.c: Likewise.
67128         * tests/test-vsnprintf-posix.c: Likewise.
67129         * tests/test-vsprintf-posix.c: Likewise.
67130
67131 2007-06-05  Bruno Haible  <bruno@clisp.org>
67132
67133         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67134         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67135         non-IEEE numbers on i386, x86_64, ia64.
67136         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67137         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67138         * tests/test-isnanl.h: Include float.h.
67139         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67140
67141 2007-06-05  Bruno Haible  <bruno@clisp.org>
67142
67143         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67144         also the %a / %A. Handle the %a / %A code before this extra handling.
67145
67146 2007-06-05  Bruno Haible  <bruno@clisp.org>
67147
67148         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67149         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67150
67151 2007-06-05  Bruno Haible  <bruno@clisp.org>
67152
67153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67154         typo in variable name.
67155
67156 2007-06-05  Eric Blake  <ebb9@byu.net>
67157
67158         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67159         Reported by Simon Josefsson.
67160
67161 2007-06-04  Bruno Haible  <bruno@clisp.org>
67162
67163         Avoid test failures on some PowerPC platforms.
67164         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67165         Define differently for PowerPC.
67166         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67167         Reported by Gary V. Vaughan <gary@gnu.org>.
67168
67169 2007-06-02  Bruno Haible  <bruno@clisp.org>
67170
67171         Fix test-stdint failure on FreeBSD/ia64.
67172         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67173         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67174         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67175         * doc/headers/stdint.texi: Update.
67176
67177 2007-06-01  Bruno Haible  <bruno@clisp.org>
67178
67179         * tests/test-binary-io.c (main): Pass a third argument to open().
67180         Reported by Gary V. Vaughan <gary@gnu.org>.
67181
67182 2007-06-01  Bruno Haible  <bruno@clisp.org>
67183
67184         * doc/functions/frexpl.texi: Update for mingw.
67185
67186 2007-06-01  Bruno Haible  <bruno@clisp.org>
67187
67188         * tests/test-lseek.c (main): Disable test of errno for invalid third
67189         argument.
67190         * doc/functions/lseek.texi: Update.
67191         Reported by Gary V. Vaughan <gary@gnu.org>.
67192
67193 2007-05-28  Bruno Haible  <bruno@clisp.org>
67194
67195         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67196
67197 2007-05-31  Eric Blake  <ebb9@byu.net>
67198
67199         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67200         cross compiling.
67201
67202 2007-05-30  Eric Blake  <ebb9@byu.net>
67203         and Bruno Haible  <bruno@clisp.org>
67204
67205         Work around mingw test failures exposed by m4-1.4.9b.
67206         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67207         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67208         moment.
67209
67210 2007-05-30  Bruno Haible  <bruno@clisp.org>
67211
67212         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67213         assuming that they are closed. Needed on HP-UX 11.
67214
67215 2007-05-29  Bruno Haible  <bruno@clisp.org>
67216
67217         Fix a problem with #include_next.
67218         * lib/dirent_.h: Split the double-inclusion guard.
67219         * lib/fcntl_.h: Likewise.
67220         * lib/float_.h: Likewise.
67221         * lib/iconv_.h: Likewise.
67222         * lib/inttypes_.h: Likewise.
67223         * lib/locale_.h: Likewise.
67224         * lib/math_.h: Likewise.
67225         * lib/netinet_in_.h: Likewise.
67226         * lib/search_.h: Likewise.
67227         * lib/signal_.h: Likewise.
67228         * lib/stdint_.h: Likewise.
67229         * lib/stdio_.h: Likewise.
67230         * lib/stdlib_.h: Likewise.
67231         * lib/string_.h: Likewise.
67232         * lib/sys_select_.h: Likewise.
67233         * lib/sys_socket_.h: Likewise.
67234         * lib/sys_stat_.h: Likewise.
67235         * lib/sys_time_.h: Likewise.
67236         * lib/sysexits_.h: Likewise.
67237         * lib/time_.h: Likewise.
67238         * lib/unistd_.h: Likewise.
67239         * lib/wchar_.h: Likewise.
67240         * lib/wctype_.h: Likewise.
67241
67242 2007-05-29  Bruno Haible  <bruno@clisp.org>
67243
67244         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67245         for the moment.
67246
67247 2007-05-29  Bruno Haible  <bruno@clisp.org>
67248
67249         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67250         invocation.
67251         Reported by Eric Blake.
67252
67253 2007-05-29  Bruno Haible  <bruno@clisp.org>
67254
67255         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67256         compiling case.
67257
67258 2007-05-29  Eric Blake  <ebb9@byu.net>
67259             Bruno Haible  <bruno@clisp.org>
67260
67261         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67262         cross compiles.
67263
67264 2007-05-28  Eric Blake  <ebb9@byu.net>
67265
67266         * modules/closein-tests (test_closein_LDADD): Support test on
67267         cygwin with libtool.
67268
67269 2007-05-28  Bruno Haible  <bruno@clisp.org>
67270
67271         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67272         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67273         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67274         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67275         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67276         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67277         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67278         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67279         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67280
67281 2007-05-28  Eric Blake  <ebb9@byu.net>
67282
67283         Unconditionally include <config.h> in unit tests.
67284         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67285         * tests/test-allocsa.c, tests/test-arcfour.c,
67286         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67287         tests/test-array_list.c, tests/test-array_oset.c,
67288         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67289         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67290         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67291         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67292         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67293         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67294         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67295         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67296         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67297         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67298         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67299         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67300         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67301         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67302         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67303         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67304         test-md5.c, test-memmem.c, test-printf-posix.c,
67305         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67306         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67307         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67308         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67309         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67310         test-vasnprintf-posix2.c, test-vasnprintf.c,
67311         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67312         test-vfprintf-posix.c, test-vprintf-posix.c,
67313         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67314         test-xvasprintf.c: Likewise.
67315
67316 2007-05-28  Bruno Haible  <bruno@clisp.org>
67317
67318         * gnulib-tool (func_import): Remember the --with-tests command-line
67319         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67320         Reported by Eric Blake.
67321
67322 2007-05-28  Bruno Haible  <bruno@clisp.org>
67323
67324         * modules/ftell-tests: New file.
67325         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67326         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67327
67328         * lib/ftell.c: New file.
67329         * modules/ftell: New file.
67330         * m4/ftell.m4: New file.
67331         * doc/functions/ftell.texi: Update.
67332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67333         REPLACE_FTELL.
67334         * lib/stdio_.h (rpl_ftell): New declaration.
67335         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67336         REPLACE_FTELL.
67337
67338 2007-05-28  Eric Blake  <ebb9@byu.net>
67339
67340         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67341
67342 2007-05-28  Bruno Haible  <bruno@clisp.org>
67343
67344         * modules/fseek-tests: New file.
67345         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67346         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67347
67348         * lib/fseek.c: New file.
67349         * modules/fseek: New file.
67350         * m4/fseek.m4: New file.
67351         * doc/functions/fseek.texi: Update.
67352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67353         REPLACE_FSEEK.
67354         * lib/stdio_.h (rpl_fseek): New declaration.
67355         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67356         REPLACE_FSEEK.
67357
67358 2007-05-28  Bruno Haible  <bruno@clisp.org>
67359
67360         * lib/stdio_.h (fflush): More comments.
67361
67362 2007-05-28  Bruno Haible  <bruno@clisp.org>
67363
67364         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67365         runtime test.
67366
67367 2007-05-28  Eric Blake  <ebb9@byu.net>
67368
67369         Improve lseek module.
67370         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67371         * lib/unistd_.h (lseek): Scale back link warning message.
67372         * tests/test-lseek.c: Beef up test.
67373         * tests/test-lseek.sh: Exercise more facets of lseek.
67374         Reported by Bruno Haible.
67375
67376 2007-05-28  Bruno Haible  <bruno@clisp.org>
67377
67378         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67379         to define.
67380
67381 2007-05-27  Bruno Haible  <bruno@clisp.org>
67382
67383         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67384
67385 2007-05-27  Bruno Haible  <bruno@clisp.org>
67386
67387         * modules/openmp: New file.
67388         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67389         Noah Misch.
67390
67391 2007-05-26  Bruno Haible  <bruno@clisp.org>
67392
67393         * modules/chdir-long (Depends-on): Add fchdir.
67394         * modules/chdir-safer (Depends-on): Likewise.
67395         * modules/fts (Depends-on): Likewise.
67396         * modules/fts-lgpl (Depends-on): Likewise.
67397         * modules/openat (Depends-on): Likewise.
67398         * modules/savewd (Depends-on): Likewise.
67399
67400 2007-05-24  Eric Blake  <ebb9@byu.net>
67401
67402         Fix lseek on mingw.
67403         * modules/lseek: New module.
67404         * m4/lseek.m4: New file.
67405         * lib/lseek.c: New file.
67406         * modules/lseek-tests: New file.
67407         * tests/test-lseek.c: New file.
67408         * tests/test-lseek.sh: New file.
67409         * MODULES.html.sh: Document lseek module.
67410         * modules/fflush (Depends-on): Add lseek, fseeko.
67411         * modules/fseeko (Depends-on): Likewise.
67412         * modules/ftello (Depends-on): Likewise.
67413         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67414         broken.
67415         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67416         broken.
67417         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67418         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67419         * lib/ftello.c (rpl_ftello): Likewise.
67420         * tests/test-fseeko.c (main): Test this.
67421         * tests/test-fseeko.sh: Likewise.
67422         * tests/test-ftello.c (main): Likewise.
67423         * tests/test-ftello.sh: Likewise.
67424         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67425         implies replacing fseek.
67426         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67427         HAVE_FTELLO.
67428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67429         * modules/unistd (Makefile.am): Likewise.
67430         * lib/unistd_.h (lseek): Declare a replacement.
67431         * doc/functions/lseek.texi (lseek): Document this fix.
67432         * doc/functions/fseek.texi (fseek): Likewise.
67433         * doc/functions/ftell.texi (ftell): Likewise.
67434
67435 2007-05-24  Bruno Haible  <bruno@clisp.org>
67436
67437         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67438         in the printed representation of a NaN.
67439         * tests/test-vasprintf-posix.c (test_function): Likewise.
67440         * tests/test-snprintf-posix.h (test_function): Likewise.
67441         * tests/test-sprintf-posix.h (test_function): Likewise.
67442         Reported by Eric Blake.
67443
67444 2007-05-23  Eric Blake  <ebb9@byu.net>
67445
67446         Fix fseeko/ftello on cygwin 1.5.24.
67447         * doc/functions/fseeko.texi (fseeko): Document the fix.
67448         * doc/functions/ftello.texi (ftello): Document the fix.
67449         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67450         * doc/functions/stdout.text (stdout): New file.
67451         * doc/functions/stderr.text (stderr): New file.
67452         * doc/gnulib.texi (Function Substitutes): Use new files.
67453         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67454         prior to 1.7.0.
67455         * tests/test-ftello.c (main): Likewise for ftello.
67456         * tests/test-fseeko.sh: New file.
67457         * tests/test-ftello.sh: New file.
67458         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67459         with seekable stdin.
67460         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67461         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67462         (gl_REPLACE_FSEEKO): New macro.
67463         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67464         * modules/fseeko (Files): Distribute fseeko.c.
67465         * modules/ftello (Files): Distribute ftello.c.
67466         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67467         mode.
67468         * lib/ftello.c (rpl_ftello): New file.
67469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67470         fseeko, ftello.
67471         (gl_STDIN_LARGE_OFFSET): New macro.
67472         * modules/stdio (Makefile.am): Perform the replacement.
67473         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67474
67475 2007-05-23  Bruno Haible  <bruno@clisp.org>
67476
67477         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67478         GNULIB_POSIXCHECK is defined.
67479
67480 2007-05-21  Bruno Haible  <bruno@clisp.org>
67481
67482         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67483         Check also the output for NaN arguments. When cross-compiling, guess
67484         no on IRIX.
67485         * lib/vasnprintf.c: Update comments.
67486         * tests/test-vasnprintf-posix.c (strisnan): New function.
67487         (test_function): Use it.
67488         * tests/test-vasprintf-posix.c (strisnan): New function.
67489         (test_function): Use it.
67490         * tests/test-snprintf-posix.h (strisnan): New function.
67491         (test_function): Use it.
67492         * tests/test-sprintf-posix.h (strisnan): New function.
67493         (test_function): Use it.
67494         Reported by Eric Blake.
67495
67496 2007-05-20  Bruno Haible  <bruno@clisp.org>
67497
67498         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67499         numbers that fails on BeOS.
67500         * doc/functions/frexpl.texi: Update.
67501
67502 2007-05-20  Jim Meyering  <jim@meyering.net>
67503
67504         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67505         forced upon us by glibc-2.6.
67506
67507 2007-05-20  Bruno Haible  <bruno@clisp.org>
67508
67509         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67510         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67511         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67512         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67513         NEED_PRINTF_INFINITE.
67514         (is_infinitel): New function.
67515         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67517         gl_PREREQ_VASNPRINTF_INFINITE.
67518         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67520         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67521         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67522         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67523         gl_PREREQ_VASNPRINTF_INFINITE.
67524         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67526         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67528         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67529         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67530         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67531         * doc/functions/fprintf.texi: Update.
67532         * doc/functions/printf.texi: Update.
67533         * doc/functions/snprintf.texi: Update.
67534         * doc/functions/sprintf.texi: Update.
67535         * doc/functions/vfprintf.texi: Update.
67536         * doc/functions/vprintf.texi: Update.
67537         * doc/functions/vsnprintf.texi: Update.
67538         * doc/functions/vsprintf.texi: Update.
67539
67540 2007-05-20  Bruno Haible  <bruno@clisp.org>
67541
67542         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67543         was not found in libc.
67544         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67545
67546 2007-05-20  Bruno Haible  <bruno@clisp.org>
67547
67548         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67549         printed as "-nan" instead of "nan".
67550         * tests/test-vasprintf-posix.c (test_function): Likewise.
67551         * tests/test-snprintf-posix.h (test_function): Likewise.
67552         * tests/test-sprintf-posix.h (test_function): Likewise.
67553         Needed for HP-UX 11.
67554
67555 2007-05-20  Jim Meyering  <jim@meyering.net>
67556
67557         Fix buggy test for the fchownat-deref bug.
67558         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67559         symlink required for the run-test.  Without it, this test would
67560         always declare that fchownat doesn't work, and client code would
67561         unnecessarily use the replacement function with fixed libc.
67562         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67563         Reported by Greg Schafer.
67564
67565 2007-05-19  Bruno Haible  <bruno@clisp.org>
67566
67567         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67568         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67569         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67570         Needed for IRIX 6.5 and Solaris 2.5.1.
67571
67572 2007-05-19  Bruno Haible  <bruno@clisp.org>
67573
67574         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67575         (test_function): Skip tests involving -0.0 on platforms where
67576         -0.0 = 0.0.
67577         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67578         (test_function): Skip tests involving -0.0 on platforms where
67579         -0.0 = 0.0.
67580         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67581         (test_function): Skip tests involving -0.0 on platforms where
67582         -0.0 = 0.0.
67583         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67584         (test_function): Skip tests involving -0.0 on platforms where
67585         -0.0 = 0.0.
67586         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67587         tests.
67588         * tests/test-printf-posix.h (test_function): Likewise.
67589         * tests/test-printf-posix.output: Remove all -0.0 related results.
67590         Needed for IRIX 6.5.
67591
67592 2007-05-19  Bruno Haible  <bruno@clisp.org>
67593
67594         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67595         printed as "nan0x7fffffff" instead of "nan".
67596         * tests/test-vasprintf-posix.c (test_function): Likewise.
67597         * tests/test-snprintf-posix.h (test_function): Likewise.
67598         * tests/test-sprintf-posix.h (test_function): Likewise.
67599         * tests/test-fprintf-posix.h (NaN): Remove macro.
67600         (test_function): Remove all NaN related tests.
67601         * tests/test-printf-posix.h (NaN): Remove macro.
67602         (test_function): Remove all NaN related tests.
67603         * tests/test-printf-posix.output: Remove all NaN related results.
67604         Needed for IRIX 6.5.
67605
67606 2007-05-19  Bruno Haible  <bruno@clisp.org>
67607
67608         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67610
67611 2007-05-19  Bruno Haible  <bruno@clisp.org>
67612
67613         * lib/float_.h: New file.
67614         * m4/float_h.m4: New file.
67615         * modules/float: New file.
67616         * modules/isnanl (Dependencies): Add float.
67617         * modules/isnanl-nolibm (Dependencies): Likewise.
67618         * modules/mathl (Dependencies): Likewise.
67619         * modules/printf-frexpl (Dependencies): Likewise.
67620         * modules/signbit (Dependencies): Likewise.
67621         * modules/vasnprintf (Dependencies): Likewise.
67622         * doc/headers/float.texi: Update.
67623
67624 2007-05-19  Jim Meyering  <jim@meyering.net>
67625
67626         * lib/utimens.c (gl_futimens): Rename from futimens,
67627         now that glibc-2.6 declares futimens.
67628         * lib/utimens.h: Likewise.
67629
67630 2007-05-19  Bruno Haible  <bruno@clisp.org>
67631
67632         Avoid test failures on mingw.
67633         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67634         * tests/test-printf-posix.sh: Likewise.
67635         * tests/test-vfprintf-posix.sh: Likewise.
67636         * tests/test-vprintf-posix.sh: Likewise.
67637
67638 2007-05-19  Bruno Haible  <bruno@clisp.org>
67639
67640         Fix *printf result for NaN, Inf, -0.0 on mingw.
67641         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67642         * lib/vasnprintf.c: Include math.h and isnan.h.
67643         (is_infinite_or_zero): New function.
67644         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67645         values in the %f, %F, %e, %E, %g, %G directives.
67646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67647         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67648         gl_PRINTF_INFINITE and test its result. Invoke
67649         gl_PREREQ_VASNPRINTF_INFINITE.
67650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67652         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67653         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67654         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67656         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67657         * doc/functions/fprintf.texi: Update.
67658         * doc/functions/printf.texi: Update.
67659         * doc/functions/snprintf.texi: Update.
67660         * doc/functions/sprintf.texi: Update.
67661         * doc/functions/vfprintf.texi: Update.
67662         * doc/functions/vprintf.texi: Update.
67663         * doc/functions/vsnprintf.texi: Update.
67664         * doc/functions/vsprintf.texi: Update.
67665
67666 2007-05-19  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67669         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67670         Instead of multiplying with 10^k, set extra_zeroes to k.
67671         (scale10_round_long_double): Remove function.
67672
67673 2007-05-18  Bruno Haible  <bruno@clisp.org>
67674
67675         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67676         introduced on 2007-05-06.
67677
67678 2007-05-18  Bruno Haible  <bruno@clisp.org>
67679
67680         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67681         %g directives.
67682         * tests/test-vasprintf-posix.c (test_function): Likewise.
67683         * tests/test-snprintf-posix.h (test_function): Likewise.
67684         * tests/test-sprintf-posix.h (test_function): Likewise.
67685
67686 2007-05-18  Bruno Haible  <bruno@clisp.org>
67687
67688         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67689         (strmatch): New function.
67690         (test_function): Test the %f directive on numbers of various exponents.
67691         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67692         (strmatch): New function.
67693         (test_function): Test the %f directive on numbers of various exponents.
67694         * tests/test-snprintf-posix.h (strmatch): New function.
67695         (test_function): Test the %f directive on numbers of various exponents.
67696         * tests/test-sprintf-posix.h (strmatch): New function.
67697         (test_function): Test the %f directive on numbers of various exponents.
67698         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67699         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67700         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67701         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67702
67703 2007-05-18  Bruno Haible  <bruno@clisp.org>
67704
67705         Add support for 'long double' number output.
67706         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67707         * lib/vasnprintf.c: Include math.h and float+.h.
67708         (mp_limb_t): New type.
67709         (GMP_LIMB_BITS): New macro.
67710         (mp_twolimb_t): New type.
67711         (GMP_TWOLIMB_BITS): New macro.
67712         (mpn_t): New type.
67713         (multiply, divide, convert_to_decimal, decode_long_double,
67714         scale10_round_long_double, scale10_round_decimal_long_double,
67715         floorlog10l): New functions.
67716         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67717         for the %f, %F, %e, %E, %g, %G directives.
67718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67719         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67720         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67721         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67722         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67723         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67724         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67725         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67726         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67728         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67729         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67730         * modules/snprintf-posix (Depends-on): Likewise.
67731         * modules/sprintf-posix (Depends-on): Likewise.
67732         * modules/vasnprintf-posix (Depends-on): Likewise.
67733         * modules/vasprintf-posix (Depends-on): Likewise.
67734         * modules/vfprintf-posix (Depends-on): Likewise.
67735         * modules/vsnprintf-posix (Depends-on): Likewise.
67736         * modules/vsprintf-posix (Depends-on): Likewise.
67737         * modules/vasnprintf (Files): Add lib/float+.h.
67738         * doc/functions/fprintf.texi: Update.
67739         * doc/functions/printf.texi: Update.
67740         * doc/functions/snprintf.texi: Update.
67741         * doc/functions/sprintf.texi: Update.
67742         * doc/functions/vfprintf.texi: Update.
67743         * doc/functions/vprintf.texi: Update.
67744         * doc/functions/vsnprintf.texi: Update.
67745         * doc/functions/vsprintf.texi: Update.
67746
67747 2007-05-18  Bruno Haible  <bruno@clisp.org>
67748
67749         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67750
67751 2007-05-18  Bruno Haible  <bruno@clisp.org>
67752
67753         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67754         for printing 64-bit integers. Needed for mingw.
67755
67756 2007-05-18  Bruno Haible  <bruno@clisp.org>
67757
67758         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67759         gl_FUNC_FREXPL_WORKS.
67760         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67761
67762 2007-05-18  Bruno Haible  <bruno@clisp.org>
67763
67764         * modules/frexpl-nolibm-tests: New file.
67765
67766         * modules/frexpl-nolibm: New file.
67767         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67768
67769 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67770
67771         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67772         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67773         GCC 4.2, which otherwise issues a lot of warnings.
67774         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67775         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67776         Likewise.
67777         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67778         * modules/iconv_open (iconv.h): Likewise.
67779         * modules/locale (locale.h): Likewise.
67780         * modules/netinet_in (netinet/in.h): Likewise.
67781         * modules/sys_select (sys_select.h): Likewise.
67782         * modules/sys_socket (sys/socket.h): Likewise.
67783         * modules/sys_stat (sys/stat.h): Likewise.
67784         * modules/sysexits (sysexits.h): Likewise.
67785         * modules/unistd (unistd.h): Likewise.
67786
67787 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67788
67789         * modules/closein-tests (Makefile.am): Distribute
67790         `test-closein.sh'.
67791
67792 2007-05-17  Bruno Haible  <bruno@clisp.org>
67793
67794         * tests/test-printf-posix.output: Renamed from
67795         tests/test-fprintf-posix.out.
67796         * modules/fprintf-posix-tests: Update.
67797         * modules/printf-posix-tests: Update.
67798         * modules/vfprintf-posix-tests: Update.
67799         * modules/vprintf-posix-tests: Update.
67800         * tests/test-fprintf-posix.sh: Update.
67801         * tests/test-printf-posix.sh: Update.
67802         * tests/test-vfprintf-posix.sh: Update.
67803         * tests/test-vprintf-posix.sh: Update.
67804         Reported by Ralf Wildenhues.
67805
67806 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67807
67808         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67809         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67810         GCC 4.2, which otherwise issues a lot of warnings.
67811         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67812         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67813         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67814         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67815         it should no longer be needed.
67816         * lib/string_.h: Likewise.
67817         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67818         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67819         * modules/inttypes (inttypes.h): Likewise.
67820         * modules/math (math.h): Likewise.
67821         * modules/search (search.h): Likewise.
67822         * modules/signal (signal.h): Likewise.
67823         * modules/stdint (stdint.h): Likewise.
67824         * modules/stdio (stdio.h): Likewise.
67825         * modules/stdlib (stdlib.h): Likewise.
67826         * modules/string (string.h): Likewise.
67827         * modules/sys_time (sys/time.h): Likewise.
67828         * modules/time (time.h): Likewise.
67829         * modules/wchar (wchar.h): Likewise.
67830         * modules/wctype (wtype.h): Likewise.
67831
67832 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67833
67834         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
67835
67836 2007-05-13  Bruno Haible  <bruno@clisp.org>
67837
67838         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
67839         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67840         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
67841         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67842         (gl_PREREQ_STRTOK_R): Don't require it here.
67843
67844 2007-05-13  Bruno Haible  <bruno@clisp.org>
67845
67846         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
67847         when used in C++ mode.
67848
67849 2007-05-12  Bruno Haible  <bruno@clisp.org>
67850
67851         * lib/linebuffer.h: Tweak doc.
67852         * lib/linebuffer.c: Likewise.
67853
67854 2007-05-12  James Youngman  <jay@gnu.org>
67855
67856         * lib/linebuffer.c (readlinebuffer_delim): New function,
67857         like readlinebuffer, but use a caller-specified delimiter.
67858         (readlinebuffer): Just call readlinebuffer_delim with '\n'
67859         as the delimiter.
67860         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
67861
67862 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67863
67864         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
67865         * modules/openat (Files): Remove openat-die.c.
67866         (Depends-on): Add openat-die.
67867         * modules/openat-die: New module.
67868
67869 2007-05-06  Bruno Haible  <bruno@clisp.org>
67870
67871         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
67872         Update with info about Cygwin.
67873         * doc/functions/fprintf.texi: Update.
67874         * doc/functions/printf.texi: Update.
67875         * doc/functions/snprintf.texi: Update.
67876         * doc/functions/sprintf.texi: Update.
67877         * doc/functions/vfprintf.texi: Update.
67878         * doc/functions/vprintf.texi: Update.
67879         * doc/functions/vsnprintf.texi: Update.
67880         * doc/functions/vsprintf.texi: Update.
67881         Reported by Eric Blake.
67882
67883 2007-05-06  Bruno Haible  <bruno@clisp.org>
67884
67885         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
67886         padding ourselves for the floating-point directives.
67887         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
67888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
67889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67890         gl_PRINTF_FLAG_ZERO and test its result. Invoke
67891         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
67892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67893         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67895         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67899         * tests/test-snprintf-posix.h (test_function): Also check the width
67900         and some flags in the %f directive.
67901         * tests/test-sprintf-posix.h (test_function): Likewise.
67902         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67903         * tests/test-vasprintf-posix.c (test_function): Likewise.
67904         * doc/functions/fprintf.texi: Update.
67905         * doc/functions/printf.texi: Update.
67906         * doc/functions/snprintf.texi: Update.
67907         * doc/functions/sprintf.texi: Update.
67908         * doc/functions/vfprintf.texi: Update.
67909         * doc/functions/vprintf.texi: Update.
67910         * doc/functions/vsnprintf.texi: Update.
67911         * doc/functions/vsprintf.texi: Update.
67912
67913 2007-05-06  Bruno Haible  <bruno@clisp.org>
67914
67915         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
67916         pass the ' flag character to sprintf or snprintf.
67917         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
67918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
67919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67920         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
67921         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
67922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67924         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67925         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67926         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67927         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67928         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67929         * tests/test-snprintf-posix.h (test_function): Also check the grouping
67930         flag.
67931         * tests/test-sprintf-posix.h (test_function): Likewise.
67932         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67933         * tests/test-vasprintf-posix.c (test_function): Likewise.
67934         * doc/functions/fprintf.texi: Update.
67935         * doc/functions/printf.texi: Update.
67936         * doc/functions/snprintf.texi: Update.
67937         * doc/functions/sprintf.texi: Update.
67938         * doc/functions/vfprintf.texi: Update.
67939         * doc/functions/vprintf.texi: Update.
67940         * doc/functions/vsnprintf.texi: Update.
67941         * doc/functions/vsprintf.texi: Update.
67942
67943 2007-05-01  Bruno Haible  <bruno@clisp.org>
67944
67945         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
67946
67947 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
67950         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
67951
67952 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67953
67954         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
67955         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
67956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
67957
67958 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
67959
67960         * lib/argp-help.c (struct hol_entry): New member `ord'.
67961         (HOL_ENTRY_PTRCMP): Use ord for comparison
67962         (hol_sort): Initialize ord.
67963
67964 2007-05-01  Bruno Haible  <bruno@clisp.org>
67965
67966         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
67967         Reported by Eric Blake.
67968         * doc/gnulib.texi (Function Substitutes): Update.
67969
67970 2007-05-01  Bruno Haible  <bruno@clisp.org>
67971
67972         * doc/functions.texi: Remove file, now redundant through
67973         doc/functions/*.texi.
67974
67975 2007-05-01  Bruno Haible  <bruno@clisp.org>
67976
67977         * modules/argp (Depends-on): Add sleep.
67978
67979 2007-05-01  Bruno Haible  <bruno@clisp.org>
67980
67981         * modules/sleep-tests: New file.
67982         * tests/test-sleep.c: New file.
67983
67984         * modules/sleep: New file.
67985         * lib/sleep.c: New file.
67986         * m4/sleep.m4: New file.
67987         * lib/unistd_.h (sleep): New declaration.
67988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67989         HAVE_SLEEP.
67990         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67991         * doc/functions/sleep.texi: Document the sleep module.
67992
67993 2007-05-01  Bruno Haible  <bruno@clisp.org>
67994
67995         * lib/sigprocmask.h: Remove file.
67996         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67997         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67998         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67999         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68000         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68001         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68002         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68003         HAVE_SIGSET_T as a shell variable.
68004         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68005         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68006         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68007         (Depends-on): Add signal. Remove verify.
68008         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68009         (Include): Mention <signal.h> instead of sigprocmask.h.
68010         * NEWS: Mention the change.
68011         * lib/fatal-signal.c: Don't include sigprocmask.h.
68012
68013 2007-05-01  Bruno Haible  <bruno@clisp.org>
68014
68015         * modules/signal: New file.
68016         * lib/signal_.h: New file.
68017         * m4/signal_h.m4: New file.
68018
68019 2007-05-01  Bruno Haible  <bruno@clisp.org>
68020
68021         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68022         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68023         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68024         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68025
68026 2007-05-01  Bruno Haible  <bruno@clisp.org>
68027
68028         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68029         configure time.
68030         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68031         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68032         * modules/sys_stat (Makefile.am): Substitute their values into
68033         sys/stat.h.
68034
68035 2007-05-01  Bruno Haible  <bruno@clisp.org>
68036
68037         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68038         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68039         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68040
68041 2007-05-01  Bruno Haible  <bruno@clisp.org>
68042
68043         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68044         'assert' module here.
68045
68046 2007-05-01  Bruno Haible  <bruno@clisp.org>
68047
68048         * doc/functions/*.texi: New files.
68049         * doc/functions/google-ranking.txt: New file.
68050         * doc/gnulib.texi (Function Substitutes): New chapter.
68051         (ctime, inet_ntoa): Remove sections.
68052         * doc/ctime.texi: Remove file.
68053         * doc/inet_ntoa.texi: Remove file.
68054         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68055         dependencies.
68056         (%.info): New rule, specifying a --reference-limit.
68057
68058 2007-05-01  Bruno Haible  <bruno@clisp.org>
68059
68060         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68061
68062 2007-05-01  Bruno Haible  <bruno@clisp.org>
68063
68064         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68065         the portability of 'mkdir' to mingw systems.
68066
68067 2007-05-01  Bruno Haible  <bruno@clisp.org>
68068
68069         * doc/headers/google-ranking.txt: New file.
68070
68071 2007-04-30  Eric Blake  <ebb9@byu.net>
68072
68073         Prefer fseeko to fseek.
68074         * modules/getpass (Depends-on): Add fseeko.
68075         * lib/getpass.c (getpass): Use fseeko, not fseek.
68076
68077 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68078
68079         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68080         assumes the sorting is stable, while most qsort implementations
68081         are not.  Use argument addresses to ensure they never compare as
68082         equal.
68083
68084         * tests/test-argp-2.sh (usage-indent test): Fix output
68085         (func_compare): Restore diff options
68086         * tests/test-argp.c: Restore #include "progname.h"
68087
68088 2007-04-29  Bruno Haible  <bruno@clisp.org>
68089
68090         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68091         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68092         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68094         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68095         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68096         (TESTS, check_PROGRAMS): Add test-snprintf.
68097         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68098         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68099         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68100         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68101         assertions that fail on HP-UX, OSF/1, or IRIX.
68102         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68103
68104 2007-04-29  Bruno Haible  <bruno@clisp.org>
68105
68106         * MODULES.html.sh (posix_functions): Remove 'contents'.
68107
68108 2007-04-29  Karl Berry  <karl@gnu.org>
68109
68110         * config/srclist.txt (gendocs_template_min): new entry.
68111
68112 2007-04-29  Bruno Haible  <bruno@clisp.org>
68113
68114         Work around fpurge bug on BSD systems.
68115         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68116         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68117         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68118         fpurge to rpl_fpurge if the system already has this function.
68119         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68120         the case where the system already has this function. Correct invariants
68121         on BSD systems.
68122         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68123         BSD systems.
68124
68125 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68126
68127         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68128         proposed by Sven Verdoolaege.
68129
68130         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68131         options.
68132         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68133         (usage and help tests): Update
68134
68135 2007-04-29  Bruno Haible  <bruno@clisp.org>
68136
68137         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68138         Print more information in case of failure. Disable a test on BeOS.
68139
68140 2007-04-29  Bruno Haible  <bruno@clisp.org>
68141
68142         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68143         This helps debugging on systems on which no gdb is available.
68144
68145 2007-04-29  Bruno Haible  <bruno@clisp.org>
68146
68147         * lib/freading.h: Improve comments.
68148         * lib/fwriting.h: Likewise.
68149         * tests/test-freading.c (main): Don't check freading immediately after
68150         repositioning. Needed for glibc.
68151
68152 2007-04-29  Bruno Haible  <bruno@clisp.org>
68153
68154         * lib/freading.c (freading): Trivial simplification.
68155
68156 2007-04-28  Bruno Haible  <bruno@clisp.org>
68157
68158         * tests/test-fwriting.c (main): Also test the interaction between
68159         fflush and fwriting.
68160         * modules/fwriting-tests (Depends-on): Add fflush.
68161
68162         * tests/test-freading.c (main): Also test the interaction between
68163         fflush and freading.
68164         * modules/freading-tests (Depends-on): Add fflush.
68165
68166 2007-04-28  Bruno Haible  <bruno@clisp.org>
68167
68168         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68169         fseeko and ftello.
68170         Suggested by Eric Blake.
68171
68172 2007-04-28  Jim Meyering  <jim@meyering.net>
68173
68174         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68175         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68176         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68177
68178 2007-04-27  Eric Blake  <ebb9@byu.net>
68179
68180         * doc/headers/assert.texi (assert.h): Document assert module use.
68181
68182 2007-04-27  Bruno Haible  <bruno@clisp.org>
68183
68184         * doc/headers/*.texi: New files.
68185         * doc/gnulib.texi (Header File Substitutes): New chapter.
68186         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68187         dependencies.
68188         (standards.info ,standards.html, standards.dvi): Update dependencies.
68189         (mostlyclean, clean): New targets.
68190
68191 2007-04-27  Bruno Haible  <bruno@clisp.org>
68192
68193         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68194         * modules/sysexits (Files, Makefile.am): Update.
68195
68196         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68197         * modules/sys_socket (Files, Makefile.am): Update.
68198
68199         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68200         * modules/sys_stat (Files, Makefile.am): Update.
68201
68202 2007-04-27  Eric Blake  <ebb9@byu.net>
68203
68204         * lib/freading.h: Improve comments.
68205         * lib/fwriting.h: Likewise.
68206         * lib/fflush.c: Likewise.
68207
68208         Fix closein for mingw.
68209         * modules/closein-tests: Add tests for closein.
68210         * tests/test-closein.c: New file.
68211         * tests/test-closein.sh: Likewise.
68212         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68213         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68214
68215 2007-04-27  Bruno Haible  <bruno@clisp.org>
68216
68217         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68218         version is < 6.
68219         * lib/math_.h [__DECC]: Likewise.
68220         * lib/stdio_.h [__DECC]: Likewise.
68221         * lib/stdlib_.h [__DECC]: Likewise.
68222         * lib/string_.h [__DECC]: Likewise.
68223         * lib/time_.h [__DECC]: Likewise.
68224         * lib/wchar_.h [__DECC]: Likewise.
68225         * lib/wctype_.h [__DECC]: Likewise.
68226
68227 2007-04-27  Bruno Haible  <bruno@clisp.org>
68228
68229         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68230
68231 2007-04-27  Bruno Haible  <bruno@clisp.org>
68232
68233         * lib/fflush.c: Add comments.
68234         * modules/fpurge-tests (Depends-on): Add fflush.
68235         * modules/freadable-tests (Depends-on): Likewise.
68236         * modules/fwritable-tests (Depends-on): Likewise.
68237
68238 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68239
68240         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68241         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68242         Report by Bruno Haible <bruno@clisp.org>.
68243
68244 2007-04-26  Eric Blake  <ebb9@byu.net>
68245
68246         Fix fflush on mingw.
68247         * modules/fflush (Depends-on): Add freading.
68248         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68249         but unread data.
68250
68251 2007-04-26  Eric Blake  <ebb9@byu.net>
68252         and Bruno Haible  <bruno@clisp.org>
68253
68254         Implement freading and fwriting.
68255         * lib/freading.c: New file.
68256         * lib/freading.h: Likewise.
68257         * m4/freading.m4: Likewise.
68258         * modules/freading: Likewise.
68259         * modules/freading-tests: Likewise.
68260         * tests/test-freading.c: Likewise.
68261         * lib/fwriting.c: New file.
68262         * lib/fwriting.h: Likewise.
68263         * m4/fwriting.m4: Likewise.
68264         * modules/fwriting: Likewise.
68265         * modules/fwriting-tests: Likewise.
68266         * tests/test-fwriting.c: Likewise.
68267         * MODULES.html.sh (File stream based Input/Output): Mention them.
68268
68269 2007-04-26  Bruno Haible  <bruno@clisp.org>
68270
68271         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68272         'long' when we assume it.
68273         Suggested by Eric Blake.
68274
68275 2007-04-26  Bruno Haible  <bruno@clisp.org>
68276
68277         Ensure fseeko, ftello are declared on glibc systems.
68278         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68279         * modules/fseeko (configure.ac-early): Likewise.
68280         * modules/ftello (configure.ac-early): Likewise.
68281         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68282         AC_FUNC_FSEEKO for this.
68283         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68284         (gl_CHECK_FSEEKO): Remove macro.
68285
68286 2007-04-26  Bruno Haible  <bruno@clisp.org>
68287
68288         * tests/test-fflush.c (main): Also check the ftell result after
68289         fflush and fseek/fseeko.
68290         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68291         file descriptor position cache in the stream.
68292         * lib/fseeko.c (rpl_fseeko): Likewise.
68293
68294 2007-04-26  Bruno Haible  <bruno@clisp.org>
68295
68296         * modules/fflush-tests (Depends-on): Add fseeko.
68297
68298 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68299             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68300
68301         * lib/argz_.h: ensure error_t definition is obtained in same
68302         mechanism system argz.h would have.
68303         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68304         argz facilities are known bad.  Err on the side of caution if
68305         cross-compiling.
68306
68307 2007-04-25  Eric Blake  <ebb9@byu.net>
68308
68309         * lib/fpurge.c (includes): Use stdlib.h for free.
68310         * tests/test-fflush.c (main): Also test fflush-fseeko.
68311
68312 2007-04-25  Bruno Haible  <bruno@clisp.org>
68313
68314         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68315         * lib/fseeko.c: New file.
68316         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68317         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68318         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68319         gl_FUNC_FSEEKO.
68320         (gl_FUNC_FSEEKO): Invoke it.
68321         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68322         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68323         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68324
68325 2007-04-25  Bruno Haible  <bruno@clisp.org>
68326
68327         * modules/fflush (Depends-on): Add ftello.
68328
68329 2007-04-25  Bruno Haible  <bruno@clisp.org>
68330
68331         * modules/ftello-tests: New file.
68332         * tests/test-ftello.c: New file.
68333
68334         * modules/ftello: New file.
68335         * m4/ftello.m4: New file.
68336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68337         HAVE_FTELLO.
68338         * lib/stdio_.h (ftello): New declaration.
68339         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68340         HAVE_FTELLO.
68341
68342 2007-04-25  Bruno Haible  <bruno@clisp.org>
68343
68344         * modules/fseeko-tests: New file.
68345         * tests/test-fseeko.c: New file.
68346
68347         * modules/fseeko: New file.
68348         * m4/fseeko.m4: New file.
68349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68350         HAVE_FSEEKO.
68351         * lib/stdio_.h (fseeko): New declaration.
68352         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68353         HAVE_FSEEKO.
68354
68355 2007-04-25  Bruno Haible  <bruno@clisp.org>
68356
68357         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68358
68359 2007-04-25  Bruno Haible  <bruno@clisp.org>
68360
68361         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68362         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68363         * tests/test-unistd.c: Likewise.
68364         * tests/test-fcntl.c: Likewise.
68365
68366 2007-04-23  Eric Blake  <ebb9@byu.net>
68367
68368         * lib/fflush.c: Fix missing include.
68369         Reported by Bruno Haible.
68370
68371 2007-04-23  Bruno Haible  <bruno@clisp.org>
68372
68373         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68374         Reported by Eric Blake.
68375
68376 2007-04-23  Bruno Haible  <bruno@clisp.org>
68377
68378         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68379
68380 2007-04-23  Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68383
68384 2007-04-23  Bruno Haible  <bruno@clisp.org>
68385
68386         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68387         Needed on HP-UX 11.
68388
68389 2007-04-16  Eric Blake  <ebb9@byu.net>
68390
68391         Make fflush rely on fpurge.
68392         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68393         open coding all variants.
68394         * modules/fflush (Depends-on): Add fpurge and unistd.
68395         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68396         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68397
68398         Fix --with-tests compilation on cygwin.
68399         * modules/argmatch-tests (Makefile.am): List gnulib library first
68400         in LDADD.
68401         * modules/argp-tests (Makefile.am): Likewise.
68402         * modules/array-list-tests (Makefile.am): Likewise.
68403         * modules/array-oset-tests (Makefile.am): Likewise.
68404         * modules/avltree-list-tests (Makefile.am): Likewise.
68405         * modules/avltree-oset-tests (Makefile.am): Likewise.
68406         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68407         * modules/carray-list-tests (Makefile.am): Likewise.
68408         * modules/dirname-tests (Makefile.am): Likewise.
68409         * modules/frexp-tests (Makefile.am): Likewise.
68410         * modules/isnanl-tests (Makefile.am): Likewise.
68411         * modules/linked-list-tests (Makefile.am): Likewise.
68412         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68413         * modules/lock-tests (Makefile.am): Likewise.
68414         * modules/rbtree-list-tests (Makefile.am): Likewise.
68415         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68416         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68417         * modules/tls-tests (Makefile.am): Likewise.
68418         * modules/tsearch-tests (Makefile.am): Likewise.
68419         * modules/xvasprintf-tests (Makefile.am): Likewise.
68420
68421         Fix fpurge for cygwin.
68422         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68423         value.
68424         * modules/fpurge-tests (Depends-on): Clean up trash.
68425
68426 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68427
68428         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68429
68430         * m4/autobuild.m4: Re-indent.
68431
68432 2007-04-13  Bruno Haible  <bruno@clisp.org>
68433
68434         * modules/fpurge-tests: New file.
68435         * tests/test-fpurge.c: New file.
68436
68437         * modules/fpurge: New file.
68438         * lib/fpurge.h: New file.
68439         * lib/fpurge.c: New file.
68440         * m4/fpurge.m4: New file.
68441
68442 2007-04-13  Bruno Haible  <bruno@clisp.org>
68443
68444         * modules/fbufmode-tests: New file.
68445         * tests/test-fbufmode.c: New file.
68446
68447         * modules/fbufmode: New file.
68448         * lib/fbufmode.h: New file.
68449         * lib/fbufmode.c: New file.
68450         * m4/fbufmode.m4: New file.
68451
68452 2007-04-13  Bruno Haible  <bruno@clisp.org>
68453
68454         * modules/fwritable-tests: New file.
68455         * tests/test-fwritable.c: New file.
68456
68457         * modules/fwritable: New file.
68458         * lib/fwritable.h: New file.
68459         * lib/fwritable.c: New file.
68460         * m4/fwritable.m4: New file.
68461
68462 2007-04-13  Bruno Haible  <bruno@clisp.org>
68463
68464         * modules/freadable-tests: New file.
68465         * tests/test-freadable.c: New file.
68466
68467         * modules/freadable: New file.
68468         * lib/freadable.h: New file.
68469         * lib/freadable.c: New file.
68470         * m4/freadable.m4: New file.
68471
68472 2007-04-13  Bruno Haible  <bruno@clisp.org>
68473
68474         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68475         MOSTLYCLEANFILES.
68476
68477 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68480         gzip bootstrap.conf to avoid dragging in i18n machinery.
68481         (gnulib_tool_option): Use it.
68482
68483 2007-04-13  Bruno Haible  <bruno@clisp.org>
68484
68485         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68486         %F directives.
68487         * tests/test-vasprintf-posix.c (test_function): Likewise.
68488         * tests/test-snprintf-posix.h (test_function): Likewise.
68489         * tests/test-sprintf-posix.h (test_function): Likewise.
68490         * tests/test-fprintf-posix.h (test_function): Likewise.
68491         * tests/test-printf-posix.h (test_function): Likewise.
68492         * tests/test-fprintf-posix.out: Likewise.
68493
68494 2007-04-13  Bruno Haible  <bruno@clisp.org>
68495
68496         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68497         * modules/tls-tests (configure.ac): Likewise.
68498         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68499
68500 2007-04-13  Bruno Haible  <bruno@clisp.org>
68501
68502         * lib/tls.c (glthread_tls_get): Fix return type.
68503         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68504
68505 2007-04-12  Eric Blake  <ebb9@byu.net>
68506
68507         * modules/gettime (Depends-on): Remove gettime.
68508         Reported by Dmitry V. Levin.
68509
68510 2007-04-12  Bruno Haible  <bruno@clisp.org>
68511
68512         * modules/fflush (Include): Mention <stdio.h>.
68513         * modules/strtoimax (Include): Mention <inttypes.h>.
68514         * modules/strtoumax (Include): Likewise.
68515
68516 2007-04-12  Eric Blake  <ebb9@byu.net>
68517
68518         * .cvsignore: New file.
68519         * .gitignore: Likewise.
68520
68521 2007-04-12  Bruno Haible  <bruno@clisp.org>
68522
68523         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68524         not before, since $(LDADD) often contains libgnu.a.
68525         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68526         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68527         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68528         Needed on Cygwin.
68529
68530 2007-04-12  Eric Blake  <ebb9@byu.net>
68531
68532         Work around glibc's failure to flush stdin on fclose.
68533         * lib/closein.c (close_stdin): Flush stdin before closing.
68534
68535         Work around glibc's failure to reset seekable stdin on exit.
68536         * modules/closein: New module.
68537         * lib/closein.c: New file.
68538         * lib/closein.h: Likewise.
68539         * m4/closein.m4: Likewise.
68540         * MODULES.html.sh (File stream based Input/Output): Document it.
68541
68542 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68543
68544         * gnulib-tool: Rename generated 'autobuild' script to
68545         'do-autobuild' in --create-megatestdir output.
68546
68547         * doc/gnulib.texi (Build robot for gnulib): Fix.
68548
68549 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68550
68551         * modules/sysexits (Depends-on): Add absolute-header.
68552
68553 2007-04-12  Eric Blake  <ebb9@byu.net>
68554
68555         No need to preserve errno on success.
68556         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68557         Reported by Bruno Haible.
68558
68559 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68560
68561         * MODULES.html.sh (Support for maintaining and releasing
68562         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68563
68564 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68565
68566         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68567
68568 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68569
68570         * modules/autobuild: New module.
68571
68572         * m4/autobuild.m4: New file.
68573
68574 2007-04-11  Bruno Haible  <bruno@clisp.org>
68575
68576         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68577         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68581         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68582         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68584         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68585         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68587         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68588         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68589         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68590         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68591         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68593         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68594         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68595         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68596         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68597         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68599         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68600         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68601         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68602         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68603         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68604         Reported by Eric Blake.
68605
68606 2007-04-11  Bruno Haible  <bruno@clisp.org>
68607
68608         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68609
68610 2007-04-10  Bruno Haible  <bruno@clisp.org>
68611
68612         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68613         for NaN and Infinity. Needed on FreeBSD 6.1.
68614         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68615         regarding results for "%010a" of Infinity and NaN.
68616         * tests/test-vasprintf-posix.c (test_function): Likewise.
68617         * tests/test-snprintf-posix.h (test_function): Likewise.
68618         * tests/test-sprintf-posix.h (test_function): Likewise.
68619         * tests/test-fprintf-posix.h (test_function): Likewise.
68620         * tests/test-printf-posix.h (test_function): Likewise.
68621         * tests/test-fprintf-posix.out: Likewise.
68622
68623 2007-04-10  Bruno Haible  <bruno@clisp.org>
68624
68625         * modules/locale-tests: New file.
68626         * tests/test-locale.c: New file.
68627
68628         * modules/locale: New file.
68629         * lib/locale_.h: New file.
68630         * m4/locale_h.m4: New file.
68631
68632 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68633             Bruno Haible  <bruno@clisp.org>
68634
68635         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68636         be determined, test for availability of the copysignf, copysign,
68637         copysignl functions.
68638         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68639         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68640         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68641
68642 2007-04-09  Eric Blake  <ebb9@byu.net>
68643
68644         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68645         * modules/stdio (Makefile.am): Support fflush.
68646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68647         * modules/fflush: New file.
68648         * lib/fflush.c: Likewise.
68649         * m4/fflush.m4: Likewise.
68650         * modules/fflush-tests: New test.
68651         * tests/test-fflush.c: Likewise.
68652         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68653
68654 2007-04-06  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68657         (VASNPRINTF): Use signbit for faster determination whether to print a
68658         minus sign.
68659         * modules/vasnprintf (Files): Remove lib/float+.h.
68660         * modules/fprintf-posix (Depends-on): Add signbit.
68661         * modules/snprintf-posix (Depends-on): Likewise.
68662         * modules/sprintf-posix (Depends-on): Likewise.
68663         * modules/vasnprintf-posix (Depends-on): Likewise.
68664         * modules/vasprintf-posix (Depends-on): Likewise.
68665         * modules/vfprintf-posix (Depends-on): Likewise.
68666         * modules/vsnprintf-posix (Depends-on): Likewise.
68667         * modules/vsprintf-posix (Depends-on): Likewise.
68668
68669 2007-04-06  Bruno Haible  <bruno@clisp.org>
68670
68671         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68672         * tests/test-frexpl.c (main): Likewise.
68673         * tests/test-ldexpl.c (main): Likewise.
68674         * modules/frexp-tests (Depends-on): Add signbit.
68675         * modules/frexpl-tests (Depdends-on): Likewise.
68676         * modules/ldexpl-tests (Depdends-on): Likewise.
68677
68678 2007-04-06  Bruno Haible  <bruno@clisp.org>
68679
68680         * modules/signbit-tests: New file.
68681         * tests/test-signbit.c: New file.
68682
68683         * modules/signbit: New file.
68684         * lib/signbitf.c: New file.
68685         * lib/signbitd.c: New file.
68686         * lib/signbitl.c: New file.
68687         * m4/signbit.m4: New file.
68688         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68689         (signbit): New macro.
68690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68691         REPLACE_SIGNBIT.
68692         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68693         REPLACE_FREXPL into math.h.
68694
68695 2007-04-06  Bruno Haible  <bruno@clisp.org>
68696
68697         * modules/isnanf-nolibm-tests: New file.
68698         * tests/test-isnanf.c: New file.
68699
68700         * modules/isnanf-nolibm: New file.
68701         * lib/isnanf.h: New file.
68702         * lib/isnanf.c: New file.
68703         * lib/isnan.c: Consider the USE_FLOAT macro.
68704         * m4/isnanf.m4: New file.
68705
68706 2007-04-06  Bruno Haible  <bruno@clisp.org>
68707
68708         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68709         (Link): New section.
68710
68711         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68712
68713 2007-04-06  Bruno Haible  <bruno@clisp.org>
68714
68715         Assume the 'long double' type.
68716         * m4/longdouble.m4: Remove file.
68717         * config/srclist.txt: Don't mention longdouble.m4.
68718         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68719         * lib/float+.h: Likewise.
68720         * lib/frexp.c: Likewise.
68721         * lib/printf-args.h: Likewise.
68722         * lib/printf-args.c: Likewise.
68723         * lib/printf-frexp.c: Likewise.
68724         * lib/printf-parse.c: Likewise.
68725         * lib/vasnprintf.c: Likewise.
68726         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68727         * m4/intl.m4: Likewise.
68728         * m4/isnanl.m4: Likewise.
68729         * m4/printf.m4: Likewise.
68730         * m4/printf-frexpl.m4: Likewise.
68731         * m4/vasnprintf.m4: Likewise.
68732         * modules/allocsa (Files): Remove m4/longdouble.m4.
68733         * modules/gettext (Files): Likewise.
68734         * modules/relocatable-prog-wrapper (Files): Likewise.
68735         * modules/vasnprintf (Files): Likewise.
68736         * modules/isnanl (Files): Likewise.
68737         (Include): Simplify.
68738         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68739         (Include): Simplify.
68740         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68741         (Include): Simplify.
68742         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68743         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68744         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68745         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68746         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68747         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68748         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68749         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68750         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68751         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68752         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68753         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68754         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68755         * tests/test-isnanl.c: Likewise.
68756         * tests/test-snprintf-posix.h: Likewise.
68757         * tests/test-sprintf-posix.h: Likewise.
68758         * tests/test-vasnprintf-posix.c: Likewise.
68759         * tests/test-vasnprintf-posix2.c: Likewise.
68760         * tests/test-vasprintf-posix.c: Likewise.
68761
68762 2007-04-06  Bruno Haible  <bruno@clisp.org>
68763
68764         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68765         * lib/math_.h [__DECC]: Include the overridden include file through
68766         #include_next, outside the double-inclusion guard.
68767         * lib/stdio_.h [__DECC]: Likewise.
68768         * lib/stdlib_.h [__DECC]: Likewise.
68769         * lib/string_.h [__DECC]: Likewise.
68770         * lib/time_.h [__DECC]: Likewise.
68771         * lib/wchar_.h [__DECC]: Likewise.
68772         * lib/wctype_.h [__DECC]: Likewise.
68773         * lib/inttypes_.h [__DECC]: Likewise.
68774         Reported by Albert Chin <china@thewrittenword.com> in
68775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68776
68777 2007-04-04  Eric Blake  <ebb9@byu.net>
68778
68779         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68780         1.5.x.
68781
68782 2007-04-04  Bruno Haible  <bruno@clisp.org>
68783
68784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68785         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68786
68787 2007-04-04  Bruno Haible  <bruno@clisp.org>
68788
68789         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68790         results for "%010a" of Infinity and NaN.
68791         * tests/test-vasprintf-posix.c (test_function): Likewise.
68792         * tests/test-snprintf-posix.h (test_function): Likewise.
68793         * tests/test-sprintf-posix.h (test_function): Likewise.
68794         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68795         * tests/test-printf-posix.h (test_function): Likewise.
68796         * tests/test-fprintf-posix.out: Update.
68797         Needed for FreeBSD 6.1.
68798
68799 2007-04-04  Bruno Haible  <bruno@clisp.org>
68800
68801         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68802         directly used by the gnulib modules nor by gnulib-tool.
68803
68804 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * DEPENDENCIES: Give overall description of version dependency
68807         desirability.  Use more-typical names for apps.
68808         Add shell, coreutils, diffutils, grep, tar, gzip.
68809
68810 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68811
68812         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68813
68814 2007-04-04  Karl Berry  <karl@gnu.org>
68815
68816         * MODULES.html.sh (func_module): missing '.
68817
68818 2007-04-03  Bruno Haible  <bruno@clisp.org>
68819
68820         * modules/argmatch-tests (Makefile.am): New variable
68821         test_argmatch_LDADD.
68822         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68823         * modules/array-list-tests (Makefile.am): New variable
68824         test_array_list_LDADD.
68825         * modules/array-oset-tests (Makefile.am): New variable
68826         test_array_oset_LDADD.
68827         * modules/avltree-list-tests (Makefile.am): New variable
68828         test_avltree_list_LDADD.
68829         * modules/avltree-oset-tests (Makefile.am): New variable
68830         test_avltree_oset_LDADD.
68831         * modules/avltreehash-list-tests (Makefile.am): New variable
68832         test_avltreehash_list_LDADD.
68833         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
68834         test_canonicalize_lgpl_LDADD.
68835         * modules/carray-list-tests (Makefile.am): New variable
68836         test_carray_list_LDADD.
68837         * modules/dirname-tests (Makefile.am): New variable
68838         test_dirname_LDADD.
68839         * modules/linked-list-tests (Makefile.am): New variable
68840         test_linked_list_LDADD.
68841         * modules/linkedhash-list-tests (Makefile.am): New variable
68842         test_linkedhash_list_LDADD.
68843         * modules/rbtree-list-tests (Makefile.am): New variable
68844         test_rbtree_list_LDADD.
68845         * modules/rbtree-oset-tests (Makefile.am): New variable
68846         test_rbtree_oset_LDADD.
68847         * modules/rbtreehash-list-tests (Makefile.am): New variable
68848         test_rbtreehash_list_LDADD.
68849         * modules/xvasprintf-tests (Makefile.am): New variable
68850         test_xvasprintf_LDADD.
68851         Reported by Eric Blake.
68852
68853 2007-04-03  Eric Blake  <ebb9@byu.net>
68854
68855         * DEPENDENCIES: Weaken m4 requirements.
68856
68857 2007-04-03  Bruno Haible  <bruno@clisp.org>
68858
68859         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
68860         * modules/isnanl-tests (configure.ac): Likewise.
68861
68862 2007-04-03  Ben Pfaff  <blp@gnu.org>
68863
68864         * modules/iconv_open: Add $(srcdir)/ to source directory
68865         references in Makefile fragments that call gperf, to fix VPATH
68866         builds.
68867
68868 2007-04-03  Bruno Haible  <bruno@clisp.org>
68869
68870         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
68871         * lib/ldexpl.c: Undo last change.
68872
68873 2007-04-03  Bruno Haible  <bruno@clisp.org>
68874
68875         * modules/printf-frexpl (Depends-on): Undo last change.
68876         (Files): Add m4/ldexpl.m4.
68877
68878 2007-04-03  Bruno Haible  <bruno@clisp.org>
68879
68880         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
68881         * modules/isnanl (Link): New section.
68882
68883         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
68884         * modules/frexp (Link): New section.
68885
68886         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
68887         * modules/frexpl (Link): New section.
68888
68889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
68890         * modules/ldexpl (Link): New section.
68891
68892 2007-04-03  Bruno Haible  <bruno@clisp.org>
68893
68894         * modules/TEMPLATE-EXTENDED: New file.
68895         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
68896
68897 2007-04-03  Bruno Haible  <bruno@clisp.org>
68898
68899         * DEPENDENCIES: New file.
68900         Suggested by Simon Josefsson.
68901
68902 2007-04-03  Bruno Haible  <bruno@clisp.org>
68903
68904         * doc/gnulib.texi: Escape @.
68905
68906 2007-04-03  James Youngman  <jay@gnu.org>
68907         and Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
68910         birthtime on all systems that have birthtime, not just those which
68911         use st_birthtimensec rather than st_birthtim.  Putting zero in
68912         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
68913         that the birth time is not available for files on an NFS mount.
68914
68915 2007-04-03  Simon Josefsson  <simon@josefsson.org>
68916
68917         * modules/memxor: Move back from crypto/, suggested by Bruno.
68918         * modules/crypto/hmac-sha1: Fix memxor dependency.
68919
68920         * modules/crypto/gc: Moved from ../.
68921
68922 2007-04-02  Eric Blake  <ebb9@byu.net>
68923
68924         * lib/ldexpl.c (includes): Avoid libm.
68925
68926         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
68927
68928 2007-04-02  Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
68931         on IRIX.
68932
68933 2007-04-02  Bruno Haible  <bruno@clisp.org>
68934
68935         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
68936         x86 or x86_64 platforms running MacOS X.
68937         Reported by Ryan Schmidt <@ryandesign.com>.
68938
68939 2007-04-02  Bruno Haible  <bruno@clisp.org>
68940
68941         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
68942         i386.
68943
68944 2007-04-01  Simon Josefsson  <simon@josefsson.org>
68945
68946         * modules/crypto/arcfour: Moved from ../.
68947         * modules/crypto/arcfour-tests: Moved from ../.
68948         * modules/crypto/arctwo: Moved from ../.
68949         * modules/crypto/arctwo-tests: Moved from ../.
68950         * modules/crypto/des: Moved from ../.
68951         * modules/crypto/des-tests: Moved from ../.
68952         * modules/crypto/gc-arcfour: Moved from ../.
68953         * modules/crypto/gc-arcfour-tests: Moved from ../.
68954         * modules/crypto/gc-arctwo: Moved from ../.
68955         * modules/crypto/gc-arctwo-tests: Moved from ../.
68956         * modules/crypto/gc-des: Moved from ../.
68957         * modules/crypto/gc-des-tests: Moved from ../.
68958         * modules/crypto/gc-hmac-md5: Moved from ../.
68959         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
68960         * modules/crypto/gc-hmac-sha1: Moved from ../.
68961         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
68962         * modules/crypto/gc-md2: Moved from ../.
68963         * modules/crypto/gc-md2-tests: Moved from ../.
68964         * modules/crypto/gc-md4: Moved from ../.
68965         * modules/crypto/gc-md4-tests: Moved from ../.
68966         * modules/crypto/gc-md5: Moved from ../.
68967         * modules/crypto/gc-md5-tests: Moved from ../.
68968         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
68969         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
68970         * modules/crypto/gc-random: Moved from ../.
68971         * modules/crypto/gc-rijndael: Moved from ../.
68972         * modules/crypto/gc-rijndael-tests: Moved from ../.
68973         * modules/crypto/gc-sha1: Moved from ../.
68974         * modules/crypto/gc-sha1-tests: Moved from ../.
68975         * modules/crypto/gc-tests: Moved from ../.
68976         * modules/crypto/hmac-md5: Moved from ../.
68977         * modules/crypto/hmac-md5-tests: Moved from ../.
68978         * modules/crypto/hmac-sha1: Moved from ../.
68979         * modules/crypto/hmac-sha1-tests: Moved from ../.
68980         * modules/crypto/md2: Moved from ../.
68981         * modules/crypto/md2-tests: Moved from ../.
68982         * modules/crypto/md4: Moved from ../.
68983         * modules/crypto/md4-tests: Moved from ../.
68984         * modules/crypto/md5: Moved from ../.
68985         * modules/crypto/md5-tests: Moved from ../.
68986         * modules/crypto/memxor: Moved from ../.
68987         * modules/crypto/rijndael: Moved from ../.
68988         * modules/crypto/rijndael-tests: Moved from ../.
68989         * modules/crypto/sha1: Moved from ../.
68990
68991 2007-03-30  James Youngman  <jay@gnu.org>
68992
68993         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68994         rename() to change the ctime of a file (because ctime is unaffected
68995         by rename on jfs2 on AIX 5.1).
68996         (main): Start by doing cleanup, in case a previous run failed leaving
68997         test files behind.
68998
68999 2007-03-31  Bruno Haible  <bruno@clisp.org>
69000
69001         Support old proprietary implementations of iconv.
69002         * modules/iconv_open: New file.
69003         * lib/iconv_.h: New file.
69004         * m4/iconv_h.m4: New file.
69005         * lib/iconv_open.c: New file.
69006         * lib/iconv_open-aix.gperf: New file.
69007         * lib/iconv_open-hpux.gperf: New file.
69008         * lib/iconv_open-irix.gperf: New file.
69009         * lib/iconv_open-osf.gperf: New file.
69010         * m4/iconv_open.m4: New file.
69011         * modules/linebreak (Depends-on): Add iconv_open.
69012         * modules/striconv (Depends-on): Likewise.
69013         * modules/striconveh (Depends-on): Likewise.
69014         * modules/unicodeio (Depends-on): Likewise.
69015         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69016         (iconv_t)(-1).
69017         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69018         conversion if cd is (iconv_t)(-1).
69019         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69020         is not possible.
69021
69022 2007-03-31  Bruno Haible  <bruno@clisp.org>
69023
69024         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69025         work on Solaris either. Protect also second use of "autodetect_jp".
69026
69027 2007-03-31  Bruno Haible  <bruno@clisp.org>
69028
69029         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69030         the function is not present.
69031
69032 2007-03-31  Bruno Haible  <bruno@clisp.org>
69033
69034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69035         the function is not present.
69036
69037 2007-03-31  Bruno Haible  <bruno@clisp.org>
69038
69039         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69040         a bug in HP-UX iconv_open().
69041
69042 2007-03-31  Bruno Haible  <bruno@clisp.org>
69043
69044         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69045         (Mathematics <math.h>): New section, add fpieee.
69046         (Input/output <stdio.h>): Add fseterr.
69047         (Mathematics <math.h>): New section, add printf-frexp.
69048         (Container data structures): Add sublist.
69049         (Core language properties): Add fpucw, inline.
69050         (Functions for greatest-width integer types <inttypes.h>): Add
69051         imaxabs, imaxdiv, inttypes.
69052         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69053         isnanl-nolibm, ldexp.
69054         (Mathematics <math.h>): New section, add printf-frexpl.
69055         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69056         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69057         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69058         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69059         (Unicode string functions): Add unistr/u*-mbtoucr.
69060         (Java): Add javacomp-script, javaexec-script.
69061         (C#): Add csharpcomp-script, csharpexec-script.
69062         (Support for building libraries and executables): Add havelib,
69063         relocatable-*.
69064         (Support for maintaining and releasing projects): Renamed from
69065         'Support for maintaining and release projects'. Add announce-gen.
69066
69067 2007-03-31  Bruno Haible  <bruno@clisp.org>
69068
69069         * README: Talk primarily about git.
69070         (git and CVS): Renamed from CVS.
69071         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69072         gnulib is available through git.
69073         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69074
69075 2007-03-30  Bruno Haible  <bruno@clisp.org>
69076
69077         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69078         * lib/poll_.h: Likewise.
69079         * lib/stat_.h: Likewise.
69080         * lib/sys_time_.h: Likewise.
69081         * lib/sysexit_.h: Likewise.
69082         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69083         * lib/stdbool_.h: Likewise.
69084         * lib/byteswap_.h: Add double-inclusion guard.
69085
69086 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69087
69088         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69089
69090 2007-03-30  Karl Berry  <karl@gnu.org>
69091
69092         * config/srclist-update: double space after USA in the license
69093         substitution, since that's how it's usually (?) written.
69094
69095 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69096
69097         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69098         reported by Bruno Haible.
69099
69100 2007-03-29  Bruno Haible  <bruno@clisp.org>
69101
69102         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69103         a bug in AIX iconv().
69104
69105 2007-03-29  Bruno Haible  <bruno@clisp.org>
69106
69107         * modules/ldexpl-tests: New file.
69108         * tests/test-ldexpl.c: New file.
69109
69110 2007-03-29  Bruno Haible  <bruno@clisp.org>
69111
69112         * lib/ldexpl.c: Include fpucw.h.
69113         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69114         multiplication.
69115         * modules/ldexpl (Depends-on): Add fpucw.
69116
69117 2007-03-29  Bruno Haible  <bruno@clisp.org>
69118
69119         * modules/ldexpl: New file.
69120         * m4/ldexpl.m4: New file.
69121         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69122         set.
69123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69124         REPLACE_LDEXPL.
69125         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69126         REPLACE_LDEXPL.
69127         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69128         gl_FUNC_LDEXPL_WORKS.
69129         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69130         * modules/mathl (Files): Remove lib/ldexpl.c.
69131         (Depends-on): Add ldexpl.
69132
69133 2007-03-29  Bruno Haible  <bruno@clisp.org>
69134
69135         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69136
69137 2007-03-29  Bruno Haible  <bruno@clisp.org>
69138
69139         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69140         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69141         and possibly also HP-UX.
69142         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69143         work on AIX, IRIX, HP-UX, OSF/1.
69144         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69145         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69146         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69147         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69148         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69149         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69150
69151 2007-03-29  Bruno Haible  <bruno@clisp.org>
69152
69153         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69154
69155 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69156
69157         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69158         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69159
69160 2007-03-29  Eric Blake  <ebb9@byu.net>
69161
69162         * lib/acl-internal.h: Remove redundant include.
69163         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69164         Cygwin when a file is locked.
69165
69166 2007-03-29  Bruno Haible  <bruno@clisp.org>
69167
69168         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69169         file.
69170         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69171
69172 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69175         try to remove a parent directory if the child couldn't be removed
69176         (except for the first rmdir, which could fail because the child
69177         doesn't exist).  Problem reported by Jeff Blaine in
69178         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69179
69180 2007-03-28  Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/striconveh.c (utf8conv_carefully): New function.
69183         (mem_cd_iconveh_internal): Invoke it.
69184
69185 2007-03-28  Bruno Haible  <bruno@clisp.org>
69186
69187         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69188         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69189         input.
69190         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69191         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69192         unistr/u8-uctomb.
69193
69194 2007-03-28  Bruno Haible  <bruno@clisp.org>
69195
69196         * modules/unistr/u8-mbtoucr: New file.
69197         * lib/unistr/u8-mbtoucr.c: New file.
69198         * modules/unistr/u16-mbtoucr: New file.
69199         * lib/unistr/u16-mbtoucr.c: New file.
69200         * modules/unistr/u16-mbtoucr: New file.
69201         * lib/unistr/u16-mbtoucr.c: New file.
69202         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69203
69204 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69205             Bruno Haible  <bruno@clisp.org>
69206
69207         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69208         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69209         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69210
69211         * m4/stdio_h.m4: Add stubs for vasprintf too.
69212
69213         * modules/stdio: Support vasprintf in sed command.
69214
69215         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69216         vasprintf.h.  Add stdio module indicator.
69217
69218         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69219         vasprintf.h.
69220
69221         * lib/vasprintf.h: File removed.
69222
69223         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69224         * lib/vasprintf.c: Ditto.
69225         * lib/xvasprintf.c: Ditto.
69226         * tests/test-vasprintf-posix.c: Ditto.
69227         * tests/test-vasprintf.c: Ditto.
69228
69229 2007-03-27  Bruno Haible  <bruno@clisp.org>
69230
69231         Make vasnprintf multithread-safe.
69232         * lib/vasnprintf.c (decimal_point_char): New function.
69233         (VASNPRINTF): Use it.
69234         Suggested by Simon Josefsson.
69235
69236 2007-03-27  Eric Blake  <ebb9@byu.net>
69237
69238         Support sub-second birthtime on cygwin.
69239         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69240         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69241         (get_stat_birthtime): Also work with st_birthtim.
69242
69243 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69244
69245         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69246         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69247         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69248         (get_stat_birthtime_ns): Simplify compile-time tests.
69249         (get_stat_birthtime): Change the API to look like
69250         get_stat_mtime etc., except return a negative tv_nsec on error.
69251         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69252         Don't check for "spare" fields.
69253         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69254         or for struct stat.st_birthtime, as these tests aren't used.
69255         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69256
69257 2007-03-27  Bruno Haible  <bruno@clisp.org>
69258
69259         * lib/stat-time.h: Include <sys/stat.h>.
69260
69261 2007-03-27  James Youngman  <jay@gnu.org>
69262
69263         * lib/stat-time.h (get_stat_birthtime): New function for
69264           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69265         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69266           and its variants.
69267         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69268         * modules/stat-time-test: New file.
69269         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69270
69271 2007-03-26  Bruno Haible  <bruno@clisp.org>
69272
69273         Better support of signalling NaNs.
69274         * lib/atanl.c: Include isnanl.h.
69275         (atanl): Perform test for NaN at the beginning of the function and
69276         through a call to isnanl.
69277         * lib/cosl.c: Include isnanl.h.
69278         (cosl): Perform test for NaN at the beginning of the function and
69279         through a call to isnanl.
69280         * lib/ldexpl.c: Include isnanl.h.
69281         (ldexpl): Perform test for NaN through a call to isnanl.
69282         * lib/logl.c: Include isnanl.h.
69283         (logl): Perform test for NaN at the beginning of the function and
69284         through a call to isnanl.
69285         * lib/sinl.c: Include isnanl.h.
69286         (sinl): Perform test for NaN at the beginning of the function and
69287         through a call to isnanl.
69288         * lib/sqrtl.c: Include isnanl.h.
69289         (sqrtl): Perform test for NaN at the beginning of the function and
69290         through a call to isnanl.
69291         * lib/tanl.c: Include isnanl.h.
69292         (tanl): Perform test for NaN at the beginning of the function and
69293         through a call to isnanl.
69294         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69295         * modules/mathl (Depends-on): Add isnanl.
69296
69297 2007-03-26  Eric Blake  <ebb9@byu.net>
69298
69299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69300         regression in logic sense of previous patch.
69301
69302 2007-03-26  Bruno Haible  <bruno@clisp.org>
69303
69304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69305         unportable shell command "if ! ...".
69306         Reported by Ralf Wildenhues.
69307
69308 2007-03-25  Bruno Haible  <bruno@clisp.org>
69309
69310         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69311         <sysexits.h> file, and only add EX_CONFIG.
69312         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69313         absolute file name and whether it is sufficient. Substitute also
69314         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69315         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69316         ABSOLUTE_SYSEXITS_H into sysexits.h.
69317
69318 2007-03-25  Bruno Haible  <bruno@clisp.org>
69319
69320         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69321         hints is NULL.
69322
69323 2007-03-25  Bruno Haible  <bruno@clisp.org>
69324
69325         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69326         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69327
69328 2007-03-25  Bruno Haible  <bruno@clisp.org>
69329
69330         * lib/vasnprintf.c: Include langinfo.h.
69331         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69332         multithread-safe.
69333         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69334         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69337         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69338         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69339         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69341         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69342         Reported by Simon Josefsson.
69343
69344 2007-03-25  Bruno Haible  <bruno@clisp.org>
69345
69346         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69347         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69348         * modules/vasnprintf (Depends-on): Add stdint.
69349
69350 2007-03-25  Bruno Haible  <bruno@clisp.org>
69351
69352         * modules/fpieee: New file.
69353         * m4/fpieee.m4: New file.
69354         * modules/isnan-nolibm (Depends-on): Add fpieee.
69355         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69356         * modules/isnanl (Depends-on): Add fpieee.
69357
69358 2007-03-25  Bruno Haible  <bruno@clisp.org>
69359
69360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69361
69362 2007-03-25  Bruno Haible  <bruno@clisp.org>
69363
69364         Avoid test failures on IRIX 6.5.
69365         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69366         (main): Use it.
69367         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69368         macros.
69369         (main): Use them.
69370
69371 2007-03-25  Bruno Haible  <bruno@clisp.org>
69372
69373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69374         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69375         exists but doesn't work.
69376         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69377         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69379         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69380         math.h.
69381
69382 2007-03-25  Bruno Haible  <bruno@clisp.org>
69383
69384         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69385         returns inf. Needed on IRIX 6.5.
69386
69387 2007-03-25  Bruno Haible  <bruno@clisp.org>
69388
69389         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69390         (main): Use isnanl instead of x != x idiom.
69391         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69392
69393         * tests/test-frexp.c: Include isnan.h.
69394         (main): Use isnan instead of x != x idiom.
69395         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69396
69397 2007-03-25  Bruno Haible  <bruno@clisp.org>
69398
69399         * tests/test-frexp.c (NaN): New function/macro.
69400         (main): Use it instead of 0.0 / 0.0.
69401         * tests/test-isnan.c (NaN): New function/macro.
69402         (main): Use it instead of 0.0 / 0.0.
69403         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69404         (test_function): Use it instead of 0.0 / 0.0.
69405         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69406         (test_function): Use it instead of 0.0 / 0.0.
69407         * tests/test-snprintf-posix.h (NaN): New function/macro.
69408         (test_function): Use it instead of 0.0 / 0.0.
69409         * tests/test-sprintf-posix.h (NaN): New function/macro.
69410         (test_function): Use it instead of 0.0 / 0.0.
69411         * tests/test-fprintf-posix.h (NaN): New function/macro.
69412         (test_function): Use it instead of 0.0 / 0.0.
69413         * tests/test-printf-posix.h (NaN): New function/macro.
69414         (test_function): Use it instead of 0.0 / 0.0.
69415
69416         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69417
69418 2007-03-25  Bruno Haible  <bruno@clisp.org>
69419
69420         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69421
69422 2007-03-25  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/regexec.c (merge_state_with_log): Make static.
69425
69426 2007-03-25  Bruno Haible  <bruno@clisp.org>
69427
69428         * lib/trigl.c (kernel_rem_pio2): Make static.
69429
69430 2007-03-25  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/sincosl.c (sincosl_table): Make static.
69433
69434 2007-03-25  Bruno Haible  <bruno@clisp.org>
69435
69436         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69437         if the compiler does not support C99.
69438
69439 2007-03-25  Bruno Haible  <bruno@clisp.org>
69440
69441         * modules/time (Makefile.am): Ensure all rule action lines start with a
69442         tab.
69443
69444 2007-03-24  Bruno Haible  <bruno@clisp.org>
69445
69446         * modules/tsearch-tests: New file.
69447         * tests/test-tsearch.sh: New file.
69448         * tests/test-tsearch.c: New file, mostly copied from glibc.
69449
69450         * modules/search-tests: New file.
69451         * tests/test-search.c: New file.
69452
69453         * modules/search: New file.
69454         * lib/search_.h: New file, incorporating lib/tsearch.h.
69455         * m4/search_h.m4: New file.
69456         * lib/tsearch.h: Remove file.
69457         * lib/tsearch.c: Include search.h instead of tsearch.h.
69458         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69459         HAVE_TSEARCH.
69460         * modules/tsearch (Files): Remove lib/tsearch.h.
69461         (Depends-on): Add search.
69462         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69463         (Include): Change tsearch.h into search.h.
69464
69465 2007-03-24  Bruno Haible  <bruno@clisp.org>
69466
69467         * modules/fpucw: New file.
69468         * lib/fpucw.h: New file.
69469         * lib/frexp.c: Include fpucw.h.
69470         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69471         (FUNC): Use them.
69472         * lib/printf-frexp.c: Include fpucw.h.
69473         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69474         (FUNC): Use them.
69475         * lib/vasnprintf.c: Include fpucw.h.
69476         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69477         'long double' calculations.
69478         * tests/test-frexpl.c: Include fpucw.h.
69479         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69480         * tests/test-printf-frexpl.c: Include fpucw.h.
69481         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69482         * modules/frexpl (Depends-on): Add fpucw.
69483         * modules/printf-frexpl (Depends-on): Likewise.
69484         * modules/fprintf-posix (Depends-on): Likewise.
69485         * modules/snprintf-posix (Depends-on): Likewise.
69486         * modules/sprintf-posix (Depends-on): Likewise.
69487         * modules/vasnprintf-posix (Depends-on): Likewise.
69488         * modules/vasprintf-posix (Depends-on): Likewise.
69489         * modules/vfprintf-posix (Depends-on): Likewise.
69490         * modules/vsnprintf-posix (Depends-on): Likewise.
69491         * modules/vsprintf-posix (Depends-on): Likewise.
69492         * modules/frexpl-tests (Depends-on): Likewise.
69493         * modules/printf-frexpl-tests (Depends-on): Likewise.
69494
69495 2007-03-24  Bruno Haible  <bruno@clisp.org>
69496
69497         * lib/float+.h: New file.
69498         * lib/isnan.c: Include float+.h.
69499         (SIZE): New macro.
69500         (FUNC): Compare only SIZE bytes of the value.
69501         * lib/vasnprintf.c: Include float+.h.
69502         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69503         SIZEOF_LDBL or SIZEOF_DBL bytes.
69504         * modules/isnan-nolibm (Files): Add lib/float+.h.
69505         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69506         * modules/isnanl (Files): Add lib/float+.h.
69507         * modules/vasnprintf (Files): Add lib/float+.h.
69508
69509 2007-03-24  Bruno Haible  <bruno@clisp.org>
69510
69511         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69512         include isnanl-nolibm.h.
69513
69514 2007-03-24  Bruno Haible  <bruno@clisp.org>
69515
69516         * tests/test-read-file.c (main): Don't produce spurious output for
69517         expected situations. Make the test fail if it encountered unexpected
69518         results.
69519
69520 2007-03-24  Bruno Haible  <bruno@clisp.org>
69521
69522         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69523         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69524
69525 2007-03-24  Bruno Haible  <bruno@clisp.org>
69526
69527         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69528
69529 2007-03-24  Bruno Haible  <bruno@clisp.org>
69530
69531         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69532         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69533
69534         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69535         * modules/utf8-ucs4: Turn into a symbolic link to module
69536         unistr/u8-mbtouc.
69537
69538         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69539         utf8-ucs4-unsafe.
69540         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69541         unistr/u8-mbtouc-unsafe.
69542
69543         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69544         * modules/utf16-ucs4: Turn into a symbolic link to module
69545         unistr/u16-mbtouc.
69546
69547         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69548         utf16-ucs4-unsafe.
69549         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69550         unistr/u16-mbtouc-unsafe.
69551
69552         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69553         * modules/ucs4-utf8: Turn into a symbolic link to module
69554         unistr/u8-ubtomb.
69555
69556         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69557         * modules/ucs4-utf16: Turn into a symbolic link to module
69558         unistr/u16-ubtomb.
69559
69560 2007-03-24  Bruno Haible  <bruno@clisp.org>
69561
69562         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69563         Enable the function only if HAVE_INLINE.
69564         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69565         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69566         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69567         Enable the function only if HAVE_INLINE.
69568         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69569         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69570         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69571         Enable the function only if HAVE_INLINE.
69572         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69573         Enable the function only if HAVE_INLINE.
69574         * modules/utf8-ucs4: Update.
69575         * modules/utf8-ucs4-unsafe: Update.
69576         * modules/utf16-ucs4: Update.
69577         * modules/utf16-ucs4-unsafe: Update.
69578         * modules/ucs4-utf8: Update.
69579         * modules/ucs4-utf16: Update.
69580
69581 2007-03-24  Bruno Haible  <bruno@clisp.org>
69582
69583         * lib/utf8-ucs4.h: Remove file.
69584         * lib/utf8-ucs4-unsafe.h: Remove file.
69585         * lib/utf16-ucs4.h: Remove file.
69586         * lib/utf16-ucs4-unsafe.h: Remove file.
69587         * lib/ucs4-utf8.h: Remove file.
69588         * lib/ucs4-utf16.h: Remove file.
69589         * lib/unistr.h: Include their previous contents.
69590         * m4/utf-ucs4.m4: Remove file.
69591         * m4/ucs4-utf.m4: Remove file.
69592         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69593         (Depends-on): Add unistr/base.
69594         (configure.ac): Remove gl_UTF_UCS4.
69595         (Makefile.am): Update.
69596         (Include): Change to unistr.h.
69597         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69598         (Depends-on): Add unistr/base.
69599         (configure.ac): Remove gl_UTF_UCS4.
69600         (Makefile.am): Update.
69601         (Include): Change to unistr.h.
69602         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69603         (Depends-on): Add unistr/base.
69604         (configure.ac): Remove gl_UTF_UCS4.
69605         (Makefile.am): Update.
69606         (Include): Change to unistr.h.
69607         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69608         (Depends-on): Add unistr/base.
69609         (configure.ac): Remove gl_UTF_UCS4.
69610         (Makefile.am): Update.
69611         (Include): Change to unistr.h.
69612         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69613         (Depends-on): Add unistr/base.
69614         (configure.ac): Remove gl_UCS4_UTF.
69615         (Makefile.am): Update.
69616         (Include): Change to unistr.h.
69617         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69618         (Depends-on): Add unistr/base.
69619         (configure.ac): Remove gl_UCS4_UTF.
69620         (Makefile.am): Update.
69621         (Include): Change to unistr.h.
69622         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69623         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69624         utf8-ucs4-unsafe.h.
69625         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69626         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69627         utf16-ucs4-unsafe.h.
69628         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69629         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69630         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69631         * lib/unistr/u8-strchr.c: Likewise.
69632         * lib/unistr/u8-strrchr.c: Likewise.
69633         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69634         * lib/unistr/u16-strchr.c: Likewise.
69635         * lib/unistr/u16-strrchr.c: Likewise.
69636         * lib/striconveh.c: Update.
69637         * lib/linebreak.c: Update.
69638
69639 2007-03-24  Bruno Haible  <bruno@clisp.org>
69640
69641         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69642         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69643
69644 2007-03-22  Bruno Haible  <bruno@clisp.org>
69645
69646         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69647
69648 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69649
69650         * MODULES.html.sh (File system functions): New module write-any-file.
69651         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69652         * m4/write-any-file.m4: New files.
69653
69654 2007-03-23  Eric Blake  <ebb9@byu.net>
69655
69656         * gnulib-tool: Rearrange space-tab sequences, since some editors
69657         like to eat them.
69658
69659 2007-03-23  Eric Blake  <ebb9@byu.net>
69660
69661         * lib/version-etc.c (version_etc_va): Update license wording to
69662         be more concise.  Recommended by Richard Stallman.
69663
69664 2007-03-22  Bruno Haible  <bruno@clisp.org>
69665
69666         * lib/poll.c (MSG_PEEK): New fallback definition.
69667
69668 2007-03-22  Bruno Haible  <bruno@clisp.org>
69669
69670         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69671         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69672         (main): Update.
69673         Fixes a compilation error on BeOS.
69674
69675 2007-03-22  Bruno Haible  <bruno@clisp.org>
69676
69677         * modules/frexpl-tests: New file.
69678         * tests/test-frexpl.c: New file.
69679
69680         * modules/frexpl: New file.
69681         * m4/frexpl.m4: New file.
69682         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69683         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69685         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69686         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69687         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69688
69689 2007-03-22  Bruno Haible  <bruno@clisp.org>
69690
69691         * lib/frexpl.c: Share code with lib/frexp.c.
69692         * modules/mathl (Files): Add lib/frexp.c.
69693         (Depends-on): Add isnanl-nolibm.
69694
69695 2007-03-22  Bruno Haible  <bruno@clisp.org>
69696
69697         * modules/printf-frexp (Files): Add m4/frexp.m4.
69698         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69699         only if the found frexp function actually works.
69700
69701 2007-03-22  Bruno Haible  <bruno@clisp.org>
69702
69703         * lib/frexp.c: Remove older implementation that uses divisions.
69704
69705 2007-03-21  Bruno Haible  <bruno@clisp.org>
69706
69707         * modules/frexp-tests: New file.
69708         * tests/test-frexp.c: New file.
69709
69710         * modules/frexp: New file.
69711         * lib/frexp.c: New file.
69712         * m4/frexp.m4: New file.
69713         * lib/math_.h (frexp): New declaration.
69714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69715         REPLACE_FREXP.
69716         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69717
69718 2007-03-21  Bruno Haible  <bruno@clisp.org>
69719
69720         * modules/isnanl-tests: New file.
69721         * tests/test-isnanl.c: New file.
69722
69723         * modules/isnanl: New file.
69724         * lib/isnanl.h: New file.
69725         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69726         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69727         gl_FUNC_ISNANL_WORKS.
69728         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69729         New macros.
69730
69731 2007-03-21  Bruno Haible  <bruno@clisp.org>
69732
69733         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69734         lib/isnanl.h.
69735         (Include): Update.
69736         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69737         * lib/vasnprintf.c: Update.
69738         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69739         tests/test-isnanl.h, remove tests/test-isnanl.c.
69740         (Makefile.am): Update.
69741         * tests/test-isnanl-nolibm.c: New file.
69742         * tests/test-isnanl.h: New file.
69743         * tests/test-isnanl.c: Remove file.
69744
69745 2007-03-21  Jim Meyering  <jim@meyering.net>
69746
69747         When trying to open ".", treat ESTALE like EACCES.
69748         * lib/savewd.c (savewd_save): Resort to forking not just upon
69749         failure with EACCES, but also when errno is ESTALE.
69750
69751 2007-03-20  Bruno Haible  <bruno@clisp.org>
69752
69753         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69754         Needed on AIX 5.1. Reported by Matthew Woehlke.
69755
69756 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69757
69758         Suggestions by Bruno Haible:
69759         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69760         our own.
69761         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69762         * modules/acl (Depends-on): Add gettext.
69763
69764 2007-03-19  Bruno Haible  <bruno@clisp.org>
69765
69766         * modules/iconvme: Remove file.
69767         * lib/iconvme.h: Remove file.
69768         * lib/iconvme.c: Remove file.
69769         * m4/iconvme.m4: Remove file.
69770
69771 2007-03-19  Bruno Haible  <bruno@clisp.org>
69772
69773         * doc/relocatable-maint.texi: Break long shell script line.
69774         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69775
69776 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69779         handle file_has_acl.
69780         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69781         * lib/acl.c: Move header inclusions and related macro defns into
69782         lib/acl-internal.h.
69783         (S_ISLNK): Remove defn, since that's now done for us.
69784         (file_has_acl): Move to lib/file-has-acl.c.
69785         Call acl_trivial if available.  This is the crucial part of the fix.
69786         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69787         shared within the library.  Rewrite a bit, partly to make it compatible
69788         with the GNU coding style.
69789         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69790         Remove unnecessary double-quotes.
69791         Don't test for acl_to_text; the build will catch that.
69792         Replace acl_entries if it doesn't exist and it is needed.
69793         Check for -lsec and acl_trivial (as used on Solaris 10).
69794         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69795         lib/file-has-acl.c.
69796         (Depends-on): Add sys_stat, for S_ISLNK.
69797
69798 2007-03-19  Ben Pfaff  <blp@gnu.org>
69799
69800         * doc/gnulib.texi: Fix typos.
69801         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69802
69803 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69804
69805         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69806         If size is zero here, buf must be zero.
69807
69808 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69809
69810         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69811         <bruno@clisp.org>.
69812
69813 2007-03-18  Bruno Haible  <bruno@clisp.org>
69814
69815         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69816         Suggested by Eric Blake.
69817
69818 2007-03-18  Ben Pfaff  <blp@gnu.org>
69819
69820         * doc/relocatable.texi: Recommend using as prefix a directory
69821         that does not exist and will never be created.  Based on
69822         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69823         and others.
69824
69825 2007-03-17  Bruno Haible  <bruno@clisp.org>
69826
69827         * lib/fchownat.c: Include lchown.h.
69828
69829 2007-03-17  Bruno Haible  <bruno@clisp.org>
69830
69831         Fix endless loop when the given allocated size was > INT_MAX.
69832         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
69833         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
69834         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
69835         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
69836         * lib/sprintf.c (sprintf): Likewise.
69837
69838 2007-03-17  Bruno Haible  <bruno@clisp.org>
69839
69840         * tests/test-argp-2.sh (func_compare): Output a context diff.
69841
69842 2007-03-17  Bruno Haible  <bruno@clisp.org>
69843
69844         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
69845         locale's decimal-point character.
69846
69847 2007-03-17  Bruno Haible  <bruno@clisp.org>
69848
69849         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
69850         before comparing it. Needed because on some platforms (e.g. x86) a
69851         'long double' occupies less bytes than sizeof (long double).
69852
69853 2007-03-17  Bruno Haible  <bruno@clisp.org>
69854
69855         * tests/test-crc.c (main): Make printf statements 64-bit clean.
69856         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
69857         * tests/test-getaddrinfo.c (simple): Likewise.
69858         * tests/test-read-file.c (main): Likewise.
69859
69860 2007-03-17  Bruno Haible  <bruno@clisp.org>
69861
69862         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
69863
69864 2007-03-17  Bruno Haible  <bruno@clisp.org>
69865
69866         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
69867         unused variable.
69868
69869 2007-03-17  Bruno Haible  <bruno@clisp.org>
69870
69871         * tests/test-c-strcasecmp.c: Include c-strcase.h.
69872         * tests/test-c-strncasecmp.c: Likewise.
69873
69874 2007-03-17  Bruno Haible  <bruno@clisp.org>
69875
69876         * modules/stdlib (Depends-on): Add unistd.
69877         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
69878         Needed for MacOS X 10.3.
69879
69880 2007-03-17  Bruno Haible  <bruno@clisp.org>
69881
69882         * lib/unistr/u-strdup.h: Include <stdlib.h>.
69883
69884 2007-03-17  Bruno Haible  <bruno@clisp.org>
69885
69886         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
69887
69888 2007-03-17  Bruno Haible  <bruno@clisp.org>
69889
69890         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
69891         to reflect files copied from gnulib (with or without modifications).
69892         Suggested by Jim Meyering.
69893
69894 2007-03-17  Eric Blake  <ebb9@byu.net>
69895
69896         * NEWS: Document stdlib change from 2007-02-18.
69897
69898 2007-03-17  Jim Meyering  <jim@meyering.net>
69899
69900         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
69901         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
69902         someone uses a name containing shell meta-characters.
69903         Reported by Alfred M. Szmidt.
69904
69905         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
69906
69907 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69908
69909         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
69910         and copy gettext configuration files only if configure.ac contains
69911         a use of AM_GNU_GETTEXT_VERSION.
69912
69913 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69914
69915         * build-aux/bootstrap (gnulib_name): New variable.
69916         (gnulib_tool_options): Use it.
69917
69918 2007-03-13  Simon Josefsson  <simon@josefsson.org>
69919
69920         * tests/test-des.c: Use new namespace.
69921
69922 2007-03-15  Bruno Haible  <bruno@clisp.org>
69923
69924         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
69925         Reported by James Youngman <jay@gnu.org>.
69926
69927 2007-03-15  Bruno Haible  <bruno@clisp.org>
69928
69929         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
69930         declared prototype. Needed with cc on OSF/1 5.1.
69931
69932 2007-03-15  Bruno Haible  <bruno@clisp.org>
69933
69934         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
69935         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
69936         (struct gl_list_implementation): Add dispose_fn argument to the
69937         'create_empty', 'create' methods.
69938         (struct gl_list_impl_base): Add field 'dispose_fn'.
69939         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
69940         argument.
69941         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
69942         dispose_fn argument.
69943         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
69944         dispose_fn on the dropped values.
69945         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
69946         dispose_fn argument.
69947         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
69948         dropped values.
69949         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
69950         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69951         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
69952         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69953         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
69954         argument.
69955         (gl_tree_list_free): Call dispose_fn on the dropped values.
69956         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
69957         the dropped values.
69958         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69959         Add dispose_fn argument.
69960         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
69961         Call dispose_fn on the dropped values.
69962         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
69963         Add dispose_fn argument.
69964         (gl_sublist_create): Initialize the 'dispose_fn' field.
69965         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
69966         * tests/test-array_list.c (main): Update.
69967         * tests/test-carray_list.c (main): Update.
69968         * tests/test-avltree_list.c (main): Update.
69969         * tests/test-rbtree_list.c (main): Update.
69970         * tests/test-avltreehash_list.c (main): Update.
69971         * tests/test-rbtreehash_list.c (main): Update.
69972         * tests/test-linked_list.c (main): Update.
69973         * tests/test-linkedhash_list.c (main): Update.
69974         * tests/test-array_oset.c (main): Update.
69975
69976 2007-03-15  Bruno Haible  <bruno@clisp.org>
69977
69978         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69979         (gl_oset_create_empty): Add dispose_fn argument.
69980         (struct gl_oset_implementation): Add dispose_fn argument to
69981         'create_empty' method.
69982         (struct gl_oset_impl_base): Add dispose_fn field.
69983         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69984         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69985         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69986         values.
69987         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69988         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69989         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69990         dropped value.
69991         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69992         dropped value.
69993         * tests/test-array_oset.c (main): Update.
69994         * tests/test-avltree_oset.c (main): Update.
69995         * tests/test-rbtree_oset.c (main): Update.
69996         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69997
69998 2007-03-13  Bruno Haible  <bruno@clisp.org>
69999
70000         * tests/test-stdbool.c (i): Update after last patch.
70001
70002 2007-03-12  Bruno Haible  <bruno@clisp.org>
70003
70004         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70005         the iswprint macro. Needed on Solaris 2.5.1.
70006
70007 2007-03-12  Bruno Haible  <bruno@clisp.org>
70008
70009         * tests/test-printf-frexp.c (main): Declare x as volatile.
70010
70011 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70012
70013         * doc/gnulib.texi (Build robot for gnulib): New section.
70014
70015 2007-03-12  Jim Meyering  <jim@meyering.net>
70016
70017         * build-aux/bootstrap: New file.
70018         * build-aux/bootstrap.conf: New file, from coreutils.
70019
70020 2007-03-11  Bruno Haible  <bruno@clisp.org>
70021
70022         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70023
70024 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70025
70026         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70027         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70028         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70029
70030 2007-03-11  Bruno Haible  <bruno@clisp.org>
70031
70032         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70033         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70034
70035 2007-03-11  Bruno Haible  <bruno@clisp.org>
70036
70037         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70038         formula. Needed for SunPRO C 5.0.
70039
70040 2007-03-11  Bruno Haible  <bruno@clisp.org>
70041
70042         * modules/long-options (Depends-on): Add getopt.
70043
70044 2007-03-11  Bruno Haible  <bruno@clisp.org>
70045
70046         * modules/modechange (Depends-on): Add stdbool.
70047
70048 2007-03-11  Bruno Haible  <bruno@clisp.org>
70049
70050         * modules/i-ring (Depends-on): Add stdbool.
70051
70052 2007-03-11  Bruno Haible  <bruno@clisp.org>
70053
70054         * modules/gc-des (Depends-on): Add stdbool.
70055
70056 2007-03-11  Bruno Haible  <bruno@clisp.org>
70057
70058         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70059
70060 2007-03-11  Bruno Haible  <bruno@clisp.org>
70061
70062         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70063
70064 2007-03-11  Bruno Haible  <bruno@clisp.org>
70065
70066         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70067
70068 2007-03-11  Bruno Haible  <bruno@clisp.org>
70069
70070         * lib/vasnprintf.c (sprintf): Undefine.
70071
70072 2007-03-11  Bruno Haible  <bruno@clisp.org>
70073
70074         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70075         initializers in SunPRO C and Compaq C compilers.
70076
70077 2007-03-11  Bruno Haible  <bruno@clisp.org>
70078
70079         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70080         decrementing code ANSI C compliant.
70081
70082 2007-03-11  Bruno Haible  <bruno@clisp.org>
70083
70084         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70085         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70086
70087 2007-03-11  Bruno Haible  <bruno@clisp.org>
70088
70089         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70090         <stdbool.h> substitute doesn't pass.
70091
70092 2007-03-11  Bruno Haible  <bruno@clisp.org>
70093
70094         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70095
70096 2007-03-11  Bruno Haible  <bruno@clisp.org>
70097
70098         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70099         script, for submission to autobuild.josefsson.org.
70100
70101 2007-03-10  Bruno Haible  <bruno@clisp.org>
70102
70103         * modules/canonicalize-lgpl-tests: New file.
70104         * tests/test-canonicalize-lgpl.sh: New file.
70105         * tests/test-canonicalize-lgpl.c: New file.
70106
70107         * modules/c-strcase-tests: New file.
70108         * tests/test-c-strcase.sh: New file.
70109         * tests/test-c-strcasecmp.c: New file.
70110         * tests/test-c-strncasecmp.c: New file.
70111
70112         * modules/atexit-tests: New file.
70113         * tests/test-atexit.sh: New file.
70114         * tests/test-atexit.c: New file.
70115
70116 2007-03-10  Bruno Haible  <bruno@clisp.org>
70117
70118         * tests/test-binary-io.sh: Use temporary filenames that are not so
70119         likely to clash with those of other tests (in a parallel make).
70120         * tests/test-binary-io.c: Likewise.
70121
70122 2007-03-10  Bruno Haible  <bruno@clisp.org>
70123
70124         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70125         fallback; use #error instead.
70126         Suggested by Simon Josefsson.
70127
70128 2007-03-10  Bruno Haible  <bruno@clisp.org>
70129
70130         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70131         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70132         first and the last.
70133
70134 2007-03-10  Bruno Haible  <bruno@clisp.org>
70135
70136         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70137
70138 2007-03-10  Bruno Haible  <bruno@clisp.org>
70139
70140         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70141         "make distcheck".
70142         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70143         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70144         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70145
70146 2007-03-10  Bruno Haible  <bruno@clisp.org>
70147
70148         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70149         variable.
70150         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70151         variable.
70152
70153 2007-03-09  Eric Blake  <ebb9@byu.net>
70154         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70155
70156         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70157         types are not being provided by gnulib.
70158         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70159         types are supported.
70160
70161 2007-03-10  Bruno Haible  <bruno@clisp.org>
70162
70163         * lib/stdio_.h (__attribute__): New macro.
70164         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70165         vsprintf): Specify __attribute__ __format__ for GCC.
70166         Suggested by Eric Blake.
70167
70168 2007-03-09  Bruno Haible  <bruno@clisp.org>
70169
70170         * modules/printf-posix-tests: New file.
70171         * tests/test-printf-posix.sh: New file.
70172         * tests/test-printf-posix.c: New file.
70173
70174         * modules/printf-posix: New file.
70175         * lib/printf.c: New file.
70176         * m4/printf-posix-rpl.m4: New file.
70177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70178         REPLACE_PRINTF.
70179         * lib/stdio_.h (printf): New declaration.
70180         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70181         ____strfmon____): New macros.
70182         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70183         REPLACE_PRINTF.
70184
70185 2007-03-09  Bruno Haible  <bruno@clisp.org>
70186
70187         * tests/test-vasnprintf-posix2.sh: New file.
70188         * tests/test-vasnprintf-posix2.c: New file.
70189         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70190         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70191         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70192
70193         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70194         a locale dependent decimal point, rather than always '.'.
70195
70196 2007-03-09  Eric Blake  <ebb9@byu.net>
70197
70198         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70199         spite of platforms like Tandem/NSK that define it to -1.
70200
70201 2007-03-08  Bruno Haible  <bruno@clisp.org>
70202
70203         * modules/vprintf-posix-tests: New file.
70204         * tests/test-vprintf-posix.sh: New file.
70205         * tests/test-vprintf-posix.c: New file.
70206         * tests/test-printf-posix.h: New file.
70207
70208         * modules/vprintf-posix: New file.
70209         * lib/vprintf.c: New file.
70210         * m4/vprintf-posix.m4: New file.
70211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70212         REPLACE_VPRINTF.
70213         * lib/stdio_.h (vprintf): New declaration.
70214         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70215         REPLACE_VPRINTF.
70216
70217 2007-03-08  Bruno Haible  <bruno@clisp.org>
70218
70219         * modules/fprintf-posix-tests: New file.
70220         * tests/test-fprintf-posix.sh: New file.
70221         * tests/test-fprintf-posix.c: New file.
70222
70223         * modules/fprintf-posix: New file.
70224         * lib/fprintf.c: New file.
70225         * m4/fprintf-posix.m4: New file.
70226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70227         REPLACE_FPRINTF.
70228         * lib/stdio_.h (fprintf): New declaration.
70229         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70230         REPLACE_FPRINTF.
70231
70232 2007-03-08  Bruno Haible  <bruno@clisp.org>
70233
70234         * modules/vfprintf-posix-tests: New file.
70235         * tests/test-vfprintf-posix.sh: New file.
70236         * tests/test-vfprintf-posix.c: New file.
70237         * tests/test-fprintf-posix.h: New file.
70238         * tests/test-fprintf-posix.out: New file.
70239
70240         * modules/vfprintf-posix: New file.
70241         * lib/vfprintf.c: New file.
70242         * m4/vfprintf-posix.m4: New file.
70243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70244         REPLACE_VFPRINTF.
70245         * lib/stdio_.h (vfprintf): New declaration.
70246         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70247         REPLACE_VFPRINTF.
70248
70249 2007-03-08  Bruno Haible  <bruno@clisp.org>
70250
70251         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70252
70253 2007-03-08  Bruno Haible  <bruno@clisp.org>
70254
70255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70256         instead of 'expr' invocations.
70257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70261         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70262         Suggested by Paul Eggert.
70263
70264 2007-03-08  Bruno Haible  <bruno@clisp.org>
70265
70266         * modules/fseterr-tests: New file.
70267         * tests/test-fseterr.c: New file.
70268
70269         * modules/fseterr: New file.
70270         * lib/fseterr.h: New file.
70271         * lib/fseterr.c: New file.
70272
70273 2007-03-08  Bruno Haible  <bruno@clisp.org>
70274
70275         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70276         * lib/getopt_.h: Likewise.
70277         * lib/mbswidth.h: Likewise.
70278         * lib/setenv.h: Likewise.
70279         * lib/vasnprintf.h: Likewise.
70280         * lib/vasprintf.h: Likewise.
70281         * lib/verror.h: Likewise.
70282         * lib/xsetenv.h: Likewise.
70283         * lib/xvasprintf.h: Likewise.
70284
70285 2007-03-08  Jim Meyering  <jim@meyering.net>
70286
70287         * users.txt: Add parted.
70288
70289         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70290
70291 2007-03-07  Bruno Haible  <bruno@clisp.org>
70292
70293         * m4/printf.m4: Make the shell script snippets copy&pastable.
70294
70295 2007-03-02  Bruno Haible  <bruno@clisp.org>
70296
70297         * lib/netinet_in_.h: New file.
70298         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70299         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70300         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70301         (Depends-on): Add absolute-header.
70302         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70303         into netinet/in.h.
70304
70305 2007-03-03  Bruno Haible  <bruno@clisp.org>
70306
70307         * lib/sys_select_.h: New file.
70308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70309         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70310         * modules/sys_select (Files): Add lib/sys_select_.h.
70311         (Depends-on): Add absolute-header.
70312         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70313         into sys/select.h.
70314
70315 2007-03-02  Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70318         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70319         values.
70320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70321         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70322         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70323         * modules/sys_socket (Depends-on): Add absolute-header.
70324         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70325         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70326         (Include): Remove requirement of inclusion of <sys/types.h>.
70327
70328 2007-03-02  Bruno Haible  <bruno@clisp.org>
70329
70330         * lib/byteswap_.h (bswap_32): Fix formula.
70331
70332 2007-03-06  Bruno Haible  <bruno@clisp.org>
70333
70334         * modules/sprintf-posix-tests: New file.
70335         * tests/test-sprintf-posix.c: New file.
70336
70337         * modules/sprintf-posix: New file.
70338         * lib/sprintf.c: New file.
70339         * m4/sprintf-posix.m4: New file.
70340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70341         REPLACE_SPRINTF.
70342         * lib/stdio_.h (sprintf): New declaration.
70343         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70344         REPLACE_SPRINTF.
70345
70346 2007-03-06  Bruno Haible  <bruno@clisp.org>
70347
70348         * modules/vsprintf-posix-tests: New file.
70349         * tests/test-vsprintf-posix.c: New file.
70350         * tests/test-sprintf-posix.h: New file.
70351
70352         * modules/vsprintf-posix: New file.
70353         * lib/vsprintf.c: New file.
70354         * m4/vsprintf-posix.m4: New file.
70355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70356         REPLACE_VSPRINTF.
70357         * lib/stdio_.h (vsprintf): New declaration.
70358         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70359         REPLACE_VSPRINTF.
70360
70361 2007-03-06  Bruno Haible  <bruno@clisp.org>
70362
70363         * modules/vsnprintf (Depend-on): Remove minmax.
70364
70365 2007-03-06  Bruno Haible  <bruno@clisp.org>
70366
70367         * modules/snprintf-posix-tests: New file.
70368         * tests/test-snprintf-posix.c: New file.
70369
70370         * modules/snprintf-posix: New file.
70371         * m4/snprintf-posix.m4: New file.
70372         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70373         gl_FUNC_SNPRINTF.
70374         (gl_FUNC_SNPRINTF): Invoke it.
70375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70376         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70377         is set.
70378         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70379
70380 2007-03-06  Bruno Haible  <bruno@clisp.org>
70381
70382         * modules/vsnprintf-posix-tests: New file.
70383         * tests/test-vsnprintf-posix.c: New file.
70384         * tests/test-snprintf-posix.h: New file.
70385
70386         * modules/vsnprintf-posix: New file.
70387         * m4/vsnprintf-posix.m4: New file.
70388         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70389         gl_FUNC_VSNPRINTF.
70390         (gl_FUNC_VSNPRINTF): Invoke it.
70391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70392         * lib/stdio_.h (vsnprintf): Define as a replacement if
70393         REPLACE_VSNPRINTF is set.
70394         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70395
70396 2007-03-06  Bruno Haible  <bruno@clisp.org>
70397
70398         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70399         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70400
70401 2007-03-06  Bruno Haible  <bruno@clisp.org>
70402
70403         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70404         (asinl): Declare also if HAVE_DECL_ASINL is set.
70405         (atanl): Declare also if HAVE_DECL_ATANL is set.
70406         (ceill): Declare also if HAVE_DECL_CEILL is set.
70407         (cosl): Declare also if HAVE_DECL_COSL is set.
70408         (expl): Declare also if HAVE_DECL_EXPL is set.
70409         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70410         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70411         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70412         (logl): Declare also if HAVE_DECL_LOGL is set.
70413         (sinl): Declare also if HAVE_DECL_SINL is set.
70414         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70415         (tanl): Declare also if HAVE_DECL_TANL is set.
70416         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70418         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70419         declaration of frexpl, ldexpl.
70420         * modules/printf-frexpl (Depends-on): Add math.
70421         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70422
70423 2007-03-05  Bruno Haible  <bruno@clisp.org>
70424
70425         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70426         frexpl and ldexpl are declared.
70427         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70428
70429 2007-03-05  Bruno Haible  <bruno@clisp.org>
70430
70431         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70432         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70433
70434 2007-03-05  Bruno Haible  <bruno@clisp.org>
70435
70436         * lib/stdio_.h: Include <stddef.h>.
70437
70438 2007-03-05  Bruno Haible  <bruno@clisp.org>
70439
70440         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70441
70442 2007-03-05  Bruno Haible  <bruno@clisp.org>
70443
70444         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70445         NetBSD 4, from Ralf Wildenhues.
70446
70447 2007-03-04  Bruno Haible  <bruno@clisp.org>
70448
70449         * lib/vasprintf.h: Update #if logic for the case when the functions
70450         exist but are overridden.
70451
70452 2007-03-04  Bruno Haible  <bruno@clisp.org>
70453
70454         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70455         implementations: glibc-2.4 and MacOS X 10.3.
70456         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70457         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70458         * tests/test-vasprintf-posix.c (test_function): Likewise.
70459
70460 2007-03-04  Bruno Haible  <bruno@clisp.org>
70461
70462         * modules/vasprintf-posix-tests: New file.
70463         * tests/test-vasprintf-posix.c: New file.
70464
70465         * modules/vasprintf-posix: New file.
70466         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70467         defined.
70468         * m4/vasprintf-posix.m4: New file.
70469         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70470         gl_FUNC_VASPRINTF.
70471         (gl_FUNC_VASPRINTF): Invoke it.
70472         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70473         here.
70474         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70475
70476 2007-03-04  Bruno Haible  <bruno@clisp.org>
70477
70478         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70479         REPLACE_GETTIMEOFDAY.
70480         * modules/sys_time (Makefile.am): Likewise.
70481         * m4/sys_time_h.m4: Likewise.
70482         * m4/gettimeofday.m4: Likewise.
70483
70484 2007-03-04  Bruno Haible  <bruno@clisp.org>
70485
70486         * modules/vasnprintf-posix-tests: New file.
70487         * tests/test-vasnprintf-posix.c: New file.
70488
70489         * modules/vasnprintf-posix: New file.
70490         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70491         printf-frexpl.h.
70492         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70493         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70494         REPLACE_VASNPRINTF is defined.
70495         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70496         gl_FUNC_VASNPRINTF.
70497         (gl_FUNC_VASNPRINTF): Invoke it.
70498         * m4/vasnprintf-posix.m4: New file.
70499         * m4/printf.m4: New file.
70500
70501 2007-03-04  Bruno Haible  <bruno@clisp.org>
70502
70503         Compile progreloc.c only if --enable-relocatable is specified.
70504         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70505         if --enable-relocatable was specified.
70506         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70507         lib_SOURCES.
70508
70509 2007-03-04  Jim Meyering  <jim@meyering.net>
70510
70511         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70512         Use it consistently, rather than enumerating errno constants.
70513
70514 2007-03-04  Bruno Haible  <bruno@clisp.org>
70515
70516         * modules/xvasprintf-tests: New file.
70517         * tests/test-xvasprintf.c: New file.
70518
70519         * modules/vasprintf-tests: New file.
70520         * tests/test-vasprintf.c: New file.
70521
70522         * modules/vasnprintf-tests: New file.
70523         * tests/test-vasnprintf.c: New file.
70524
70525         * modules/vsnprintf-tests: New file.
70526         * tests/test-vsnprintf.c: New file.
70527
70528         * modules/snprintf-tests: New file.
70529         * tests/test-snprintf.c: New file.
70530
70531 2007-03-04  Bruno Haible  <bruno@clisp.org>
70532
70533         Compile relocatable.c only if --enable-relocatable is specified.
70534         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70535         gl_RELOCATABLE_LIBRARY.
70536         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70537         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70538         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70539         gl_RELOCATABLE_LIBRARY.
70540         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70541         (Makefile.am): Remove lib_SOURCES.
70542         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70543         gl_RELOCATABLE_LIBRARY.
70544         (Makefile.am): Remove lib_SOURCES.
70545         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70546         always.
70547         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70548         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70549
70550 2007-03-04  Bruno Haible  <bruno@clisp.org>
70551
70552         * modules/argmatch-tests: New file.
70553         * tests/test-argmatch.c: New file.
70554
70555         * tests/test-allocsa.c (main): Halve the number of loop runs.
70556
70557         * modules/alloca-opt-tests: New file.
70558         * tests/test-alloca-opt.c: New file.
70559
70560 2007-03-04  Jim Meyering  <jim@meyering.net>
70561
70562         Work around difference between Linux ACLs and Solaris 10 ZFS.
70563         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70564         for EINVAL.
70565
70566 2007-03-03  Bruno Haible  <bruno@clisp.org>
70567
70568         * modules/relocatable-prog (Depends-on): Add back progreloc's
70569         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70570
70571 2007-03-03  Bruno Haible  <bruno@clisp.org>
70572
70573         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70574         * modules/relocatable-lib: New file.
70575
70576 2007-03-03  Bruno Haible  <bruno@clisp.org>
70577
70578         * modules/relocatable-prog: Renamed from modules/relocatable.
70579         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70580
70581 2007-03-03  Bruno Haible  <bruno@clisp.org>
70582
70583         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70584         m4/relocatable-lib.m4.
70585         (Depends-on): Remove 'relocatable'.
70586         (configure.ac): Add gl_RELOCATABLE_NOP.
70587
70588 2007-03-03  Bruno Haible  <bruno@clisp.org>
70589
70590         * modules/relocatable-prog-wrapper: New file.
70591         * modules/relocatable (Depends-on): Add it. Remove all other
70592         dependencies except progname.
70593         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70594
70595         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70596         (gl_FUNC_STRERROR): Nop.
70597         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70598
70599         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70600         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70601
70602         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70603         (gl_FUNC_READLINK): Update.
70604
70605         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70606
70607 2007-03-03  Bruno Haible  <bruno@clisp.org>
70608
70609         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70610         * modules/xreadlink (Depends-on): Add unistd.
70611         * modules/xreadlink-with-size (Depends-on): Likewise.
70612
70613 2007-03-03  Bruno Haible  <bruno@clisp.org>
70614
70615         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70616         extracted from gt_FUNC_SETENV.
70617         (gt_FUNC_SETENV): Remove macro.
70618         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70619         remove gt_FUNC_SETENV.
70620
70621 2007-03-03  Bruno Haible  <bruno@clisp.org>
70622
70623         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70624         ENABLE_RELOCATABLE here.
70625         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70626
70627 2007-03-03  Bruno Haible  <bruno@clisp.org>
70628
70629         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70630         * tests/test-rbtreehash_list.c: Include progname.h.
70631         (main): Call set_program_name.
70632
70633         * modules/rbtree-oset-tests (Depends-on): Add progname.
70634         * tests/test-rbtree_oset.c: Include progname.h.
70635         (main): Call set_program_name.
70636
70637         * modules/rbtree-list-tests (Depends-on): Add progname.
70638         * tests/test-rbtree_list.c: Include progname.h.
70639         (main): Call set_program_name.
70640
70641         * modules/linked-list-tests (Depends-on): Add progname.
70642         * tests/test-linked_list.c: Include progname.h.
70643         (main): Call set_program_name.
70644
70645 2007-03-03  Bruno Haible  <bruno@clisp.org>
70646
70647         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70648         All uses of __restrict changed to _Restrict_.
70649         * lib/glob_.h (__restrict): Remove macro.
70650
70651 2007-03-02  Bruno Haible  <bruno@clisp.org>
70652
70653         * modules/gettext (configure.ac): Require gettext infrastructure
70654         from version 0.16.1.
70655
70656 2007-03-02  Bruno Haible  <bruno@clisp.org>
70657
70658         * modules/linkedhash-list-tests (Depends-on): Add progname.
70659         * tests/test-linkedhash_list.c: Include progname.h.
70660         (main): Call set_program_name.
70661
70662         * modules/carray-list-tests (Depends-on): Add progname.
70663         * tests/test-carray_list.c: Include progname.h.
70664         (main): Call set_program_name.
70665
70666         * modules/avltreehash-list-tests (Depends-on): Add progname.
70667         * tests/test-avltreehash_list.c: Include progname.h.
70668         (main): Call set_program_name.
70669
70670         * modules/avltree-oset-tests (Depends-on): Add progname.
70671         * tests/test-avltree_oset.c: Include progname.h.
70672         (main): Call set_program_name.
70673
70674         * modules/avltree-list-tests (Depends-on): Add progname.
70675         * tests/test-avltree_list.c: Include progname.h.
70676         (main): Call set_program_name.
70677
70678         * modules/array-oset-tests (Depends-on): Add progname.
70679         * tests/test-array_oset.c: Include progname.h.
70680         (main): Call set_program_name.
70681
70682         * modules/array-list-tests (Depends-on): Add progname.
70683         * tests/test-array_list.c: Include progname.h.
70684         (main): Call set_program_name.
70685
70686         * modules/argp-tests (Depends-on): Add progname.
70687         * tests/test-argp.c: Include argp.h first. Include progname.h.
70688         (main): Call set_program_name.
70689
70690 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * doc/gnulib-tool.texi (Initial import): Reword description of
70693         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70694         limited effect even if defined after the first system include.
70695
70696 2007-03-01  Bruno Haible  <bruno@clisp.org>
70697
70698         * build-aux/config.libpath: Update to libtool-1.5.22.
70699         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70700
70701 2007-03-01  Bruno Haible  <bruno@clisp.org>
70702
70703         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70704         foo_CFLAGS.
70705         Reported by Ralf Wildenhues.
70706
70707 2007-03-01  Bruno Haible  <bruno@clisp.org>
70708
70709         * build-aux/install-reloc: Remove object files left over by some
70710         compilers.
70711         Reported by Ralf Wildenhues.
70712
70713 2007-03-01  Bruno Haible  <bruno@clisp.org>
70714
70715         * build-aux/install-reloc: Break long lines.
70716
70717 2007-03-01  Bruno Haible  <bruno@clisp.org>
70718
70719         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70720         Reported by Ralf Wildenhues.
70721
70722 2007-03-01  Bruno Haible  <bruno@clisp.org>
70723
70724         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70725         include ordering constraints.
70726
70727 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70730         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70731         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70732         as another example.
70733         * lib/time_.h: Fix misspelling.
70734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70735         Require gl_HEADER_TIME_H_DEFAULTS.
70736         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70737         * m4/time_r.m4 (gl_TIME_R): Likewise.
70738         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70739
70740 2007-03-01  Bruno Haible  <bruno@clisp.org>
70741
70742         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70743         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70744
70745 2007-03-01  Jim Meyering  <jim@meyering.net>
70746
70747         * modules/xreadlink (Maintainer): Add my name.
70748         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70749
70750 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70751             Bruno Haible  <bruno@clisp.org>
70752
70753         * build-aux/install-reloc: Compile also c-ctype.c.
70754         * build-aux/relocatable.sh.in: New file.
70755         * doc/relocatable.texi: New file.
70756         * doc/relocatable-maint.texi: New file.
70757         * doc/gnulib.texi: Include relocatable-maint.texi.
70758         * lib/progreloc.c: Include unistd.h unconditionally.
70759         * lib/relocwrapper.c: Include unistd.h unconditionally.
70760         Include c-ctype.h.
70761         (add_dotbin): Use c_tolower.
70762         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70763         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70764         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70765         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70766         to m4/relocatable-lib.m4.
70767         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70768         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70769         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70770         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70771         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70772         * modules/relocatable: New file.
70773         * modules/relocatable-lib: New file.
70774         * modules/relocatable-script: New file.
70775
70776 2007-02-28  Bruno Haible  <bruno@clisp.org>
70777
70778         Import --enable-relocatable infrastructure.
70779         * build-aux/config.libpath: New file, from GNU gettext.
70780         * build-aux/install-reloc: New file, from GNU gettext.
70781         * build-aux/reloc-ldflags: New file, from GNU gettext.
70782         * lib/relocatable.h: New file, from GNU gettext.
70783         * lib/relocatable.c: New file, from GNU gettext.
70784         * lib/relocwrapper.c: New file, from GNU gettext.
70785         * m4/relocatable.m4: New file, from GNU gettext.
70786
70787 2007-02-28  Bruno Haible  <bruno@clisp.org>
70788
70789         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70790
70791         * modules/xreadlink: New file, from GNU gettext with modifications.
70792         * lib/xreadlink.c: New file, from GNU gettext.
70793         * lib/xreadlink.h: Add comments.
70794         (xreadlink): New declaration.
70795
70796         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70797         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70798         lib/xreadlink-with-size.c.
70799         (configure.ac): Remove gl_XREADLINK invocation.
70800         (Makefile.am): Augment lib_SOURCES.
70801         * m4/xreadlink.m4: Remove file.
70802         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70803         (xreadlink_with_size): Renamed from xreadink.
70804         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70805         * modules/canonicalize (Depends-on): Replace xreadlink with
70806         xreadlink-with-size.
70807         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70808
70809 2007-02-25  Jim Meyering  <jim@meyering.net>
70810
70811         * build-aux/announce-gen: When complaining about excess arguments,
70812         list them.
70813
70814 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70815
70816         * README: Document signed integer overflow situation more
70817         accurately.
70818
70819 2007-02-25  Bruno Haible  <bruno@clisp.org>
70820
70821         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70822         'a' or 'A' conversion.
70823
70824 2007-02-25  Bruno Haible  <bruno@clisp.org>
70825
70826         * modules/filename: Renamed from modules/pathname.
70827         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70828         lib/concatpath.c with lib/concat-filename.c.
70829         (Makefile.am): Update.
70830         (Include): Replace pathname.h with filename.h.
70831         * lib/filename.h: Renamed from lib/pathname.h.
70832         (concatenated_filename): Renamed from concatenated_pathname.
70833         * lib/concat-filename.c: Renamed from lib/concatpath.c.
70834         (concatenated_filename): Renamed from concatenated_pathname.
70835         * lib/findprog.c: Include filename.h instead of pathname.h.
70836         (find_in_path): Update.
70837         * lib/javacomp.c: Include filename.h instead of pathname.h.
70838         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70839         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70840         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70841         is_oldgcj_14_13_usable, is_javac_usable): Update.
70842         * lib/javaexec.c: Include filename.h instead of pathname.h.
70843         (execute_java_class): Update.
70844         * modules/findprog: Update.
70845         * modules/javacomp: Update.
70846         * modules/javaexec: Update.
70847         * MODULES.html.sh (File system functions): Add 'filename', remove
70848         'pathname'.
70849
70850 2007-02-25  Bruno Haible  <bruno@clisp.org>
70851
70852         * modules/printf-frexpl-tests: New file.
70853         * tests/test-printf-frexpl.c: New file.
70854
70855         * modules/printf-frexpl: New file.
70856         * lib/printf-frexpl.h: New file.
70857         * lib/printf-frexpl.c: New file.
70858         * m4/printf-frexpl.m4: New file.
70859
70860 2007-02-25  Bruno Haible  <bruno@clisp.org>
70861
70862         * modules/printf-frexp-tests: New file.
70863         * tests/test-printf-frexp.c: New file.
70864
70865         * modules/printf-frexp: New file.
70866         * lib/printf-frexp.h: New file.
70867         * lib/printf-frexp.c: New file.
70868         * m4/printf-frexp.m4: New file.
70869
70870 2007-02-25  Bruno Haible  <bruno@clisp.org>
70871
70872         Assume automake >= 1.10 for the tests.
70873         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
70874         * modules/arctwo-tests: Likewise.
70875         * modules/argp-tests: Likewise.
70876         * modules/avltree-list-tests: Likewise.
70877         * modules/avltree-oset-tests: Likewise.
70878         * modules/avltreehash-list-tests: Likewise.
70879         * modules/carray-list-tests: Likewise.
70880         * modules/crc-tests: Likewise.
70881         * modules/des-tests: Likewise.
70882         * modules/gc-arcfour-tests: Likewise.
70883         * modules/gc-arctwo-tests: Likewise.
70884         * modules/gc-des-tests: Likewise.
70885         * modules/gc-hmac-md5-tests: Likewise.
70886         * modules/gc-hmac-sha1-tests: Likewise.
70887         * modules/gc-md2-tests: Likewise.
70888         * modules/gc-md4-tests: Likewise.
70889         * modules/gc-md5-tests: Likewise.
70890         * modules/gc-pbkdf2-sha1-tests: Likewise.
70891         * modules/gc-rijndael-tests: Likewise.
70892         * modules/gc-sha1-tests: Likewise.
70893         * modules/gc-tests: Likewise.
70894         * modules/getaddrinfo-tests: Likewise.
70895         * modules/hmac-md5-tests: Likewise.
70896         * modules/hmac-sha1-tests: Likewise.
70897         * modules/linked-list-tests: Likewise.
70898         * modules/linkedhash-list-tests: Likewise.
70899         * modules/lock-tests: Likewise.
70900         * modules/md2-tests: Likewise.
70901         * modules/md4-tests: Likewise.
70902         * modules/md5-tests: Likewise.
70903         * modules/rbtree-list-tests: Likewise.
70904         * modules/rbtree-oset-tests: Likewise.
70905         * modules/rbtreehash-list-tests: Likewise.
70906         * modules/read-file-tests: Likewise.
70907         * modules/rijndael-tests: Likewise.
70908         * modules/stdint-tests: Likewise.
70909         * modules/tls-tests: Likewise.
70910
70911 2007-02-24  Bruno Haible  <bruno@clisp.org>
70912
70913         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
70914         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
70915         function; instead check whether isnan with a double argument links.
70916         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
70917         function; instead check whether isnan with a 'long double' argument
70918         links.
70919         Reported by Eric Blake <ebb9@byu.net>.
70920
70921 2007-02-24  Bruno Haible  <bruno@clisp.org>
70922
70923         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
70924         defined.
70925         * lib/isnanl.c: Remove all code. Just include isnan.c.
70926         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
70927
70928 2007-02-25  Jim Meyering  <jim@meyering.net>
70929
70930         Avoid conflicting types for 'unsetenv' on FreeBSD.
70931         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
70932         conflicting with FreeBSD's (5.0 and 6.1) function declaration
70933         in stdlib.h.
70934
70935 2007-02-24  Bruno Haible  <bruno@clisp.org>
70936
70937         * modules/isnanl-nolibm-tests: New file.
70938         * tests/test-isnanl.c: New file.
70939
70940         * modules/isnanl-nolibm: New file.
70941         * lib/isnanl.h: New file.
70942         * lib/isnanl.c: New file.
70943         * m4/isnanl.m4: New file.
70944
70945 2007-02-24  Bruno Haible  <bruno@clisp.org>
70946
70947         * modules/isnan-nolibm-tests: New file.
70948         * tests/test-isnan.c: New file.
70949
70950         * modules/isnan-nolibm: New file.
70951         * lib/isnan.h: New file.
70952         * lib/isnan.c: New file.
70953         * m4/isnan.m4: New file.
70954
70955 2007-02-24  Bruno Haible  <bruno@clisp.org>
70956
70957         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
70958         assume that an exponent fits in 20 bits.
70959
70960 2007-02-24  Jim Meyering  <jim@meyering.net>
70961
70962         * m4/regex.m4: Update the description of the configure-time option,
70963         --without-included-regex, to state accurately what the defaults are,
70964         and perhaps to give people an idea why using this option is risky.
70965
70966 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
70969         loops on small arguments.  This attempts to avoid the problem
70970         Bruno Haible reported for AIX 4.3.2 in
70971         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
70972
70973 2007-02-23  Bruno Haible  <bruno@clisp.org>
70974
70975         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
70976         Needed for help2man.
70977
70978 2007-02-23  Karl Berry  <karl@gnu.org>
70979
70980         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70981         exists, foo.h should be cvs-ignored, not committed.
70982
70983 2007-02-23  Eric Blake  <ebb9@byu.net>
70984
70985         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70986         * lib/stat-time.h (includes): Likewise.
70987         * lib/utimecmp.c (includes): Likewise.
70988         * lib/utimens.h (includes): Likewise.
70989         * lib/getdate.y (includes): Also include "timespec.h" for use
70990         internal to the module.
70991         * modules/utimens (Depends-on): Revert yesterday's patch.
70992         * modules/nanosleep (Depends-on): Add missing dependency.
70993
70994 2007-02-22  Bruno Haible  <bruno@clisp.org>
70995
70996         * lib/glob.c: Don't include getlogin_r.h.
70997
70998 2007-02-22  Jim Meyering  <jim@meyering.net>
70999
71000         * modules/utimens (Depends-on): Add timespec, required for
71001         utimens.h's inclusion of timespec.h.
71002
71003 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71006         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71007         Schwab in
71008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71009         I'll try to think of a better way to fix the Solaris problem.
71010
71011         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71012         like glibc; on Solaris 10, it fails with errno == EINVAL.
71013         POSIX says the behavior is unspecified if the first argument is NULL,
71014         so play it safe and never pass NULL to the system getcwd.
71015
71016 2007-02-21  Jim Meyering  <jim@meyering.net>
71017
71018         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71019         of gettimeofday.  It would conflict with the one now always
71020         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71021         an IRIX 6.5 build failure.
71022
71023 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71024
71025         Minor fixups to port to Solaris 10 with Sun C 5.8.
71026         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71027         * modules/getcwd (Depends-on): Add dirfd.
71028         * lib/putenv.c (putenv): #undef it.
71029         (rpl_putenv): New decl.
71030         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71031
71032 2007-02-20  Bruno Haible  <bruno@clisp.org>
71033
71034         * modules/stdio-tests: New file.
71035         * tests/test-stdio.c: New file.
71036
71037         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71038         (Depends-on): Add stdio.
71039         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71040         (Include): Use <stdio.h> instead of vsnprintf.h.
71041         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71042         HAVE_DECL_VSNPRINTF.
71043         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71044
71045         * modules/snprintf (Files): Remove lib/snprintf.h.
71046         (Depends-on): Add stdio.
71047         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71048         (Include): Use <stdio.h> instead of snprintf.h.
71049         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71050         HAVE_DECL_SNPRINTF.
71051         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71052         * lib/getaddrinfo.c: Likewise.
71053
71054         * modules/stdio: New file.
71055         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71056         * lib/snprintf.h: Remove file.
71057         * lib/vsnprintf.h: Remove file.
71058         * lib/.cppi-disable: Remove snprintf.h.
71059         * m4/stdio_h.m4: New file.
71060         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71061
71062 2007-02-20  Jim Meyering  <jim@meyering.net>
71063
71064         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71065         used by e.g., mingw.  From Bruno Haible.
71066
71067 2007-02-19  Bruno Haible  <bruno@clisp.org>
71068
71069         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71070         warnings.
71071         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71072
71073 2007-02-19  Bruno Haible  <bruno@clisp.org>
71074
71075         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71076         from mingw users.
71077
71078 2007-02-19  Bruno Haible  <bruno@clisp.org>
71079
71080         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71081         warnings.
71082         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71083
71084 2007-02-19  Jim Meyering  <jim@meyering.net>
71085
71086         Don't use FD after a successful "fdopendir (fd)".
71087         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71088         Reset it by calling dirfd on the just-obtained DIR*.
71089
71090         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71091         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71092
71093 2007-02-18  Bruno Haible  <bruno@clisp.org>
71094
71095         * lib/readlink.c: Include <unistd.h>.
71096         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71097         HAVE_READLINK.
71098         * modules/readlink (Depends-on): Add unistd.
71099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71100         (Include): Add <unistd.h>.
71101
71102         * lib/getlogin_r.h: Remove file.
71103         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71104         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71105         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71106         HAVE_DECL_GETLOGIN_R.
71107         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71108         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71109         (Include): Use <unistd.h> instead of getlogin_r.h.
71110
71111         * lib/getcwd.h: Remove file.
71112         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71113         * lib/xgetcwd.c: Likewise.
71114         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71115         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71116         * modules/getcwd (Files): Remove lib/getcwd.h.
71117         (Depends-on): Add unistd.
71118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71119         (Include): Use <unistd.h> instad of getcwd.h.
71120
71121         * lib/ftruncate.c: Include <unistd.h> first.
71122         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71123         Set HAVE_FTRUNCATE.
71124         * modules/ftruncate (Depends-on): Add unistd.
71125         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71126
71127         * lib/fchdir.c: Include <unistd.h> first.
71128         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71130         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71131         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71132         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71133
71134         * lib/dup2.c: Include <unistd.h> first.
71135         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71136         HAVE_DUP2.
71137         * modules/dup2 (Depends-on): Add unistd.
71138         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71139
71140         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71141         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71142         REPLACE_CHOWN. Don't define chown as a macro here.
71143         * modules/chown (Depends-on): Add unistd.
71144         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71145
71146         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71147         Add definition for GL_LINK_WARNING.
71148         (chown, dup2): New declarations.
71149         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71150         link warning.
71151         (ftruncate): New declaration.
71152         (getcwd): New declaration, taken from old getcwd.h.
71153         (getlogin_r): New declaration, taken from old getlogin_r.h.
71154         (readlink): New declaration.
71155         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71156         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71157         (gl_PREREQ_UNISTD): Remove macro.
71158         (gl_UNISTD_MODULE_INDICATOR): New macro.
71159         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71160         many new variables. Don't set UNISTD_H.
71161         * modules/unistd (Description): Change.
71162         (Depends-on): Add link-warning.
71163         (configure.ac): Update.
71164         (Makefile.am): Create unistd.h always. Substitute many new variables
71165         into it.
71166
71167 2007-02-18  Bruno Haible  <bruno@clisp.org>
71168
71169         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71170         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71171         HAVE_GETSUBOPT.
71172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71173         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71174         * lib/getsubopt.h: Remove file.
71175         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71176         (Depends-on): Add stdlib.
71177         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71178         (Includes): Use <stdlib.h> instead of getsubopt.h.
71179         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71180         Set HAVE_GETSUBOPT.
71181         * lib/getsubopt.c: Don't include getsubopt.h.
71182
71183 2007-02-18  Bruno Haible  <bruno@clisp.org>
71184
71185         * modules/fchdir (Depends-on): Add dup2.
71186
71187 2007-02-18  Bruno Haible  <bruno@clisp.org>
71188
71189         * lib/stdlib_.h: Handle glibc's special invocation convention
71190         specially.
71191
71192 2007-02-18  Bruno Haible  <bruno@clisp.org>
71193
71194         * modules/stdlib-tests: New file.
71195         * tests/test-stdlib.c: New file.
71196
71197         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71198         (Depends-on): Add stdlib.
71199         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71200         (Includes): Use <stdlib.h> instead of mkstemp.h.
71201         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71202         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71203         * lib/mkstemp.c: Don't include mkstemp.h.
71204         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71205         * lib/stdlib--.h: Don't include mkstemp.h.
71206
71207         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71208         (Depends-on): Add stdlib.
71209         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71210         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71211         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71212         HAVE_MKDTEMP.
71213         * lib/mkdtemp.c: Don't include mkdtemp.h.
71214         * lib/clean-temp.c: Don't include mkdtemp.h.
71215
71216         * modules/exit (Files): Remove lib/exit.h.
71217         (Depends-on): Add stdlib.
71218         (Makefile.am): Remove lib_SOURCES.
71219         (Include): Use <stdlib.h> instead of exit.h.
71220         * lib/argmatch.c: Don't include exit.h.
71221         * lib/execute.c: Likewise.
71222         * lib/pagealign_alloc.c: Likewise.
71223         * lib/pipe.c: Likewise.
71224         * lib/wait-process.c: Likewise.
71225         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71226         * lib/exitfail.c: Likewise.
71227         * lib/savewd.c: Likewise.
71228         * lib/xsetenv.c: Likewise.
71229
71230         * modules/stdlib: New file.
71231         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71232         and extra comments about mkstemp().
71233         * lib/exit.h: Remove file.
71234         * lib/mkdtemp.h: Remove file.
71235         * lib/mkstemp.h: Remove file.
71236         * m4/stdlib_h.m4: New file.
71237         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71238
71239 2007-02-18  Bruno Haible  <bruno@clisp.org>
71240
71241         * modules/math-tests: New file.
71242         * tests/test-math.c: New file.
71243
71244         * modules/math: New file.
71245         * modules/mathl (Files): Remove lib/mathl.h.
71246         (Depends-on): Add math.
71247         (Makefile.am): Don't mention mathl.h.
71248         (Include): Use <math.h> instead of mathl.h.
71249         * lib/math_.h: New file.
71250         * lib/mathl.h: Remove file.
71251         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71252         mathl.h.
71253         * lib/asinl.c: Likewise.
71254         * lib/atanl.c: Likewise.
71255         * lib/ceill.c: Likewise.
71256         * lib/cosl.c: Likewise.
71257         * lib/expl.c: Likewise.
71258         * lib/floorl.c: Likewise.
71259         * lib/frexpl.c: Likewise.
71260         * lib/ldexpl.c: Likewise.
71261         * lib/logl.c: Likewise.
71262         * lib/sincosl.c: Likewise.
71263         * lib/sinl.c: Likewise.
71264         * lib/sqrtl.c: Likewise.
71265         * lib/tanl.c: Likewise.
71266         * lib/trigl.c: Likewise.
71267         * m4/math_h.m4: New file.
71268         * MODULES.html.sh (Mathematics): Add math.
71269
71270 2007-02-17  Bruno Haible  <bruno@clisp.org>
71271
71272         * modules/wctype-tests: New file.
71273         * tests/test-wctype.c: New file.
71274
71275         * modules/wchar-tests: New file.
71276         * tests/test-wchar.c: New file.
71277
71278         * modules/unistd-tests: New file.
71279         * tests/test-unistd.c: New file.
71280
71281         * modules/time-tests: New file.
71282         * tests/test-time.c: New file.
71283
71284         * modules/sysexits-tests: New file.
71285         * tests/test-sysexits.c: New file.
71286
71287         * modules/sys_time-tests: New file.
71288         * tests/test-sys_time.c: New file.
71289
71290         * modules/sys_stat-tests: New file.
71291         * tests/test-sys_stat.c: New file.
71292
71293         * modules/sys_socket-tests: New file.
71294         * tests/test-sys_socket.c: New file.
71295
71296         * modules/sys_select-tests: New file.
71297         * tests/test-sys_select.c: New file.
71298
71299         * modules/string-tests: New file.
71300         * tests/test-string.c: New file.
71301
71302         * modules/stdbool-tests: New file.
71303         * tests/test-stdbool.c: New file.
71304
71305         * modules/netinet_in-tests: New file.
71306         * tests/test-netinet_in.c: New file.
71307
71308         * modules/inttypes-tests: New file.
71309         * tests/test-inttypes.c: New file.
71310
71311         * modules/fcntl-tests: New file.
71312         * tests/test-fcntl.c: New file.
71313
71314         * modules/byteswap-tests: New file.
71315         * tests/test-byteswap.c: New file.
71316
71317         * modules/arpa_inet-tests: New file.
71318         * tests/test-arpa_inet.c: New file.
71319
71320 2007-02-17  Bruno Haible  <bruno@clisp.org>
71321
71322         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71323         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71324         if the corresponding module is not enabled. Emit link warnings if
71325         the function is used nevertheless.
71326         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71327         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71328         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71329         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71330         * modules/inttypes (Depends-on): Add link-warning.
71331         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71332         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71333         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71334         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71335         * modules/imaxdiv (configure.ac): Likewise.
71336         * modules/strtoimax (configure.ac): Likewise.
71337         * modules/strtoumax (configure.ac): Likewise.
71338
71339 2007-02-17  Bruno Haible  <bruno@clisp.org>
71340
71341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71342         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71343         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71344         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71345
71346 2007-02-17  Bruno Haible  <bruno@clisp.org>
71347
71348         * modules/link-warning: New file.
71349         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71350         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71351         * modules/string (Depends-on): Add link-warning.
71352         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71353         string.h.
71354         * MODULES.html.sh (Support for building libraries and executables): Add
71355         link-warning.
71356
71357 2007-02-17  Bruno Haible  <bruno@clisp.org>
71358
71359         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71360         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71361         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71362         long lines.
71363
71364 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71365             Bruno Haible  <bruno@clisp.org>
71366
71367         * modules/tmpfile: New file.
71368         * lib/tmpfile.c: New file.
71369         * m4/tmpfile.m4: New file.
71370         * MODULES.html.sh (func_all_modules): New section "Input/output".
71371
71372 2007-02-15  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71375         (supports_delete_on_close): New function.
71376         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71377
71378 2007-02-14  Bruno Haible  <bruno@clisp.org>
71379
71380         * modules/mbspcasecmp-tests: New file.
71381         * tests/test-mbspcasecmp.sh: New file.
71382         * tests/test-mbspcasecmp.c: New file.
71383
71384         New module mbspcasecmp.
71385         * modules/mbspcasecmp: New file.
71386         * lib/mbspcasecmp.c: New file.
71387         * lib/string_.h (strncasecmp): Change warning message.
71388         (mbspcasecmp): New declaration.
71389         * m4/mbspcasecmp.m4: New file.
71390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71391         GNULIB_MBSPCASECMP.
71392         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71393         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71394
71395 2007-02-14  Bruno Haible  <bruno@clisp.org>
71396
71397         * modules/mbsncasecmp-tests: New file.
71398         * tests/test-mbsncasecmp.sh: New file.
71399         * tests/test-mbsncasecmp.c: New file.
71400
71401         New module mbsncasecmp.
71402         * modules/mbsncasecmp: New file.
71403         * lib/mbsncasecmp.c: New file.
71404         * lib/string_.h (mbsncasecmp): New declaration.
71405         * m4/mbsncasecmp.m4: New file.
71406         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71407         GNULIB_MBSNCASECMP.
71408         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71409         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71410
71411 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71414         Verify that it doesn't overlap with our flags.
71415         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71416         do not have the desired effect in multibyte locales; instead, use
71417         mbscasecmp.
71418         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71419         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71420         we don't require GNU fnmatch ourselves (if our users require it, they
71421         should do so explicitly).
71422
71423         Fix regex code so it doesn't rely on strcasecmp.
71424         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71425         Otherwise, include gnulib's langinfo.h.
71426         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71427         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71428         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71429         * modules/regex (FILES): Remove m4/codeset.m4.
71430         (Depends-on): Add localcharset.  Remove strcase.
71431
71432 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71433
71434         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71435         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71436
71437 2007-02-13  Bruno Haible  <bruno@clisp.org>
71438
71439         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71440         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71441
71442 2007-02-12  Bruno Haible  <bruno@clisp.org>
71443
71444         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71445         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71446         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71447         time warning rather than a link error.
71448
71449 2007-02-12  Bruno Haible  <bruno@clisp.org>
71450
71451         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71452         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71453         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71454
71455 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71458         args, not 2.
71459
71460 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71461
71462         New module 'time', so that apps can include <time.h> as per
71463         POSIX and GNU instead of separate include files like time_r.h
71464         and timegm.h.  This implementation tries out a simpler approach
71465         for replacing decls in standard include files (as compared to
71466         the string module), somewhat as an experiment.
71467
71468         * config/srclist.txt: Comment out mktime.c for now.
71469         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71470         since it doesn't apply any more.  Use generic wording instead.
71471         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71472         'time'.
71473         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71474         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71475         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71476         Don't include <sys/types.h>; no longer needed since we assume C89.
71477         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71478         * lib/strftime.c: Likewise.
71479         * lib/time_r.c: Likewise.
71480         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71481         * lib/nanosleep.c: Include <time.h> first, to check interface.
71482         * lib/strptime.c: Likewise.
71483         * lib/time_r.c: Likewise.
71484         * lib/timegm.c: Likewise.
71485         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71486         needed.
71487         * lib/timegm.c: Don't include timegm.h; no longer needed.
71488         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71489         time.h now handles any problems in that area.
71490         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71491         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71492         that time.h defines struct timespec.
71493         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71494         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71495         handles that.
71496         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71497         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71498         needed.  Set REPLACE_LOCALTIME.
71499         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71500         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71501         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71502         nanosleep; time_h.m4 now does that.  Don't require
71503         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71504         module handles this now.
71505         * modules/getdate (Depends-on): Remove timespec.  Add time.
71506         * modules/nanosleep (Depends-on): Likewise.
71507         * modules/stat-time (Depends-on): Likewise.
71508         * modules/nanosleep (Include): Include time.h, not timespec.h.
71509         * modules/strptime (Files): Remove lib/strptime.h.
71510         (Depends-on): Add extensions, time.
71511         (Include): Include time.h, not strptime.h.
71512         * modules/time_r (Files): Remove lib/time_r.h.
71513         (Depends-on): Add time.
71514         (Include): Include time.h, not time_r.h.
71515         * modules/timegm: Likewise.
71516         * modules/timespec (Description): Now does timespec-related decls
71517         of our own, instead of struct timespec itself.
71518         (Depends-on): Add time; remove extensions.
71519         (Maintainer): Add self.
71520         * modules/utimecmp (Depends-on): Add time; remove timespec.
71521         * modules/utimens (Depends-on): Likewise.
71522         * modules/xnanosleep (Depends-on): Likewise.
71523
71524 2007-02-11  Bruno Haible  <bruno@clisp.org>
71525
71526         * lib/c-strstr.c: Include allocsa.h.
71527         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71528         * lib/c-strcasestr.c: Include allocsa.h.
71529         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71530         * lib/strcasestr.c: Include allocsa.h.
71531         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71532         * lib/mbsstr.c: Include allocsa.h.
71533         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71534         allocsa/freesa instead of malloc/free.
71535         * lib/mbscasestr.c: Include allocsa.h.
71536         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71537         allocsa/freesa instead of malloc/free.
71538         * modules/c-strstr (Depends-on): Add allocsa.
71539         * modules/c-strcasestr (Depends-on): Likewise.
71540         * modules/strcasestr (Depends-on): Likewise.
71541         * modules/mbsstr (Depends-on): Likewise.
71542         * modules/mbscasestr (Depends-on): Likewise.
71543
71544 2007-02-11  Bruno Haible  <bruno@clisp.org>
71545
71546         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71547
71548         * modules/mbsspn-tests: New file.
71549         * tests/test-mbsspn.sh: New file.
71550         * tests/test-mbsspn.c: New file.
71551
71552 2007-02-11  Bruno Haible  <bruno@clisp.org>
71553
71554         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71555
71556         * modules/mbspbrk-tests: New file.
71557         * tests/test-mbspbrk.sh: New file.
71558         * tests/test-mbspbrk.c: New file.
71559
71560 2007-02-11  Bruno Haible  <bruno@clisp.org>
71561
71562         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71563         unneeded cast.
71564
71565         * modules/mbscspn-tests: New file.
71566         * tests/test-mbscspn.sh: New file.
71567         * tests/test-mbscspn.c: New file.
71568
71569 2007-02-11  Bruno Haible  <bruno@clisp.org>
71570
71571         * modules/mbscasecmp-tests: New file.
71572         * tests/test-mbscasecmp.sh: New file.
71573         * tests/test-mbscasecmp.c: New file.
71574
71575 2007-02-11  Bruno Haible  <bruno@clisp.org>
71576
71577         Ensure O(n) worst-case complexity of mbscasestr.
71578         * lib/mbscasestr.c: Include stdbool.h.
71579         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71580         functions.
71581         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71582         the bookkeeping indicates that it's worth it.
71583         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71584
71585         * modules/mbscasestr-tests: New file.
71586         * tests/test-mbscasestr1.c: New file.
71587         * tests/test-mbscasestr2.sh: New file.
71588         * tests/test-mbscasestr2.c: New file.
71589         * tests/test-mbscasestr3.sh: New file.
71590         * tests/test-mbscasestr3.c: New file.
71591         * tests/test-mbscasestr4.sh: New file.
71592         * tests/test-mbscasestr4.c: New file.
71593         * m4/locale-tr.m4: New file.
71594
71595 2007-02-11  Bruno Haible  <bruno@clisp.org>
71596
71597         Ensure O(n) worst-case complexity of mbsstr.
71598         * lib/mbsstr.c: Include stdbool.h.
71599         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71600         functions.
71601         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71602         bookkeeping indicates that it's worth it.
71603         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71604
71605         * modules/mbsstr-tests: New file.
71606         * tests/test-mbsstr1.c: New file.
71607         * tests/test-mbsstr2.sh: New file.
71608         * tests/test-mbsstr2.c: New file.
71609         * tests/test-mbsstr3.sh: New file.
71610         * tests/test-mbsstr3.c: New file.
71611         * m4/locale-fr.m4: New file.
71612
71613 2007-02-11  Bruno Haible  <bruno@clisp.org>
71614
71615         * lib/mbsrchr.c (mbsrchr): Fix bug.
71616
71617         * modules/mbsrchr-tests: New file.
71618         * tests/test-mbsrchr.sh: New file.
71619         * tests/test-mbsrchr.c: New file.
71620
71621 2007-02-11  Bruno Haible  <bruno@clisp.org>
71622
71623         * lib/mbschr.c (mbschr): Fix bug.
71624
71625         * modules/mbschr-tests: New file.
71626         * tests/test-mbschr.sh: New file.
71627         * tests/test-mbschr.c: New file.
71628         * m4/locale-zh.m4: New file.
71629
71630 2007-02-11  Bruno Haible  <bruno@clisp.org>
71631
71632         Support for copying multibyte string iterators.
71633         * lib/mbiter.h: Include <string.h>.
71634         (mbiter_multi_copy): New function.
71635         (mbi_copy): New macro.
71636         * lib/mbuiter.h: Include <string.h>.
71637         (mbuiter_multi_copy): New function.
71638         (mbui_copy): New macro.
71639
71640 2007-02-11  Bruno Haible  <bruno@clisp.org>
71641
71642         New module mbslen.
71643         * modules/mbslen: New file.
71644         * lib/mbslen.c: New file.
71645         * lib/string_.h (mbslen): New declaration.
71646         * m4/mbslen.m4: New file.
71647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71648         GNULIB_MBSLEN.
71649         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71650         * MODULES.html.sh (Internationalization functions): Add mbslen.
71651
71652 2007-02-11  Bruno Haible  <bruno@clisp.org>
71653
71654         Ensure O(n) worst-case complexity of strcasestr substitute.
71655         * lib/strcasestr.c: Include stdbool.h.
71656         (knuth_morris_pratt): New function.
71657         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71658         bookkeeping indicates that it's worth it.
71659         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71660
71661         * modules/strcasestr-tests: New file.
71662         * tests/test-strcasestr.c: New file.
71663
71664 2007-02-11  Bruno Haible  <bruno@clisp.org>
71665
71666         Ensure O(n) worst-case complexity of c_strcasestr.
71667         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71668         (knuth_morris_pratt): New function.
71669         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71670         the bookkeeping indicates that it's worth it.
71671         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71672
71673         * modules/c-strcasestr-tests: New file.
71674         * tests/test-c-strcasestr.c: New file.
71675
71676 2007-02-11  Bruno Haible  <bruno@clisp.org>
71677
71678         Ensure O(n) worst-case complexity of c_strstr.
71679         * lib/c-strstr.c: Include stdbool.h, string.h.
71680         (knuth_morris_pratt): New function.
71681         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71682         bookkeeping indicates that it's worth it.
71683         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71684
71685         * lib/c-strstr.c: Complete rewrite for maintainability.
71686
71687         * modules/c-strstr-tests: New file.
71688         * tests/test-c-strstr.c: New file.
71689
71690 2007-02-11  Bruno Haible  <bruno@clisp.org>
71691
71692         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71693         5.2.1 and earlier, whereby \055 was treated just like the range
71694         delimiter '-'.
71695         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71696
71697 2007-02-08  Bruno Haible  <bruno@clisp.org>
71698
71699         * modules/regex (Depends-on): Add stdbool.
71700         Reported by Dalibor Topic <robilad@kaffe.org>.
71701
71702 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71703
71704         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71705         Prefer returning from main to exiting from it.
71706         Remove unnecessary parens after sizeof.
71707
71708 2007-02-05  Bruno Haible  <bruno@clisp.org>
71709
71710         New module mbssep.
71711         * modules/mbssep: New file.
71712         * lib/mbssep.c: New file.
71713         * lib/string_.h (strsep): Add a conditional link warning.
71714         (mbssep): New declaration.
71715         * m4/mbssep.m4: New file.
71716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71717         GNULIB_MBSSEP.
71718         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71719         * MODULES.html.sh (Internationalization functions): Add mbssep.
71720
71721 2007-02-05  Bruno Haible  <bruno@clisp.org>
71722
71723         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71724         Optimize search in case of 1 delimiter.
71725
71726 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71727
71728         * lib/acl.h: Include sys/types.h before sys/acl.h.
71729
71730 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71731
71732         Merge upstream fix for glibc bugzilla #3957:
71733
71734         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71735
71736         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71737         bit for RE_HAT_LISTS_NOT_NEWLINE.
71738         (build_charclass_op): Remove bogus comment.
71739
71740 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71741
71742         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71743
71744 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71745
71746         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71747         * lib/memmem.c [!defined _LIBC]: Include config.h.
71748
71749 2007-02-04  Bruno Haible  <bruno@clisp.org>
71750
71751         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71752         warning message.
71753
71754 2007-02-04  Bruno Haible  <bruno@clisp.org>
71755
71756         New module mbstok_r.
71757         * modules/mbstok_r: New file.
71758         * lib/mbstok_r.c: New file.
71759         * lib/string_.h (strtok_r): Change argument names to match the
71760         comments. Add a conditional link warning.
71761         (mbstok_r): New declaration.
71762         * m4/mbstok_r.m4: New file.
71763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71764         GNULIB_MBSTOK_R.
71765         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71766         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71767
71768 2007-02-04  Bruno Haible  <bruno@clisp.org>
71769
71770         New module mbsspn.
71771         * modules/mbsspn: New file.
71772         * lib/mbsspn.c: New file.
71773         * lib/string_.h (strspn): Add a conditional link warning.
71774         (mbsspn): New declaration.
71775         * m4/mbsspn.m4: New file.
71776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71777         GNULIB_MBSSPN.
71778         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71779         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71780
71781 2007-02-04  Bruno Haible  <bruno@clisp.org>
71782
71783         New module mbspbrk.
71784         * modules/mbspbrk: New file.
71785         * lib/mbspbrk.c: New file.
71786         * lib/string_.h (strpbrk): Add a conditional link warning.
71787         (mbspbrk): New declaration.
71788         * m4/mbspbrk.m4: New file.
71789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71790         GNULIB_MBSPBRK.
71791         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71792         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71793
71794 2007-02-04  Bruno Haible  <bruno@clisp.org>
71795
71796         New module mbscspn.
71797         * modules/mbscspn: New file.
71798         * lib/mbscspn.c: New file.
71799         * lib/string_.h (strcspn): Add a conditional link warning.
71800         (mbscspn): New declaration.
71801         * m4/mbscspn.m4: New file.
71802         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71803         GNULIB_MBSCSPN.
71804         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71805         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71806
71807 2007-02-04  Bruno Haible  <bruno@clisp.org>
71808
71809         New module mbscasestr, reduced goal of strcasestr.
71810         * modules/mbscasestr: New file.
71811         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71812         (mbscasestr): Renamed from strcasestr.
71813         * lib/strcasestr.c: Don't include mbuiter.h.
71814         (strcasestr): Remove support for multibyte locales.
71815         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71816         Change the conditional link warning.
71817         (mbscasestr): New declaration.
71818         * m4/mbscasestr.m4: New file.
71819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71820         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71821         REPLACE_STRCASESTR.
71822         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71824         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71825         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71826         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71827         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71828         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71829         (Depends-on): Remove mbuiter.
71830         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71831
71832 2007-02-04  Bruno Haible  <bruno@clisp.org>
71833
71834         Simplify handling of strncasecmp.
71835         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
71836         the conditional link warning.
71837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71838         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
71839         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
71840         * modules/strcase (configure.ac): Don't invoke
71841         gl_STRING_MODULE_INDICATOR.
71842         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
71843
71844 2007-02-04  Bruno Haible  <bruno@clisp.org>
71845
71846         New module mbscasecmp, reduced goal of strcasecmp.
71847         * modules/mbscasecmp: New file.
71848         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
71849         (mbscasecmp): Renamed from strcasecmp.
71850         * lib/strcasecmp.c: Don't include mbuiter.h.
71851         (strcasecmp): Remove support for multibyte locales.
71852         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
71853         Change the conditional link warning.
71854         (mbscasecmp): New declaration.
71855         * m4/mbscasecmp.m4: New file.
71856         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
71857         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
71858         REPLACE_STRCASECMP.
71859         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
71860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71861         GNULIB_MBSCASECMP.
71862         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
71863         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
71864         * modules/strcase (Files): Remove m4/mbrtowc.m4.
71865         (Depends-on): Remove mbuiter.
71866         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
71867
71868 2007-02-04  Bruno Haible  <bruno@clisp.org>
71869
71870         New module mbsstr. Remove module strstr.
71871         * modules/mbsstr: New file.
71872         * modules/strstr: Remove file.
71873         * lib/mbsstr.c: Renamed from lib/strstr.c.
71874         (mbsstr): Renamed from strstr.
71875         * lib/string_.h (strstr): Remove declaration. Change the conditional
71876         link warning.
71877         (mbsstr): New declaration.
71878         * m4/mbsstr.m4: New file.
71879         * m4/strstr.m4: Remove file.
71880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
71881         REPLACE_STRSTR.
71882         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
71883         Don't initialize GNULIB_STRSTR.
71884         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
71885         substitute GNULIB_STRSTR and REPLACE_STRSTR.
71886         * MODULES.html.sh (Internationalization functions): Add mbsstr.
71887         (Support for systems lacking ANSI C 89): Remove strstr.
71888
71889 2007-02-04  Bruno Haible  <bruno@clisp.org>
71890
71891         New module mbsrchr.
71892         * modules/mbsrchr: New file.
71893         * lib/mbsrchr.c: New file.
71894         * lib/string_.h (strrchr): Add a conditional link warning.
71895         (mbsrchr): New declaration.
71896         * m4/mbsrchr.m4: New file.
71897         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71898         GNULIB_MBSRCHR.
71899         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
71900         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
71901
71902 2007-02-04  Bruno Haible  <bruno@clisp.org>
71903
71904         New module mbschr.
71905         * modules/mbschr: New file.
71906         * lib/mbschr.c: New file.
71907         * lib/string_.h (strchr): Add a conditional link warning.
71908         (mbschr): New declaration.
71909         * m4/mbschr.m4: New file.
71910         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71911         GNULIB_MBSCHR.
71912         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
71913         * MODULES.html.sh (Internationalization functions): Add mbschr.
71914
71915 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71916
71917         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
71918
71919         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
71920
71921 2007-02-04  Bruno Haible  <bruno@clisp.org>
71922
71923         New module description section 'configure.ac-early'.
71924         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
71925         (func_get_autoconf_early_snippet): New function.
71926         (func_import, func_create_testdir): Use it. Remove special cases for
71927         modules 'extensions' and 'lock'.
71928         * modules/extensions (configure.ac-early): Require
71929         gl_USE_SYSTEM_EXTENSIONS.
71930         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
71931
71932 2007-02-04  Bruno Haible  <bruno@clisp.org>
71933
71934         Make use of gcj-4.3's -fsource and -ftarget option.
71935         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
71936         and if so try the options -fsource and -ftarget.
71937         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
71938         source_version, ftarget_option, target_version arguments.
71939         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
71940         (is_envjavac_oldgcj_14_14_usable): Renamed from
71941         is_envjavac_gcj_14_14_usable.
71942         (is_envjavac_oldgcj_14_13_usable): Renamed from
71943         is_envjavac_gcj_14_13_usable.
71944         (is_gcj_present): Update.
71945         (is_gcj_43, is_gcj43_usable): New functions.
71946         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
71947         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
71948         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
71949         try the options -fsource and -ftarget.
71950
71951 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
71954         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
71955         larger value.
71956
71957 2007-02-03  Jim Meyering  <jim@meyering.net>
71958
71959         Give tools a better chance to allocate space for very large buffers.
71960         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
71961
71962         Make pwd and readlink work also when run with an unreadable parent dir
71963         on systems with openat support.
71964         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
71965         provided getcwd function, even when we have openat support.
71966         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
71967
71968 2007-02-02  Bruno Haible  <bruno@clisp.org>
71969
71970         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71971         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
71972         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
71973         portability problems if one of these functions is only used on specific
71974         platforms.
71975         Reported by Paul Eggert.
71976
71977 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71978
71979         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71980         is causing more trouble than it's curing.
71981         * lib/regex_internal.h (__mempcpy): Remove.
71982         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71983         (and make the code a tad smaller to boot).
71984         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71985
71986 2007-02-02  Jim Meyering  <jim@meyering.net>
71987
71988         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71989         section, not in the Makefile.am: one.
71990
71991 2007-02-02  Eric Blake  <ebb9@byu.net>
71992
71993         * lib/strchrnul.c: Always include config.h first.
71994
71995         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71996         gnulib strstr is not necessary here.
71997
71998 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71999
72000         * m4/socklen.m4: Fix typo.
72001
72002 2007-02-02  Eric Blake  <ebb9@byu.net>
72003
72004         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72005         * modules/netinet_in (Makefile.am): Likewise.
72006
72007 2007-02-01  Bruno Haible  <bruno@clisp.org>
72008
72009         * lib/string_.h (GL_LINK_WARNING): New macro.
72010         (strcasecmp, strstr, strcasestr): If provided by the system,
72011         conditionally define as a macro that leads to a warning instead of to
72012         an error.
72013         (strncasecmp): Conditionally define as a macro that leads to a warning.
72014
72015 2007-02-01  Karl Berry  <karl@gnu.org>
72016
72017         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72018
72019 2007-02-01  Bruno Haible  <bruno@clisp.org>
72020
72021         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72022         renamings.
72023
72024 2007-02-01  Eric Blake  <ebb9@byu.net>
72025
72026         * modules/regex (Depends-on): Revert dependence on mempcpy.
72027         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72028         module's definition of mempcpy.
72029         Reported by Paul Eggert.
72030
72031 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72032
72033         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72034         the symbol XYZ before redefining it.  This fixes a problem with
72035         programs that don't use XYZ, when compiled on systems that define
72036         XYZ to something else.
72037
72038 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72041         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72042         writeable to group or other and (2) is intended to have a special
72043         mode bit that is set or cleared.  In such a case, the directory
72044         should be neither group- nor other-writeable until the special
72045         mode bits are right.
72046
72047 2007-01-31  Eric Blake  <ebb9@byu.net>
72048
72049         * modules/mountlist (Depends-on): Add strstr.
72050
72051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72052         bug.
72053         * modules/string (Makefile.am): Remove redundant replacement.
72054         * modules/regex (Depends-on): Add mempcpy.
72055
72056 2007-01-31  Bruno Haible  <bruno@clisp.org>
72057
72058         New module description field 'Link'.
72059         * gnulib-tool (func_usage): Document --extract-link-directive.
72060         (sed_extract_prog): Recognize 'Link' directive.
72061         (func_get_link_directive): New function.
72062         (func_import): Show summary of link directives.
72063         Handle --extract-link-directive option.
72064         * modules/acl (Link): New section.
72065         * modules/clock-time (Link): New section.
72066         * modules/euidaccess (Link): New section.
72067         * modules/gettext (Link): New section.
72068         * modules/iconv (Link): New section.
72069         * modules/lock (Link): New section.
72070         * modules/nanosleep (Link): New section.
72071         * modules/readline (Link): New section.
72072
72073 2007-01-27  Bruno Haible  <bruno@clisp.org>
72074
72075         Enforce the use of gnulib modules for unportable <string.h> functions.
72076         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72077         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72078         (gl_HEADER_STRING_H_BODY): Require it.
72079         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72080         the symbol XYZ to one that gives a link error.
72081         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72082         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72083         * modules/mempcpy (configure.ac): Likewise.
72084         * modules/memrchr (configure.ac): Likewise.
72085         * modules/stpcpy (configure.ac): Likewise.
72086         * modules/stpncpy (configure.ac): Likewise.
72087         * modules/strcase (configure.ac): Likewise.
72088         * modules/strcasestr (configure.ac): Likewise.
72089         * modules/strchrnul (configure.ac): Likewise.
72090         * modules/strdup (configure.ac): Likewise.
72091         * modules/strndup (configure.ac): Likewise.
72092         * modules/strnlen (configure.ac): Likewise.
72093         * modules/strpbrk (configure.ac): Likewise.
72094         * modules/strsep (configure.ac): Likewise.
72095         * modules/strstr (configure.ac): Likewise.
72096         * modules/strtok_r (configure.ac): Likewise.
72097
72098 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72099
72100         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72101
72102 2007-01-30  Jim Meyering  <jim@meyering.net>
72103
72104         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72105
72106 2007-01-29  Bruno Haible  <bruno@clisp.org>
72107
72108         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72109         * lib/execute.c: Likewise.
72110         * lib/pipe.c: Likewise.
72111         * lib/printf-args.h: Likewise.
72112         * lib/printf-args.c: Likewise.
72113         * lib/printf-parse.c: Likewise.
72114         * lib/vasnprintf.c: Likewise.
72115
72116 2007-01-29  Eric Blake  <ebb9@byu.net>
72117
72118         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72119         declaration.
72120
72121 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72122
72123         * lib/strptime.h (strptime): Use 'restrict' for args where
72124         POSIX requires this.
72125         * lib/strptime.c (strptime): Likewise.
72126         Change license notice from LGPL to GPL, since gnulib-tool will
72127         change this as needed.
72128         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72129         defined.
72130         Include "strptime.h" first, to check interface.
72131         Do not #undef _LIBC and _NL_CURRENT.
72132         Do not include <stdlib.h>; no longer needed.
72133         Include "time_r.h" and declare ptime_locale_status
72134         only if _LIBC is not defined.
72135         (__P): Remove unused macro.
72136         (match_string): Bring back glibc version, but use it only if _LIBC
72137         is defined.
72138         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72139         Remove unnecessary assertion and abort() call.
72140         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72141         * m4/strptime.m4: Fix serial number comment.
72142         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72143         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72144         (Depends-on): Add time_r.
72145
72146 2007-01-29  Bruno Haible  <bruno@clisp.org>
72147
72148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72149         strptime.
72150         * modules/strptime (Depends-on): Add stdbool.
72151         * lib/strptime.h: Include <time.h> always. Add comments.
72152
72153 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72154
72155         * modules/strptime: New file.
72156         * lib/strptime.h: New file.
72157         * lib/strptime.c: New file.
72158         * m4/strptime.m4: New file.
72159
72160 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * MODULES.html.sh: New module mpsort.
72163         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72164
72165         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72166         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72167         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72168         All uses changed.
72169         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72170         All uses changed.
72171         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72172         to _Restrict_.
72173         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72174         the parameter matches the prototype.
72175
72176 2007-01-28  Jim Meyering  <jim@meyering.net>
72177
72178         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72179         sys/time.h here, reverting that part of the previous patch:
72180         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72181
72182 2007-01-28  Bruno Haible  <bruno@clisp.org>
72183
72184         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72185         value of $(SYS_TIME_H).
72186         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72187         remove it conditionally, too. [added by Jim Meyering]
72188         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72189         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72190         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72191         GETTIMEOFDAY_REPLACEMENT to 1.
72192
72193 2007-01-28  Bruno Haible  <bruno@clisp.org>
72194
72195         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72196         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72198         Set UNISTD_H instead of UNISTD_H2.
72199         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72200
72201 2007-01-28  Bruno Haible  <bruno@clisp.org>
72202
72203         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72204         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72205
72206 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72207
72208         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72209         (func_create_testdir): Ensure C locale for `grep' and `tr'
72210         character ranges.
72211         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72212         ACLOCAL_AMFLAGS parsing state machine.
72213
72214 2007-01-27  Bruno Haible  <bruno@clisp.org>
72215
72216         * modules/unistr/base: Update.
72217
72218 2007-01-27  Bruno Haible  <bruno@clisp.org>
72219
72220         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72221         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72222         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72223         modules/unistr/u32-mbtouc.
72224         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72225         * lib/unistr.h: Update.
72226         * lib/linebreak.c: Update.
72227         * modules/unistr/u32-mbtouc: Renamed from
72228         modules/unistr/u32-mbtouc-safe.
72229         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72230         * lib/unistr.h: Update.
72231         * lib/unistr/u32-to-u8.c: Update.
72232         * lib/unistr/u32-to-u16.c: Update.
72233
72234 2007-01-27  Bruno Haible  <bruno@clisp.org>
72235
72236         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72237         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72238         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72239         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72240         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72241         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72242         modules/unistr/u16-mbtouc.
72243         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72244         * lib/unistr.h: Update.
72245         * lib/linebreak.c: Update.
72246         * modules/linebreak: Update.
72247         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72248         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72249         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72250         * modules/unistr/u16-mbtouc: Renamed from
72251         modules/unistr/u16-mbtouc-safe.
72252         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72253         * lib/unistr.h: Update.
72254         * lib/unistr/u16-to-u8.c: Update.
72255         * modules/unistr/u16-to-u8: Update.
72256         * lib/unistr/u16-to-u32.c: Update.
72257         * modules/unistr/u16-to-u32: Update.
72258
72259 2007-01-27  Bruno Haible  <bruno@clisp.org>
72260
72261         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72262         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72263         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72264         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72265         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72266         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72267         modules/unistr/u8-mbtouc.
72268         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72269         * lib/unistr.h: Update.
72270         * lib/striconveh.c: Update.
72271         * modules/striconveh: Update.
72272         * lib/linebreak.c: Update.
72273         * modules/linebreak: Update.
72274         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72275         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72276         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72277         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72278         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72279         * lib/unistr.h: Update.
72280         * lib/striconveh.c: Update.
72281         * modules/striconveh: Update.
72282         * lib/unistr/u8-to-u16.c: Update.
72283         * modules/unistr/u8-to-u16: Update.
72284         * lib/unistr/u8-to-u32.c: Update.
72285         * modules/unistr/u8-to-u32: Update.
72286
72287 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72288
72289         Sync from Libtool.
72290         * lib/argz.c: Do not include strings.h nor memory.h, include
72291         string.h unconditionally.  Patch by Simon Josefsson.
72292
72293 2007-01-27  Bruno Haible  <bruno@clisp.org>
72294
72295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72296         from gl_HEADER_STRING_H_BODY.
72297         (gl_HEADER_STRING_H_BODY): Require it.
72298         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72299         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72300         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72301         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72302         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72303         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72305         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72306         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72307         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72308         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72309         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72310         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72311         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72312         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72313
72314 2007-01-27  Bruno Haible  <bruno@clisp.org>
72315
72316         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72317         check_PROGRAMS into noinst_PROGRAMS.
72318         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72319         check_PROGRAMS in this case.
72320         (func_import): Set for_test to false.
72321         (func_create_testdir): Set for_test to true.
72322
72323 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72324             Bruno Haible  <bruno@clisp.org>
72325
72326         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72327         (Depends-on): Add string.
72328         (Includes): Use <string.h> instead of strcasestr.h.
72329         * modules/string (Makefile.am): Also substitute the value of
72330         REPLACE_STRCASESTR.
72331         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72332         assume strcasestr is declared in <string.h> not <strings.h>. Also
72333         set REPLACE_STRCASESTR.
72334         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72335         REPLACE_STRCASESTR.
72336         * lib/strcasestr.h: Remove file.
72337         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72338         * lib/string_.h (strcasestr): New declaration.
72339
72340 2007-01-27  Bruno Haible  <bruno@clisp.org>
72341
72342         * lib/string_.h: Use 'extern'.
72343
72344 2007-01-27  Jim Meyering  <jim@meyering.net>
72345
72346         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72347         of set-but-not-used local, "q".
72348
72349         * lib/mempcpy.c: Include <config.h> before <string.h>.
72350         This fixes a compilation error on HP-UX, due to the system's
72351         "restrict"-using mempcpy prototype.
72352
72353 2007-01-26  Bruno Haible  <bruno@clisp.org>
72354
72355         Small optimization.
72356         * lib/javacomp.c: Include c-strstr.h.
72357          (is_envjavac_gcj): Use c_strstr instead of strstr.
72358         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72359
72360 2007-01-26  Bruno Haible  <bruno@clisp.org>
72361
72362         * MODULES.html.sh (Unicode string functions): Add the new modules.
72363
72364         * modules/uniconv/u32-strconv-to-locale: New file.
72365         * lib/uniconv/u32-strconv-to-locale.c: New file.
72366
72367         * modules/uniconv/u16-strconv-to-locale: New file.
72368         * lib/uniconv/u16-strconv-to-locale.c: New file.
72369
72370         * modules/uniconv/u8-strconv-to-locale: New file.
72371         * lib/uniconv/u8-strconv-to-locale.c: New file.
72372
72373         * modules/uniconv/u32-strconv-from-locale: New file.
72374         * lib/uniconv/u32-strconv-from-locale.c: New file.
72375
72376         * modules/uniconv/u16-strconv-from-locale: New file.
72377         * lib/uniconv/u16-strconv-from-locale.c: New file.
72378
72379         * modules/uniconv/u8-strconv-from-locale: New file.
72380         * lib/uniconv/u8-strconv-from-locale.c: New file.
72381
72382         * modules/uniconv/u32-strconv-to-enc: New file.
72383         * lib/uniconv/u32-strconv-to-enc.c: New file.
72384         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72385         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72386
72387         * modules/uniconv/u16-strconv-to-enc: New file.
72388         * lib/uniconv/u16-strconv-to-enc.c: New file.
72389         * lib/uniconv/u-strconv-to-enc.h: New file.
72390         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72391         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72392
72393         * modules/uniconv/u8-strconv-to-enc: New file.
72394         * lib/uniconv/u8-strconv-to-enc.c: New file.
72395         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72396         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72397
72398         * modules/uniconv/u32-strconv-from-enc: New file.
72399         * lib/uniconv/u32-strconv-from-enc.c: New file.
72400         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72401         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72402
72403         * modules/uniconv/u16-strconv-from-enc: New file.
72404         * lib/uniconv/u16-strconv-from-enc.c: New file.
72405         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72406         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72407
72408         * modules/uniconv/u8-strconv-from-enc: New file.
72409         * lib/uniconv/u8-strconv-from-enc.c: New file.
72410         * lib/uniconv/u-strconv-from-enc.h: New file.
72411         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72412         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72413
72414         * modules/uniconv/u32-conv-from-enc: New file.
72415         * lib/uniconv/u32-conv-from-enc.c: New file.
72416         * modules/uniconv/u32-conv-from-enc-tests: New file.
72417         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72418
72419         * modules/uniconv/u16-conv-from-enc: New file.
72420         * lib/uniconv/u16-conv-from-enc.c: New file.
72421         * lib/uniconv/u-conv-from-enc.h: New file.
72422         * modules/uniconv/u16-conv-from-enc-tests: New file.
72423         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72424
72425         * modules/uniconv/u8-conv-from-enc: New file.
72426         * lib/uniconv/u8-conv-from-enc.c: New file.
72427         * modules/uniconv/u8-conv-from-enc-tests: New file.
72428         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72429
72430         * modules/uniconv/base: New file.
72431         * lib/uniconv.h: New file.
72432
72433 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72434
72435         * doc/gnulib-tool.texi (Initial import): Update to match current
72436         behavior with strdup module.
72437         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72438         * lib/memmem.h: Remove; all uses removed.  This is now done
72439         by <string.h>.
72440         * lib/mempcpy.h: Likewise.
72441         * lib/memrchr.h: Likewise.
72442         * lib/stpcpy.h: Likewise.
72443         * lib/stpncpy.h: Likewise.
72444         * lib/strcase.h: Likewise.
72445         * lib/strchrnul.h: Likewise.
72446         * lib/strdup.h: Likewise.
72447         * lib/strndup.h: Likewise.
72448         * lib/strnlen.h: Likewise.
72449         * lib/strpbrk.h: Likewise.
72450         * lib/strsep.h: Likewise.
72451         * lib/strstr.h: Likewise.
72452         * lib/strtok_r.h: Likewise.
72453         * lib/string_.h: New file.
72454         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72455         Rely on <string.h> instead.
72456         * lib/canon-host.c: Likewise.
72457         * lib/chdir-long.c: Likewise.
72458         * lib/concatpath.c: Likewise.
72459         * lib/exclude.c: Likewise.
72460         * lib/fchdir.c: Likewise.
72461         * lib/getaddrinfo.c: Likewise.
72462         * lib/getcwd.c: Likewise.
72463         * lib/getsubopt.c: Likewise.
72464         * lib/glob.c: Likewise.
72465         * lib/hard-locale.c: Likewise.
72466         * lib/iconvme.c: Likewise.
72467         * lib/javacomp.c: Likewise.
72468         * lib/mempcpy.c: Likewise.
72469         * lib/memrchr.c: Likewise.
72470         * lib/regex_internal.h: Likewise.
72471         * lib/stpncpy.c: Likewise.
72472         * lib/strcasecmp.c: Likewise.
72473         * lib/strchrnul.c: Likewise.
72474         * lib/strdup.c: Likewise.
72475         * lib/striconv.c: Likewise.
72476         * lib/striconveh.c: Likewise.
72477         * lib/striconveha.c: Likewise.
72478         * lib/strncasecmp.c: Likewise.
72479         * lib/strndup.c: Likewise.
72480         * lib/strnlen.c: Likewise.
72481         * lib/strsep.c: Likewise.
72482         * lib/strstr.c: Likewise.
72483         * lib/strtok_r.c: Likewise.
72484         * lib/userspec.c: Likewise.
72485         * lib/w32spawn.h: Likewise.
72486         * lib/xstrndup.c: Likewise.
72487         * lib/mountlist.c (strstr): Remove decl.
72488         * m4/string_h.m4: New file.
72489         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72490         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72491         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72492         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72493         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72494         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72495         Set REPLACE_STRCASECMP if necessary.
72496         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72497         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72498         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72499         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72500         HAVE_DECL_STRDUP if necessary.
72501         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72502         since gl_FUNC_STRNDUP does that now.
72503         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72504         Check for decl here...
72505         (gl_PREREQ_STRNLEN): ... not here.
72506         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72507         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72508         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72509         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72510         necessary.
72511         * modules/string: New file.
72512         * modules/memmem (Files): Remove special-purpose include file.
72513         (Depends-on): Add string.
72514         (Include): Include <string.h>, not the removed file.
72515         * modules/mempcpy: Likewise.
72516         * modules/memrchr: Likewise.
72517         * modules/stpcpy: Likewise.
72518         * modules/stpncpy: Likewise.
72519         * modules/strcase: Likewise.
72520         * modules/strchrnul: Likewise.
72521         * modules/strdup: Likewise.
72522         * modules/strndup: Likewise.
72523         * modules/strnlen: Likewise.
72524         * modules/strpbrk: Likewise.
72525         * modules/strsep: Likewise.
72526         * modules/strstr: Likewise.
72527         * modules/strtok_r: Likewise.
72528         * tests/test-dirname.c: Don't include "strdup.h", since
72529         <string.h> now suffices.
72530         * tests/test-memmem.c: Don't include "memmem.h", since
72531         <string.h> now suffices.
72532
72533 2007-01-25  Bruno Haible  <bruno@clisp.org>
72534
72535         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72536         *resultp is 0.
72537
72538         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72539         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72540         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72541         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72542
72543         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72544         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72545         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72546         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72547         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72548         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72549
72550 2007-01-24  Bruno Haible  <bruno@clisp.org>
72551
72552         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72553         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72554         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72555         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72556         gl_FUNC_FTS_CORE.
72557         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72558         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72559         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72560         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72561         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72562         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72563         gl_FUNC_FCHOWNAT.
72564         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72565         gl_FUNC_STRFTIME.
72566         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72567         Reported by Ralf Wildenhues.
72568
72569 2007-01-24  Bruno Haible  <bruno@clisp.org>
72570
72571         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72572         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72573         gl_GETADDRINFO.
72574         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72575         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72576         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72577
72578 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72581         Don't use 'exit'; just return from 'main'.
72582         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72583
72584         * lib/fnmatch_.h: Readjust white space and comments to match
72585         glibc, to avoid spurious diffs.
72586
72587 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72590         2004-12-01 change by Jakub Jelinek, since this code won't compile
72591         if !LIBC.  Problem reported by Bob Proulx.
72592
72593 2007-01-23  Bruno Haible  <bruno@clisp.org>
72594
72595         * lib/striconveh.c: Include c-strcaseeq.h.
72596         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72597         * modules/striconveh (Depends-on): Add c-strcaseeq.
72598
72599 2007-01-23  Bruno Haible  <bruno@clisp.org>
72600
72601         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72602
72603         * modules/c-strcaseeq: New file.
72604         * lib/c-strcaseeq.h: New file.
72605
72606         * modules/streq: New file.
72607         * lib/streq.h: New file.
72608
72609 2007-01-23  Bruno Haible  <bruno@clisp.org>
72610
72611         * modules/striconveha-tests: New file.
72612         * tests/test-striconveha.c: New file.
72613
72614         * lib/striconveha.h: Include <stdbool.h>.
72615         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72616         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72617         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72618         (mem_iconveha): New function.
72619         (str_iconveha_notranslit): Renamed from str_iconveha.
72620         (str_iconveha): New function.
72621         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72622         c-strcase.
72623
72624 2007-01-23  Bruno Haible  <bruno@clisp.org>
72625
72626         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72627         encodings without forgiving before trying any encoding with handler.
72628         (str_iconveha): Try all encodings without forgiving before trying any
72629         encoding with handler.
72630
72631 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72632
72633         Import the following changes from libc.
72634
72635         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72636
72637         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72638
72639         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72640
72641         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72642         normal_bracket label.
72643
72644         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72645
72646         [BZ #361]
72647         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72648         to normal_bracket after fetching the next character.
72649
72650 2007-01-22  Bruno Haible  <bruno@clisp.org>
72651
72652         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72653         argument.
72654         * lib/striconveh.c (iconv_carefully_1): New function.
72655         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72656         argument.
72657         (str_cd_iconveh): Update.
72658         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72659         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72660         * tests/test-striconveh.c (MAGIC): New macro.
72661         (new_offsets): New function.
72662         (main): Test call with and without offsets.
72663
72664 2007-01-22  Bruno Haible  <bruno@clisp.org>
72665
72666         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72667         * modules/sys_select (Makefile.am): Likewise.
72668         * modules/sys_socket (Makefile.am): Likewise.
72669         * modules/sys_time (Makefile.am): Likewise.
72670
72671 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * modules/gettimeofday (License): Change from GPL to LGPL, since
72674         gettimeofday is a library function.
72675
72676 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72677
72678         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72679
72680 2007-01-21  Bruno Haible  <bruno@clisp.org>
72681
72682         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72683
72684 2007-01-21  Bruno Haible  <bruno@clisp.org>
72685
72686         * modules/striconveha: New file.
72687         * lib/striconveha.h: New file.
72688         * lib/striconveha.c: New file.
72689         * MODULES.html.sh (Internationalization functions): Add striconveha.
72690         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72691         string.
72692         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72693
72694 2007-01-21  Bruno Haible  <bruno@clisp.org>
72695
72696         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72697         * lib/striconveh.c (str_iconveh): Likewise.
72698
72699 2007-01-21  Bruno Haible  <bruno@clisp.org>
72700
72701         * lib/striconveh.h (mem_iconveh): New declaration.
72702         * lib/striconveh.c (mem_iconveh): New function.
72703         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72704
72705 2007-01-21  Bruno Haible  <bruno@clisp.org>
72706
72707         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72708
72709         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72710         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72711         original result buffer.
72712         (str_cd_iconveh): Update.
72713         * tests/test-striconveh.c (main): Update.
72714
72715         * lib/striconv.h (mem_cd_iconv): Change specification.
72716         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72717         result buffer.
72718         (str_cd_iconv): Update.
72719         * tests/test-striconv.c (main): Update.
72720
72721 2007-01-21  Bruno Haible  <bruno@clisp.org>
72722
72723         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72724
72725 2007-01-20  Jim Meyering  <jim@meyering.net>
72726
72727         * lib/userspec.c (parse_with_separator): If a user or group string
72728         starts with "+", skip the corresponding name-to-ID look-up, since
72729         such a look-up must fail: user and group names may not include "+".
72730
72731 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72734         since we now assume the sys_time module.
72735         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72736         check for sys/time.h; no longer needed.
72737         * modules/poll (Depends-on): Depend on sys_time.
72738
72739 2007-01-18  Bruno Haible  <bruno@clisp.org>
72740
72741         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72742         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72743
72744         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72745         gettimeofday.
72746
72747         * tests/test-gettimeofday.c: Include <time.h>.
72748         (dummy): Remove variable.
72749
72750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72751         gl_HEADER_SYS_TIME_H.
72752         (gl_HEADER_SYS_TIME_H): New macro.
72753
72754         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72755         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72757         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72758         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72759         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72760         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72761         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72762         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72763         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72764         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72765
72766         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72767         last change; it caused a compilation error when cross-compiling to
72768         Cygwin.
72769
72770 2007-01-18  Jim Meyering  <jim@meyering.net>
72771
72772         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72773         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72774         than the race-prone "test -d sys || mkdir sys".
72775         (configure.ac): Use AC_PROG_MKDIR_P.
72776         * modules/sys_select: Likewise.
72777         * modules/sys_socket: Likewise.
72778         * modules/sys_time: Likewise.
72779
72780 2007-01-18  Eric Blake  <ebb9@byu.net>
72781
72782         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72783         replace gettimeofday.
72784         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72785         name, to avoid infinite recursion.
72786
72787 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72790         module sys_time.
72791         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72792         assume timespec.h defines struct timeval.
72793         * lib/settime.c: Likewise.
72794         * lib/utimens.c: Likewise.
72795         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72796         since we now assume the gettimeofday module.
72797         * lib/tempname.c (__gen_tempname): Likewise.
72798         * lib/gettimeofday.h: Remove.
72799         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72800         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72801         Include <time.h>, for 'time()'.
72802         (localtime_buffer_addr): Also use this workaround if
72803         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72804         to simplify the uses.  All uses changed.
72805         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72806         that #undef is inside {}, and 'const' follows type name consistently.
72807         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72808         (gettimeofday): Do not use the maximum possible value for
72809         tv->tv_usec, since that might break usages other than ls.c.
72810         Instead, we'll leave ls.c alone.  This undoes today's patch
72811         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72812         we've never observed the problem but might as well keep the
72813         canary.
72814         * lib/nanosleep.c: Include timespec.h first, for interface check.
72815         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72816         now assume the sys_time module.
72817         * lib/tempname.c: Likewise.
72818         * lib/timespec.h: Likewise.
72819         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72820         needed.
72821         * lib/strftime.c: Likewise.
72822         * lib/timespec.h: Likewise.
72823         * lib/posixtm.c: Include posixtm.h first, for interface check.
72824         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72825         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72826         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72827         * lib/sys_time_.h: New file.
72828         * lib/timespec.h (struct timespec): Use long int, not long.
72829         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72830         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72831         Remove obsolescent call to AC_HEADER_TIME.
72832         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
72833         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72834         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72835         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
72836         Likewise.
72837         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
72838         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
72839         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
72840         into the sys_time module.  Check for gettimeofday just once.
72841         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
72842         for gettimeofday signature to just check the signature.  Merely
72843         compile it, since linking doesn't test signature.  Improve test for
72844         whether gettimeofday.o is actually needed.
72845         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
72846         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
72847         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
72848         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72849         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
72850         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
72851         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
72852         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
72853         than worrying about sys/time.h.
72854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72855         Don't bother worrying about TIME_WITH_SYS_TIME.
72856         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72857         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
72858         * m4/sys_time_h.m4: New file.
72859         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
72860         Don't include sys/time.h.  Return from main rather than exiting.
72861         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
72862         all uses changed.
72863         * modules/gethrxtime (Depends-on): Add sys_time.
72864         * modules/gettime (Depends-on): Likewise.
72865         * modules/gettimeofday (Depends-on): Likewise.
72866         * modules/nanosleep (Depends-on): Likewise.
72867         * modules/settime (Depends-on): Likewise.
72868         * modules/tempname (Depends-on): Likewise.
72869         * modules/utimens (Depends-on): Likewise.
72870         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
72871         (Include): Change back to <sys/time.h>.
72872         (Maintainer): Add self.
72873         * modules/sys_time: New file.
72874         * modules/tempname (Depends-on): Add gettimeofday.
72875         * tests/test-gettimeofday.c: Include <sys/time.h>
72876         rather than gettimeofday.h.
72877
72878 2007-01-17  Bruno Haible  <bruno@clisp.org>
72879
72880         * gnulib-tool (func_get_license): Revert last patch. Instead, let
72881         the license default to GPL.
72882         (func_create_testdir): Don't complain if a module is LGPL and its
72883         tests module depends on GPLed modules.
72884
72885 2007-01-17  Bruno Haible  <bruno@clisp.org>
72886
72887         * lib/gettimeofday.c (gettimeofday): Add code for the case
72888         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
72889         maximum possible value for tv->tv_usec, rather than the minimum one.
72890
72891 2005-10-08  Martin Lambers  <marlam@marlam.de>
72892 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72893 2007-01-16  Bruno Haible  <bruno@clisp.org>
72894
72895         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
72896         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
72897         gl_FUNC_GETTIMEOFDAY.
72898         (Include): Add gettimeofday.h.
72899         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
72900         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
72901         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
72902         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
72903         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
72904         * lib/gettimeofday.h: New file.
72905         * lib/gettimeofday.c: Include <sys/timeb.h>.
72906         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
72907         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72908         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
72909         fall back on time().
72910
72911         * tests/test-gettimeofday.c: New file.
72912         * modules/gettimeofday-tests: New file.
72913
72914 2007-01-16  Eric Blake  <ebb9@byu.net>
72915
72916         * modules/fnmatch (Depends-on): Depend on wchar.
72917         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
72918         * m4/fnmatch.m4: Likewise.
72919         * modules/mbchar (Makefile.am): Assume <wchar.h>.
72920         * m4/mbchar.m4: Likewise.
72921         * modules/mbswidth (Depends-on): Depend on wchar.
72922         * lib/mbswidth.c: Assume <wchar.h>.
72923         * m4/mbswidth.m4: Likewise.
72924         * modules/quotearg (Depends-on): Depend on wchar.
72925         * lib/quotearg.c: Assume <wchar.h>.
72926         * m4/quotearg.m4: Likewise.
72927         * modules/regex (Depends-on): Depend on wchar.
72928         * lib/regex_internal.h: Assume <wchar.h>.
72929         * m4/regex.m4: Likewise.
72930         * modules/stdint (Depends-on): Depend on wchar.
72931         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
72932         * m4/stdint.m4: Likewise.
72933         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
72934         * modules/strftime (Depends-on): Depend on wchar.
72935         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
72936         * modules/strtol (Depends-on): Depend on wchar.
72937         * lib/strtol.c: Assume <wchar.h>.
72938         * modules/wcwidth (Depends-on): Depend on wchar.
72939         * lib/wcwidth.h: Assume <wchar.h>.
72940         * m4/wcwidth.m4: Likewise.
72941
72942 2007-01-16  Bruno Haible  <bruno@clisp.org>
72943
72944         * modules/csharpexec-script: New, created from...
72945         * modules/csharpexec: ... this.
72946
72947 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
72948
72949         * modules/javaexec-script: New, created from...
72950         * modules/javaexec: ... this.
72951
72952 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72953
72954         * modules/poll (Dependencies): Add sys_select.
72955
72956 2007-01-15  Jim Meyering  <jim@meyering.net>
72957
72958         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
72959         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
72960         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
72961         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
72962
72963 2007-01-15  Bruno Haible  <bruno@clisp.org>
72964
72965         * modules/striconveh: New file.
72966         * lib/striconveh.h: New file.
72967         * lib/striconveh.c: New file.
72968         * MODULES.html.sh (Internationalization functions): Add striconveh.
72969
72970         * modules/striconveh-tests: New file.
72971         * tests/test-striconveh.c: New file.
72972
72973 2007-01-15  Bruno Haible  <bruno@clisp.org>
72974
72975         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
72976         not from GNU libiconv or GNU libc.
72977
72978 2007-01-15  Bruno Haible  <bruno@clisp.org>
72979
72980         * doc/gnulib-intro.texi (Copyright): Explain the different license
72981         terms for module descriptions, autoconf macros, tests, documentation.
72982
72983 2007-01-14  Bruno Haible  <bruno@clisp.org>
72984
72985         * modules/striconv-tests: New file.
72986         * tests/test-striconv.c: New file.
72987
72988 2007-01-14  Bruno Haible  <bruno@clisp.org>
72989
72990         * modules/iconv-tests: New file.
72991         * tests/test-iconv.c: New file.
72992
72993 2007-01-14  Bruno Haible  <bruno@clisp.org>
72994
72995         * gnulib-tool (func_get_license): For test modules, use the license of
72996         the main module.
72997
72998 2007-01-14  Bruno Haible  <bruno@clisp.org>
72999
73000         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73001         if iconv is found to exist.
73002
73003 2007-01-14  Bruno Haible  <bruno@clisp.org>
73004
73005         * modules/c-ctype-tests: New file.
73006         * tests/test-c-ctype.c: New file.
73007
73008 2007-01-14  Bruno Haible  <bruno@clisp.org>
73009
73010         * modules/binary-io-tests: New file.
73011         * tests/test-binary-io.sh: New file.
73012         * tests/test-binary-io.c: New file.
73013
73014 2007-01-14  Bruno Haible  <bruno@clisp.org>
73015
73016         * modules/array-oset-tests: New file.
73017         * tests/test-array_oset.c: New file.
73018
73019 2007-01-14  Bruno Haible  <bruno@clisp.org>
73020
73021         * modules/array-list-tests: New file.
73022         * tests/test-array_list.c: New file.
73023
73024 2007-01-14  Bruno Haible  <bruno@clisp.org>
73025
73026         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73027         and make.
73028         Reported by Simon Josefsson in
73029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73030
73031 2007-01-14  Bruno Haible  <bruno@clisp.org>
73032
73033         * modules/allocsa-tests: New file.
73034         * tests/test-allocsa.c: New file.
73035
73036 2007-01-14  Bruno Haible  <bruno@clisp.org>
73037
73038         * modules/fchdir (Depends-on): Add absolute-header.
73039         * modules/unistd (Depends-on): Likewise.
73040
73041 2006-12-30  Bruno Haible  <bruno@clisp.org>
73042
73043         * modules/fchdir: New file.
73044         * modules/unistd (Files): Add lib/unistd_.h.
73045         (Makefile.am): Generate unistd.h from unistd_.h.
73046         * lib/fchdir.c: New file.
73047         * lib/dirent_.h: New file.
73048         * lib/unistd_.h: New file.
73049         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73050         * m4/fchdir.m4: New file.
73051         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73052         (gl_HEADER_UNISTD): Invoke it.
73053         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73054         function.
73055         * lib/backupfile.c (opendir, closedir): Undefine.
73056         * lib/chown.c (open, close): Undefine.
73057         * lib/clean-temp.c (open, close): Undefine.
73058         * lib/copy-file.c (open, close): Undefine.
73059         * lib/execute.c (open, close): Undefine.
73060         * lib/fsusage.c (open, close): Undefine.
73061         * lib/gc-gnulib.c (open, close): Undefine.
73062         * lib/getcwd.c (opendir, closedir): Undefine.
73063         * lib/glob.c (opendir, closedir): Undefine.
73064         * lib/javacomp.c (open, close): Undefine.
73065         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73066         * lib/openat-proc.c (open, close): Undefine.
73067         * lib/pagealign_alloc.c (open, close): Undefine.
73068         * lib/pipe.c (open, close): Undefine.
73069         * lib/progreloc.c (open, close): Undefine.
73070         * lib/savedir.c (opendir, closedir): Undefine.
73071         * lib/utime.c (open, close): Undefine.
73072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73073
73074 2007-01-10  Bruno Haible  <bruno@clisp.org>
73075
73076         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73077
73078 2007-01-12  Eric Blake  <ebb9@byu.net>
73079
73080         Provide a robust <wchar.h>.  Further simplifications are now
73081         possible in other modules, but not included here.
73082         * modules/wchar: New module.
73083         * m4/wchar.m4: New file.
73084         * lib/wchar_.h: Likewise.
73085         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73086         of the new module.
73087         * MODULES.html.sh (Extended multibyte and wide character utilities):
73088         New section.
73089
73090 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73093         to a reasonable default for memory allocation.
73094         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73095         file system that reports garbage st_size values for symlinks.
73096         Problem reported by Liyang Hu.
73097
73098 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73099
73100         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73101         Emacs .#* auto-save files).
73102
73103 2007-01-11  Bruno Haible  <bruno@clisp.org>
73104
73105         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73106         directory.
73107
73108 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73109
73110         Use @...@ consistently in lib/wctype_.h.
73111         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73112         on it being set to 1 or 0.
73113         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73114         go back to AC_SUBSTing it.
73115         * modules/wctype (Makefile.am): Undo previous change.
73116
73117 2007-01-10  Eric Blake  <ebb9@byu.net>
73118
73119         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73120         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73121         * modules/wctype (Makefile.am): Likewise.
73122         Reported by Chris McGuire.
73123
73124 2007-01-10  Jim Meyering  <jim@meyering.net>
73125
73126         fts.c: a small readability/maintainability improvement
73127         * lib/fts.c (fts_read): Make this code slightly more readable and
73128         maintainable by hoisting the "sp->fts_cur = p" assignments to
73129         immediately follow the statements that set P.  Derived from
73130         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73131
73132 2007-01-10  Eric Blake  <ebb9@byu.net>
73133
73134         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73135         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73137         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73138         Reported by Chris McGuire.
73139
73140 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73141
73142         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73143         in sed script.
73144
73145 2007-01-09  Bruno Haible  <bruno@clisp.org>
73146
73147         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73148         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73149         variables.
73150         (func_module): Use them.
73151
73152 2007-01-09  Bruno Haible  <bruno@clisp.org>
73153
73154         * modules/unistr/base: New file.
73155         * lib/unistr.h: New file.
73156
73157         * modules/unistr/u8-to-u16: New file.
73158         * lib/unistr/u8-to-u16.c: New file.
73159
73160         * modules/unistr/u8-to-u32: New file.
73161         * lib/unistr/u8-to-u32.c: New file.
73162
73163         * modules/unistr/u16-to-u8: New file.
73164         * lib/unistr/u16-to-u8.c: New file.
73165
73166         * modules/unistr/u16-to-u32: New file.
73167         * lib/unistr/u16-to-u32.c: New file.
73168
73169         * modules/unistr/u32-to-u8: New file.
73170         * lib/unistr/u32-to-u8.c: New file.
73171
73172         * modules/unistr/u32-to-u16: New file.
73173         * lib/unistr/u32-to-u16.c: New file.
73174
73175         * modules/unistr/u8-check: New file.
73176         * modules/unistr/u16-check: New file.
73177         * modules/unistr/u32-check: New file.
73178         * lib/unistr/u8-check.c: New file.
73179         * lib/unistr/u16-check.c: New file.
73180         * lib/unistr/u32-check.c: New file.
73181
73182         * modules/unistr/u8-chr: New file.
73183         * modules/unistr/u16-chr: New file.
73184         * modules/unistr/u32-chr: New file.
73185         * lib/unistr/u8-chr.c: New file.
73186         * lib/unistr/u16-chr.c: New file.
73187         * lib/unistr/u32-chr.c: New file.
73188
73189         * modules/unistr/u8-cmp: New file.
73190         * modules/unistr/u16-cmp: New file.
73191         * modules/unistr/u32-cmp: New file.
73192         * lib/unistr/u8-cmp.c: New file.
73193         * lib/unistr/u16-cmp.c: New file.
73194         * lib/unistr/u32-cmp.c: New file.
73195
73196         * modules/unistr/u8-cpy: New file.
73197         * modules/unistr/u16-cpy: New file.
73198         * modules/unistr/u32-cpy: New file.
73199         * lib/unistr/u8-cpy.c: New file.
73200         * lib/unistr/u16-cpy.c: New file.
73201         * lib/unistr/u32-cpy.c: New file.
73202         * lib/unistr/u-cpy.h: New file.
73203
73204         * modules/unistr/u8-cpy-alloc: New file.
73205         * modules/unistr/u16-cpy-alloc: New file.
73206         * modules/unistr/u32-cpy-alloc: New file.
73207         * lib/unistr/u8-cpy-alloc.c: New file.
73208         * lib/unistr/u16-cpy-alloc.c: New file.
73209         * lib/unistr/u32-cpy-alloc.c: New file.
73210         * lib/unistr/u-cpy-alloc.h: New file.
73211
73212         * modules/unistr/u8-endswith: New file.
73213         * modules/unistr/u16-endswith: New file.
73214         * modules/unistr/u32-endswith: New file.
73215         * lib/unistr/u8-endswith.c: New file.
73216         * lib/unistr/u16-endswith.c: New file.
73217         * lib/unistr/u32-endswith.c: New file.
73218         * lib/unistr/u-endswith.h: New file.
73219
73220         * modules/unistr/u8-mblen: New file.
73221         * modules/unistr/u16-mblen: New file.
73222         * modules/unistr/u32-mblen: New file.
73223         * lib/unistr/u8-mblen.c: New file.
73224         * lib/unistr/u16-mblen.c: New file.
73225         * lib/unistr/u32-mblen.c: New file.
73226
73227         * modules/unistr/u8-mbtouc: New file.
73228         * modules/unistr/u16-mbtouc: New file.
73229         * modules/unistr/u32-mbtouc: New file.
73230         * lib/unistr/u8-mbtouc.c: New file.
73231         * lib/unistr/u16-mbtouc.c: New file.
73232         * lib/unistr/u32-mbtouc.c: New file.
73233
73234         * modules/unistr/u8-mbtouc-safe: New file.
73235         * modules/unistr/u16-mbtouc-safe: New file.
73236         * modules/unistr/u32-mbtouc-safe: New file.
73237         * lib/unistr/u8-mbtouc-safe.c: New file.
73238         * lib/unistr/u16-mbtouc-safe.c: New file.
73239         * lib/unistr/u32-mbtouc-safe.c: New file.
73240
73241         * modules/unistr/u8-move: New file.
73242         * modules/unistr/u16-move: New file.
73243         * modules/unistr/u32-move: New file.
73244         * lib/unistr/u8-move.c: New file.
73245         * lib/unistr/u16-move.c: New file.
73246         * lib/unistr/u32-move.c: New file.
73247         * lib/unistr/u-move.h: New file.
73248
73249         * modules/unistr/u8-next: New file.
73250         * modules/unistr/u16-next: New file.
73251         * modules/unistr/u32-next: New file.
73252         * lib/unistr/u8-next.c: New file.
73253         * lib/unistr/u16-next.c: New file.
73254         * lib/unistr/u32-next.c: New file.
73255
73256         * modules/unistr/u8-prev: New file.
73257         * modules/unistr/u16-prev: New file.
73258         * modules/unistr/u32-prev: New file.
73259         * lib/unistr/u8-prev.c: New file.
73260         * lib/unistr/u16-prev.c: New file.
73261         * lib/unistr/u32-prev.c: New file.
73262
73263         * modules/unistr/u8-set: New file.
73264         * modules/unistr/u16-set: New file.
73265         * modules/unistr/u32-set: New file.
73266         * lib/unistr/u8-set.c: New file.
73267         * lib/unistr/u16-set.c: New file.
73268         * lib/unistr/u32-set.c: New file.
73269         * lib/unistr/u-set.h: New file.
73270
73271         * modules/unistr/u8-startswith: New file.
73272         * modules/unistr/u16-startswith: New file.
73273         * modules/unistr/u32-startswith: New file.
73274         * lib/unistr/u8-startswith.c: New file.
73275         * lib/unistr/u16-startswith.c: New file.
73276         * lib/unistr/u32-startswith.c: New file.
73277         * lib/unistr/u-startswith.h: New file.
73278
73279         * modules/unistr/u8-stpcpy: New file.
73280         * modules/unistr/u16-stpcpy: New file.
73281         * modules/unistr/u32-stpcpy: New file.
73282         * lib/unistr/u8-stpcpy.c: New file.
73283         * lib/unistr/u16-stpcpy.c: New file.
73284         * lib/unistr/u32-stpcpy.c: New file.
73285         * lib/unistr/u-stpcpy.h: New file.
73286
73287         * modules/unistr/u8-stpncpy: New file.
73288         * modules/unistr/u16-stpncpy: New file.
73289         * modules/unistr/u32-stpncpy: New file.
73290         * lib/unistr/u8-stpncpy.c: New file.
73291         * lib/unistr/u16-stpncpy.c: New file.
73292         * lib/unistr/u32-stpncpy.c: New file.
73293         * lib/unistr/u-stpncpy.h: New file.
73294
73295         * modules/unistr/u8-strcat: New file.
73296         * modules/unistr/u16-strcat: New file.
73297         * modules/unistr/u32-strcat: New file.
73298         * lib/unistr/u8-strcat.c: New file.
73299         * lib/unistr/u16-strcat.c: New file.
73300         * lib/unistr/u32-strcat.c: New file.
73301         * lib/unistr/u-strcat.h: New file.
73302
73303         * modules/unistr/u8-strchr: New file.
73304         * modules/unistr/u16-strchr: New file.
73305         * modules/unistr/u32-strchr: New file.
73306         * lib/unistr/u8-strchr.c: New file.
73307         * lib/unistr/u16-strchr.c: New file.
73308         * lib/unistr/u32-strchr.c: New file.
73309
73310         * modules/unistr/u8-strcmp: New file.
73311         * modules/unistr/u16-strcmp: New file.
73312         * modules/unistr/u32-strcmp: New file.
73313         * lib/unistr/u8-strcmp.c: New file.
73314         * lib/unistr/u16-strcmp.c: New file.
73315         * lib/unistr/u32-strcmp.c: New file.
73316
73317         * modules/unistr/u8-strcpy: New file.
73318         * modules/unistr/u16-strcpy: New file.
73319         * modules/unistr/u32-strcpy: New file.
73320         * lib/unistr/u8-strcpy.c: New file.
73321         * lib/unistr/u16-strcpy.c: New file.
73322         * lib/unistr/u32-strcpy.c: New file.
73323         * lib/unistr/u-strcpy.h: New file.
73324
73325         * modules/unistr/u8-strcspn: New file.
73326         * modules/unistr/u16-strcspn: New file.
73327         * modules/unistr/u32-strcspn: New file.
73328         * lib/unistr/u8-strcspn.c: New file.
73329         * lib/unistr/u16-strcspn.c: New file.
73330         * lib/unistr/u32-strcspn.c: New file.
73331         * lib/unistr/u-strcspn.h: New file.
73332
73333         * modules/unistr/u8-strdup: New file.
73334         * modules/unistr/u16-strdup: New file.
73335         * modules/unistr/u32-strdup: New file.
73336         * lib/unistr/u8-strdup.c: New file.
73337         * lib/unistr/u16-strdup.c: New file.
73338         * lib/unistr/u32-strdup.c: New file.
73339         * lib/unistr/u-strdup.h: New file.
73340
73341         * modules/unistr/u8-strlen: New file.
73342         * modules/unistr/u16-strlen: New file.
73343         * modules/unistr/u32-strlen: New file.
73344         * lib/unistr/u8-strlen.c: New file.
73345         * lib/unistr/u16-strlen.c: New file.
73346         * lib/unistr/u32-strlen.c: New file.
73347         * lib/unistr/u-strlen.h: New file.
73348
73349         * modules/unistr/u8-strmblen: New file.
73350         * modules/unistr/u16-strmblen: New file.
73351         * modules/unistr/u32-strmblen: New file.
73352         * lib/unistr/u8-strmblen.c: New file.
73353         * lib/unistr/u16-strmblen.c: New file.
73354         * lib/unistr/u32-strmblen.c: New file.
73355
73356         * modules/unistr/u8-strmbtouc: New file.
73357         * modules/unistr/u16-strmbtouc: New file.
73358         * modules/unistr/u32-strmbtouc: New file.
73359         * lib/unistr/u8-strmbtouc.c: New file.
73360         * lib/unistr/u16-strmbtouc.c: New file.
73361         * lib/unistr/u32-strmbtouc.c: New file.
73362
73363         * modules/unistr/u8-strncat: New file.
73364         * modules/unistr/u16-strncat: New file.
73365         * modules/unistr/u32-strncat: New file.
73366         * lib/unistr/u8-strncat.c: New file.
73367         * lib/unistr/u16-strncat.c: New file.
73368         * lib/unistr/u32-strncat.c: New file.
73369         * lib/unistr/u-strncat.h: New file.
73370
73371         * modules/unistr/u8-strncmp: New file.
73372         * modules/unistr/u16-strncmp: New file.
73373         * modules/unistr/u32-strncmp: New file.
73374         * lib/unistr/u8-strncmp.c: New file.
73375         * lib/unistr/u16-strncmp.c: New file.
73376         * lib/unistr/u32-strncmp.c: New file.
73377
73378         * modules/unistr/u8-strncpy: New file.
73379         * modules/unistr/u16-strncpy: New file.
73380         * modules/unistr/u32-strncpy: New file.
73381         * lib/unistr/u8-strncpy.c: New file.
73382         * lib/unistr/u16-strncpy.c: New file.
73383         * lib/unistr/u32-strncpy.c: New file.
73384         * lib/unistr/u-strncpy.h: New file.
73385
73386         * modules/unistr/u8-strnlen: New file.
73387         * modules/unistr/u16-strnlen: New file.
73388         * modules/unistr/u32-strnlen: New file.
73389         * lib/unistr/u8-strnlen.c: New file.
73390         * lib/unistr/u16-strnlen.c: New file.
73391         * lib/unistr/u32-strnlen.c: New file.
73392         * lib/unistr/u-strnlen.h: New file.
73393
73394         * modules/unistr/u8-strpbrk: New file.
73395         * modules/unistr/u16-strpbrk: New file.
73396         * modules/unistr/u32-strpbrk: New file.
73397         * lib/unistr/u8-strpbrk.c: New file.
73398         * lib/unistr/u16-strpbrk.c: New file.
73399         * lib/unistr/u32-strpbrk.c: New file.
73400         * lib/unistr/u-strpbrk.h: New file.
73401
73402         * modules/unistr/u8-strrchr: New file.
73403         * modules/unistr/u16-strrchr: New file.
73404         * modules/unistr/u32-strrchr: New file.
73405         * lib/unistr/u8-strrchr.c: New file.
73406         * lib/unistr/u16-strrchr.c: New file.
73407         * lib/unistr/u32-strrchr.c: New file.
73408
73409         * modules/unistr/u8-strspn: New file.
73410         * modules/unistr/u16-strspn: New file.
73411         * modules/unistr/u32-strspn: New file.
73412         * lib/unistr/u8-strspn.c: New file.
73413         * lib/unistr/u16-strspn.c: New file.
73414         * lib/unistr/u32-strspn.c: New file.
73415         * lib/unistr/u-strspn.h: New file.
73416
73417         * modules/unistr/u8-strstr: New file.
73418         * modules/unistr/u16-strstr: New file.
73419         * modules/unistr/u32-strstr: New file.
73420         * lib/unistr/u8-strstr.c: New file.
73421         * lib/unistr/u16-strstr.c: New file.
73422         * lib/unistr/u32-strstr.c: New file.
73423         * lib/unistr/u-strstr.h: New file.
73424
73425         * modules/unistr/u8-strtok: New file.
73426         * modules/unistr/u16-strtok: New file.
73427         * modules/unistr/u32-strtok: New file.
73428         * lib/unistr/u8-strtok.c: New file.
73429         * lib/unistr/u16-strtok.c: New file.
73430         * lib/unistr/u32-strtok.c: New file.
73431         * lib/unistr/u-strtok.h: New file.
73432
73433         * modules/unistr/u8-uctomb: New file.
73434         * modules/unistr/u16-uctomb: New file.
73435         * modules/unistr/u32-uctomb: New file.
73436         * lib/unistr/u8-uctomb.c: New file.
73437         * lib/unistr/u16-uctomb.c: New file.
73438         * lib/unistr/u32-uctomb.c: New file.
73439
73440         * MODULES.html.sh (Unicode string functions): Add the new modules.
73441
73442 2007-01-08  Bruno Haible  <bruno@clisp.org>
73443
73444         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73445         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73446         subdirectories.
73447
73448 2007-01-08  Karl Berry  <karl@gnu.org>
73449
73450         * doc/error.texi: mention that main() fns must set program_name
73451         when progname is used.
73452
73453 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73456         WCTYPE_H is empty, for the benefit of builds from non-distclean
73457         directories.  Problem reported by Eric Blake in
73458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73459
73460 2007-01-08  Bruno Haible  <bruno@clisp.org>
73461
73462         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73463         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73464         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73465         PROVIDE_CANONICALIZE_FILENAME_MODE.
73466         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73467
73468 2007-01-08  Bruno Haible  <bruno@clisp.org>
73469
73470         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73471         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73472         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73473         * lib/fts.c: Likewise.
73474         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73475
73476 2006-12-25  Bruno Haible  <bruno@clisp.org>
73477
73478         * modules/utf8-ucs4-safe: New file.
73479         * lib/utf8-ucs4-safe.h: New file.
73480         * lib/unistr/utf8-ucs4-safe.c: New file.
73481
73482         * modules/utf16-ucs4-safe: New file.
73483         * lib/utf16-ucs4-safe.h: New file.
73484         * lib/unistr/utf16-ucs4-safe.c: New file.
73485
73486         * MODULES.html.sh (Unicode string functions): Add the new modules.
73487
73488 2007-01-08  Bruno Haible  <bruno@clisp.org>
73489
73490         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73491         (Depends-on): Add unitypes.
73492         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73493         (u8_mbtouc_aux): Move out to separate file.
73494         (u8_mbtouc): Use ucs4_t, uint8_t types.
73495         * lib/unistr/utf8-ucs4.c: New file.
73496
73497         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73498         (Depends-on): Add unitypes.
73499         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73500         (u16_mbtouc_aux): Move out to separate file.
73501         (u16_mbtouc): Use ucs4_t, uint16_t types.
73502         * lib/unistr/utf16-ucs4.c: New file.
73503
73504         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73505         (Depends-on): Add unitypes.
73506         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73507         (u8_uctomb_aux): Move out to separate file.
73508         (u8_uctomb): Use ucs4_t, uint8_t types.
73509         * lib/unistr/ucs4-utf8.c: New file.
73510
73511         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73512         (Depends-on): Add unitypes.
73513         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73514         (u16_uctomb_aux): Move out to separate file.
73515         (u16_uctomb): Use ucs4_t, uint16_t types.
73516         * lib/unistr/ucs4-utf16.c: New file.
73517
73518 2006-12-25  Bruno Haible  <bruno@clisp.org>
73519
73520         * modules/unitypes: New file.
73521         * lib/unitypes.h: New file.
73522         * MODULES.html.sh (func_all_modules): New section "Unicode string
73523         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73524         this section. Add unitypes.
73525
73526 2007-01-08  Bruno Haible  <bruno@clisp.org>
73527
73528         Avoid variable names that conflict with those from libtool.
73529         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73530         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73531         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73532         library_names_spec to acl_library_names_spec, hardcode_* to
73533         acl_hardcode_*.
73534         Reported by Ralf Wildenhues.
73535
73536 2007-01-08  Bruno Haible  <bruno@clisp.org>
73537
73538         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73539         definition.
73540         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73541         definition.
73542         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73543         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73544         definition.
73545         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73546         definition.
73547         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73548         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73549         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73550         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73551         definition.
73552         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73553         definition.
73554         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73555         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73556         GC_USE_<algorithm>.
73557         * lib/gc-libgcrypt.c: Likewise.
73558         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73559         * modules/gc-arctwo (configure.ac): Likewise.
73560         * modules/gc-des (configure.ac): Likewise.
73561         * modules/gc-hmac-md5 (configure.ac): Likewise.
73562         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73563         * modules/gc-md2 (configure.ac): Likewise.
73564         * modules/gc-md4 (configure.ac): Likewise.
73565         * modules/gc-md5 (configure.ac): Likewise.
73566         * modules/gc-random (configure.ac): Likewise.
73567         * modules/gc-rijndael (configure.ac): Likewise.
73568         * modules/gc-sha1 (configure.ac): Likewise.
73569
73570 2007-01-08  Bruno Haible  <bruno@clisp.org>
73571
73572         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73573         macro definition.
73574         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73575         definition.
73576         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73577         definition.
73578         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73579         * modules/fcntl-safer (configure.ac): Likewise.
73580         * modules/fopen-safer (configure.ac): Likewise.
73581         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73582         GNULIB_FWRITEERROR macro definition.
73583
73584 2007-01-08  Bruno Haible  <bruno@clisp.org>
73585
73586         * m4/gnulib-common.m4: New file.
73587         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73588         (func_get_filelist): Add m4/gnulib-common.m4.
73589
73590 2007-01-08  Bruno Haible  <bruno@clisp.org>
73591
73592         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73593         command.
73594
73595 2007-01-08  Jim Meyering  <jim@meyering.net>
73596
73597         Use a more robust test for a "can't happen" condition.
73598         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73599         narrowed the st_size value.  Presuming the "can't happen" condition
73600         is true, that narrowing could conceivably convert an invalid st_size
73601         value into a valid one.  Instead, use a change based on Matthew
73602         Woehlke's original patch.
73603
73604         Slight readability improvement: use an assert-like macro
73605         in place of literal "abort ()" uses.
73606         * lib/fts.c (fts_assert): Define.
73607         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73608         Use this macro instead of a bare 'abort'.
73609
73610 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73611
73612         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73613         simply work around them.
73614         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73615         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73616         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73617         declaring.
73618         Don't bother to define as macros, since the standard doesn't require it.
73619         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73620         longer worry about IRIX 5.3.
73621         (HAVE_WCTYPE_CTMP_BUG): Remove.
73622
73623 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73626         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73627         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73628         Problems reported by Georg Schwarz for IRIX 5.3.
73629
73630         * gnulib-tool (autoconf_minversion): Take the maximum version number
73631         found, not the minimum.  Problem reported by James Youngman.
73632
73633 2007-01-03  Karl Berry  <karl@gnu.org>
73634
73635         * doc/error.texi: new file, explaining interaction with progname.
73636         * doc/gnulib.texi: include it.  Update copyright.
73637
73638 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73639
73640         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73641         AC_CANONICAL_HOST, to improve autobuild outputs.
73642
73643 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73644             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73645
73646         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73647         sockets, server sockets, and other file descriptors.  Count errors
73648         to compute the return value.  Reorder the code a bit to be easier
73649         to follow.  Don't set event bits that were not requested (except
73650         POLLERR and POLLHUP).
73651
73652 2007-01-01  Bruno Haible  <bruno@clisp.org>
73653
73654         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73655
73656 2007-01-03  Jim Meyering  <jim@meyering.net>
73657
73658         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73659
73660 2007-01-02  Bruno Haible  <bruno@clisp.org>
73661
73662         * modules/settime (Include): Require timespec.h.
73663         * modules/nanosleep (Include): Likewise.
73664
73665 2007-01-01  Bruno Haible  <bruno@clisp.org>
73666
73667         * gnulib-tool (func_emit_copyright_notice): Bump year.
73668         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73669
73670 2007-01-01  Bruno Haible  <bruno@clisp.org>
73671
73672         Improve support for OpenBSD.
73673         * build-aux/config.rpath (libname_spec): Export.
73674         (library_names_spec): New variable. Export.
73675         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73676         library_names_spec from the config.rpath output. Locate shared library
73677         through the name pattern in library_names_spec.
73678
73679 2007-01-01  Eric Blake  <ebb9@byu.net>
73680
73681         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73682
73683 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73684
73685         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73686         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73687         assume the C locale, and avoid an "eval" that could cause trouble.
73688         Problem with SORT reported by Bob Proulx.
73689
73690         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73691         Define.  Trivial patch from Henning Nielsen Lund, originally
73692         sent to bug-grep@gnu.org today.
73693
73694 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73697         struct stat.  Problem reported by Henning Nielsen Lund.
73698         * lib/acl.c: Include acl.h first, to check interface.  Don't
73699         bother to include sys/types.h and sys/stat.h again.
73700
73701 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         Import the following change from libc; problem reported by
73704         Sven Verdoolaege.
73705
73706         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73707
73708         [BZ #1373]
73709         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73710
73711 2006-12-28  Jim Meyering  <jim@meyering.net>
73712
73713         * build-aux/announce-gen: Do not assume that the package
73714         builds any of tar.gz, tar.bz2, and .xdelta files.
73715         Suggestion from Simon Josefsson.
73716
73717 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73718
73719         * modules/announce-gen: New file.
73720
73721 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73724         handles its gotchas now.
73725         * lib/mbswidth.c: Likewise.
73726         * lib/wcwidth.h: Likewise.
73727         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73728         and iswcntrl; the wctype module does this stuff now.
73729         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73731         * modules/mbchar (Depends-on): Add wctype.
73732         * modules/mbswidth (Depends-on): Likewise.
73733         * modules/wcwidth (Depends-on): Likewise.
73734
73735 2006-12-27  Eric Blake  <ebb9@byu.net>
73736
73737         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73738         module uses more than what <wctype.h> is required to provide.
73739
73740 2006-12-26  Eric Blake  <ebb9@byu.net>
73741
73742         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73743
73744 2006-12-26  Eric Blake  <ebb9@byu.net>
73745
73746         * modules/absolute-header: New module.
73747         * modules/fcntl (Depends-on): Depend on it.
73748         * modules/inttypes (Depends-on): Likewise.
73749         * modules/stdint (Depends-on): Likewise.
73750         * modules/sys_stat (Depends-on): Likewise.
73751         * modules/wctype (Depends-on): Likewise.
73752         * MODULES.html.sh (Support for building libraries and
73753         executables): Document it.
73754
73755 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * gnulib-tool (SED): Remove, undoing previous change.
73758         The problem was that it broke coreutils on Solaris, because
73759         "sed --posix" leaked into a makefile.
73760         (sed): New alias, if 'alias' and GNU sed.
73761
73762 2006-12-24  Jim Meyering  <jim@meyering.net>
73763
73764         Work around an fchownat bug in glibc-2.4:
73765         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73766         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73767         in spite of the -P option.
73768         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73769         New macros.
73770         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73771         * modules/openat (Files): Add lib/fchownat.c.
73772         * lib/openat.c (fchownat): Don't define here.  Move to...
73773         * lib/fchownat.c: ...this new file.
73774
73775 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         Fix bug reported by Bruno Haible in
73778         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73779         where quotearg.c didn't compile on Mac OS X 10.2 because it
73780         lacks <wchar.h> and wint_t.
73781         * lib/wctype_.h (__wctype_wint_t): New type.
73782         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73783         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73784         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73785         Arg is now of type __wctype_wint_t, not wint_t.
73786         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73787         substitute HAVE_WINT_T.
73788         * modules/wctype (Files): Add m4/wint_t.m4.
73789         (wctype.h): Substitute HAVE_WINT_T.
73790
73791 2006-12-23  Bruno Haible  <bruno@clisp.org>
73792
73793         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73794
73795 2006-12-23  Bruno Haible  <bruno@clisp.org>
73796
73797         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73798         S_ISLNK.
73799         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73800         mingw.
73801
73802 2006-12-22  Bruno Haible  <bruno@clisp.org>
73803
73804         * lib/copy-file.c: Include acl.h.
73805         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73806         Close the file descriptors only after being done with copy_acl.
73807         * modules/copy-file (Depends-on): Add acl.
73808
73809 2006-12-22  Bruno Haible  <bruno@clisp.org>
73810
73811         * gnulib-tool (SED): New variable.
73812         Use $SED instead of sed everywhere.
73813
73814 2006-12-22  Bruno Haible  <bruno@clisp.org>
73815
73816         * modules/no-c++: New file.
73817         * m4/no-c++.m4: New file.
73818         * MODULES.html.sh (Support for building libraries and executables):
73819         Add no-c++.
73820
73821 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73822
73823         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73824         Include <limits.h>, and use its INT_MAX to rewrite the
73825         j loop so that it does not overflow 'int'.  Problem reported by
73826         Ralf Wildenhues in
73827         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73828         Play it safe by shifting left by 1 rather than multiplying by 2,
73829         as GCC is less likely to optimize this away when the value
73830         is signed (when it assumes overflow leads to undefined behavior).
73831         Also, don't assume time_t uses two's complement.
73832
73833 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
73834
73835         * MODULES.html.sh: New module wctype.
73836         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
73837         * lib/fnmatch.c: Don't bother to include <wchar.h> before
73838         <wctype.h>, since the new wctype module should fix this.
73839         * lib/quotearg.c: Include <wctype.h> unconditionally, since
73840         the wctype module should arrange for it.
73841         * lib/regex_internal.h: Likewise.
73842         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
73843         since the wctype module should handle this now.
73844         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
73845         * modules/fnmatch (Depends-on): Add wctype.
73846         * modules/quotearg (Depends-on): Likewise.
73847         * modules/regex (Depends-on): Likewise.
73848
73849 2006-12-19  Bruno Haible  <bruno@clisp.org>
73850
73851         * lib/strdup.h [C++]: Wrap definitions in extern "C".
73852         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
73853
73854 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73855
73856         * modules/savewd (Depends-on): Fix dependency on fcntl.
73857
73858 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
73861         conforms to C99, rather than relying on the user's environment
73862         setting of STDINT_H.
73863
73864 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73865         and Eric Blake  <ebb9@byu.net>
73866
73867         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
73868         This is more consistent with the other defines here.
73869         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
73870         Port to z/OS.  Problem reported by Paul Gilmartin.
73871         Change local vars to use gl_ prefix rather than ac_.
73872         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
73873         with other defines.
73874         * modules/double-slash-root: New module.
73875         * modules/dirname (Files): Remove m4/double-slash-root.m4.
73876         (Depends-on): Add double-slash-root.
73877         * MODULES.html.sh (File system functions): Mention new module.
73878
73879 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
73882         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
73883         This is for the benefit of gzip, which doesn't do i18n.
73884
73885 2006-12-12  Jim Meyering  <jim@meyering.net>
73886
73887         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
73888         Reported by Andreas Schwab <schwab@suse.de>.
73889
73890 2006-12-12  Bruno Haible  <bruno@clisp.org>
73891
73892         Merge these changes.
73893         2006-09-05  Bruno Haible  <bruno@clisp.org>
73894         * lib/iconvme.c (iconv_string): No need to save and restore errno when
73895         iconv_alloc succeeded.
73896         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
73897         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
73898         test for " && dest " at the end - dest is always != NULL there. Call
73899         iconv with 4xNULL arguments initially, to reset the state. Call iconv
73900         with 2xNULL arguments, also to flush the state storage. Handle the
73901         IRIX iconv behaviour. Realloc the final result, to throw away unused
73902         memory.
73903
73904 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
73905
73906         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
73907         and fchmodat unconditionally, since glibc 2.4 has them.
73908         Problem reported by Arkadiusz Miskiewicz.
73909
73910 2006-12-10  Bruno Haible  <bruno@clisp.org>
73911
73912         * gnulib-tool (func_import): Show the include files only for those
73913         modules that are copied and specified.
73914         Reported by Karl Berry.
73915
73916 2006-12-08  Jim Meyering  <jim@meyering.net>
73917
73918         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
73919         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
73920
73921         * build-aux/announce-gen: Add two new options, both optional:
73922         --bootstrap-tools=TOOL_LIST
73923               a comma-separated list of tools, e.g.,
73924               autoconf,automake,bison,gnulib
73925         --gnulib-snapshot-date=DATE
73926               if gnulib is in the bootstrap tool list,
73927               then report this as the snapshot date.
73928               If not specified, use the current date/time.
73929               If you specify a date here, be sure it's UTC.
73930
73931 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73932
73933         * tests/test-argp-2.sh: Fix test to match actual output.
73934         (func_compare): Fix sed script to be portable.
73935
73936 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
73939         workaround for this case.  It is not autoconfigured now; offhand
73940         it's hard to see how to autoconfigure it.
73941
73942 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
73945         a directory that is about to be chowned.  Such a directory's
73946         initial file permissions should permit the owner only and this
73947         should not be changed until after the chown, since the group and
73948         other bits would be incorrect if they granted permission before
73949         the chown.
73950
73951         Fix porting problem for iswctype reported by Georg Schwarz in:
73952         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
73953         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
73954         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
73955         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
73956         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73957
73958 2006-12-03  Jim Meyering  <jim@meyering.net>
73959
73960         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
73961         p->fts_statp may not yet be defined.
73962         (fts_read): Instead, set it in the caller, once p->fts_statp is
73963         sure to be defined, and corresponds to a top-level directory.
73964         This bug made du -x fail.  Here's the coreutils test case:
73965         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
73966         Reported by Mike Frysinger.
73967
73968 2006-12-01  Jim Meyering  <jim@meyering.net>
73969
73970         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
73971         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
73972         Reported by Simon Josefsson.
73973
73974 2006-11-30  Jim Meyering  <jim@meyering.net>
73975
73976         * m4/warning.m4: Use the all-permissive copyright notice
73977         recommended by RMS (rather than LGPL).
73978         * m4/vararrays.m4: Likewise.
73979         * m4/flexmember.m4: Likewise.
73980
73981 2006-11-29  Bruno Haible  <bruno@clisp.org>
73982
73983         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73984         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73985         using +=.
73986         Reported by Simon Josefsson <simon@josefsson.org>.
73987
73988 2006-11-28  James Youngman <jay@gnu.org>
73989
73990         * README: Advise users that they might find the bug-gnulib@gnu.org
73991         and autotools-announce@gnu.org mailing lists useful.
73992
73993 2006-11-28  Bruno Haible  <bruno@clisp.org>
73994
73995         * m4/ptrdiff_max.m4: Remove file.
73996
73997 2006-11-21  Bruno Haible  <bruno@clisp.org>
73998
73999         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74000         _AC_COMPUTE_INT.
74001         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74002         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74003         _AC_COMPUTE_INT.
74004         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74005         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74006         _AC_COMPUTE_INT.
74007         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74008
74009 2006-11-28  Jim Meyering  <jim@meyering.net>
74010
74011         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74012         warning from "gcc -Wshadow" about shadowing the builtin.
74013
74014 2006-11-27  Bruno Haible  <bruno@clisp.org>
74015
74016         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74017         _AC_COMPUTE_INT.
74018         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74019
74020 2006-11-27  Bruno Haible  <bruno@clisp.org>
74021             Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74024
74025 2006-11-26  Bruno Haible  <bruno@clisp.org>
74026
74027         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74028         noinst_LTLIBRARIES.
74029
74030 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74031             Bruno Haible  <bruno@clisp.org>
74032
74033         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74034         if compiling with "gcc -ansi".
74035
74036 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74037
74038         Fix some incompatibilities with gcc -ansi -pedantic.
74039         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74040         if compiling pedantically with GCC, unless it's C99 or later.
74041         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74042         it mishandles gcc -ansi -pedantic as well.
74043         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74044         if gcc -pedantic.
74045         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74046         initializers for struct if -pedantic, unless it's C99 or later.
74047
74048 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74049
74050         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74051         Don't close an fd more than once. Identical atimes indicate
74052         success, not failure.
74053
74054 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74055
74056         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74057
74058 2006-11-23  Jim Meyering  <jim@meyering.net>
74059
74060         * build-aux/announce-gen: New file.  From coreutils.
74061
74062 2006-11-22  Jim Meyering  <jim@meyering.net>
74063
74064         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74065         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74066         (fts_read): Use a temporary to narrow the overused st_size member
74067         before using it in a switch statement.  Reported by Matthew Woehlke.
74068
74069         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74070         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74071
74072 2006-11-20  Bruno Haible  <bruno@clisp.org>
74073
74074         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74075         changequote instead of pairs of brackets.
74076         Reported by Andreas Schwab <schwab@suse.de>.
74077
74078 2006-11-21  Jim Meyering  <jim@meyering.net>
74079
74080         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74081         so as to remain compatible with older compilers.
74082         Patch from Michael Deutschmann.
74083
74084 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74085
74086         * MODULES.html.sh (File system functions): Add openat.
74087
74088         * lib/openat.h (rpl_fstatat): New macro, if
74089         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74090         (fstatat): Define to rpl_fstatat under the same conditions,
74091         unless COMPILING_FSTATAT.
74092         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74093         seems to have the bug.
74094         * lib/fstatat.c: New file.
74095         * modules/openat (Files): Add it.
74096
74097 2006-11-20  Bruno Haible  <bruno@clisp.org>
74098
74099         * Makefile: New file.
74100
74101 2006-11-20  Jim Meyering  <jim@meyering.net>
74102
74103         The beginnings of syntax-related checks for gnulib.
74104         * lib/Makefile: New file.
74105         * lib/t-idcache: New script.  Ensure that the two halves of
74106         idcache.c stay in sync.
74107
74108         * lib/idcache.c: Adjust comments in user- and group- portions to
74109         be more accurate, and to be consistent with one another.
74110
74111 2006-11-20  Jim Meyering  <jim@meyering.net>
74112
74113         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74114         continue using the flexible array member (thus, this module performs
74115         half as many malloc calls), with the addition that...
74116         (getgroup, getuser): Consistently record a non-match via an empty
74117         "name" string, and map an empty string match to a NULL return value.
74118         * modules/idcache (Depends-on): Re-add flexmember.
74119
74120         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74121         (getuidbyname, getgroup, getgidbyname): Likewise.
74122
74123         Use cleaner syntax: NULL rather than 0.
74124         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74125
74126 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74129         It mishandled the case where the group was missing.
74130         Problem reported by Greg Schafer.
74131         * modules/idcache: Likewise.
74132
74133 2006-11-18  Jim Meyering  <jim@meyering.net>
74134
74135         * check-module (%exempt_header): Add exception for some
74136         conditionally-included headers.
74137
74138         * modules/i-ring (Depends-on): Add verify.
74139         (License): Change to LGPL.
74140
74141 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74142
74143         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74144         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74145         and inttostr.h.  Use snprintf rather than uinttostr, so that
74146         LGPLed code doesn't depend on GPLed.
74147
74148 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74149
74150         * modules/inline (License): Change from GPL to LGPL.
74151
74152 2006-11-17  Jim Meyering  <jim@meyering.net>
74153
74154         * modules/d-type (License): Switch to LGPL.
74155
74156 2006-11-15  Bruno Haible  <bruno@clisp.org>
74157
74158         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74159
74160 2006-11-15  Eric Blake  <ebb9@byu.net>
74161
74162         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74163         the module dependency.
74164
74165 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74166             Bruno Haible  <bruno@clisp.org>
74167
74168         * gnulib-tool (func_create_testdir): Add license consistency check.
74169
74170 2006-11-15  Eric Blake  <ebb9@byu.net>
74171
74172         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74173         random "(cached)" in configure output.
74174
74175 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74176
74177         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74178         test for conforming inttypes.h is both announced and cached.
74179
74180         * MODULES.html.sh (seen_modules, seen_files): New variables.
74181         (func_module): Rewrite to use a few less gnulib-tool and sed
74182         invocations.  Avoid a couple of quadratic algorithms for ...
74183         (missed_modules, missed_files): ... these, with ...
74184         (func_append, func_tmpdir): ... these new functions, from
74185         gnulib-tool.  Analogously, install traps for cleanup.
74186
74187         * tests/test-gc.c (main): Remove unused variables.
74188         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74189
74190 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74191
74192         * modules/inttostr (License): Change to LGPL.
74193
74194 2006-11-14  Eric Blake  <ebb9@byu.net>
74195
74196         * modules/tempname (License): Change to LGPL.
74197
74198 2006-11-14  Eric Blake  <ebb9@byu.net>
74199
74200         * doc/functions.texi (Function Portability): *printf functions on
74201         Cygwin now understand all POSIX size specifiers.
74202
74203 2006-11-14  Bruno Haible  <bruno@clisp.org>
74204
74205         * modules/c-ctype (License): Change to LGPL.
74206
74207 2006-11-12  Bruno Haible  <bruno@clisp.org>
74208
74209         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74210         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74211         for GNOME libraries, for which the include files are installed in
74212         subdirectories of $prefix/include.
74213
74214 2006-11-12  Bruno Haible  <bruno@clisp.org>
74215
74216         * m4/lib-link.m4: Require at least autoconf-2.54.
74217         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74218         name to underscores for the --with option.
74219
74220 2006-11-13  Bruno Haible  <bruno@clisp.org>
74221
74222         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74223         the tests directory.
74224         Reported by Ralf Wildenhues.
74225
74226 2006-11-13  Bruno Haible  <bruno@clisp.org>
74227
74228         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74229         (func_emit_initmacro_end): Undo the override here.
74230         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74231         Works around the famous automake error in coreutils.
74232
74233 2006-11-13  Eric Blake  <ebb9@byu.net>
74234
74235         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74236         element, not its node.
74237
74238 2006-11-12  Bruno Haible  <bruno@clisp.org>
74239
74240         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74241         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74242
74243 2006-11-12  Bruno Haible  <bruno@clisp.org>
74244
74245         * gnulib-tool: New option --local-symlink.
74246         (func_usage): Document it.
74247         (lsymbolic): New variable.
74248         (func_import, func_create_testdir): If --symlink was not specified,
74249         test whether --local-symlink was specified and the file comes from
74250         the local_gnulib_dir.
74251
74252 2006-11-12  Bruno Haible  <bruno@clisp.org>
74253
74254         * gnulib-tool (func_ln): New function.
74255         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74256
74257 2006-11-12  Bruno Haible  <bruno@clisp.org>
74258
74259         Finish support for source files in subdirectories.
74260         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74261         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74262         AUTOMAKE_OPTIONS.
74263         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74264
74265 2006-11-12  Bruno Haible  <bruno@clisp.org>
74266
74267         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74268         EXTRA_lib_SOURCES augmentation.
74269         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74270
74271 2006-11-12  Jim Meyering  <jim@meyering.net>
74272
74273         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74274         file descriptors.  This also averts a failure on systems with
74275         native openat support when a traversed directory lacks "x" access.
74276         * lib/fts_.h: Include "i-ring.h"
74277         (struct FTS) [fts_fd_ring]: New member.
74278         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74279         (FCHDIR): Add parentheses.
74280         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74281         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74282         When descending, rather than simply closing the previous
74283         fts_cwd_fd value, push that file descriptor onto the ring.
74284         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74285         (fts_open): Initialize the new fd_ring member.
74286         (fts_close): Clear the ring.
74287         (fts_safe_changedir): When possible, use our new fd_ring to skip
74288         the diropen and fstat and dev/ino comparison that would normally
74289         accompany a virtual `chdir ("..")'.
74290
74291         * modules/fts (Depends-on): Add i-ring.
74292         * modules/i-ring: New module.
74293         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74294         * m4/i-ring.m4: New file.
74295
74296 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74297
74298         * gnulib-tool (func_create_testdir): Fix replacement of
74299         `build-aux' in configure.ac.  Run autotools in gltests
74300         subdirectory.
74301         (func_create_testdir, func_create_megatestdir, test): There is
74302         no need for '--force' in most autotool invocations in a new
74303         tree.  Actually fail the whole test if any of the tools, or the
74304         configure or make stages fail.
74305
74306         Sync from Automake.
74307         * build-aux/gnupload: Revert last change.  Add pointer to upload
74308         instructions of the GNU Maintenance Instructions.
74309         Suggestion by Karl Berry.
74310
74311 2006-11-10  Jim Meyering  <jim@meyering.net>
74312
74313         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74314
74315 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74318         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74319         (bind_textdomain_codeset) [! ENABLE_NLS]:
74320         Evaluate all the arguments.  That way, callers get compatible behavior
74321         if the arguments have side effects.  Also, it avoids some GCC
74322         diagnostics in some cases; Joel E. Denny reported problems when Bison
74323         was configured with --enable-gcc-warnigs.
74324
74325 2006-11-10  Jim Meyering  <jim@meyering.net>
74326
74327         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74328         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74329         account.
74330
74331 2006-11-10  Jim Meyering  <jim@meyering.net>
74332
74333         * modules/inline: New file/module.
74334         * modules/xalloc (Files): Remove m4/inline.m4.
74335         (Depends-on): Add inline, instead.
74336         * modules/oset: Likewise.
74337         * modules/list: Likewise.
74338
74339 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74340
74341         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74342         Problem reported by Matthew Woehlke.
74343
74344 2006-11-09  Bruno Haible  <bruno@clisp.org>
74345
74346         * lib/tempname.c (gen_tempname): Remove variant that invokes
74347         __gen_tempname.
74348         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74349         __gen_tempname.
74350
74351 2006-11-08  Bruno Haible  <bruno@clisp.org>
74352
74353         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74354         to 'yes' instead of 'cross-compiling'.
74355
74356 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * lib/quotearg.h (quotearg_free): New decl.
74359         * lib/quotearg.c (quotearg_free): New function.
74360         (slot0, nslots, slotvec0, slotvec):
74361         Now file-scope so that quotearg_free can get at them.
74362
74363 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74364
74365         Sync from Automake.
74366         * build-aux/gnupload: Add missing 'gnu' to example URL.
74367         Report by Karl Berry.
74368
74369 2006-11-08  Bruno Haible  <bruno@clisp.org>
74370
74371         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74372         Suggested by Paul Eggert.
74373
74374 2006-11-08  Jim Meyering  <jim@meyering.net>
74375
74376         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74377         It's already included if !_LIBC.
74378         (fts_safe_changedir): Add a comment.
74379
74380 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74381
74382         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74383         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74384         Matthew Woehlke.
74385
74386         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74387         definitions up, to avoid colliding with change below.
74388         (static_inline) [HAVE_INLINE]: New macro.
74389         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74390         Provide extern decls when !HAVE_INLINE.  Do not define unless
74391         static_inline is defined, either by us or by xmalloc.c.  Use
74392         static_inline rather than static inline.
74393         (XCALLOC): Optimize sizeof(T) = 1 case.
74394         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74395
74396 2006-11-07  Bruno Haible  <bruno@clisp.org>
74397
74398         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74399         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74400         AC_C_INLINE.
74401         * modules/xalloc (Files): Add m4/inline.m4.
74402
74403 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74404
74405         * README: Fix typo.
74406         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74407         (Miscellanous Notes): ...from this.
74408
74409 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74410
74411         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74412         Mention that offsetof should be used instead of sizeof.
74413         From Bruno Haible.
74414
74415 2006-11-07  Bruno Haible  <bruno@clisp.org>
74416
74417         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74418
74419 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74422         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74423         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74424         (gl_tree_add_before, gl_tree_add_after):
74425         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74426         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74427         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74428         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74429         (gl_linked_add_after, gl_linked_add_at): Likewise.
74430         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74431         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74432         (gl_tree_add_before, gl_tree_add_after): Likewise.
74433         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74434         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74435         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74436
74437 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74438
74439         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74440
74441 2006-11-06  Bruno Haible  <bruno@clisp.org>
74442
74443         * m4/inline.m4: New file.
74444         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74445         * modules/list (Files): Add m4/inline.m4.
74446         * modules/oset (Files): Likewise.
74447
74448 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74449
74450         * lib/idcache.c: Include <stddef.h>, for offsetof.
74451         (struct userid.name): Change from char * to a flexible array member.
74452         All uses changed.
74453         * modules/idcache (Depends-on): Add flexmember.
74454
74455         * MODULES.html.sh (Core language properties): New module flexmember.
74456         * modules/flexmember, m4/flexmember.m4: New files.
74457
74458         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74459         inline functions that are identical with the old xnmalloc_inline,
74460         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74461         that we can avoid some unnecessary integer multiplications and
74462         divisions in the common case where the element size is known at
74463         compile time.
74464         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74465         needed.
74466         (xnboundedmalloc): Remove.
74467         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74468         arguments, for consistency with rest of this header.
74469         (xcharalloc): Rewrite using XNMALLOC.
74470         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74471         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74472         versions have been moved to lib/xalloc.h and renamed to be the
74473         non-*_inline versions.
74474         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74475         and xnrealloc functions, since those functions are now inline and
74476         now call us.
74477         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74478         renaming described above.
74479         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74480         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74481         captures the dependency in AC_C_INLINE.
74482
74483         New module canonicalize-lgpl, proposed by Charles Wilson in
74484         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74485         with a few small changes afterwards.
74486         * MODULES.html.sh (File system functions): New module
74487         canonicalize-lgpl.
74488         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74489         and canonicalize_file_name.
74490         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74491         * modules/canonicalize-lgpl: New files.
74492
74493 2006-11-05  Bruno Haible  <bruno@clisp.org>
74494
74495         * gnulib-tool (func_import, func_create_testdir): Create directories
74496         also for files in subdirectories of lib/.
74497
74498 2006-11-05  Bruno Haible  <bruno@clisp.org>
74499
74500         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74501         ANSI C compliant.
74502
74503 2006-11-03  Bruno Haible  <bruno@clisp.org>
74504
74505         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74506         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74507         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74508         (xnboundedmalloc): New inline function.
74509         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74510         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74511         xmalloc.
74512         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74513         xmalloc.
74514         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74515         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74516         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74517         xmalloc.
74518         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74519         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74520         xmalloc.
74521         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74522         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74523         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74524         xmalloc.
74525         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74526         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74527         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74528         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74529         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74530         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74531         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74532
74533 2006-11-03  Bruno Haible  <bruno@clisp.org>
74534
74535         * lib/c-ctype.h [C++]: Define functions without name mangling.
74536         * lib/fwriteerror.h [C++]: Likewise.
74537         * lib/gcd.h [C++]: Likewise.
74538         * lib/linebreak.h [C++]: Likewise.
74539
74540 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74543         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74544         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74545         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74546         Check for functions and headers just once.
74547         Check for declaration of canonicalize_file_name.
74548         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74549
74550 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74551
74552         * gnulib-tool (func_import): Fix typo in actioncmd.
74553
74554 2006-11-02  Bruno Haible  <bruno@clisp.org>
74555
74556         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74557         newline sequence in the Makefile.am snippet as a space, like "make"
74558         does.
74559         Reported by Roger Persson <perrog@gmail.com>.
74560
74561 2006-11-01  Bruno Haible  <bruno@clisp.org>
74562
74563         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74564         already declared in <string.h>.
74565         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74566
74567 2006-11-01  Bruno Haible  <bruno@clisp.org>
74568
74569         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74570         * lib/strcase.h: Include <string.h>.
74571         (strcasecmp): Define to rpl_strcasecmp here.
74572
74573 2006-11-01  Bruno Haible  <bruno@clisp.org>
74574
74575         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74576
74577 2006-11-01  Eric Blake  <ebb9@byu.net>
74578
74579         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74580
74581         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74582
74583 2006-10-29  Bruno Haible  <bruno@clisp.org>
74584
74585         Make it compile in C++ mode.
74586         * lib/full-write.c (full_rw): Add a cast.
74587
74588 2006-11-01  Bruno Haible  <bruno@clisp.org>
74589
74590         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74591         be POSIX compliant.
74592         Reported by Roger Persson <perrog@gmail.com>.
74593
74594 2006-11-01  Eric Blake  <ebb9@byu.net>
74595
74596         * lib/getopt_.h: Fix comments.
74597
74598 2006-10-31  Eric Blake  <ebb9@byu.net>
74599
74600         * modules/tmpdir (Depends-on): Add sys_stat.
74601         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74602         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74603         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74604         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74605         tempname.
74606
74607 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74608
74609         Avoid some C++ diagnostics reported by Bruno Haible.
74610         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74611         xmalloc.
74612         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74613         (struct slotvec): Move to top level.
74614         (quotearg_n_options): Rewrite to avoid xmalloc.
74615         * lib/xalloc.h (xcharalloc): New function.
74616         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74617         [defined __cplusplus]: Add function template that provides result
74618         type propagation.  This part of the change is from Bruno Haible.
74619
74620 2006-10-29  Bruno Haible  <bruno@clisp.org>
74621
74622         Make it compile in C++ mode.
74623         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74624         * lib/strnlen1.c (strnlen1): Cast memchr result.
74625         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74626         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74627         (create_temp_dir): Rename local variable 'template'.
74628         (compile_csharp_using_sscli): Add cast.
74629         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74630         * lib/findprog.c (find_in_path): Likewise.
74631         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74632         * lib/wait-process.c (register_slave_subprocess): Likewise.
74633
74634 2006-10-22  Bruno Haible  <bruno@clisp.org>
74635
74636         * modules/tsearch: New file.
74637         * lib/tsearch.h: New file.
74638         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74639         * m4/tsearch.m4: New file.
74640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74641
74642 2006-10-29  Eric Blake  <ebb9@byu.net>
74643
74644         * lib/arcfour.c: Assume config.h.
74645         * lib/arctwo.c: Likewise.
74646         * lib/base64.c: Likewise.
74647         * lib/check-version.c: Likewise.
74648         * lib/crc.c: Likewise.
74649         * lib/des.c: Likewise.
74650         * lib/gc-gnulib.c: Likewise.
74651         * lib/gc-libgcrypt.c: Likewise.
74652         * lib/gc-pbkdf2-sha1.c: Likewise.
74653         * lib/getaddrinfo.c: Likewise.
74654         * lib/getdelim.c: Likewise.
74655         * lib/getline.c: Likewise.
74656         * lib/hmac-md5.c: Likewise.
74657         * lib/hmac-sha1.c: Likewise.
74658         * lib/iconvme.c: Likewise.
74659         * lib/md2.c: Likewise.
74660         * lib/md4.c: Likewise.
74661         * lib/memxor.c: Likewise.
74662         * lib/read-file.c: Likewise.
74663         * lib/readline.c: Likewise.
74664         * lib/rijndael-alg-fst.c: Likewise.
74665         * lib/rijndael-api-fst.c: Likewise.
74666         * lib/xgetdomainname.c: Likewise.
74667
74668 2006-10-28  Eric Blake  <ebb9@byu.net>
74669
74670         * lib/xstrndup.c: Assume config.h.
74671
74672 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74673
74674         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74675         stat-macros.h is now for our own macros, whereas stat_h is for
74676         macros in the <sys/stat.h> name space.
74677         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74678         (STAT_MACROS_H): Remove.
74679         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74680         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74681         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74682         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74683         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74684         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74685         Move these macros to ...
74686         * lib/stat_.h: here.  Don't include stat-macros.h.
74687         * lib/canonicalize.c: Don't include stat-macros.h.
74688         * lib/chown.c: Likewise.
74689         * lib/euidaccess.c: Likewise.
74690         * lib/file-type.c: Likewise.
74691         * lib/filemode.c: Likewise.
74692         * lib/glob.c: Likewise.
74693         * lib/isapipe.c: Likewise.
74694         * lib/lchown.c: Likewise.
74695         * lib/lstat.c: Likewise.
74696         * lib/mkdir-p.c: Likewise.
74697         * lib/rmdir.c: Likewise.
74698         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74700         unless mkdir isn't declared, to speed up 'configure'.
74701         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74702         would define all the S_* symbols.
74703         * modules/canonicalize (Depends-on):
74704         Depend on sys_stat, not stat-macros.
74705         * modules/chown: Likewise.
74706         * modules/euidaccess: Likewise.
74707         * modules/filemode: Likewise.
74708         * modules/file-type: Likewise.
74709         * modules/glob: Likewise.
74710         * modules/isapipe: Likewise.
74711         * modules/lchown: Likewise.
74712         * modules/lstat: Likewise.
74713         * modules/mkancesdirs: Likewise.
74714         * modules/rmdir: Likewise.
74715         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74716         * modules/modechange: Likewise.
74717         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74718         (configure.ac): Remove gl_STAT_MACROS.
74719         * modules/sys_stat (Depends-on): Remove stat-macros.
74720
74721 2006-10-27  Bruno Haible  <bruno@clisp.org>
74722
74723         * m4/signed.m4: Remove file.
74724         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74725         invocation.
74726         * modules/vasnprintf (Files): Remove m4/signed.m4.
74727
74728 2006-10-27  Bruno Haible  <bruno@clisp.org>
74729
74730         Update to GNU gettext 0.16.
74731         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74732         m4/inttypes-h.m4, m4/signed.m4.
74733         * m4/gettext.m4: Update to GNU gettext 0.16.
74734         * m4/intl.m4: New file, from GNU gettext.
74735         * m4/intldir.m4: New file, from GNU gettext.
74736         * config/srclist.txt: Update
74737
74738 2006-10-27  Eric Blake  <ebb9@byu.net>
74739
74740         * MODULES.html.sh: Document tempname.
74741         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74742         dependencies.
74743         (Files): Move lib/tempname.c...
74744         * modules/tempname: ...to this new module.
74745         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74746         (gl_PREREQ_TEMPNAME): Move...
74747         * m4/tempname.m4: ...to this new file.
74748         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74749         * modules/sys_stat (Depends-on): Add stat-macros.
74750         * lib/stat_.h (includes): Pick up stat macros.
74751         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74752         if stat macros are broken.
74753         * lib/tempname.c (includes): No need to include "stat-macros.h".
74754         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74755         (direxists, __path_search) [!_LIBC]: Don't compile these in
74756         gnulib; the tmpdir module covers that.
74757         * lib/tempname.h: New file.
74758
74759 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         * COPYING: Explain how gnulib-tool converts licence headers.
74762         Almost all wording by Eric Blake.
74763
74764 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * lib/mbchar.h (is_basic_table): Make read-only.
74767         * lib/mbchar.c (is_basic_table): Likewise.
74768         Reported by John Darrington.
74769
74770 2006-10-25  Bruno Haible  <bruno@clisp.org>
74771
74772         * lib/progname.h (set_program_name): Undefine before defining.
74773
74774 2006-10-25  Bruno Haible  <bruno@clisp.org>
74775
74776         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74777         false for non-gcc C++ compilers.
74778         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74779
74780 2006-10-24  Bruno Haible  <bruno@clisp.org>
74781
74782         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74783         iconv implementations like Irix iconv.
74784
74785 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74786
74787         * modules/vararrays: New file.
74788         * m4/vararrays.m4: New file, taken from diffutils.
74789         * MODULES.html.sh: New module vararrays.
74790
74791 2006-10-24  Karl Berry  <karl@gnu.org>
74792
74793         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74794         Don't call GNU Unix.
74795
74796 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74797
74798         * users.txt: Add Libtool.
74799
74800         Sync from Libtool:
74801
74802         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74805         to gnulib's policy of including config.h unconditionally.
74806
74807 2006-10-24  Bruno Haible  <bruno@clisp.org>
74808
74809         * modules/wcwidth (Files): Add m4/wint_t.m4.
74810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74811         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74812
74813 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74816         to pacify GCC with some -W flags enabled.  Problem reported by
74817         Bruno Haible.
74818
74819 2006-10-24  Jim Meyering  <jim@meyering.net>
74820
74821         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74822         Reported by Karl Berry.
74823
74824 2006-10-23  Bruno Haible  <bruno@clisp.org>
74825
74826         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74827
74828 2006-10-24  Bruno Haible  <bruno@clisp.org>
74829
74830         * lib/gl_list.h: Use C comment style, not C++ comment style.
74831
74832 2006-10-23  Eric Blake  <ebb9@byu.net>
74833
74834         * lib/getaddrinfo.c (includes): Add missing include.
74835
74836 2006-10-23  Bruno Haible  <bruno@clisp.org>
74837             Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         Ability to rename obstack_free.
74840         * lib/obstack.h (__obstack_free): New macro. Declare instead of
74841         obstack_free.
74842         (obstack_free): Invoke the __obstack_free macro.
74843         * lib/obstack.c (obstack_free): Use __obstack_free macro.
74844
74845 2006-10-23  Bruno Haible  <bruno@clisp.org>
74846             Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
74849         __argc, __argv from the declaration. (They are defined as macros on
74850         mingw.)
74851
74852 2006-10-22  Bruno Haible  <bruno@clisp.org>
74853
74854         * doc/gnulib-intro.texi: New file.
74855         * doc/gnulib.texi: Include it.
74856
74857 2006-10-21  Bruno Haible  <bruno@clisp.org>
74858
74859         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
74860         "Introduction", "Miscellanous Notes", "Particular Modules".
74861
74862 2006-10-21  Bruno Haible  <bruno@clisp.org>
74863
74864         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74865         Change mostlyclean-local rule to avoid sh syntax error from bash
74866         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
74867
74868 2006-10-23  Jim Meyering  <jim@meyering.net>
74869
74870         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
74871         in place of snprintf.
74872
74873         * modules/inttostr (Files): Add lib/uinttostr.c.
74874         * lib/uinttostr.c (inttostr): New file/function.
74875         * lib/inttostr.h (uinttostr): Declare.
74876         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
74877         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74878         Add uinttostr.
74879         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
74880
74881 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         * lib/canonicalize.c (ELOOP): Define if not already defined.
74884         Problem reported by Bruno Haible in
74885         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
74886
74887 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
74890         Problem reported by Perry Smith and Ville Laurikari.
74891
74892         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
74893         uses.
74894
74895 2006-10-19  Bruno Haible  <bruno@clisp.org>
74896
74897         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
74898         for mingw.
74899
74900 2006-10-19  Bruno Haible  <bruno@clisp.org>
74901
74902         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
74903         Needed for mingw.
74904
74905 2006-10-19  Bruno Haible  <bruno@clisp.org>
74906
74907         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
74908
74909 2006-10-19  Bruno Haible  <bruno@clisp.org>
74910
74911         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
74912         it.
74913
74914 2006-10-19  Bruno Haible  <bruno@clisp.org>
74915
74916         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
74917         invocation.
74918
74919 2006-10-19  Bruno Haible  <bruno@clisp.org>
74920
74921         * gnulib-tool (func_create_testdir): Don't include ftruncate and
74922         mountlist by default.
74923
74924 2006-10-16  Bruno Haible  <bruno@clisp.org>
74925
74926         * lib/c-strstr.c: Include c-strstr.h.
74927
74928 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74929
74930         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
74931         in a slash.
74932
74933 2006-10-18  Bruno Haible  <bruno@clisp.org>
74934
74935         * lib/lock.h [C++]: Wrap definitions in extern "C".
74936
74937 2006-10-18  Bruno Haible  <bruno@clisp.org>
74938
74939         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
74940         gl_LIBOBJS list.
74941
74942 2006-10-18  Bruno Haible  <bruno@clisp.org>
74943
74944         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
74945
74946 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * lib/xstrtol.h: Include gettext.h.
74949         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
74950         Problem reported by Eric Blake.
74951         * modules/xstrtol (Depends-on): Add gettext-h.
74952
74953 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
74954
74955         * lib/strftime.c (advance): New macro.
74956         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
74957         incomplete type, so you can't add 0 to it.  Problem and patch
74958         reported by Eelco Dolstra for dietlibc.
74959
74960 2006-10-18  Jim Meyering  <jim@meyering.net>
74961
74962         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
74963         type for a local, and rename it: s/up/user_proc/.
74964
74965 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74966
74967         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
74968         READ_UTMP_USER_PROCESS.
74969         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
74970
74971 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
74974         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
74975
74976 2006-10-17  Eric Blake  <ebb9@byu.net>
74977
74978         * lib/sigprocmask.c (sigprocmask): Fix typo.
74979
74980         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74981
74982         * modules/clean-temp (Makefile.am): Don't add to make output...
74983         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74984         config.h.
74985
74986 2006-10-17  Bruno Haible  <bruno@clisp.org>
74987
74988         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74989         differently if DEFAULT_TEXT_DOMAIN is set.
74990
74991 2006-10-16  Bruno Haible  <bruno@clisp.org>
74992
74993         * lib/clean-temp.c: Include fwriteerror.h.
74994
74995 2006-10-16  Bruno Haible  <bruno@clisp.org>
74996
74997         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74998
74999 2006-10-16  Bruno Haible  <bruno@clisp.org>
75000
75001         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75002         * lib/sigprocmask.h: Include <sys/types.h>.
75003         (sigset_t): Use the system's definition if present.
75004
75005 2006-10-17  Eric Blake  <ebb9@byu.net>
75006
75007         * lib/xvasprintf.c (includes): Assume config.h.
75008         * lib/xasprintf.c (includes): Likewise.
75009
75010 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75013         at least as wide as intmax_t.
75014
75015 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75016
75017         (Imported from Automake.)
75018         * build-aux/gnupload: Update to version 1.1 of directive file.
75019
75020 2006-10-16  Eric Blake  <ebb9@byu.net>
75021
75022         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75023         match Automake 1.10a.
75024
75025 2006-10-14  Bruno Haible  <bruno@clisp.org>
75026
75027         * modules/sigprocmask: New file.
75028         * lib/sigprocmask.h: New file.
75029         * lib/sigprocmask.c: New file.
75030         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75031         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75032         request sigprocmask.o.
75033         (gl_PREREQ_SIGPROCMASK): New macro.
75034         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75035         (Depends-on): Add sigprocmask.
75036         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75037         gt_SIGNALBLOCKING. Test for 'raise' only once.
75038         * lib/fatal-signal.c: Include sigprocmask.h.
75039         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75040         unblock_fatal_signals): Define always.
75041         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75042         sigprocmask.
75043
75044 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75045
75046         Sync from Automake.
75047         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75048         which incorrectly sets the mode of an existing destination
75049         directory.  In some cases the unpatched install-sh could do the
75050         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75051         system.  We hope this is rare in practice, but it's clearly worth
75052         fixing.  Problem reported by Alex Unleashed in
75053         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75054         Also, don't bother to check for -m bugs unless we're using -m;
75055         suggested by Stepan Kasal.
75056
75057 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75058
75059         Sync from Automake.
75060         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75061         `-c' flag, so they appear at the same position as in %FASTDEP%
75062         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75063         which ignores unknown options only after the first non-option.
75064         Bug report against M4 by Nelson H. F. Beebe.
75065
75066 2006-10-13  Jim Meyering  <jim@meyering.net>
75067
75068         Fix a bug in yesterday's change.
75069         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75070         p->fts_statp->st_dev would be used uninitialized.
75071         Ensures that we always call fts_stat on the very first entry.
75072         Miklos Szeredi reported that find -xdev stopped working.
75073
75074 2006-10-12  Bruno Haible  <bruno@clisp.org>
75075
75076         * gnulib-tool (func_get_automake_snippet): Append an automatically
75077         computed EXTRA_DIST augmentation.
75078         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75079         * modules/alloca-opt (Makefile.am): Likewise.
75080         * modules/allocsa (Makefile.am): Likewise.
75081         * modules/arcfour (Makefile.am): Likewise.
75082         * modules/arctwo (Makefile.am): Likewise.
75083         * modules/argmatch (Makefile.am): Likewise.
75084         * modules/argz (Makefile.am): Likewise.
75085         * modules/atexit (Makefile.am): Likewise.
75086         * modules/backupfile (Makefile.am): Likewise.
75087         * modules/byteswap (Makefile.am): Likewise.
75088         * modules/c-strtod (Makefile.am): Likewise.
75089         * modules/c-strtold (Makefile.am): Likewise.
75090         * modules/calloc (Makefile.am): Likewise.
75091         * modules/canon-host (Makefile.am): Likewise.
75092         * modules/canonicalize (Makefile.am): Likewise.
75093         * modules/chdir-long (Makefile.am): Likewise.
75094         * modules/chdir-safer (Makefile.am): Likewise.
75095         * modules/check-version (Makefile.am): Likewise.
75096         * modules/chown (Makefile.am): Likewise.
75097         * modules/cloexec (Makefile.am): Likewise.
75098         * modules/close-stream (Makefile.am): Likewise.
75099         * modules/closeout (Makefile.am): Likewise.
75100         * modules/crc (Makefile.am): Likewise.
75101         * modules/csharpexec (Makefile.am): Likewise.
75102         * modules/cycle-check (Makefile.am): Likewise.
75103         * modules/des (Makefile.am): Likewise.
75104         * modules/dev-ino (Makefile.am): Likewise.
75105         * modules/dirfd (Makefile.am): Likewise.
75106         * modules/dirname (Makefile.am): Likewise.
75107         * modules/dup2 (Makefile.am): Likewise.
75108         * modules/eealloc (Makefile.am): Likewise.
75109         * modules/error (Makefile.am): Likewise.
75110         * modules/euidaccess (Makefile.am): Likewise.
75111         * modules/exclude (Makefile.am): Likewise.
75112         * modules/exitfail (Makefile.am): Likewise.
75113         * modules/fcntl-safer (Makefile.am): Likewise.
75114         * modules/fcntl (Makefile.am): Likewise.
75115         * modules/file-type (Makefile.am): Likewise.
75116         * modules/fileblocks (Makefile.am): Likewise.
75117         * modules/filemode (Makefile.am): Likewise.
75118         * modules/filenamecat (Makefile.am): Likewise.
75119         * modules/fnmatch (Makefile.am): Likewise.
75120         * modules/fopen-safer (Makefile.am): Likewise.
75121         * modules/fpending (Makefile.am): Likewise.
75122         * modules/fprintftime (Makefile.am): Likewise.
75123         * modules/free (Makefile.am): Likewise.
75124         * modules/fsusage (Makefile.am): Likewise.
75125         * modules/ftruncate (Makefile.am): Likewise.
75126         * modules/fts (Makefile.am): Likewise.
75127         * modules/gc-arcfour (Makefile.am): Likewise.
75128         * modules/gc-des (Makefile.am): Likewise.
75129         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75130         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75131         * modules/gc-md4 (Makefile.am): Likewise.
75132         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75133         * modules/gc-sha1 (Makefile.am): Likewise.
75134         * modules/gc (Makefile.am): Likewise.
75135         * modules/getaddrinfo (Makefile.am): Likewise.
75136         * modules/getcwd (Makefile.am): Likewise.
75137         * modules/getdelim (Makefile.am): Likewise.
75138         * modules/getdomainname (Makefile.am): Likewise.
75139         * modules/getgroups (Makefile.am): Likewise.
75140         * modules/gethostname (Makefile.am): Likewise.
75141         * modules/gethrxtime (Makefile.am): Likewise.
75142         * modules/getline (Makefile.am): Likewise.
75143         * modules/getloadavg (Makefile.am): Likewise.
75144         * modules/getlogin_r (Makefile.am): Likewise.
75145         * modules/getndelim2 (Makefile.am): Likewise.
75146         * modules/getopt (Makefile.am): Likewise.
75147         * modules/getpagesize (Makefile.am): Likewise.
75148         * modules/getpass-gnu (Makefile.am): Likewise.
75149         * modules/getpass (Makefile.am): Likewise.
75150         * modules/getsubopt (Makefile.am): Likewise.
75151         * modules/gettime (Makefile.am): Likewise.
75152         * modules/gettimeofday (Makefile.am): Likewise.
75153         * modules/getugroups (Makefile.am): Likewise.
75154         * modules/getusershell (Makefile.am): Likewise.
75155         * modules/glob (Makefile.am): Likewise.
75156         * modules/group-member (Makefile.am): Likewise.
75157         * modules/hard-locale (Makefile.am): Likewise.
75158         * modules/hash (Makefile.am): Likewise.
75159         * modules/hmac-md5 (Makefile.am): Likewise.
75160         * modules/hmac-sha1 (Makefile.am): Likewise.
75161         * modules/human (Makefile.am): Likewise.
75162         * modules/idcache (Makefile.am): Likewise.
75163         * modules/imaxabs (Makefile.am): Likewise.
75164         * modules/imaxdiv (Makefile.am): Likewise.
75165         * modules/inet_ntop (Makefile.am): Likewise.
75166         * modules/inet_pton (Makefile.am): Likewise.
75167         * modules/intprops (Makefile.am): Likewise.
75168         * modules/inttostr (Makefile.am): Likewise.
75169         * modules/inttypes (Makefile.am): Likewise.
75170         * modules/isapipe (Makefile.am): Likewise.
75171         * modules/javaversion (Makefile.am): Likewise.
75172         * modules/lchmod (Makefile.am): Likewise.
75173         * modules/lchown (Makefile.am): Likewise.
75174         * modules/localcharset (Makefile.am): Likewise.
75175         * modules/long-options (Makefile.am): Likewise.
75176         * modules/lstat (Makefile.am): Likewise.
75177         * modules/malloc (Makefile.am): Likewise.
75178         * modules/mathl (Makefile.am): Likewise.
75179         * modules/mbchar (Makefile.am): Likewise.
75180         * modules/md2 (Makefile.am): Likewise.
75181         * modules/md4 (Makefile.am): Likewise.
75182         * modules/md5 (Makefile.am): Likewise.
75183         * modules/memcasecmp (Makefile.am): Likewise.
75184         * modules/memchr (Makefile.am): Likewise.
75185         * modules/memcmp (Makefile.am): Likewise.
75186         * modules/memcoll (Makefile.am): Likewise.
75187         * modules/memcpy (Makefile.am): Likewise.
75188         * modules/memmem (Makefile.am): Likewise.
75189         * modules/memmove (Makefile.am): Likewise.
75190         * modules/mempcpy (Makefile.am): Likewise.
75191         * modules/memrchr (Makefile.am): Likewise.
75192         * modules/memset (Makefile.am): Likewise.
75193         * modules/memxor (Makefile.am): Likewise.
75194         * modules/mkancesdirs (Makefile.am): Likewise.
75195         * modules/mkdir-p (Makefile.am): Likewise.
75196         * modules/mkdir (Makefile.am): Likewise.
75197         * modules/mkdtemp (Makefile.am): Likewise.
75198         * modules/mkstemp (Makefile.am): Likewise.
75199         * modules/mktime (Makefile.am): Likewise.
75200         * modules/modechange (Makefile.am): Likewise.
75201         * modules/mountlist (Makefile.am): Likewise.
75202         * modules/nanosleep (Makefile.am): Likewise.
75203         * modules/obstack (Makefile.am): Likewise.
75204         * modules/openat (Makefile.am): Likewise.
75205         * modules/pagealign_alloc (Makefile.am): Likewise.
75206         * modules/pathmax (Makefile.am): Likewise.
75207         * modules/physmem (Makefile.am): Likewise.
75208         * modules/poll (Makefile.am): Likewise.
75209         * modules/posixtm (Makefile.am): Likewise.
75210         * modules/posixver (Makefile.am): Likewise.
75211         * modules/putenv (Makefile.am): Likewise.
75212         * modules/quote (Makefile.am): Likewise.
75213         * modules/quotearg (Makefile.am): Likewise.
75214         * modules/raise (Makefile.am): Likewise.
75215         * modules/read-file (Makefile.am): Likewise.
75216         * modules/readline (Makefile.am): Likewise.
75217         * modules/readlink (Makefile.am): Likewise.
75218         * modules/readtokens (Makefile.am): Likewise.
75219         * modules/readutmp (Makefile.am): Likewise.
75220         * modules/realloc (Makefile.am): Likewise.
75221         * modules/regex (Makefile.am): Likewise.
75222         * modules/rename-dest-slash (Makefile.am): Likewise.
75223         * modules/rename (Makefile.am): Likewise.
75224         * modules/rijndael (Makefile.am): Likewise.
75225         * modules/rmdir (Makefile.am): Likewise.
75226         * modules/rpmatch (Makefile.am): Likewise.
75227         * modules/safe-read (Makefile.am): Likewise.
75228         * modules/safe-write (Makefile.am): Likewise.
75229         * modules/same-inode (Makefile.am): Likewise.
75230         * modules/same (Makefile.am): Likewise.
75231         * modules/save-cwd (Makefile.am): Likewise.
75232         * modules/savedir (Makefile.am): Likewise.
75233         * modules/setenv (Makefile.am): Likewise.
75234         * modules/settime (Makefile.am): Likewise.
75235         * modules/sha1 (Makefile.am): Likewise.
75236         * modules/sig2str (Makefile.am): Likewise.
75237         * modules/snprintf (Makefile.am): Likewise.
75238         * modules/stat-macros (Makefile.am): Likewise.
75239         * modules/stat-time (Makefile.am): Likewise.
75240         * modules/stdbool (Makefile.am): Likewise.
75241         * modules/stdint (Makefile.am): Likewise.
75242         * modules/stdlib-safer (Makefile.am): Likewise.
75243         * modules/stpcpy (Makefile.am): Likewise.
75244         * modules/stpncpy (Makefile.am): Likewise.
75245         * modules/strcase (Makefile.am): Likewise.
75246         * modules/strcasestr (Makefile.am): Likewise.
75247         * modules/strchrnul (Makefile.am): Likewise.
75248         * modules/strcspn (Makefile.am): Likewise.
75249         * modules/strdup (Makefile.am): Likewise.
75250         * modules/strerror (Makefile.am): Likewise.
75251         * modules/strftime (Makefile.am): Likewise.
75252         * modules/strndup (Makefile.am): Likewise.
75253         * modules/strnlen (Makefile.am): Likewise.
75254         * modules/strpbrk (Makefile.am): Likewise.
75255         * modules/strsep (Makefile.am): Likewise.
75256         * modules/strstr (Makefile.am): Likewise.
75257         * modules/strtod (Makefile.am): Likewise.
75258         * modules/strtoimax (Makefile.am): Likewise.
75259         * modules/strtok_r (Makefile.am): Likewise.
75260         * modules/strtol (Makefile.am): Likewise.
75261         * modules/strtoll (Makefile.am): Likewise.
75262         * modules/strtoul (Makefile.am): Likewise.
75263         * modules/strtoull (Makefile.am): Likewise.
75264         * modules/strtoumax (Makefile.am): Likewise.
75265         * modules/strverscmp (Makefile.am): Likewise.
75266         * modules/sys_socket (Makefile.am): Likewise.
75267         * modules/sys_stat (Makefile.am): Likewise.
75268         * modules/sysexits (Makefile.am): Likewise.
75269         * modules/time_r (Makefile.am): Likewise.
75270         * modules/timegm (Makefile.am): Likewise.
75271         * modules/timespec (Makefile.am): Likewise.
75272         * modules/tmpfile-safer (Makefile.am): Likewise.
75273         * modules/trim (Makefile.am): Likewise.
75274         * modules/unistd-safer (Makefile.am): Likewise.
75275         * modules/unlinkdir (Makefile.am): Likewise.
75276         * modules/unlocked-io (Makefile.am): Likewise.
75277         * modules/userspec (Makefile.am): Likewise.
75278         * modules/utime (Makefile.am): Likewise.
75279         * modules/utimecmp (Makefile.am): Likewise.
75280         * modules/utimens (Makefile.am): Likewise.
75281         * modules/vasnprintf (Makefile.am): Likewise.
75282         * modules/vasprintf (Makefile.am): Likewise.
75283         * modules/vsnprintf (Makefile.am): Likewise.
75284         * modules/xalloc (Makefile.am): Likewise.
75285         * modules/xgetcwd (Makefile.am): Likewise.
75286         * modules/xnanosleep (Makefile.am): Likewise.
75287         * modules/xreadlink (Makefile.am): Likewise.
75288         * modules/xstrtod (Makefile.am): Likewise.
75289         * modules/xstrtol (Makefile.am): Likewise.
75290         * modules/xstrtold (Makefile.am): Likewise.
75291         * modules/yesno (Makefile.am): Likewise.
75292         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75293
75294 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * modules/error (Makefile.am): Distribute files through
75297         EXTRA_DIST, not lib_SOURCES.
75298
75299 2006-10-12  Eric Blake  <ebb9@byu.net>
75300
75301         * modules/error (Makefile.am): Distribute files in /lib.
75302         * modules/obstack (Makefile.am): Likewise.
75303
75304 2006-10-12  Bruno Haible  <bruno@clisp.org>
75305
75306         * modules/acl (Makefile.am): Distribute all files in lib/ through
75307         EXTRA_DIST.
75308         * modules/arcfour (Makefile.am): Likewise.
75309         * modules/arctwo (Makefile.am): Likewise.
75310         * modules/argmatch (Makefile.am): Likewise.
75311         * modules/argz (Makefile.am): Likewise.
75312         * modules/atexit (Makefile.am): Likewise.
75313         * modules/backupfile (Makefile.am): Likewise.
75314         * modules/c-strtod (Makefile.am): Likewise.
75315         * modules/c-strtold (Makefile.am): Likewise.
75316         * modules/calloc (Makefile.am): Likewise.
75317         * modules/canon-host (Makefile.am): Likewise.
75318         * modules/canonicalize (Makefile.am): Likewise.
75319         * modules/chdir-long (Makefile.am): Likewise.
75320         * modules/chdir-safer (Makefile.am): Likewise.
75321         * modules/check-version (Makefile.am): Likewise.
75322         * modules/chown (Makefile.am): Likewise.
75323         * modules/cloexec (Makefile.am): Likewise.
75324         * modules/close-stream (Makefile.am): Likewise.
75325         * modules/closeout (Makefile.am): Likewise.
75326         * modules/crc (Makefile.am): Likewise.
75327         * modules/cycle-check (Makefile.am): Likewise.
75328         * modules/des (Makefile.am): Likewise.
75329         * modules/dirfd (Makefile.am): Likewise.
75330         * modules/dirname (Makefile.am): Likewise.
75331         * modules/dup2 (Makefile.am): Likewise.
75332         * modules/euidaccess (Makefile.am): Likewise.
75333         * modules/exclude (Makefile.am): Likewise.
75334         * modules/exitfail (Makefile.am): Likewise.
75335         * modules/fcntl-safer (Makefile.am): Likewise.
75336         * modules/file-type (Makefile.am): Likewise.
75337         * modules/fileblocks (Makefile.am): Likewise.
75338         * modules/filemode (Makefile.am): Likewise.
75339         * modules/filenamecat (Makefile.am): Likewise.
75340         * modules/fnmatch (Makefile.am): Likewise.
75341         * modules/fopen-safer (Makefile.am): Likewise.
75342         * modules/fpending (Makefile.am): Likewise.
75343         * modules/fprintftime (Makefile.am): Likewise.
75344         * modules/free (Makefile.am): Likewise.
75345         * modules/fsusage (Makefile.am): Likewise.
75346         * modules/ftruncate (Makefile.am): Likewise.
75347         * modules/fts (Makefile.am): Likewise.
75348         * modules/gc (Makefile.am): Likewise.
75349         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75350         * modules/getaddrinfo (Makefile.am): Likewise.
75351         * modules/getcwd (Makefile.am): Likewise.
75352         * modules/getdelim (Makefile.am): Likewise.
75353         * modules/getdomainname (Makefile.am): Likewise.
75354         * modules/getgroups (Makefile.am): Likewise.
75355         * modules/gethostname (Makefile.am): Likewise.
75356         * modules/gethrxtime (Makefile.am): Likewise.
75357         * modules/getline (Makefile.am): Likewise.
75358         * modules/getloadavg (Makefile.am): Likewise.
75359         * modules/getlogin_r (Makefile.am): Likewise.
75360         * modules/getopt (Makefile.am): Likewise.
75361         * modules/getpass (Makefile.am): Likewise.
75362         * modules/getpass-gnu (Makefile.am): Likewise.
75363         * modules/getsubopt (Makefile.am): Likewise.
75364         * modules/gettime (Makefile.am): Likewise.
75365         * modules/gettimeofday (Makefile.am): Likewise.
75366         * modules/getugroups (Makefile.am): Likewise.
75367         * modules/getusershell (Makefile.am): Likewise.
75368         * modules/glob (Makefile.am): Likewise.
75369         * modules/group-member (Makefile.am): Likewise.
75370         * modules/hard-locale (Makefile.am): Likewise.
75371         * modules/hash (Makefile.am): Likewise.
75372         * modules/hmac-md5 (Makefile.am): Likewise.
75373         * modules/hmac-sha1 (Makefile.am): Likewise.
75374         * modules/human (Makefile.am): Likewise.
75375         * modules/idcache (Makefile.am): Likewise.
75376         * modules/imaxabs (Makefile.am): Likewise.
75377         * modules/imaxdiv (Makefile.am): Likewise.
75378         * modules/inet_ntop (Makefile.am): Likewise.
75379         * modules/inet_pton (Makefile.am): Likewise.
75380         * modules/inttostr (Makefile.am): Likewise.
75381         * modules/isapipe (Makefile.am): Likewise.
75382         * modules/lchown (Makefile.am): Likewise.
75383         * modules/long-options (Makefile.am): Likewise.
75384         * modules/lstat (Makefile.am): Likewise.
75385         * modules/malloc (Makefile.am): Likewise.
75386         * modules/mathl (Makefile.am): Likewise.
75387         * modules/mbchar (Makefile.am): Likewise.
75388         * modules/md2 (Makefile.am): Likewise.
75389         * modules/md4 (Makefile.am): Likewise.
75390         * modules/md5 (Makefile.am): Likewise.
75391         * modules/memcasecmp (Makefile.am): Likewise.
75392         * modules/memchr (Makefile.am): Likewise.
75393         * modules/memcmp (Makefile.am): Likewise.
75394         * modules/memcoll (Makefile.am): Likewise.
75395         * modules/memcpy (Makefile.am): Likewise.
75396         * modules/memmem (Makefile.am): Likewise.
75397         * modules/memmove (Makefile.am): Likewise.
75398         * modules/mempcpy (Makefile.am): Likewise.
75399         * modules/memrchr (Makefile.am): Likewise.
75400         * modules/memset (Makefile.am): Likewise.
75401         * modules/memxor (Makefile.am): Likewise.
75402         * modules/mkancesdirs (Makefile.am): Likewise.
75403         * modules/mkdir (Makefile.am): Likewise.
75404         * modules/mkdir-p (Makefile.am): Likewise.
75405         * modules/mkdtemp (Makefile.am): Likewise.
75406         * modules/mkstemp (Makefile.am): Likewise.
75407         * modules/mktime (Makefile.am): Likewise.
75408         * modules/modechange (Makefile.am): Likewise.
75409         * modules/mountlist (Makefile.am): Likewise.
75410         * modules/nanosleep (Makefile.am): Likewise.
75411         * modules/openat (Makefile.am): Likewise.
75412         * modules/pagealign_alloc (Makefile.am): Likewise.
75413         * modules/physmem (Makefile.am): Likewise.
75414         * modules/poll (Makefile.am): Likewise.
75415         * modules/posixtm (Makefile.am): Likewise.
75416         * modules/posixver (Makefile.am): Likewise.
75417         * modules/putenv (Makefile.am): Likewise.
75418         * modules/quote (Makefile.am): Likewise.
75419         * modules/quotearg (Makefile.am): Likewise.
75420         * modules/raise (Makefile.am): Likewise.
75421         * modules/read-file (Makefile.am): Likewise.
75422         * modules/readline (Makefile.am): Likewise.
75423         * modules/readlink (Makefile.am): Likewise.
75424         * modules/readtokens (Makefile.am): Likewise.
75425         * modules/readutmp (Makefile.am): Likewise.
75426         * modules/realloc (Makefile.am): Likewise.
75427         * modules/regex (Makefile.am): Likewise.
75428         * modules/rename (Makefile.am): Likewise.
75429         * modules/rename-dest-slash (Makefile.am): Likewise.
75430         * modules/rijndael (Makefile.am): Likewise.
75431         * modules/rmdir (Makefile.am): Likewise.
75432         * modules/rpmatch (Makefile.am): Likewise.
75433         * modules/safe-read (Makefile.am): Likewise.
75434         * modules/safe-write (Makefile.am): Likewise.
75435         * modules/same (Makefile.am): Likewise.
75436         * modules/save-cwd (Makefile.am): Likewise.
75437         * modules/savedir (Makefile.am): Likewise.
75438         * modules/setenv (Makefile.am): Likewise.
75439         * modules/settime (Makefile.am): Likewise.
75440         * modules/sha1 (Makefile.am): Likewise.
75441         * modules/sig2str (Makefile.am): Likewise.
75442         * modules/snprintf (Makefile.am): Likewise.
75443         * modules/stdlib-safer (Makefile.am): Likewise.
75444         * modules/stpcpy (Makefile.am): Likewise.
75445         * modules/stpncpy (Makefile.am): Likewise.
75446         * modules/strcase (Makefile.am): Likewise.
75447         * modules/strcasestr (Makefile.am): Likewise.
75448         * modules/strchrnul (Makefile.am): Likewise.
75449         * modules/strcspn (Makefile.am): Likewise.
75450         * modules/strdup (Makefile.am): Likewise.
75451         * modules/strerror (Makefile.am): Likewise.
75452         * modules/strftime (Makefile.am): Likewise.
75453         * modules/strndup (Makefile.am): Likewise.
75454         * modules/strnlen (Makefile.am): Likewise.
75455         * modules/strpbrk (Makefile.am): Likewise.
75456         * modules/strsep (Makefile.am): Likewise.
75457         * modules/strstr (Makefile.am): Likewise.
75458         * modules/strtod (Makefile.am): Likewise.
75459         * modules/strtoimax (Makefile.am): Likewise.
75460         * modules/strtok_r (Makefile.am): Likewise.
75461         * modules/strtol (Makefile.am): Likewise.
75462         * modules/strtoll (Makefile.am): Likewise.
75463         * modules/strtoul (Makefile.am): Likewise.
75464         * modules/strtoull (Makefile.am): Likewise.
75465         * modules/strtoumax (Makefile.am): Likewise.
75466         * modules/strverscmp (Makefile.am): Likewise.
75467         * modules/time_r (Makefile.am): Likewise.
75468         * modules/timegm (Makefile.am): Likewise.
75469         * modules/tmpfile-safer (Makefile.am): Likewise.
75470         * modules/unistd-safer (Makefile.am): Likewise.
75471         * modules/unlinkdir (Makefile.am): Likewise.
75472         * modules/userspec (Makefile.am): Likewise.
75473         * modules/utime (Makefile.am): Likewise.
75474         * modules/utimecmp (Makefile.am): Likewise.
75475         * modules/utimens (Makefile.am): Likewise.
75476         * modules/vasnprintf (Makefile.am): Likewise.
75477         * modules/vasprintf (Makefile.am): Likewise.
75478         * modules/vsnprintf (Makefile.am): Likewise.
75479         * modules/xalloc (Makefile.am): Likewise.
75480         * modules/xgetcwd (Makefile.am): Likewise.
75481         * modules/xnanosleep (Makefile.am): Likewise.
75482         * modules/xreadlink (Makefile.am): Likewise.
75483         * modules/xstrtod (Makefile.am): Likewise.
75484         * modules/xstrtol (Makefile.am): Likewise.
75485         * modules/xstrtold (Makefile.am): Likewise.
75486         * modules/yesno (Makefile.am): Likewise.
75487
75488 2006-10-12  Jim Meyering  <jim@meyering.net>
75489
75490         * m4/getloadavg.m4: Revert the change below.
75491
75492         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75493         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75494         fail with a symlink, which is what coreutils' ./bootstrap now
75495         creates by default.
75496
75497 2006-10-12  Bruno Haible  <bruno@clisp.org>
75498
75499         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75500         mingw.
75501         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75502         MSVC and mingw explicitly.
75503
75504 2006-10-11  Simon Josefsson  <jas@extundo.com>
75505             Bruno Haible  <bruno@clisp.org>
75506
75507         Add support for multiple gnulib-tool invocations in the scope of a
75508         single configure.ac file.
75509         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75510         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75511         with the same contents as the _LIBADD variable.
75512         (func_emit_initmacro_start, func_emit_initmacro_end,
75513         func_emit_initmacro_done): New functions.
75514         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75515         gl_LIBOBJS and gl_LTLIBOBJS.
75516
75517 2006-10-11  Bruno Haible  <bruno@clisp.org>
75518
75519         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75520         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75521         autoreconf. Instead, invoke autopoint explicitly but move back the
75522         *.m4 files from gnulib.
75523
75524 2006-10-11  Bruno Haible  <bruno@clisp.org>
75525
75526         * gnulib-tool (func_usage): Make module names after --create-testdir
75527         optional.
75528         (func_create_testdir): If no module was specified, use nearly all
75529         modules.
75530
75531 2006-10-12  Jim Meyering  <jim@meyering.net>
75532
75533         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75534         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75535         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75536         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75537         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75538         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75539         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75540         (fts_set_stat_required): New function.
75541         (fts_open): Defer the calls to fts_stat, if possible or requested.
75542         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75543         into fts_stat itself.
75544         (fts_read): Perform any required (deferred) fts_stat call.
75545         (fts_build): Likewise, for the directory we're about to open and read.
75546         In the readdir loop, carefully decide whether each entry will require
75547         an eventual call to fts_stat, using dirent.d_type info if available.
75548         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75549         a command line argument into this function.  Update all callers.
75550         Map a return value of FTS_DOT to FTS_D for a command line argument.
75551         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75552         Thanks to Miklos Szeredi for his tenacity and for the initial
75553         bug report about "find" failing on a FUSE-based file system.
75554
75555         * lib/fts.c (fts_open): Use consistent indentation.
75556
75557 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75558
75559         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75560         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75561         reported by Jim Meyering.  All uses of cache variables renamed
75562         to match Autoconf's.
75563         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75564         the other one.
75565
75566         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75567         Fix misspelling in diagnostic.
75568
75569 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75570
75571         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75572         defined.  Problem reported by Matthew Woehlke.
75573
75574         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75575         Add support for Tandem NonStop R series.
75576         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75577         Use new macro.
75578
75579         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75580         (has_trailing_slash): Omit size arg; all callers changed.
75581         Omit 'inline', since it doesn't help performance and we'd
75582         need to configure it.
75583         Don't count //, ///, etc. as having a trailing slash.
75584         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75585         (rpl_rename_dest_slash): On failure, use rename's errno rather
75586         than (in some cases) an incorrect or junk errno.
75587         Simplify code by removing need to compute length; this does
75588         cause it to make two passes instead of one over the file name,
75589         but it's worth it.
75590
75591         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75592         change, since Autoconf's version may no longer be appropriate now
75593         that we are using CVS Autoconf's version.  Add support for Tandem.
75594
75595 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75596             Bruno Haible  <bruno@clisp.org>
75597
75598         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75599         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75600         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75601         gl_AC_TYPE_LONG_LONG.
75602
75603         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75604         instead of HAVE_LONG_LONG.
75605         * lib/printf-args.c (printf_fetchargs): Likewise.
75606         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75607         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75608         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75609         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75610         gl_AC_TYPE_LONG_LONG.
75611
75612 2006-10-11  Bruno Haible  <bruno@clisp.org>
75613
75614         * m4/longlong.m4: Add comments.
75615         * m4/ulonglong.m4: Likewise.
75616
75617 2006-10-10  Bruno Haible  <bruno@clisp.org>
75618
75619         Make it possible to #define stpcpy, strdup to aliases.
75620         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75621         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75622
75623 2006-10-10  Bruno Haible  <bruno@clisp.org>
75624
75625         Make it possible to #define gcd to an alias.
75626         * lib/gcd.c: Include config.h.
75627
75628 2006-10-10  Bruno Haible  <bruno@clisp.org>
75629
75630         Make it possible to #define c_isascii to an alias.
75631         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75632         defined. Undefine the macros before defining them, to avoid gcc
75633         warnings.
75634         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75635         define NO_C_CTYPE_MACROS early.
75636
75637 2006-10-10  Bruno Haible  <bruno@clisp.org>
75638
75639         Make it possible to #define set_program_name to an alias.
75640         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75641         ENABLE_RELOCATABLE early.
75642
75643 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75646         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75647         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75648         More generally, don't assume that 64-bit signed int is available
75649         if unsigned int is, and vice versa.
75650         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75651         unsigned symbols, not on their signed counterparts.
75652         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75653         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75654         (UINT64_C, UINTMAX_C):
75655         Likewise.
75656         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75657         unsigned counterparts.
75658         (Have_long_long, Unsigned): New macros.
75659         (Int): Renamed from INT.
75660         (strtoimax): Use the new macros.
75661         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75662         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75663         * modules/inttypes (inttypes.h): Substitute
75664         HAVE_UNSIGNED_LONG_LONG_INT.
75665         * modules/stdint (stdint.h): Likewise.
75666         (Files): Add m4/ulonglong.m4.
75667
75668 2006-10-10  Bruno Haible  <bruno@clisp.org>
75669
75670         Fix a gcc -Wshadow warning.
75671         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75672         to 'bucket'.
75673         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75674         gl_linked_indexof_from_to): Likewise.
75675         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75676         Likewise.
75677         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75678         Likewise.
75679         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75680         Reported by Eric Blake.
75681
75682 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75683
75684         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75685         for NetBSD.  Problem reported by Bruno Haible.
75686
75687 2006-10-09  Jim Meyering  <jim@meyering.net>
75688
75689         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75690         Patch from Bruno Haible.
75691
75692 2006-10-09  Jim Meyering  <jim@meyering.net>
75693
75694         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75695         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75696         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75697
75698 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75699
75700         Don't include <config.h> twice; this doesn't work in some cases,
75701         e.g., when config.h has "#define intmax_t long long int" and
75702         we include <config.h>, <inttypes.h>, <config.h> in that order.
75703         Problem reported by Matthew Woehlke in:
75704         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75705         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75706         * lib/fts-cycle.c: Don't include config.h.
75707         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75708         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75709         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75710         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75711         inttypes.h.
75712         * lib/xstrtoumax.c: Likewise.
75713         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75714         __strtol and the like, so that this module is more like its siblings.
75715         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75716         Remove; no longer needed now that we assume gnulib inttypes.h.
75717
75718 2006-10-08  Bruno Haible  <bruno@clisp.org>
75719
75720         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75721         option.
75722
75723 2006-10-07  Jim Meyering  <jim@meyering.net>
75724
75725         * modules/inttypes (inttypes.h): Revert what seems to have been
75726         an inadvertent part of today's change: use "|", not "/" in the
75727         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75728
75729 2006-10-07  Bruno Haible  <bruno@clisp.org>
75730
75731         * modules/sublist: New file.
75732
75733 2006-10-07  Bruno Haible  <bruno@clisp.org>
75734
75735         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75736         * modules/argz (argz.h): Likewise.
75737         * modules/arpa_inet (arpa/inet.h): Likewise.
75738         * modules/byteswap (byteswap.h): Likewise.
75739         * modules/configmake (configmake.h): Likewise.
75740         * modules/fcntl (fcntl.h): Likewise.
75741         * modules/fnmatch (fnmatch.h): Likewise.
75742         * modules/getopt (getopt.h): Likewise.
75743         * modules/glob (glob.h): Likewise.
75744         * modules/inttypes (inttypes.h): Likewise.
75745         * modules/netinet_in (netinet/in.h): Likewise.
75746         * modules/poll (poll.h): Likewise.
75747         * modules/stdbool (stdbool.h): Likewise.
75748         * modules/stdint (stdint.h): Likewise.
75749         * modules/sys_select (sys/select.h): Likewise.
75750         * modules/sys_socket (sys/socket.h): Likewise.
75751         * modules/sys_stat (sys/stat.h): Likewise.
75752         * modules/sysexits (sysexits.h): Likewise.
75753         * modules/unistd (unistd.h): Likewise.
75754         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75755         Add a "DO NOT EDIT" comment to the generated file.
75756         (func_import): Likewise for gnulib-comp.m4.
75757
75758 2006-10-07  Bruno Haible  <bruno@clisp.org>
75759
75760         * lib/gl_sublist.h: New file.
75761         * lib/gl_sublist.c: New file.
75762
75763 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75766         name (relative to the original working directory) and the file
75767         name component (relative to the temporary working directory).  All
75768         callers changed.
75769         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75770         * lib/mkdir-p.c (make_dir_parents): Likewise.
75771         * lib/mkdir-p.h (make_dir_parents): Likewise.
75772
75773 2006-10-06  Eric Blake  <ebb9@byu.net>
75774
75775         Define several macros for use by the clean-temp module.
75776         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75777         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75778         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75779
75780         * lib/clean-temp.h (close_stream_temp): New declaration.
75781         * lib/clean-temp.c (includes): Pull in headers according to what
75782         other modules are in use.
75783         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75784
75785 2006-10-06  Bruno Haible  <bruno@clisp.org>
75786
75787         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75788         instead of fopen, fwriteerror.
75789
75790 2006-10-06  Bruno Haible  <bruno@clisp.org>
75791
75792         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75793         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75794         int.
75795         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75796         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75797         Return an error indicator.
75798         Suggested by Eric Blake.
75799
75800 2006-10-06  Bruno Haible  <bruno@clisp.org>
75801
75802         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75803         Reported by Eric Blake.
75804
75805 2006-10-06  Bruno Haible  <bruno@clisp.org>
75806
75807         * modules/closeout (Description): Mention stderr too.
75808
75809 2006-10-06  Bruno Haible  <bruno@clisp.org>
75810         and Paul Eggert  <eggert@cs.ucla.edu>
75811
75812         * lib/closeout.c (close_stdout): Also close stderr.
75813         * lib/closeout.h: Update comment.
75814
75815 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75816
75817         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75818         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75819         * lib/dirchownmod.c: Include lchown.h.
75820         * lib/lchown.c: Don't include files that lchown.h now includes.
75821         Don't declare chown, since lchown.h now does that.
75822         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75823         (lchown): Define to rpl_chown if lchown is declared but
75824         does not exist.  Declare using a prototype if lchown is not
75825         declared.  Add a copyright notice.
75826         * lib/mkstemp.h: Include <unistd.h>.
75827         * lib/openat.c: Include lchown.h.
75828
75829         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75830         we now test for that separately.
75831         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
75832         rather than O_NOFOLLOW, when testing whether it's possible to
75833         avoid a race condition reliably.
75834         * lib/savewd.c (savewd_chdir): Likewise.
75835
75836         Remove macros that are no longer needed now that stdint.h is
75837         reliable.
75838         * lib/fsusage.c (UINTMAX_MAX): Remove.
75839         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
75840         * lib/utimecmp.c (SIZE_MAX): Remove.
75841
75842         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
75843
75844         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
75845         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
75846         O_NOATIME works.
75847
75848 2006-10-05  Bruno Haible  <bruno@clisp.org>
75849
75850         * lib/gl_list.h (gl_sortedlist_search_from_to,
75851         gl_sortedlist_indexof_from_to): New declarations.
75852         (gl_list_implementation): New fields sortedlist_search_from_to,
75853         sortedlist_indexof_from_to.
75854         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
75855         inline functions.
75856         * lib/gl_list.c (gl_sortedlist_search_from_to,
75857         gl_sortedlist_indexof_from_to): New functions.
75858         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
75859         function.
75860         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
75861         (gl_array_sortedlist_search_from_to): New function.
75862         (gl_array_list_implementation): Update.
75863         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
75864         function.
75865         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
75866         (gl_carray_sortedlist_search_from_to): New function.
75867         (gl_carray_list_implementation): Update.
75868         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
75869         gl_linked_sortedlist_indexof_from_to): New functions.
75870         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75871         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75872         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
75873         gl_tree_sortedlist_indexof_from_to): New functions.
75874         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75875         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75876         Update.
75877         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75878         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
75879         Update.
75880
75881 2006-10-05  Bruno Haible  <bruno@clisp.org>
75882
75883         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
75884         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
75885         (struct gl_list_implementation): Add fields search_from_to,
75886         indexof_from_to. Remove fields search, indexof.
75887         (gl_list_search): Use the search_from_to method.
75888         (gl_list_search_from, gl_list_search_from_to): New functions.
75889         (gl_list_indexof): Use the indexof_from_to method.
75890         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75891         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
75892         (gl_list_search_from, gl_list_search_from_to): New functions.
75893         (gl_list_indexof): Use the indexof_from_to method.
75894         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75895         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
75896         gl_array_indexof. Add start_index, end_index arguments.
75897         (gl_array_search_from_to): Renamed from gl_array_search. Add
75898         start_index, end_index arguments.
75899         (gl_array_remove, gl_array_list_implementation): Update.
75900         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
75901         gl_carray_indexof. Add start_index, end_index arguments.
75902         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
75903         start_index, end_index arguments.
75904         (gl_carray_remove, gl_carray_list_implementation): Update.
75905         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
75906         gl_linked_search. Add start_index, end_index arguments.
75907         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
75908         start_index, end_index arguments.
75909         (gl_linked_remove): Update.
75910         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75911         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75912         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
75913         field to 'size_t'.
75914         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
75915         gl_tree_search. Add start_index, end_index arguments.
75916         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75917         start_index, end_index arguments.
75918         (gl_tree_remove): Update.
75919         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75920         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75921         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
75922         function.
75923         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
75924         gl_tree_search. Add start_index, end_index arguments.
75925         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75926         start_index, end_index arguments.
75927         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75928         Update.
75929         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75930
75931 2006-10-05  Bruno Haible  <bruno@clisp.org>
75932
75933         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
75934
75935         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
75936         fwriteerror_temp): New declarations.
75937         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
75938         (descriptors): New variable.
75939         (cleanup): First, close the descriptors.
75940         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
75941         fclose_temp, fwriteerror_temp): New functions.
75942
75943 2006-10-04  Jim Meyering  <jim@meyering.net>
75944
75945         * lib/fts.c (fts_open): Tiny comment change.
75946
75947 2006-10-04  Bruno Haible  <bruno@clisp.org>
75948
75949         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
75950         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
75951         gl_LOCK_BODY.
75952         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
75953         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
75954         gl_LOCK_EARLY_BODY.
75955         (gl_LOCK): Require gl_LOCK_BODY.
75956
75957 2006-10-04  Bruno Haible  <bruno@clisp.org>
75958
75959         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
75960         (gl_oset_search_atleast): New declaration.
75961         (struct gl_oset_implementation): Add field 'search_atleast'.
75962         (gl_oset_search_atleast): New inline function.
75963         * lib/gl_oset.c (gl_oset_search_atleast): New function.
75964         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
75965         (gl_array_oset_implementation): Update.
75966         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
75967         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
75968         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
75969
75970 2006-10-04  Bruno Haible  <bruno@clisp.org>
75971
75972         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
75973
75974 2006-10-03  Bruno Haible  <bruno@clisp.org>
75975
75976         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75977         from gl_avltreehash_list_implementation.
75978
75979 2006-10-03  Bruno Haible  <bruno@clisp.org>
75980
75981         * lib/gl_oset.c (gl_oset_add): Fix return type.
75982
75983 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75984
75985         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75986
75987 2006-10-02  Eric Blake  <ebb9@byu.net>
75988
75989         * modules/strnlen (Depends-on): Add extensions.
75990
75991 2006-10-02  Eric Blake  <ebb9@byu.net>
75992
75993         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75994         definition in 2.60+.
75995
75996 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75997
75998         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75999         checks.
76000
76001 2006-10-02  Bruno Haible  <bruno@clisp.org>
76002
76003         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76004         to the AUTOMAKE_OPTIONS.
76005         Reported by Jim Meyering.
76006
76007 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76008
76009         Work around bug in Solaris 10 /proc file system:
76010         /proc/self/fd/NNN/.. isn't the parent directory of
76011         the directory whose file descriptor is NNN.  This needs to
76012         be worked around at run time, not compile time, since a
76013         program might be built on Solaris 8, where things work, and
76014         run on Solaris 10.
76015         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76016         to use the following interface instead:
76017         (OPENAT_BUFFER_SIZE): New macro.
76018         (openat_proc_name): New function.
76019         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76020         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76021         Likewise.
76022         * lib/openat-proc.c: New file.
76023         * modules/openat (Files): Add lib/openat-proc.c.
76024         (Depends-on): Add same-inode, stdbool.
76025         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76026
76027 2006-09-29  Bruno Haible  <bruno@clisp.org>
76028
76029         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76030         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76031         argument. Set stdout_closed before testing for ferror, not after.
76032         (fwriteerror, fwriteerror_no_ebadf): New functions.
76033
76034 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76035
76036         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76037
76038 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76039
76040         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76041         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76042
76043 2006-09-28  Jim Meyering  <jim@meyering.net>
76044
76045         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76046         Include <unistd.h>.
76047
76048 2006-09-28  Bruno Haible  <bruno@clisp.org>
76049
76050         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76051         * modules/linkedhash-list (Depends-on): Likewise.
76052         * modules/rbtreehash-list (Depends-on): Likewise.
76053
76054 2006-09-28  Bruno Haible  <bruno@clisp.org>
76055
76056         * lib/strndup.h: Simplify the redefinition of strndup.
76057         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76058         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76059
76060 2006-09-28  Bruno Haible  <bruno@clisp.org>
76061
76062         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76063         * lib/gl_linkedhash_list.c: Likewise.
76064         * lib/gl_rbtreehash_list.c: Likewise.
76065
76066 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76069         getaddrinfo.
76070
76071         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76072         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76073         it causes <stdio_ext.h> to cause a compile-time error.
76074         Problem reported by Nelson H. F. Beebe.
76075         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76076         of HAVE_DECL___PENDING.
76077
76078         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76079         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76080         declaration.
76081
76082 2006-09-27  Jim Meyering  <jim@meyering.net>
76083
76084         This file could end up with a definition for a function
76085         named __strndup, rather than rpl_strndup on a system with
76086         incomplete weak_alias support.
76087         * lib/strndup.c (strndup): Rename from __strndup.
76088         Remove #defines that used to map __strndup to strndup.
76089         Don't use K&R prototypes.
76090         Remove LIBC-related code, since this file is not sync'd with glibc.
76091         * lib/strndup.h: Revamp, accordingly.
76092         * m4/strndup.m4: Modernize.
76093
76094 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76095
76096         * modules/savewd (Depends-on): Add 'raise'.
76097         * lib/savewd.c: Include <signal.h>, for 'raise'.
76098
76099 2006-09-26  Jim Meyering  <jim@meyering.net>
76100
76101         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76102         when we detect Darwin 8.7.0's acl_get_file bug.
76103         Rearrange to perform the new (below) run-test while $LIBS
76104         contains any acl-related library.  Set USE_ACL at the end.
76105         (gl_ACL_GET_FILE): New function.
76106
76107 2006-09-26  Eric Blake  <ebb9@byu.net>
76108
76109         * lib/verror.c: Include <config.h> unconditionally.
76110
76111 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76112
76113         * modules/clock-time (Maintainer): Add self.
76114         * modules/getlogin_r (Depends-on): Add extensions.
76115
76116 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76117
76118         * modules/clock-time: New module.
76119         * modules/nanosleep (Depends-on): Add clock-time.
76120         * modules/gethrxtime (Depends-on): Likewise.
76121         * modules/gettime (Depends-on): Likewise.
76122         * modules/settime (Depends-on): Likewise.
76123
76124         * modules/fts-lgpl: Depend on openat.
76125         * modules/mkancesdirs: Depend on savewd.
76126         * modules/mkdir-p: Likewise.
76127
76128 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76129
76130         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76131
76132         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76133         `gl_have_arbitrary_file_name_length_limit' to
76134         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76135         actually works between configure runs.
76136
76137 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76138             Bruno Haible  <bruno@clisp.org>
76139
76140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76141
76142 2006-09-25  Jim Meyering  <jim@meyering.net>
76143
76144         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76145         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76146
76147 2006-09-25  Eric Blake  <ebb9@byu.net>
76148
76149         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76150         exec's in 2006-09-18 patch when shuffling fds.
76151
76152 2006-09-25  Bruno Haible  <bruno@clisp.org>
76153
76154         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76155         Reported by Jim Meyering.
76156
76157 2006-09-24  Jim Meyering  <jim@meyering.net>
76158
76159         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76160         compare a pointer against a literal "0".  That caused failures with
76161         at least HP-UX's hpcc.
76162
76163 2006-09-22  Simon Josefsson  <jas@extundo.com>
76164
76165         * modules/gc-sha1:
76166         * modules/gc-md4:
76167         * modules/gc-hmac-sha1:
76168         * modules/gc-hmac-md5:
76169         * modules/gc-des:
76170         * modules/gc-arcfour: Distribute more files.
76171
76172 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76173
76174         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76175         (gl_linked_iterator_from_to): Initialize struct completely.
76176         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76177         (gl_tree_iterator_from_to): Likewise
76178         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76179         * lib/gl_array_list.c [lint] (gl_array_iterator)
76180         (gl_array_iterator_from_to): Likewise.
76181         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76182         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76183         (gl_carray_iterator_from_to): Likewise.
76184
76185         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76186         * lib/md4.c (md4_process_block): Remove unused variable.
76187         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76188         parentheses for clarity.
76189
76190 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76191
76192         * modules/bison-i18n (Depends-on): Add gettext.
76193
76194 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76195
76196         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76197         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76198         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76199         also add missing comma that caused broken test.
76200         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76201         stdlib.h, for `abort'.
76202         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76203         variables.
76204         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76205         include unistd.h if present, for `rmdir'.
76206         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76207         variables.
76208         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76209         in the process include standard headers for prototypes.
76210         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76211         gets declared on GNU/Linux.
76212         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76213         unistd.h, for `rmdir'.
76214         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76215
76216         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76217         always true.
76218         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76219
76220         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76221
76222 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76223
76224         * gnulib-tool (func_version): Create output all at once.  This
76225         may help avoid triggering unnecessary SIGPIPEs, and at any
76226         rate it doesn't hurt.
76227
76228 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76229             Bruno Haible  <bruno@clisp.org>
76230
76231         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76232         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76233         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76234
76235         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76236         (gl_FUNC_VASPRINTF): Invoke it.
76237
76238 2006-09-22  Bruno Haible  <bruno@clisp.org>
76239
76240         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76241         getloadavg.c as first argument.
76242
76243 2006-09-22  Bruno Haible  <bruno@clisp.org>
76244
76245         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76246         at the beginning of the gl_INIT macro.
76247         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76248         gl_GETLOADAVG.
76249
76250 2006-09-22  Bruno Haible  <bruno@clisp.org>
76251
76252         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76253         module.
76254         Suggested by Ralf Wildenhues.
76255
76256 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         Import this patch from libc:
76259
76260         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76261
76262         * lib/regex_internal.c (re_string_reconstruct): Handle
76263         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76264         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76265         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76266         re_string_context_at.
76267
76268         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76269         now requires it.
76270         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76271         gl_REGEX now does it for us.
76272         (gl_REGEX): Add test taken from
76273         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76274
76275         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76276         Check that large offsets work.  Modernize Autoconf usages.
76277         Prefer "yes" to mean a good thing rather than a bad.
76278         Don't put "#define mkstemp" in config.h, as this might interfere
76279         with standard system headers that "#define mkstemp mkstemp64".
76280
76281         * modules/mkstemp (Depends-on): Add extensions, so that
76282         mkstemp is visible on some platforms.
76283         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76284         (Include): Change to "mkstemp.h" from <stdlib.h>.
76285         (Files): Add mkstemp.h.
76286
76287         * lib/mkstemp.h: New file, since some standard headers
76288         #define mkstemp.
76289         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76290         Include "mkstemp.h".
76291         Make the _LIBC code resemble glibc original more,
76292         e.g., use K&R style.
76293         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76294         (mkstemp): Remove, since mkstemp.h does this for us.
76295         * lib/stdlib--.h: Include mkstemp.h.
76296
76297         Import this patch from libc:
76298
76299         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76300
76301         * lib/tempname.c (__gen_tempname): Change attempts_min
76302         into a macro.  Use preprocessor to decide how to initialize
76303         attempts [Coverity CID 67].
76304
76305 2006-09-20  Bruno Haible  <bruno@clisp.org>
76306
76307         * lib/mkdtemp.c: Import from libc.
76308         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76309                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76310                 attempts_min into a macro.  Use preprocessor to decide how to
76311                 initialize attempts [Coverity CID 67].
76312         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76313                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76314                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76315
76316 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76317
76318         * gnulib-tool (func_exit): New function, to allow to pass the
76319         exit status portably through the trap.  Use everywhere.
76320         (--help, --version): Signal a write error.
76321         (trap): catch SIGPIPE, for write errors.
76322         Exit at the end of the trap, with the correct exit status.
76323
76324 2006-09-19  Karl Berry  <karl@gnu.org>
76325
76326         * doc/gnulib.texi: note about the license texinfo files.
76327
76328 2006-09-19  Eric Blake  <ebb9@byu.net>
76329
76330         * gnulib-tool: Avoid space-tab.
76331
76332 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76333
76334         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76335         that prevented coreutils 6.1 from building.  Problem reported
76336         by Petter Reinholdtsen.
76337
76338 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76339
76340         * gnulib-tool (avoidlist): Fix typo that broke options like
76341         --avoid=lock that are used by coreutils bootstrap.
76342
76343 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76344
76345         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76346         more systematically.
76347
76348 2006-09-18  Jim Meyering  <jim@meyering.net>
76349
76350         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76351
76352 2006-09-18  Bruno Haible  <bruno@clisp.org>
76353
76354         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76355
76356 2006-09-18  Bruno Haible  <bruno@clisp.org>
76357
76358         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76359         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76360         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76361         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76362         * m4/gettext.m4: Require autoconf >= 2.52.
76363         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76364         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76365         of gl_cv_header_inttypes_h.
76366
76367 2006-09-18  Bruno Haible  <bruno@clisp.org>
76368
76369         * lib/javaversion.c: Include configmake.h.
76370
76371 2006-09-18  Bruno Haible  <bruno@clisp.org>
76372
76373         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76374         avoid that the while loops be executed in a subshell.
76375
76376 2006-09-18  Bruno Haible  <bruno@clisp.org>
76377
76378         * MODULES.html.sh (func_module): Break long lines.
76379         Suggested by Bruce Korb <bkorb@gnu.org>.
76380
76381 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76382
76383         Speed up by a factor of 1.12.
76384         * gnulib-tool (nl): New variable.
76385         (func_import): Rewrite include directive extraction to only read each
76386         directive once.
76387
76388 2006-09-17  Bruno Haible  <bruno@clisp.org>
76389
76390         * modules/javaversion (Makefile.am): Remove DEFS setting.
76391         (Depends-on): Add configmake, for PKGDATADIR definition.
76392
76393 2006-09-17  Bruno Haible  <bruno@clisp.org>
76394
76395         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76396
76397 2006-09-17  Bruno Haible  <bruno@clisp.org>
76398
76399         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76400         (func_modules_transitive_closure, func_modules_add_dummy,
76401         func_modules_to_filelist, func_import, func_create_testdir,
76402         func_create_megatestdir, ...): Use it wherever possible.
76403         Suggested by Ralf Wildenhues.
76404
76405 2006-09-16  Karl Berry  <karl@gnu.org>
76406
76407         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76408         to avoid sectioning errors.
76409         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76410         [ifinfo]: blank line after @center-ed titles.
76411         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76412         Spell FSF address consistently with others.
76413         (These changes approved by rms.)
76414
76415 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76416
76417         Speed up by a factor of 1.61.
76418         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76419         already checked module names again.
76420
76421 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76422
76423         Speed up by a factor of 1.13.
76424         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76425         for new_files, and the input to func_add_or_update.
76426
76427 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76428
76429         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76430         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76431
76432 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         * modules/mkancesdirs (Depends-on): Add fcntl.
76435         * modules/savewd: New file.
76436         * MODULES.html.sh (File system functions): Add savewd.
76437
76438         * modules/configmake (Makefile.am): Add support for the
76439         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76440
76441 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * m4/savewd.m4: New file.
76444
76445 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76446
76447         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76448         (dirchownmod): New arg FD.  All callers changed.
76449         Use FD rather than opening the directory ourself, as opening is
76450         now the caller's responsibility.
76451         * lib/dirchownmod.h: Likewise.
76452         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76453         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76454         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76455         (test_dir): Remove.
76456         (mkancesdirs): Return length of prefix of FILE that has already
76457         been made, or -2 if there is a child doing the work.  Redo
76458         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76459         ".", and treat ".." specially since it might stray back into
76460         already-created areas.  Use a subprocess if necessary.  New arg
76461         WD; all users changed.  MAKE_DIR function should now return 1
76462         if it creates a directory that is not readable.  Return -2 if
76463         a child process is spun off.
76464         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76465         Adjust signature to match code.
76466         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76467         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76468         all users changed.
76469         * lib/savewd.c, lib/savewd.h: New files.
76470
76471 2006-09-15  Jim Meyering  <jim@meyering.net>
76472
76473         * modules/rename-dest-slash: New module.
76474         * MODULES.html.sh (posix_compat): Add it here.
76475
76476         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76477
76478 2006-09-15  Jim Meyering  <jim@meyering.net>
76479
76480         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76481         file.
76482
76483         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76484
76485 2006-09-15  Jim Meyering  <jim@meyering.net>
76486
76487         * lib/rename-dest-slash.c (has_trailing_slash): Use
76488         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76489         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76490         test before testing whether SRC is a directory.
76491         Suggestions from Bruno Haible.
76492
76493         Avoid a warning about an unused variable.
76494         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76495         into the #ifdef block where it's used.
76496
76497         * lib/rename-dest-slash.c: New file.
76498
76499 2006-09-14  Bruno Haible  <bruno@clisp.org>
76500
76501         * lib/allocsa.c: Include <config.h> unconditionally.
76502         * lib/asnprintf.c: Likewise.
76503         * lib/asprintf.c: Likewise.
76504         * lib/c-strcasecmp.c: Likewise.
76505         * lib/c-strcasestr.c: Likewise.
76506         * lib/c-strncasecmp.c: Likewise.
76507         * lib/c-strstr.c: Likewise.
76508         * lib/classpath.c: Likewise.
76509         * lib/clean-temp.c: Likewise.
76510         * lib/concatpath.c: Likewise.
76511         * lib/copy-file.c: Likewise.
76512         * lib/csharpcomp.c: Likewise.
76513         * lib/csharpexec.c: Likewise.
76514         * lib/execute.c: Likewise.
76515         * lib/fatal-signal.c: Likewise.
76516         * lib/findprog.c: Likewise.
76517         * lib/fwriteerror.c: Likewise.
76518         * lib/gl_array_list.c: Likewise.
76519         * lib/gl_array_oset.c: Likewise.
76520         * lib/gl_avltree_list.c: Likewise.
76521         * lib/gl_avltree_oset.c: Likewise.
76522         * lib/gl_avltreehash_list.c: Likewise.
76523         * lib/gl_carray_list.c: Likewise.
76524         * lib/gl_linked_list.c: Likewise.
76525         * lib/gl_linkedhash_list.c: Likewise.
76526         * lib/gl_list.c: Likewise.
76527         * lib/gl_oset.c: Likewise.
76528         * lib/gl_rbtree_list.c: Likewise.
76529         * lib/gl_rbtree_oset.c: Likewise.
76530         * lib/gl_rbtreehash_list.c: Likewise.
76531         * lib/imaxabs.c: Likewise.
76532         * lib/imaxdiv.c: Likewise.
76533         * lib/javacomp.c: Likewise.
76534         * lib/javaexec.c: Likewise.
76535         * lib/javaversion.c: Likewise.
76536         * lib/linebreak.c: Likewise.
76537         * lib/localcharset.c: Likewise.
76538         * lib/lock.c: Likewise.
76539         * lib/mbchar.c: Likewise.
76540         * lib/mbswidth.c: Likewise.
76541         * lib/mkdtemp.c: Likewise.
76542         * lib/pipe.c: Likewise.
76543         * lib/printf-args.c: Likewise.
76544         * lib/printf-parse.c: Likewise.
76545         * lib/progname.c: Likewise.
76546         * lib/progreloc.c: Likewise.
76547         * lib/readlink.c: Likewise.
76548         * lib/sh-quote.c: Likewise.
76549         * lib/stpcpy.c: Likewise.
76550         * lib/stpncpy.c: Likewise.
76551         * lib/strcasecmp.c: Likewise.
76552         * lib/strcasestr.c: Likewise.
76553         * lib/strcspn.c: Likewise.
76554         * lib/striconv.c: Likewise.
76555         * lib/strncasecmp.c: Likewise.
76556         * lib/strnlen1.c: Likewise.
76557         * lib/strstr.c: Likewise.
76558         * lib/strtok_r.c: Likewise.
76559         * lib/tls.c: Likewise.
76560         * lib/tmpdir.c: Likewise.
76561         * lib/unicodeio.c: Likewise.
76562         * lib/unsetenv.c: Likewise.
76563         * lib/vasnprintf.c: Likewise.
76564         * lib/vasprintf.c: Likewise.
76565         * lib/wait-process.c: Likewise.
76566         * lib/xallocsa.c: Likewise.
76567         * lib/xsetenv.c: Likewise.
76568         * lib/xstriconv.c: Likewise.
76569
76570 2006-09-13  Simon Josefsson  <jas@extundo.com>
76571
76572         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76573         that internally, suggested by Ralf Wildenhues
76574         <Ralf.Wildenhues@gmx.de>.
76575
76576 2006-09-13  Simon Josefsson  <jas@extundo.com>
76577
76578         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76579         @LIBOBJS@.
76580         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76581
76582 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76585         longer worry about uses that don't define HAVE_CONFIG_H.
76586         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76587         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76588         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76589         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76590         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76591         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76592         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76593         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76594         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76595         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76596         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76597         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76598         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76599         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76600         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76601         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76602         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76603         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76604         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76605         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76606         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76607         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76608         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76609         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76610         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76611         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76612         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76613         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76614         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76615         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76616         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76617         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76618         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76619         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76620         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76621         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76622         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76623         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76624         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76625         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76626         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76627         Likewise.
76628
76629 2006-09-13  Eric Blake  <ebb9@byu.net>
76630
76631         * lib/getopt.c: Fix typo in last commit.
76632
76633 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76634
76635         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76636         dgettext.
76637
76638 2006-09-12  Jim Meyering  <jim@meyering.net>
76639
76640         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76641         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76642         Reported by Nelson H. F. Beebe.
76643
76644 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76645
76646         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76647         program_invocation_name and program_invocation_short_name are
76648         initialized.
76649         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76650         and program_invocation_short_name to argp.h, so they are visible
76651         to user programs.
76652         * lib/argp.h: Likewise
76653
76654 2006-09-10  Bruno Haible  <bruno@clisp.org>
76655
76656         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76657         m4/inttypes_h.m4, m4/uintmax_t.m4.
76658
76659 2006-09-10  Bruno Haible  <bruno@clisp.org>
76660
76661         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76662         gl_AC_TYPE_UINTMAX_T.
76663
76664 2006-09-10  Bruno Haible  <bruno@clisp.org>
76665
76666         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76667
76668 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76669
76670         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76671         convention.  Text proposed by Bruno Haible.
76672         (struct argp_option): Document the use of N_() wrappers.
76673
76674         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76675         '\v', and translate the two parts separately, instead of feeding
76676         the whole string to gettext.  This allows to exclude
76677         '\v' from the strings visible to the translator by writing doc
76678         strings as N_("..") "\v" N_("..").
76679
76680 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76681
76682         * config/srclist.txt: Undo latest change; the bug was fixed.
76683
76684 2006-09-09  Bruno Haible  <bruno@clisp.org>
76685
76686         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76687         assignments if building a library without libtool.
76688         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76689         in func_emit_lib_Makefile_am.
76690         (func_import): When building a static library libfoo.a, arrange to
76691         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76692         (func_create_testdir): Likewise.
76693         * modules/gc (configure.ac, Makefile.am): If building statically,
76694         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76695         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76696         * modules/striconv (configure.ac, Makefile.am): Likewise.
76697         Based on a suggestion by Ralf Wildenhues.
76698
76699 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76702         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76703         Also:
76704
76705         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76706         Add year_2050_test to catch glibc bug 2821
76707         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76708
76709         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76710         Prefer #ifdef to #if.
76711
76712         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76713         Return from 'main' instead of calling 'exit'.
76714
76715 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76716
76717         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76718         returned the maximum time_t value rather than (time_t) -1.
76719         Problem originally reported by William Bardwell
76720         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76721
76722         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76723         Moved to here ...
76724         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76725         ... from here.
76726
76727 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76728
76729         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76730         2821 is fixed.
76731
76732 2006-09-08  Jim Meyering  <jim@meyering.net>
76733
76734         Don't make generated files read-only.  That would bother too many
76735         people.  However, do retain the ability to work when targets are
76736         read-only: remove the destination and temporary files before writing
76737         them (when generated via sed or echo), or by using the -f option for
76738         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76739         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76740         * modules/byteswap, modules/configmake, modules/fcntl:
76741         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76742         * modules/localcharset, modules/netinet_in, modules/poll:
76743         * modules/stdbool, modules/stdint, modules/sys_select:
76744         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76745
76746 2006-09-08  Jim Meyering  <jim@meyering.net>
76747
76748         Avoid new build failure on FreeBSD 6.0.
76749         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76750         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76751         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76752
76753 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76754
76755         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76756
76757 2006-09-07  Jim Meyering  <jim@meyering.net>
76758
76759         Fix global typo in last change: use chmod u-w, not chmod u-x.
76760         Spotted by Paul Eggert and Bruce Korb.
76761         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76762         * modules/byteswap, modules/configmake, modules/fcntl:
76763         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76764         * modules/localcharset, modules/netinet_in, modules/poll:
76765         * modules/stdbool, modules/stdint, modules/sys_select:
76766         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76767
76768 2006-09-06  Jim Meyering  <jim@meyering.net>
76769
76770         Make generated files be read-only.
76771         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76772         Ensure that each generated file is now read-only.
76773         * modules/argz: Likewise.
76774         * modules/arpa_inet: Likewise.
76775         * modules/byteswap: Likewise.
76776         * modules/configmake: Likewise.
76777         * modules/fcntl: Likewise.
76778         * modules/fnmatch: Likewise.
76779         * modules/getopt: Likewise.
76780         * modules/glob: Likewise.
76781         * modules/inttypes: Likewise.
76782         * modules/netinet_in: Likewise.
76783         * modules/poll: Likewise.
76784         * modules/stdbool: Likewise.
76785         * modules/stdint: Likewise.
76786         * modules/sys_select: Likewise.
76787         * modules/sys_socket: Likewise.
76788         * modules/sys_stat: Likewise.
76789         * modules/sysexits: Likewise.
76790         * modules/localcharset: Same as above, but continue using temporary
76791         file named "t-$@" (why different?) rather than the "$@-t" used
76792         everywhere else.
76793
76794         * modules/sysexits (Makefile.am): Replace literal occurrences
76795         of "sysexit.h" more readable, and more consistent, "$@".
76796
76797 2006-09-06  Bruno Haible  <bruno@clisp.org>
76798
76799         * modules/striconv: New file.
76800         * modules/xstriconv: New file.
76801         * MODULES.html.sh (Internationalization functions): Add striconv,
76802         xstriconv.
76803
76804 2006-09-06  Bruno Haible  <bruno@clisp.org>
76805
76806         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76807         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76808         not using libtool correctly.
76809
76810 2006-09-06  Bruno Haible  <bruno@clisp.org>
76811
76812         * lib/striconv.h: New file.
76813         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76814         iconvstring.c.
76815         * lib/xstriconv.h: New file.
76816         * lib/xstriconv.c: New file.
76817
76818 2006-09-06  Bruno Haible  <bruno@clisp.org>
76819
76820         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76821         lib_..._LDFLAGS.
76822
76823 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76824
76825         * lib/argz_.h: Sync from Libtool.
76826
76827         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76828                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76829
76830         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76831
76832 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76833
76834         * modules/trim: New file.
76835
76836 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76837
76838         * lib/trim.h: New file.
76839         * lib/trim.c: New file.
76840
76841 2006-09-05  Bruno Haible  <bruno@clisp.org>
76842
76843         * MODULES.html.sh (String handling): Add trim.
76844
76845 2006-09-04  Karl Berry  <karl@gnu.org>
76846
76847         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
76848         until next release.
76849
76850 2006-09-03  Bruno Haible  <bruno@clisp.org>
76851
76852         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
76853         correctly.
76854
76855 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
76858         not gl_GETLOADAVG.  Omit unneeded semicolons.
76859         Problems reported by Ralf Wildenhues in
76860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76861         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
76862         at the end, which is the usual gnulib style.
76863
76864         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
76865         of doing all the work ourselves.
76866         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
76867         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
76868
76869 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76870
76871         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
76872         Problem reported by Ralf Wildenhues in
76873         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76874
76875         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
76876         HAVE_STRUCT_STATFS_F_FSTYPENAME.
76877
76878 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76879
76880         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
76881         yesterday's patch by changing test -n to test -z.
76882
76883 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76884
76885         * modules/getloadavg (Files): Add m4/getloadavg.m4.
76886         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
76887         the former is now obsolescent.
76888
76889         * modules/chdir-long (Depends-on): Add fcntl.
76890
76891 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76892
76893         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
76894         obsolescent, and programs should use gnulib instead.
76895         * m4/getloadavg.m4: New file, with contents taken from Autoconf
76896         but with prefixes changed.
76897
76898 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
76901         or stdbool.h, because they might not exist while configuring.
76902
76903         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
76904         Don't include unistd.h or limits.h; not needed, since chdir-long.h
76905         does that for us.
76906         (O_DIRECTORY): Remove.
76907
76908 2006-08-31  Eric Blake  <ebb9@byu.net>
76909
76910         * gnulib-tool: Don't let emacs change spaces to TAB.
76911
76912 2006-08-31  Bruno Haible  <bruno@clisp.org>
76913
76914         * gnulib-tool: When calling func_import more than once, do it in a
76915         subshell.
76916         Reported by Eric Blake <ebb9@byu.net>.
76917
76918 2006-08-31  Bruno Haible  <bruno@clisp.org>
76919
76920         * gnulib-tool (nl): Remove variable.
76921         (sed_transform_lib_file): Use more robust test for config-h module.
76922         (func_import): Fix typo in 2006-08-25 patch.
76923
76924 2006-08-31  Bruno Haible  <bruno@clisp.org>
76925
76926         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
76927         specified, augment Makefile.am variables instead of assigning them.
76928
76929 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76930
76931         Work around a bug in both the Linux and SunOS 64-bit kernels:
76932         nanosleep mishandles sleeps for longer than 2**31 seconds.
76933         Problem reported by Frank v Waveren in
76934         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
76936         Check for nanosleep bug.
76937         (LIB_NANOSLEEP): Append clock_gettime library if needed.
76938
76939 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76940
76941         Work around a bug in both the Linux and SunOS 64-bit kernels:
76942         nanosleep mishandles sleeps for longer than 2**31 seconds.
76943         Problem reported by Frank v Waveren in
76944         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76945         * lib/nanosleep.c (BILLION): New constant.
76946         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
76947         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
76948         implementation.
76949
76950 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         * modules/nanosleep (Depends-on): Add gettime.
76953
76954 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76955         and Simon Josefsson  <jas@extundo.com>
76956         and Oskar Liljeblad  <oskar@osk.mine.nu>
76957
76958         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
76959         * gnulib-tool (func_import): New license type 'unmodifiable license
76960         text'.
76961         * modules/fdl: Use it.  Longer description.
76962         * module/gpl, module/lgpl: New files.
76963
76964 2006-08-30  Jim Meyering  <jim@meyering.net>
76965
76966         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
76967         shadowing the parameter.
76968
76969 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76970
76971         Sync from Libtool:
76972
76973         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76974
76975         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
76976         sharing with gnulib.  Report by Eric Blake.
76977
76978 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * modules/isapipe: New file.
76981         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76982
76983 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76984
76985         * modules/configmake (Makefile.am): Add a comment, and omit
76986         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76987         by Bruno Haible.
76988
76989 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76990
76991         * m4/isapipe.m4: New file.
76992
76993 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * lib/isapipe.c, lib/isapipe.h: New files.
76996
76997 2006-08-29  Jim Meyering  <jim@meyering.net>
76998
76999         * modules/configmake (Makefile.am): Make configmake.h depend on
77000         Makefile.  Otherwise, a stale configmake.h could hang around.
77001
77002 2006-08-29  Eric Blake  <ebb9@byu.net>
77003
77004         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77005         resolution of upstream bug 3044.
77006
77007 2006-08-29  Bruno Haible  <bruno@clisp.org>
77008
77009         * modules/localcharset (Depends-on): Add configmake.
77010         (Makefile.am): Remove setting of LIBDIR through DEFS.
77011
77012 2006-08-29  Bruno Haible  <bruno@clisp.org>
77013
77014         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77015         defined.
77016
77017 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         * modules/fcntl: New file.
77020         * modules/chdir-safer (Depends-on): Add fcntl.
77021         * modules/fts: Likewise.
77022         * modules/mkdir-p: Likewise.
77023
77024         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77025         This undoes the most recent change, since we're now addressing the
77026         problem in a different way.
77027
77028         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77029         into output, since the output might be called Makefile.am even
77030         if $makefile_name is something different.
77031         (func_import): Use $makefile_am rather than
77032         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77033         empty.
77034
77035         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77036
77037 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77040         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77041         recent change to stdint.m4, since we're now addressing the problem in a
77042         different way.
77043
77044 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         * m4/fcntl_h.m4: New file.
77047
77048 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77049
77050         * lib/fcntl_.h: New file.
77051         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77052         the fcntl module.
77053         * lib/dirchownmod.c: Likewise.
77054         * lib/fts.c: Likewise.
77055
77056         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77057         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77058         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77059         just before including <inttypes.h>, to avoid circular inclusion.
77060
77061 2006-08-28  Jim Meyering  <jim@meyering.net>
77062
77063         * doc/visibility.texi: Actually read and correct the grammar of the
77064         sentence affected by yesterday's change.
77065
77066 2006-08-28  Eric Blake  <ebb9@byu.net>
77067
77068         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77069         needs wrapper.
77070
77071 2006-08-28  Eric Blake  <ebb9@byu.net>
77072
77073         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77074
77075 2006-08-28  Eric Blake  <ebb9@byu.net>
77076
77077         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77078
77079 2006-08-28  Bruno Haible  <bruno@clisp.org>
77080
77081         * modules/c-strstr: New file, from GNU gettext.
77082         * MODULES.html.sh (String handling): Add c-strstr.
77083
77084 2006-08-28  Bruno Haible  <bruno@clisp.org>
77085
77086         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77087         macros.
77088         Reported by Eric Blake.
77089
77090 2006-08-28  Bruno Haible  <bruno@clisp.org>
77091
77092         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77093         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77094         * lib/vasprintf.c: Include errno.h, limits.h.
77095         (EOVERFLOW): New fallback definition.
77096         (vasprintf): Test here whether the string length is > INT_MAX.
77097         * lib/vsnprintf.c: Include errno.h, limits.h.
77098         (EOVERFLOW): New fallback definition.
77099         (vsnprintf): Fix bug when generated string was too long for the buffer.
77100         Test here whether the string length is > INT_MAX.
77101
77102 2006-08-28  Bruno Haible  <bruno@clisp.org>
77103
77104         * lib/inttypes_.h (SCNX*): Remove definitions.
77105         Reported by Eric Blake.
77106
77107 2006-08-28  Bruno Haible  <bruno@clisp.org>
77108
77109         * lib/c-strstr.h: New file, from GNU gettext.
77110         * lib/c-strstr.c: New file, from GNU gettext.
77111
77112 2006-08-28  Bruno Haible  <bruno@clisp.org>
77113
77114         * gnulib-tool: Reorder some statements.
77115
77116 2006-08-28  Bruno Haible  <bruno@clisp.org>
77117
77118         * gnulib-tool: New option --makefile-name.
77119         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77120         $makefile_name.
77121         (func_import): Write $makefile_name to the cache file, and read it from
77122         there unless explicitly specified. Use $makefile_name as file name
77123         instead of Makefile.am. Adjust the recommendations accordingly.
77124
77125 2006-08-28  Bruno Haible  <bruno@clisp.org>
77126
77127         * gnulib-tool (func_verify_module): Check against misapplying patch.
77128
77129 2006-08-28  Bruno Haible  <bruno@clisp.org>
77130
77131         * gnulib-tool (func_relativize, func_relconcat): New functions.
77132         Give an error if --local-dir is given with --update.
77133         Remove trailing slashes from $local_gnulib_dir.
77134         (func_import): Store the relativized $local_gnulib_dir in
77135         gnulib-cache.m4, and read it from there if not specified explicitly.
77136
77137 2006-08-28  Bruno Haible  <bruno@clisp.org>
77138
77139         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77140         is the current directory. Respect also $local_gnulib_dir.
77141
77142 2006-08-28  Bruno Haible  <bruno@clisp.org>
77143             Simon Josefsson  <jas@extundo.com>
77144
77145         BeOS portability.
77146         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77147
77148 2006-08-27  Jim Meyering  <jim@meyering.net>
77149
77150         * doc/visibility.texi: Remove duplicate word: "pointer".
77151
77152 2006-08-26  Bruno Haible  <bruno@clisp.org>
77153
77154         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77155         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77156         (Makefile.am): Create inttypes.h from inttypes_.h.
77157         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77158
77159         * modules/imaxabs: New file.
77160
77161         * modules/imaxdiv: New file.
77162
77163 2006-08-26  Bruno Haible  <bruno@clisp.org>
77164
77165         * m4/inttypes.m4: New file.
77166         * m4/_inttypes_h.m4: Remove file.
77167         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77168         PRI_MACROS_BROKEN.
77169         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77170
77171         * m4/imaxabs.m4: New file.
77172
77173         * m4/imaxdiv.m4: New file.
77174
77175 2006-08-26  Bruno Haible  <bruno@clisp.org>
77176
77177         * lib/inttypes_.h: New file.
77178         * lib/inttypes.h: Remove file.
77179         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77180
77181         * lib/imaxabs.c: New file.
77182
77183         * lib/imaxdiv.c: New file.
77184
77185 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77186
77187         New config-h module, so that "make" output needn't be cluttered
77188         by -DHAVE_CONFIG_H.
77189         * MODULES.html.sh (Support for building libraries and executables):
77190         Add config-h.
77191         * modules/config-h: New file.
77192         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77193         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77194         the config-h module is used.
77195
77196         New configmake module, so that "make" output needn't be cluttered
77197         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77198         * MODULES.html.sh (Support for building libraries and executables):
77199         Add configmake.
77200         * modules/configmake: New file.
77201
77202 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77203
77204         * m4/config-h.m4: New file.
77205
77206 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * config/srclist.txt: Add elisp-comp.
77209
77210 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77211
77212         * MODULES.html.sh (Support for building libraries and executables):
77213         Add elisp-comp.
77214         * build-aux/elisp-comp: New file.
77215         * modules/elisp-comp: New file.
77216
77217 2006-08-24  Bruno Haible  <bruno@clisp.org>
77218
77219         * gnulib-tool (func_create_testdir): Use non-default values of
77220         sourcebase and m4base.
77221
77222 2006-08-24  Bruno Haible  <bruno@clisp.org>
77223
77224         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77225         HTML structure.
77226
77227 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         * modules/openat (Depends-on): Add lchown.
77230
77231 2006-08-23  Bruno Haible  <bruno@clisp.org>
77232
77233         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77234         of gl_LOCK_EARLY instead of gl_LOCK.
77235
77236 2006-08-23  Bruno Haible  <bruno@clisp.org>
77237
77238         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77239         on OSF/1 to no.
77240         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77241
77242 2006-08-23  Bruno Haible  <bruno@clisp.org>
77243
77244         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77245         as unusable.
77246
77247         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77248         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77249         (gl_LOCK): New macro.
77250
77251 2006-08-22  Simon Josefsson  <jas@extundo.com>
77252
77253         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77254         to md5 module.
77255
77256 2006-08-22  Simon Josefsson  <jas@extundo.com>
77257
77258         * MODULES.html.sh: Add "Support for maintaining and release
77259         projects".
77260
77261         * build-aux/gnupload: New file, from coreutils.
77262
77263 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77264
77265         Avoid the need for AC_LIBSOURCES in m4 macros.
77266         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77267         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77268         * modules/check-version (EXTRA_DIST): Add check-version.h.
77269         * modules/crc (EXTRA_DIST): Add crc.h.
77270         * modules/des (EXTRA_DIST): Add des.h.
77271         * modules/gc (EXTRA_DIST): Add gc.h.
77272         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77273         * modules/getline (EXTRA_DIST): Add getline.h.
77274         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77275         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77276         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77277         * modules/md2 (EXTRA_DIST): Add md2.h.
77278         * modules/md4 (EXTRA_DIST): Add md4.h.
77279         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77280         * modules/read-file (EXTRA_DIST): Add read-file.h.
77281         * modules/readline (EXTRA_DIST): Add readline.h.
77282         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77283         rijndael-api-fst.h.
77284
77285 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77286
77287         * m4/rijndael.m4 (gl_ARCFOUR):
77288         * m4/arctwo.m4 (gl_ARCTWO):
77289         * m4/check-version.m4 (gl_CHECK_VERSION):
77290         * m4/crc.m4 (gl_CRC):
77291         * m4/des.m4 (gl_DES):
77292         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77293         * m4/gc.m4 (gl_GC):
77294         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77295         * m4/getline.m4 (gl_FUNC_GETLINE):
77296         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77297         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77298         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77299         * m4/md2.m4 (gl_MD2):
77300         * m4/md4.m4 (gl_MD4):
77301         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77302         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77303         * m4/readline.m4 (gl_FUNC_READLINE):
77304         * m4/rijndael.m4 (gl_RIJNDAEL):
77305         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77306         to get the necessary .h files and whatnot.
77307
77308 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77309
77310         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77311         gnulib rather than the other way around.
77312         * config/srclistvars.sh (COREUTILS): Remove.
77313
77314 2006-08-22  Jim Meyering  <jim@meyering.net>
77315
77316         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77317
77318         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77319
77320 2006-08-22  Eric Blake  <ebb9@byu.net>
77321
77322         * modules/regexprops-generic: New file.
77323         * MODULES.html.sh (Support for building documentation): List it.
77324
77325 2006-08-22  Eric Blake  <ebb9@byu.net>
77326
77327         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77328         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77329         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77330         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77331
77332 2006-08-22  Bruno Haible  <bruno@clisp.org>
77333
77334         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77335         and lib_LTLIBRARIES like the other lib_* variables.
77336
77337 2006-08-22  Bruno Haible  <bruno@clisp.org>
77338
77339         * build-aux/x-to-1.in: New file, from GNU gettext.
77340
77341 2006-08-22  Bruno Haible  <bruno@clisp.org>
77342
77343         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77344         <utmpx.h> exists.
77345
77346 2006-08-22  Bruno Haible  <bruno@clisp.org>
77347
77348         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77349         <utmpx.h> exists.
77350
77351 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         BeOS portability.
77354         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77355         exist.
77356         Problem reported by Bruno Haible.
77357
77358 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         Avoid the need for AC_LIBSOURCES in m4 macros.
77361         * modules/acl (EXTRA_DIST): Add acl.h.
77362         * modules/argmatch (Files): Add m4/argmatch.m4.
77363         (configure.ac): Add gl_ARGMATCH.
77364         (EXTRA_DIST): Renamed from lib_SOURCES, for
77365         consistency with the other modules.  Remove argmatch.c.
77366         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77367         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77368         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77369         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77370         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77371         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77372         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77373         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77374         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77375         * modules/closeout (EXTRA_DIST): Add closeout.h.
77376         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77377         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77378         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77379         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77380         dirname.h; remove basename.c and stripslash.c.
77381         * modules/exclude (EXTRA_DIST): Add exclude.h.
77382         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77383         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77384         * modules/file-type (EXTRA_DIST): Add file-type.h.
77385         * modules/filemode (EXTRA_DIST): Add filemode.h.
77386         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77387         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77388         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77389         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77390         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77391         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77392         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77393         * modules/getdate (EXTRA_DIST): Add getdate.c.
77394         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77395         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77396         * modules/getpass (EXTRA_DIST): Add getpass.h.
77397         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77398         * modules/group-member (EXTRA_DIST): Add group-member.h.
77399         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77400         * modules/hash (EXTRA_DIST): Add hash.h.
77401         * modules/human (EXTRA_DIST): Add human.h.
77402         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77403         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77404         * modules/lchown (EXTRA_DIST): Add lchown.h.
77405         * modules/long-options (EXTRA_DIST): Add long-options.h.
77406         * modules/lstat (EXTRA_DIST): Add lstat.h.
77407         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77408         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77409         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77410         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77411         * modules/memxor (EXTRA_DIST): Add memxor.h.
77412         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77413         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77414         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77415         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77416         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77417         * modules/physmem (EXTRA_DIST): Add physmem.h.
77418         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77419         * modules/posixver (EXTRA_DIST): Add posixver.h.
77420         * modules/quote (EXTRA_DIST): Add quote.h.
77421         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77422         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77423         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77424         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77425         regex_internal.h regexec.c.
77426         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77427         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77428         * modules/same (EXTRA_DIST): Add same.h.
77429         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77430         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77431         * modules/savedir (EXTRA_DIST): Add savedir.h.
77432         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77433         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77434         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77435         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77436         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77437         * modules/strdup (EXTRA_DIST): Add strdup.h.
77438         * modules/strftime (EXTRA_DIST): Add strftime.h.
77439         * modules/strndup (EXTRA_DIST): Add strndup.h.
77440         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77441         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77442         * modules/time_r (EXTRA_DIST): Add time_r.h.
77443         * modules/timespec (EXTRA_DIST): Add timespec.h.
77444         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77445         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77446         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77447         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77448         * modules/userspec (EXTRA_DIST): Add userspec.h.
77449         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77450         * modules/utimens (EXTRA_DIST): Add utimens.h.
77451         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77452         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77453         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77454         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77455         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77456         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77457         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77458         * modules/yesno (EXTRA_DIST): Add yesno.h.
77459
77460 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77461
77462         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77463
77464         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77465         * m4/dev-ino.m4, same-inode.m4: Remove.
77466
77467         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77468         * m4/acl.m4 (AC_FUNC_ACL):
77469         * m4/backupfile.m4 (gl_BACKUPFILE):
77470         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77471         * m4/canon-host.m4 (gl_CANON_HOST):
77472         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77473         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77474         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77475         * m4/cloexec.m4 (gl_CLOEXEC):
77476         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77477         * m4/closeout.m4 (gl_CLOSEOUT):
77478         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77479         * m4/dirname.m4 (gl_DIRNAME):
77480         * m4/exclude.m4 (gl_EXCLUDE):
77481         * m4/exitfail.m4 (gl_EXITFAIL):
77482         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77483         * m4/file-type.m4 (gl_FILE_TYPE):
77484         * m4/filemode.m4 (gl_FILEMODE):
77485         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77486         * m4/fpending.m4 (gl_FUNC_FPENDING):
77487         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77488         * m4/fts.m4 (gl_FUNC_FTS):
77489         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77490         * m4/getdate.m4 (gl_GETDATE):
77491         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77492         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77493         * m4/getpass.m4 (gl_FUNC_GETPASS):
77494         * m4/gettime.m4 (gl_GETTIME):
77495         * m4/getugroups.m4 (gl_GETUGROUPS):
77496         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77497         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77498         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77499         * m4/hash.m4 (gl_HASH):
77500         * m4/idcache.m4 (gl_IDCACHE):
77501         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77502         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77503         * m4/long-options.m4 (gl_LONG_OPTIONS):
77504         * m4/lstat.m4 (gl_FUNC_LSTAT):
77505         * m4/md5.m4 (gl_MD5):
77506         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77507         * m4/memcoll.m4 (gl_MEMCOLL):
77508         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77509         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77510         * m4/memxor.m4 (gl_MEMXOR):
77511         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77512         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77513         * m4/modechange.m4 (gl_MODECHANGE):
77514         * m4/mountlist.m4 (gl_MOUNTLIST):
77515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77516         * m4/openat.m4 (gl_FUNC_OPENAT):
77517         * m4/pathmax.m4 (gl_PATHMAX):
77518         * m4/physmem.m4 (gl_PHYSMEM):
77519         * m4/posixtm.m4 (gl_POSIXTM):
77520         * m4/posixver.m4 (gl_POSIXVER):
77521         * m4/quote.m4 (gl_QUOTE):
77522         * m4/quotearg.m4 (gl_QUOTEARG):
77523         * m4/readtokens.m4 (gl_READTOKENS):
77524         * m4/readutmp.m4 (gl_READUTMP):
77525         * m4/regex.m4 (gl_REGEX):
77526         * m4/safe-read.m4 (gl_SAFE_READ):
77527         * m4/safe-write.m4 (gl_SAFE_WRITE):
77528         * m4/same.m4 (gl_SAME):
77529         * m4/save-cwd.m4 (gl_SAVE_CWD):
77530         * m4/savedir.m4 (gl_SAVEDIR):
77531         * m4/settime.m4 (gl_SETTIME):
77532         * m4/sha1.m4 (gl_SHA1):
77533         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77534         * m4/stat-macros.m4 (gl_STAT_MACROS):
77535         * m4/stat-time.m4 (gl_STAT_TIME):
77536         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77537         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77538         * m4/strdup.m4 (gl_FUNC_STRDUP):
77539         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77540         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77541         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77542         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77543         * m4/time_r.m4 (gl_TIME_R):
77544         * m4/timespec.m4 (gl_TIMESPEC):
77545         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77546         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77547         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77548         * m4/userspec.m4 (gl_USERSPEC):
77549         * m4/utimecmp.m4 (gl_UTIMECMP):
77550         * m4/utimens.m4 (gl_UTIMENS):
77551         * m4/xalloc.m4 (gl_XALLOC):
77552         * m4/xgetcwd.m4 (gl_XGETCWD):
77553         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77554         * m4/xreadlink.m4 (gl_XREADLINK):
77555         * m4/xstrtod.m4 (gl_XSTRTOD):
77556         * m4/yesno.m4 (gl_YESNO):
77557         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77558         to get the necessary .h files and whatnot.
77559
77560 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77561             Bruno Haible  <bruno@clisp.org>
77562
77563         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77564         /bin/sh understanding of '!' conditional negation.
77565
77566 2006-08-21  Jim Meyering  <jim@meyering.net>
77567
77568         * modules/openat (Depends-on): Really alphabetize.
77569
77570         * modules/acl (Depends-on): Add error and quote.
77571
77572         * check-module (find_included_lib_files): Add at-func.c to the
77573         ok-to-include-more-than-once white list.
77574
77575         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77576
77577 2006-08-21  Bruno Haible  <bruno@clisp.org>
77578
77579         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77580         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77581         Reported by Martin Lambers <marlam@marlam.de>.
77582
77583 2006-08-21  Bruno Haible  <bruno@clisp.org>
77584
77585         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77586         specify an installation location, don't emit a noinst_LIBRARIES or
77587         noinst_LTLIBRARIES assignment.
77588
77589 2006-08-21  Bruno Haible  <bruno@clisp.org>
77590
77591         BeOS portability.
77592         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77593         BeOS has mbrtowc() but no <wctype.h>.
77594
77595 2006-08-21  Bruno Haible  <bruno@clisp.org>
77596
77597         BeOS portability.
77598         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77599         exist.
77600
77601 2006-08-21  Bruno Haible  <bruno@clisp.org>
77602
77603         BeOS portability.
77604         * lib/mbchar.h: Include <wctype.h> only if it exists.
77605
77606 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         Remove files that are no longer needed by their respective modules.
77609         * m4/obstack.m4: Remove.
77610         * m4/strerror_r.m4: Remove.
77611         * m4/uint32_t.m4: Remove.
77612         * m4/uintptr_t.m4: Remove.
77613         * m4/ullong_max.m4: Remove.
77614         * m4/xstrtoimax.m4: Remove.
77615         * m4/xstrtoumax.m4: Remove.
77616
77617         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77618         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77619         dependencies now capture this.
77620
77621         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77622         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77623         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77624         * m4/human.m4 (gl_HUMAN): Likewise.
77625         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77626         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77627
77628         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77629
77630         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77631         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77632         stdint.
77633         * m4/human.m4 (gl_HUMAN): Likewise.
77634         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77635         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77636         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77637         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77638         * m4/xstrtol (gl_XSTRTOL): Likewise.
77639
77640         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77641         AC_TYPE_LONG_LONG_INT.
77642         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77643         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77644         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77645         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77646
77647         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77648         on stdbool.
77649
77650         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77651         (gl_PREREQ_XSTRTOUL): Remove.
77652
77653         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77654
77655         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77656         mode.
77657
77658 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         Add and change modules to make it easier for coreutils to use
77661         gnulib-tool.
77662         * modules/backupfile (Files): Remove m4/d-ino.m4.
77663         (Depends-on): Add d-ino.
77664         * modules/cycle-check (Depends-on): Add stdint.
77665         (lib_SOURCES): Add cycle-check.h.
77666         * modules/d-ino: New module.
77667         * modules/d-type: New module.
77668         * modules/error (Files): Remove m4/strerror_r.m4.
77669         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77670         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77671         m4/inttypes_h.m4, m4/uintmax_t.m4.
77672         (Depends-on): Add stdint.
77673         (lib_SOURCES): Add fsusage.h.
77674         * modules/getcwd (Files): Remove d-ino.m4.
77675         (Depends-on): Add d-ino.
77676         * modules/getndelim2 (Depends-on): Add stdint.
77677         * modules/glob (Files): Remove m4/d-type.m4.
77678         (Depends-on): Add d-type.
77679         * modules/host-os: New module.
77680         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77681         m4/inttypes_h.m4, m4/uintmax_t.m4.
77682         * Depends-on: Add stdint.
77683         (lib_SOURCES): Add human.h.
77684         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77685         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77686         m4/uintmax_t.m4, m4/ulonglong.m4.
77687         (Depends-on): Add stdint.
77688         (EXTRA_DIST): Add inttostr.h.
77689         * modules/lchmod: New module.
77690         * modules/link-follow: New module.
77691         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77692         (Depends-on): Add lchmod.
77693         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77694         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77695         (Depends-on): Add stdint.
77696         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77697         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77698         (Depends-on): Add stdint.
77699         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77700         * modules/perl: New module.
77701         * modules/regex (Depends-on): Add stdint.
77702         * modules/rmdir-errno: New module.
77703         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77704         m4/intmax_t.m4.
77705         (Depends-on): Add stdint.
77706         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77707         m4/uintmax_t.m4.
77708         (Depends-on): Add stdint.
77709         * modules/unlink-busy: New module.
77710         * modules/utimecmp (Depends-on): Add stdint.
77711         * modules/uptime: New module.
77712         * modules/winsz-ioctl: New module.
77713         * modules/winsz-termios: New module.
77714         * modules/xnanosleep (Depends-on): Add nanosleep.
77715         * modules/ullong_max: Remove.
77716         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77717         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77718         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77719         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77720         (Depends-on): Add inttypes.
77721         (lib_SOURCES): Add xstrtol.h.
77722         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77723         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77724         * MODULES.html.sh: Move 'assert' into the assert section.
77725         Move 'dummy' into the linking section.
77726         Remove ullong_max.
77727         Add section for compatibility checks for POSIX:2001 functions,
77728         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77729         winsz-ioctl, and winsz-termios into it.
77730         Add lchmod.
77731         Add top-level Misc section and put host-os, perl, and uptime
77732         into it.
77733
77734 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77735
77736         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77737         now assume the stdint module.  Do not include inttypes.h.
77738         * lib/fsusage.h: Likewise.
77739         * lib/getndelim2.c: Likewise.
77740         * lib/human.h: Likewise.
77741         * lib/inttostr.h: Likewise.
77742         * lib/obstack.c: Likewise.
77743         * lib/regex_internal.h: Likewise.
77744         * lib/tempname.c: Likewise.
77745         * lib/utimecmp.c: Likewise.
77746         * lib/xstrtol.h: Likewise.
77747
77748         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77749
77750         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77751         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77752         * lib/xtime.h: Likewise.
77753
77754 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77755
77756         * modules/openat (Files): Add lib/fchmodat.c.
77757         Fixes problem reported by Jay Youngman.
77758
77759 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77760
77761         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77762         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77763
77764 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77765             Bruno Haible  <bruno@clisp.org>
77766
77767         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77768         and is a script that invokes bison. Tighten the code. Add comments.
77769
77770 2006-08-18  Jim Meyering  <jim@meyering.net>
77771
77772         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77773         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77774         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77775         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77776
77777 2006-08-18  Bruno Haible  <bruno@clisp.org>
77778
77779         * modules/bison-i18n: New file.
77780         * MODULES.html.sh (Internationalization functions): Add it.
77781
77782 2006-08-18  Bruno Haible  <bruno@clisp.org>
77783
77784         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77785         sys/statvfs.h. When getmntinfo was found, check its declaration and
77786         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77787
77788 2006-08-18  Bruno Haible  <bruno@clisp.org>
77789
77790         * m4/bison-i18n.m4: New file, from bison.
77791
77792 2006-08-18  Bruno Haible  <bruno@clisp.org>
77793
77794         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77795         (ME_DUMMY): Treat "kernfs" as a dummy.
77796         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77797
77798 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77799
77800         Update from coreutils.
77801
77802         2006-08-15  Jim Meyering  <jim@meyering.net>
77803
77804         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77805
77806         2006-01-17  Jim Meyering  <jim@meyering.net>
77807
77808         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77809
77810         2006-01-11  Jim Meyering  <jim@meyering.net>
77811
77812         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77813         Check for the lchmod function.
77814
77815 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77816
77817         Update from coreutils.
77818
77819         * lib/__fpending.h: Add copyright notice.
77820         * lib/fprintftime.h: Likewise.
77821         * lib/savedir.c: Use (C) in copyright notice.
77822         * lib/savedir.h: Likewise.
77823
77824         2006-08-15  Jim Meyering  <jim@meyering.net>
77825
77826         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77827         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77828         in support of the EXPECTED_ERRNO macro.
77829         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77830         definitions.  Instead, define the appropriate symbols and include
77831         "at-func.c".
77832         * lib/mkdirat.c (mkdirat): Likewise.
77833         * lib/fchmodat.c (fchmodat): Likewise.
77834         (ENOSYS): Remove definition.
77835         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
77836         it.  Don't include "unistd--.h" -- it wasn't ever used.
77837
77838         2006-01-17  Jim Meyering  <jim@meyering.net>
77839
77840         Rewrite fts.c not to change the current working directory,
77841         by using openat, fstatat, fdopendir, etc..
77842
77843         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
77844         (HAVE_OPENAT_SUPPORT): Define.
77845         [_LIBC] (fchdir): Don't undef or define; no longer used.
77846         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
77847         Now, this `function' always succeeds, and consumes its file descriptor
77848         parameter -- so callers must not close such FDs.  Update callers.
77849         (diropen_fd, opendirat, cwd_advance_fd): New functions.
77850         (diropen): Add parameter, SP.  Adjust all callers.
77851         Implement using diropen_fd, rather than open.
77852         (fts_open): Initialize new member, fts_cwd_fd.
77853         Remove fts_rft-setting code.
77854         (fts_close): Close fts_cwd_fd, if necessary.
77855         (__opendir2): Define in terms of opendir or opendirat,
77856         depending on whether the FST_NOCHDIR flag is set.
77857         (fts_build): Since fts_safe_changedir consumes its FD, and since
77858         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
77859         and close the dup'd file descriptor upon failure.
77860         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
77861         (fts_safe_changedir): Tweak semantics to reflect that this function
77862         now calls cwd_advance_fd and hence consumes its FD argument.
77863         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
77864         [struct FTS] (fts_rft): Remove now-unused member.
77865         [struct FTS] (fts_cycle.state): Improve comment.
77866
77867         * lib/openat.c (openat_needs_fchdir): New function.
77868         * lib/openat.h (openat_needs_fchdir): Declare it.
77869
77870 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77871
77872         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
77873         Problem and fix reported by Pádraig Brady in
77874         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
77875
77876 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77877
77878         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
77879
77880 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77881
77882         * lib/memcoll.c (memcoll): Optimize for the common case where the
77883         arguments are bytewise equal.
77884
77885 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77886
77887         * doc/regexprops-generic.texi: Add a copyright notice.
77888
77889 2006-08-15  Bruno Haible  <bruno@clisp.org>
77890
77891         * modules/tmpdir (License): Change to LGPL.
77892
77893 2006-08-15  Bruno Haible  <bruno@clisp.org>
77894
77895         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
77896         module.
77897
77898 2006-08-14  Simon Josefsson  <jas@extundo.com>
77899
77900         * config/srclist.txt: Add gnupload.
77901
77902 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77903
77904         Change copyright notice from LGPL 2 to GPL 2, since that's the
77905         standard form used in the gnulib repository.
77906         * tests/test-lock.c: Likewise.
77907         * tests/test-stdint.c: Likewise.
77908         * tests/test-tls.c: Likewise.
77909
77910         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
77911         prelude-manager.  User shorter URLs for GNU projects, without '?'.
77912         Add copyright notice.
77913
77914         * check-module: Add copyright notice.  Output a copyright
77915         notice if "--version" is specified.
77916         * modules/COPYING: New file.
77917         * tests/test-getaddrinfo.c: Add copyright notice.
77918         * tests/test-verify.c: Likewise.
77919
77920 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77921
77922         Change copyright notice from LGPL 2 to GPL 2, since that's the
77923         standard form used in the gnulib repository.
77924         * lib/lock.c: LGPL -> GPL.
77925         * lib/lock.h: Likewise.
77926         * lib/strnlen1.c: Likewise.
77927         * lib/strnlen1.h: Likewise.
77928         * lib/tls.c: Likewise.
77929         * lib/tls.h: Likewise.
77930         * lib/tmpdir.c: Likewise.
77931
77932         * lib/TODO: Remove; this belongs only in coreutils.
77933
77934 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         Add copyright notices to long-enough files that lack them, since
77937         otherwise the files aren't clearly free.  Use the same notice that
77938         getdate.texi already uses.
77939         * doc/alloca-opt.texi: Add copyright notice.
77940         * doc/alloca.texi: Likewise.
77941         * doc/ctime.texi: Likewise.
77942         * doc/functions.texi: Likewise.
77943         * doc/gcd.texi: Likewise.
77944         * doc/gnulib-tool.texi: Likewise.
77945         * doc/inet_ntoa.texi: Likewise.
77946         * doc/visibility.texi: Likewise.
77947
77948         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
77949         * doc/quote.texi: Add copyright notice.
77950
77951         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
77952         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
77953         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
77954         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
77955         is now obsolete, and give a pointer to the Sun list.
77956         Add copyright notice.
77957
77958 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77959
77960         * config/srclistvars.sh: Add copyright notice.
77961
77962 2006-08-14  Eric Blake  <ebb9@byu.net>
77963
77964         Import the following change from libc:
77965
77966         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
77967
77968         Upstream bug 2997.
77969         * lib/misc/error.c: Add space between program name and message if file
77970         name is missing.
77971
77972 2006-08-12  Karl Berry  <karl@gnu.org>
77973
77974         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
77975         remove, these originate in gnulib now.
77976
77977 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77978
77979         * doc/Makefile (standards.info standards.html standards.dvi):
77980         Also depend on make-stds.texi.
77981
77982 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77983
77984         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77985         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77986
77987         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77988         in wchar_t.  Problem reported by Eric Blake.
77989
77990         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77991         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77992         Also, help the compiler to keep LEN in a register.
77993
77994 2006-08-11  Eric Blake  <ebb9@byu.net>
77995
77996         * users.txt: Sort.  Add tar.
77997
77998 2006-08-11  Bruno Haible  <bruno@clisp.org>
77999
78000         * users.txt: New file.
78001
78002 2006-08-11  Bruno Haible  <bruno@clisp.org>
78003
78004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78005         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78006
78007 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78008
78009         * modules/snprintf (Depends-on): Remove minmax.
78010         (Maintainer): Add self and Bruno.
78011
78012 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78013
78014         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78015         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78016         (EOVERFLOW): Define if the system does not.
78017         Do not include "minmax.h"; it wasn't used.
78018         (snprintf): Don't assume size_t promotes to an unsigned type.
78019         Fix bug when generated string was too long for the buffer: the
78020         buffer's contents are supposed to be the initial prefix of the
78021         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78022         exceeds INT_MAX; do the check ourselves.
78023
78024         Import the following changes from libc:
78025
78026         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78027
78028         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78029         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78030         set wc to the byte which couldn't be converted.
78031         (re_string_reconstruct): Don't clear valid_raw_len before calling
78032         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78033         tip_context using re_string_context_at.
78034
78035         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78036
78037         * lib/posix/regex.h: g++ still cannot handled [restrict].
78038
78039         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78040
78041         * lib/posix/regex.h: Remove special handling for VMS.
78042
78043 2006-08-10  Jim Meyering  <jim@meyering.net>
78044
78045         * modules/same-inode: New module.
78046         * modules/dev-ino: New module.
78047         * modules/cycle-check: Depend on these modules, rather than simply
78048         including their .h files.
78049         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78050         required via m4/cycle-check.m4.
78051         * modules/same: Depend on new same-inode module, rather than
78052         including same-inode.h.
78053         * modules/chdir-safer: New file.
78054
78055         * modules/chown (Depends-on): Add stat-macros.
78056
78057 2006-08-10  Jim Meyering  <jim@meyering.net>
78058
78059         * m4/cycle-check.m4: New file.
78060         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78061         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78062
78063 2006-08-10  Eric Blake  <ebb9@byu.net>
78064
78065         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78066         in from original proposal.
78067
78068 2006-08-10  Eric Blake  <ebb9@byu.net>
78069         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78070
78071         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78072         namespace.
78073
78074 2006-08-10  Bruno Haible  <bruno@clisp.org>
78075
78076         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78077         as well.
78078
78079 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78080
78081         Sync from coreutils.
78082
78083         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78084
78085         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78086         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78087
78088 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         * modules/restrict: Remove; no longer needed now that we assume
78091         Autoconf 2.59 or later.
78092         * MODULES.html.sh: Remove 'restrict'.
78093         * modules/argp (Depends-on): Remove 'restrict'.
78094         * modules/base64 (Depends-on): Likewise.
78095         * modules/gc (Depends-on): Likewise.
78096         * modules/getaddrinfo (Depends-on): Likewise.
78097         * modules/glob (Depends-on): Likewise.
78098         * modules/inet_ntop (Depends-on): Likewise.
78099         * modules/inet_pton (Depends-on): Likewise.
78100         * modules/memxor (Depends-on): Likewise.
78101         * modules/regex (Depends-on): Likewise.
78102         * modules/strtok_r (Depends-on): Likewise.
78103         * modules/time_r (Depends-on): Likewise.
78104
78105 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78106
78107         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78108         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78109         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78110         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78111         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78112         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78113         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78114         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78115
78116         Merge from coreutils.
78117         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78118         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78119         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78120         * m4/time_r.m4 (gl_TIME_R): Likewise.
78121
78122 2006-08-09  Karl Berry  <karl@gnu.org>
78123
78124         * config/srclist.txt: no more gettext-tools, per Bruno.
78125
78126 2006-08-08  Eric Blake  <ebb9@byu.net>
78127
78128         * modules/verror: New module.
78129         * MODULES.html.sh: Document it.
78130
78131 2006-08-08  Eric Blake  <ebb9@byu.net>
78132
78133         * lib/verror.h, lib/verror.c: New files.
78134
78135 2006-08-08  Eric Blake  <ebb9@byu.net>
78136
78137         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78138         verror_at_line output complies with GNU Coding Standards even when
78139         file is NULL.
78140
78141 2006-08-07  Bruno Haible  <bruno@clisp.org>
78142
78143         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78144         versions of AIX.
78145         Reported by Ralf Wildenhues.
78146
78147 2006-08-07  Bruno Haible  <bruno@clisp.org>
78148
78149         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78150         in an AC_DEFUN. Needed so that the autoconf snippets can use
78151         AC_REQUIRE.
78152
78153 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78154
78155         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78156         Initialize pkgdata_DATA.
78157         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78158         overriding it.
78159
78160 2006-08-06  Eric Blake  <ebb9@byu.net>
78161
78162         * lib/error.h: Fold in some upstream changes from glibc.
78163         * lib/error.c: Likewise.
78164
78165 2006-08-04  Bruno Haible  <bruno@clisp.org>
78166
78167         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78168         Make the mostlyclean-local rule depend on mostlyclean-generic.
78169         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78170
78171 2006-07-31  Bruno Haible  <bruno@clisp.org>
78172
78173         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78174         <stdlib.h>, <string.h>.
78175
78176 2006-07-30  Bruno Haible  <bruno@clisp.org>
78177
78178         * modules/readlink (License): Change to LGPL.
78179
78180 2006-07-30  Bruno Haible  <bruno@clisp.org>
78181
78182         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78183         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78184         set PKGDATADIR to point to it.
78185
78186 2006-07-30  Bruno Haible  <bruno@clisp.org>
78187
78188         * modules/csharpexec (configure.ac): Comment out macro invocation.
78189         * modules/javaexec (configure.ac): Likewise.
78190         * modules/javacomp-script (configure.ac): Likewise.
78191
78192         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78193
78194 2006-07-30  Bruno Haible  <bruno@clisp.org>
78195
78196         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78197         linked-list.
78198
78199 2006-07-30  Bruno Haible  <bruno@clisp.org>
78200
78201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78202
78203 2006-07-30  Bruno Haible  <bruno@clisp.org>
78204
78205         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78206         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78207         get removed.
78208
78209 2006-07-29  Bruno Haible  <bruno@clisp.org>
78210
78211         Make it possible for gnulib-tool to work with locally modified or
78212         augmented gnulib repositories.
78213         * gnulib-tool (func_usage): Document --local-dir option.
78214         (local_gnulib_dir): New variable.
78215         Handle --local-dir option.
78216         (func_lookup_file): New function.
78217         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78218         (func_get_description, func_get_filelist, func_get_description,
78219         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78220         func_get_automake_snippet, func_get_include_directive,
78221         func_get_license, func_get_maintainer): Use func_lookup_file.
78222         (func_import, func_create_testdir): Use func_lookup_file.
78223
78224 2006-07-29  Bruno Haible  <bruno@clisp.org>
78225
78226         * modules/setenv (Depends-on): Add unistd.
78227
78228 2006-07-29  Bruno Haible  <bruno@clisp.org>
78229
78230         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78231
78232 2006-07-29  Bruno Haible  <bruno@clisp.org>
78233
78234         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78235
78236 2006-07-29  Bruno Haible  <bruno@clisp.org>
78237
78238         * gnulib-tool (import, update): If there is no Makefile.am, look at
78239         aclocal.m4, instead of bailing out.
78240
78241 2006-07-29  Bruno Haible  <bruno@clisp.org>
78242
78243         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78244         Categorize the options by when they are useful.
78245
78246 2006-07-29  Bruno Haible  <bruno@clisp.org>
78247
78248         * gnulib-tool (func_usage): Document option --no-libtool.
78249         Handle option --no-libtool.
78250         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78251         for changed semantics of $libtool variable.
78252         (func_import): Likewise. If libtool is not used, show this through
78253         an option --no-libtool.
78254         (func_create_testdir): Update.
78255
78256 2006-07-29  Bruno Haible  <bruno@clisp.org>
78257
78258         * gnulib-tool (func_import): Extend error message about missing
78259         --doc-base.
78260
78261 2006-07-29  Bruno Haible  <bruno@clisp.org>
78262
78263         * gnulib-tool (func_import): Don't create the $docbase directory if
78264         there is no file to store there.
78265
78266 2006-07-29  Bruno Haible  <bruno@clisp.org>
78267
78268         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78269         relevant, look for configure.ac there, not in the current directory.
78270         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78271
78272 2006-07-29  Bruno Haible  <bruno@clisp.org>
78273
78274         * gnulib-tool (SORT): New variable.
78275         (func_usage): Undocument --assume-autoconf option.
78276         Remove --assume-autoconf option handling.
78277         (autoconf_minversion): Determine from the contents of configure.ac.
78278         (func_import): Remove autoconf_minversion handling.
78279         Suggested by Eric Blake.
78280
78281 2006-07-29  Bruno Haible  <bruno@clisp.org>
78282
78283         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78284
78285 2006-07-29  Bruno Haible  <bruno@clisp.org>
78286
78287         * config/srclist.txt (*setenv.[ch]): Remove rules.
78288
78289 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78290
78291         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78292
78293 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78294
78295         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78296         arpa/inet.h.
78297
78298 2006-07-28  Simon Josefsson  <jas@extundo.com>
78299
78300         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78301         * modules/inet_pton (Depends-on): Likewise.
78302
78303 2006-07-28  Simon Josefsson  <jas@extundo.com>
78304
78305         * m4/netinet_in_h.m4: New file.
78306
78307 2006-07-28  Simon Josefsson  <jas@extundo.com>
78308
78309         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78310         #include's.
78311
78312 2006-07-28  Simon Josefsson  <jas@extundo.com>
78313
78314         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78315         #include's.
78316
78317 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78318
78319         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78320         setgid on directories only if they set these bits.
78321         * lib/modechange.h: Remove obsolete comment about masks.
78322
78323 2006-07-28  Eric Blake  <ebb9@byu.net>
78324
78325         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78326         macro expansion.
78327
78328 2006-07-28  Bruno Haible  <bruno@clisp.org>
78329
78330         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78331
78332 2006-07-28  Bruno Haible  <bruno@clisp.org>
78333
78334         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78335
78336 2006-07-28  Bruno Haible  <bruno@clisp.org>
78337
78338         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78339         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78340         Define fallbacks.
78341         Avoids link error on FreeBSD 4.x.
78342         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78343
78344         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78345         encoding.
78346         * lib/mbswidth.c (iswcntrl): Likewise.
78347
78348 2006-07-27  Bruno Haible  <bruno@clisp.org>
78349
78350         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78351         test.
78352
78353 2006-07-27  Bruno Haible  <bruno@clisp.org>
78354
78355         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78356         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78357         defined.
78358
78359 2006-07-26  Eric Blake  <ebb9@byu.net>
78360
78361         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78362
78363 2006-07-26  Eric Blake  <ebb9@byu.net>
78364
78365         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78366         like mingw that lack mkstemp.
78367         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78368         avoid compilation warning on mingw.
78369
78370 2006-07-26  Bruno Haible  <bruno@clisp.org>
78371
78372         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78373         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78374         INT_FAST*_MIN, INTPTR_MIN.
78375
78376 2006-07-25  Bruno Haible  <bruno@clisp.org>
78377
78378         * modules/version-etc (Depends-on): Add stdarg.
78379
78380 2006-07-25  Bruno Haible  <bruno@clisp.org>
78381
78382         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78383         complex commands.
78384
78385 2006-07-25  Bruno Haible  <bruno@clisp.org>
78386
78387         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78388         defined in <stdarg.h> or config.h.
78389
78390 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78393         (gl_STDIO_SAFER): Remove.
78394
78395 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78396
78397         * MODULES.html.sh (File stream based Input/Output):
78398         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78399         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78400         * modules/fopen-safer, modules/tmpfile-safer: New files.
78401         * modules/stdio-safer: Remove.
78402
78403 2006-07-24  Bruno Haible  <bruno@clisp.org>
78404
78405         * modules/tmpdir: New file.
78406         * MODULES.html.sh (File system functions): Add it.
78407
78408 2006-07-24  Bruno Haible  <bruno@clisp.org>
78409
78410         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78411         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78412
78413 2006-07-24  Bruno Haible  <bruno@clisp.org>
78414
78415         * modules/clean-temp: New file.
78416
78417 2006-07-24  Bruno Haible  <bruno@clisp.org>
78418
78419         * m4/tmpdir.m4: New file, from GNU gettext.
78420
78421 2006-07-24  Bruno Haible  <bruno@clisp.org>
78422
78423         * lib/tmpdir.h: New file, from GNU gettext.
78424         * lib/tmpdir.c: New file, from GNU gettext.
78425
78426 2006-07-24  Bruno Haible  <bruno@clisp.org>
78427
78428         * lib/clean-temp.h: New file, from GNU gettext.
78429         * lib/clean-temp.c: New file, from GNU gettext.
78430
78431 2006-07-23  Eric Blake  <ebb9@byu.net>
78432
78433         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78434         (Depends-on): Add binary-io.
78435
78436 2006-07-23  Eric Blake  <ebb9@byu.net>
78437
78438         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78439
78440 2006-07-23  Eric Blake  <ebb9@byu.net>
78441
78442         * lib/tmpfile-safer.c: New file.
78443         * lib/stdio-safer.h (fopen_safer): Add prototype.
78444         * lib/stdio--.h (tmpfile): Make safer.
78445
78446 2006-07-23  Bruno Haible  <bruno@clisp.org>
78447
78448         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78449         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78450         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78451         gl_linked_remove_at): Use it.
78452
78453 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78454         and Simon Josefsson <jas@extundo.com>
78455
78456         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78457
78458         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78459
78460 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78461
78462         * modules/close-stream: New file.
78463         * modules/closeout (Description): Make it clear that it exits
78464         with a diagnostic on error.
78465         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78466         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78467
78468 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         * m4/close-stream.m4: New file.
78471
78472 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78473
78474         * lib/close-stream.c, lib/close-stream.h: New files.
78475
78476 2006-07-22  Bruno Haible  <bruno@clisp.org>
78477
78478         Merge from GNU gettext 0.15.
78479
78480         2006-05-01  Bruno Haible  <bruno@clisp.org>
78481
78482                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78483
78484         2006-07-22  Bruno Haible  <bruno@clisp.org>
78485
78486                 * modules/javaversion: New file.
78487                 * MODULES.html.sh (Java): Add javaversion.
78488
78489         2006-03-12  Bruno Haible  <bruno@clisp.org>
78490
78491                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78492
78493         2005-12-04  Bruno Haible  <bruno@clisp.org>
78494
78495                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78496                 (untested).
78497
78498         2006-06-21  Bruno Haible  <bruno@clisp.org>
78499
78500                 Avoid warnings from recent versions of mcs.
78501                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78502                 -o, -L, -r any more. Use options documented since mcs-1.0
78503                 instead. Similarly for -g.
78504
78505         2005-12-04  Bruno Haible  <bruno@clisp.org>
78506
78507                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78508                 .resources, not .resource.
78509
78510         2005-07-09  Bruno Haible  <bruno@clisp.org>
78511
78512                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78513                 add a .dll suffix.
78514                 Reported by Mark Junker <mjscod@gmx.de>.
78515
78516         2006-07-22  Bruno Haible  <bruno@clisp.org>
78517
78518                 * modules/gettext: Upgrade to gettext-0.15.
78519                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78520                 m4/visibility.m4.
78521                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78522
78523 2006-07-22  Bruno Haible  <bruno@clisp.org>
78524
78525         Merge from GNU gettext 0.15.
78526
78527         2006-03-25  Bruno Haible  <bruno@clisp.org>
78528
78529                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78530
78531         2006-07-21  Bruno Haible  <bruno@clisp.org>
78532
78533                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78534                 "1.1".
78535
78536         2006-05-09  Bruno Haible  <bruno@clisp.org>
78537
78538                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78539                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78540                 for the conftestver execution.
78541
78542         2006-05-01  Bruno Haible  <bruno@clisp.org>
78543
78544                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78545                 optional target-version argument. Verify that the compiler
78546                 groks source of the specified source-version, or add -source
78547                 option as necessary. Verify that the compiler produces
78548                 bytecode in the specified target-version, or add -target and
78549                 -source options as necessary. Make the result of the test
78550                 available as variable CONF_JAVAC. Also log error output in
78551                 config.log.
78552
78553         2006-03-11  Bruno Haible  <bruno@clisp.org>
78554
78555                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78556
78557         2006-05-09  Bruno Haible  <bruno@clisp.org>
78558
78559                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78560                 CLASSPATH_SEPARATOR to a semicolon.
78561
78562         2006-03-12  Bruno Haible  <bruno@clisp.org>
78563
78564                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78565                 available as variable CONF_JAVA, for subsequent autoconf
78566                 tests. Also log error output in config.log.
78567
78568         2006-07-19  Bruno Haible  <bruno@clisp.org>
78569
78570                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78571                 that getline works on glibc2 systems. Needed to avoid trouble
78572                 in relocatable.c.
78573                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78574
78575         2005-12-04  Bruno Haible  <bruno@clisp.org>
78576
78577                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78578                 launcher (untested).
78579
78580         2005-12-04  Bruno Haible  <bruno@clisp.org>
78581
78582                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78583
78584         2006-07-22  Bruno Haible  <bruno@clisp.org>
78585
78586                 * gettext.m4: Update from GNU gettext-0.15.
78587                 * nls.m4: Likewise.
78588                 * po.m4: Likewise.
78589                 * inttypes-pri.m4: Likewise.
78590                 * inttypes-h.m4: Renamed from inttypes.m4.
78591                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78592
78593 2006-07-22  Bruno Haible  <bruno@clisp.org>
78594
78595         Merge from GNU gettext 0.15.
78596
78597         2005-07-05  Bruno Haible  <bruno@clisp.org>
78598
78599                 * printf-args.c (printf_fetchargs): Work around broken
78600                 definition of wint_t on mingw.
78601
78602         2005-02-12  Bruno Haible  <bruno@clisp.org>
78603
78604                 * xallocsa.h: Add extern "C" for C++.
78605
78606         2006-05-17  Bruno Haible  <bruno@clisp.org>
78607
78608                 Cygwin portability.
78609                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78610
78611         2006-04-30  Bruno Haible  <bruno@clisp.org>
78612
78613                 * progreloc.c: Include <mach-o/dyld.h> if available.
78614                 (find_executable): Use _NSGetExecutablePath when possible.
78615
78616         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78617
78618                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78619                 function.
78620
78621         2005-12-29  Bruno Haible  <bruno@clisp.org>
78622
78623                 * progreloc.c (set_program_name_and_installdir): Fix
78624                 compilation error.
78625
78626         2005-12-04  Bruno Haible  <bruno@clisp.org>
78627
78628                 Cygwin portability.
78629                 * progreloc.c: Include <windows.h> also on Cygwin.
78630                 (find_executable): Add support for Cygwin.
78631                 (set_program_name_and_installdir): Handle also platforms with
78632                 nonempty EXEEXT.
78633
78634         2006-07-11  Bruno Haible  <bruno@clisp.org>
78635
78636                 * javacomp.c: Fix a comment.
78637                 Reported by Jim Meyering.
78638
78639         2006-04-30  Bruno Haible  <bruno@clisp.org>
78640
78641                 * javacomp.h (compile_java_class): Add source_version,
78642                 target_version arguments.
78643                 * javacomp.c: Rewritten to choose only a compiler that
78644                 respects the specified source_version and target_version.
78645
78646         2006-06-27  Bruno Haible  <bruno@clisp.org>
78647
78648                 Assume correct S_ISDIR macro.
78649                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78650
78651         2006-07-22  Bruno Haible  <bruno@clisp.org>
78652
78653                 * javaversion.h: New file, from GNU gettext.
78654                 * javaversion.c: New file, from GNU gettext.
78655                 * javaversion.java: New file, from GNU gettext.
78656                 * javaversion.class: New file, from GNU gettext.
78657
78658         2006-05-17  Bruno Haible  <bruno@clisp.org>
78659
78660                 Cygwin portability.
78661                 * javaexec.c (execute_java_class): Test for jview program
78662                 also on Cygwin.
78663
78664         2006-04-09  Bruno Haible  <bruno@clisp.org>
78665
78666                 * fatal-signal.c: Don't include string.h.
78667                 (at_fatal_signal): Use a copying loop instead of memcpy.
78668
78669         2005-12-04  Bruno Haible  <bruno@clisp.org>
78670
78671                 * csharpexec.c: Add support for 'clix' launcher (untested).
78672                 (execute_csharp_using_sscli): New function.
78673                 (execute_csharp_program): Call it.
78674
78675         2006-06-21  Bruno Haible  <bruno@clisp.org>
78676
78677                 Avoid warnings from recent versions of mcs.
78678                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78679                 -o, -L, -r any more. Use options documented since mcs-1.0
78680                 instead. Similarly for -g.
78681
78682         2005-07-09  Bruno Haible  <bruno@clisp.org>
78683
78684                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78685                 add a .dll suffix.
78686                 Reported by Mark Junker <mjscod@gmx.de>.
78687
78688         2006-06-17  Bruno Haible  <bruno@clisp.org>
78689
78690                 * config.charset: Update for NetBSD 3.0.
78691
78692         2006-05-17  Bruno Haible  <bruno@clisp.org>
78693
78694                 Cygwin portability.
78695                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78696
78697         2006-05-16  Bruno Haible  <bruno@clisp.org>
78698
78699                 * localcharset.c [CYGWIN]: Include <windows.h>.
78700                 (get_charset_aliases): For Cygwin, return the same CPxxx
78701                 aliases list as under WIN32.
78702                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78703                 the environment variables. Fall back to GetACP().
78704
78705         2006-04-05  Bruno Haible  <bruno@clisp.org>
78706
78707                 * config.charset: Update Juan Manuel Guerrero's address.
78708
78709         2005-02-12  Bruno Haible  <bruno@clisp.org>
78710
78711                 * allocsa.h: Add extern "C" for C++.
78712
78713         2005-02-10  Bruno Haible  <bruno@clisp.org>
78714
78715                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78716                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78717
78718         2006-07-22  Bruno Haible  <bruno@clisp.org>
78719
78720                 * gettext.h: Update to GNU gettext-0.15.
78721
78722 2006-07-22  Bruno Haible  <bruno@clisp.org>
78723
78724         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78725         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78726         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78727
78728 2006-07-21  Eric Blake  <ebb9@byu.net>
78729
78730         * modules/stdlib-safer: New file.
78731         * MODULES.html.sh (File stream based Input/Output): Add
78732         stdlib-safer.
78733
78734 2006-07-21  Eric Blake  <ebb9@byu.net>
78735
78736         * lib/stdlib-safer.h: New file from coreutils, required by
78737         stdlib--.h.
78738
78739 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78740
78741         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78742
78743 2006-07-20  Bruno Haible  <bruno@clisp.org>
78744
78745         * gnulib-tool: Recognize new option --assume-autoconf.
78746         (autoconf_minversion): New variable.
78747         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78748
78749 2006-07-20  Bruno Haible  <bruno@clisp.org>
78750
78751         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78752
78753 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78754
78755         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78756         Reindent and repaginate.
78757
78758 2006-07-19  Derek Price  <derek@ximbiot.com>
78759
78760         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78761         Correct grammar.
78762
78763 2006-07-17  Bruno Haible  <bruno@clisp.org>
78764
78765         * modules/list: New file.
78766         * modules/array-list: New file.
78767         * modules/carray-list, modules/carray-list-tests: New files.
78768         * modules/linked-list, modules/linked-list-tests: New files.
78769         * modules/avltree-list, modules/avltree-list-tests: New files.
78770         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78771         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78772         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78773         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78774         * modules/oset: New file.
78775         * modules/array-oset: New file.
78776         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78777         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78778         * tests/test-carray_list.c: New file.
78779         * tests/test-linked_list.c: New file.
78780         * tests/test-avltree_list.c: New file.
78781         * tests/test-rbtree_list.c: New file.
78782         * tests/test-linkedhash_list.c: New file.
78783         * tests/test-avltreehash_list.c: New file.
78784         * tests/test-rbtreehash_list.c: New file.
78785         * tests/test-avltree_oset.c: New file.
78786         * tests/test-rbtree_oset.c: New file.
78787         * MODULES.html.sh (Container data structures): New section.
78788
78789 2006-07-17  Bruno Haible  <bruno@clisp.org>
78790
78791         * m4/gl_list.m4: New file.
78792
78793 2006-07-17  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/gl_list.h: New file.
78796         * lib/gl_list.c: New file.
78797         * lib/gl_array_list.h: New file.
78798         * lib/gl_array_list.c: New file.
78799         * lib/gl_carray_list.h: New file.
78800         * lib/gl_carray_list.c: New file.
78801         * lib/gl_linked_list.h: New file.
78802         * lib/gl_linked_list.c: New file.
78803         * lib/gl_anylinked_list1.h: New file.
78804         * lib/gl_anylinked_list2.h: New file.
78805         * lib/gl_avltree_list.h: New file.
78806         * lib/gl_avltree_list.c: New file.
78807         * lib/gl_anyavltree_list1.h: New file.
78808         * lib/gl_anyavltree_list2.h: New file.
78809         * lib/gl_rbtree_list.h: New file.
78810         * lib/gl_rbtree_list.c: New file.
78811         * lib/gl_anyrbtree_list1.h: New file.
78812         * lib/gl_anyrbtree_list2.h: New file.
78813         * lib/gl_anytree_list1.h: New file.
78814         * lib/gl_anytree_list2.h: New file.
78815         * lib/gl_linkedhash_list.h: New file.
78816         * lib/gl_linkedhash_list.c: New file.
78817         * lib/gl_anyhash_list1.h: New file.
78818         * lib/gl_anyhash_list2.h: New file.
78819         * lib/gl_avltreehash_list.h: New file.
78820         * lib/gl_avltreehash_list.c: New file.
78821         * lib/gl_rbtreehash_list.h: New file.
78822         * lib/gl_rbtreehash_list.c: New file.
78823         * lib/gl_anytreehash_list1.h: New file.
78824         * lib/gl_anytreehash_list2.h: New file.
78825
78826         * lib/gl_oset.h: New file.
78827         * lib/gl_oset.c: New file.
78828         * lib/gl_array_oset.h: New file.
78829         * lib/gl_array_oset.c: New file.
78830         * lib/gl_avltree_oset.h: New file.
78831         * lib/gl_avltree_oset.c: New file.
78832         * lib/gl_rbtree_oset.h: New file.
78833         * lib/gl_rbtree_oset.c: New file.
78834         * lib/gl_anytree_oset.h: New file.
78835
78836 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * m4/mkancesdirs.m4: New file.
78839         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
78840         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
78841         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
78842         it.
78843
78844 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
78847         * lib/mkancesdirs.h: New files.
78848         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
78849         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
78850         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
78851         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
78852         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
78853         callers changed.  Revamp internals significantly, by not
78854         attempting to create directories that are temporarily more
78855         permissive than the final results.  Do not attempt to use
78856         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
78857         This removes some race conditions, fixes some bugs, and simplifies
78858         things.  Use new dirchownmod function to do owner and mode changes.
78859         * lib/mkdir-p.h: Likewise.
78860         * lib/modechange.c (octal_to_mode): New function.
78861         (struct mode_change): New member mentioned.
78862         (make_node_op_equals): New arg mentioned.  All callers changed.
78863         (mode_compile): Keep track of which mode bits the user has explicitly
78864         mentioned.
78865         (mode_adjust): New arg DIR, so that we implement the X op correctly.
78866         New arg PMODE_BITS, to keep track of which mode bits the user
78867         mentioned; it treats S_ISUID and S_ISGID speciall.
78868         All callers changed.
78869         * lib/modechange.h: Likewise.
78870
78871 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * MODULES.html.sh: Add mkancestors.
78874         * modules/mkancesdirs: New module.
78875         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
78876         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
78877         The chdir-safer and afs files are now orphans; I'll remove them
78878         unless someone speaks up.
78879         Add lib/dirchownmod.c, lib/dirchownmod.h.
78880         (Depends-on): Remove alloca, chown, save-cwd, dirname.
78881         Add lchown, mkancesdirs.
78882         (Maintainer): Add self.
78883
78884 2006-07-15  Karl Berry  <karl@gnu.org>
78885
78886         * gnulib-tool: help message wording/arrangement.
78887
78888 2006-07-14  Simon Josefsson  <jas@extundo.com>
78889
78890         * doc/gnulib.texi (Libtool and Windows): New section.
78891
78892 2006-07-12  Simon Josefsson  <jas@extundo.com>
78893
78894         * modules/gendocs (License): Fix license, approved by Karl.
78895
78896 2006-07-12  Eric Blake  <ebb9@byu.net>
78897
78898         * MODULES.html.sh: Add gendocs.
78899
78900 2006-07-11  Eric Blake  <ebb9@byu.net>
78901
78902         * modules/fdl: New module, to install doc/fdl.texi.
78903         * MODULES.html.sh: Add new section for documentation modules.
78904         * gnulib-tool: Avoid space-tab.
78905         (--doc-base): New option, to manage files from doc.
78906
78907 2006-07-11  Eric Blake  <ebb9@byu.net>
78908
78909         * m4/absolute-header.m4: Fix comments to match recent change.
78910
78911 2006-07-11  Eric Blake  <ebb9@byu.net>
78912
78913         * gnulib-tool: List --doc-base before --tests-base.
78914
78915 2006-07-11  Derek R. Price  <derek@ximbiot.com>
78916
78917         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
78918
78919 2006-07-11  Bruno Haible  <bruno@clisp.org>
78920
78921         * README: Mention where to put documentation.
78922
78923 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78924
78925         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
78926
78927 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78928
78929         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
78930         to stdint.m4.
78931
78932 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78933
78934         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
78935         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
78936         "no/such/file/stdint.h" when there is no such file, so that
78937         the resulting C code can be parsed by dodgy compilers.
78938         Problems reported by Bob Proulx.
78939
78940 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78941
78942         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
78943         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78944         macros into the GNU _D_EXACT_NAMLEN.
78945         * lib/savedir.c:  Likewise.
78946         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
78947
78948 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78949         and Paul Eggert  <eggert@cs.ucla.edu>
78950
78951         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
78952         * m4/savedir.m4:
78953         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78954         macros into the GNU _D_EXACT_NAMLEN.
78955
78956 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
78959         around the absolute name, to work around a problem with the HP-UX
78960         11.23 native C compiler, reported by Bob Proulx.
78961
78962 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78963
78964         * doc/maintain.texi, make-stds.texi: Sync from
78965         <http://savannah.gnu.org/projects/gnustandards>.
78966
78967 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78968
78969         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
78970
78971 2006-07-09  Jim Meyering  <jim@meyering.net>
78972
78973         * m4/glob.m4: Remove a doubled word in a comment.
78974
78975 2006-07-09  Jim Meyering  <jim@meyering.net>
78976
78977         * lib/argp-pv.c: Remove a doubled word in a comment.
78978         * lib/check-version.c (check_version): Likewise.
78979         * lib/javacomp.c (compile_java_class): Likewise.
78980
78981 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78982
78983         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78984         for the benefit of people using Autoconf 2.60.  If you want to
78985         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78986         (or m4/onceonly.m4, if pre-2.57) manually.
78987
78988 2006-07-08  Jim Meyering  <jim@meyering.net>
78989
78990         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78991         comment.
78992         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78993         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78994         comment.
78995
78996 2006-07-08  Jim Meyering  <jim@meyering.net>
78997
78998         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78999
79000 2006-07-07  Simon Josefsson  <jas@extundo.com>
79001
79002         * tests/test-crc.c: Change expected crc value, the test vector
79003         were probably computed using the old broken crc.c?
79004
79005 2006-07-06  Simon Josefsson  <jas@extundo.com>
79006
79007         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79008         now the canonical place for the M4 file).
79009
79010         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79011         from the sys_socket dependency now.
79012
79013         * modules/inet_pton (Files): Ditto.
79014
79015         * modules/inet_ntop (Files): Ditto.
79016
79017 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79018
79019         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79020         not gl_PREREQ_GETUSERSHELL.
79021
79022 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79023
79024         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79025         with only one argument, for Autoconf 2.60.
79026         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79027         expand to nothing, so add a shell command to avoid syntax error.
79028         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79029
79030 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79031
79032         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79033
79034 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79035
79036         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79037         no longer needed.  Check for isblank decl.
79038         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79039         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79040         of existence.
79041
79042 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79043
79044         * lib/getloadavg.c: Use __VMS, not VMS.
79045         * lib/getopt.c: Likewise.
79046         * lib/getpagesize.h: Likewise.
79047         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79048         and probably does not work.
79049
79050 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * lib/.cppi-disable: Add wcwidth.
79053         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79054         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79055         (ISGRAPH): Remove.  All uses changed to isgraph.
79056         (FOLD) [!defined _LIBC]: Remove special case.
79057         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79058         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79059         HAVE_ISBLANK.
79060         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79061         case.
79062
79063 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79064
79065         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79066         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79067         brackets.  Other minor changes to suppress some compiler
79068         warnings.
79069
79070 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79071         and Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79074         of invoking obsolescent AC_HEADER_DIRENT macro.
79075         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79076         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79077         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79078         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79079         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79080         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79081         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79082         * m4/readdir.m4: Remove; no longer needed.
79083
79084 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79085         and Paul Eggert  <eggert@cs.ucla.edu>
79086
79087         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79088         Don't worry about this obsolete case any more.
79089         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79090         directories.
79091         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79092         worry about this obsolete case any more.
79093         * lib/fts.c: Likewise.
79094         * lib/getcwd.c: Likewise.
79095         * lib/glob.h: Likewise.
79096         * lib/savedir.c: Likewise.
79097
79098 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79101         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79102         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79103         needed.
79104         All uses removed.
79105         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79106         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79107         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79108         needed.
79109         * m4/getdate.m4 (gl_GETDATE): Likewise.
79110         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79111         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79112         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79113         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79114         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79115         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79116         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79117         needed.
79118
79119 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * lib/memcasecmp.c: Include <limits.h>.
79122         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79123         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79124         Don't assume isdigit succeeds only on '0' through '9'.
79125
79126 2006-07-05  Eric Blake  <ebb9@byu.net>
79127
79128         * modules/getaddrinfo (Depends-on): Add snprintf.
79129
79130 2006-07-05  Eric Blake  <ebb9@byu.net>
79131
79132         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79133         to avoid 'header present but could not be compiled' on cygwin.
79134
79135 2006-07-05  Eric Blake  <ebb9@byu.net>
79136
79137         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79138         missing from netdb.h.
79139         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79140
79141 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79142
79143         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79144         no longer needed.
79145         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79146         * m4/getdate.m4 (gl_GETDATE): Likewise.
79147         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79148         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79149         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79150         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79151         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79152
79153 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79154
79155         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79156         All uses of is_space replaced by isspace.
79157         * lib/exit.h: Don't talk about STDC_HEADERS.
79158         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79159         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79160         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79161         replaced by isprint etc.
79162         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79163         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79164         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79165         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79166         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79167         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79168
79169 2006-07-05  Bruno Haible  <bruno@clisp.org>
79170
79171         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79172         the function exists, before testing against AIX.
79173         Reported by Martin Lambers <marlam@marlam.de>.
79174
79175 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79176
79177         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79178         From Mark D. Baushke.
79179
79180 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79181
79182         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79183         to the absolute name, not just one, to bypass Sun C 5.8's
79184         "warning: #include of /usr/include/... may be non-portable".
79185
79186 2006-07-04  Eric Blake  <ebb9@byu.net>
79187
79188         * modules/dirname-tests: New test module.
79189         * tests/test-dirname.c: New file, replacing dirname.c
79190         TEST_DIRNAME section that was recently deleted.
79191
79192 2006-07-04  Bruno Haible  <bruno@clisp.org>
79193
79194         Assume ANSI C header files and <ctype.h> functions.
79195         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79196         (mbsnwidth): Use isprint, iscntrl instead.
79197
79198 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         Merge from coreutils.
79201         * MODULES.html.sh: Add xstrtold.
79202         * modules/xstrtold: New file.
79203         * modules/cycle-check (Files): Add lib/same-inode.h.
79204         * modules/dirname (Files): Add m4/double-slash-root.m4.
79205         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79206         * modules/mkdir-p (Files): Add lib/same-inode.h.
79207         * modules/same (Files): Add lib/same-inode.h.
79208
79209 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79212         This is to keep the terminology clean; POSIX talks about
79213         "absolute pathnames", not "full pathnames", but the GNU
79214         Coding Standards say to use "path" for something else;
79215         so use "absolute" to keep both sides happy.
79216         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79217         Set gl_absolute_header, not gl_full_header_path.
79218         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79219         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79220         All uses changed.
79221
79222         Merge from coreutils.
79223
79224         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79225
79226         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79227         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79228         want to require the building of c-strtod.o.
79229         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79230         needs -lm directly.
79231         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79232
79233         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79234
79235         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79236         --as-needed option if available.  Problem reported by Albert Chin in
79237         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79238         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79239         cc merely issues a bunch of annoying warnings for --as-needed
79240         (this problem was reported by Bob Proulx).  Also, try linking with
79241         -lm to detect a bug in binutils 2.16 (this problem was reported
79242         by Ralf Wildenhues).
79243
79244         2006-06-18  Jim Meyering  <jim@meyering.net>
79245
79246         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79247         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79248         macro.
79249         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79250         also check for glibc-2.4's abort-inducing bug.
79251
79252         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79253         Low-probability clean-up should be to use rmdir to get rid of
79254         the just-created directory, not unlink.
79255
79256         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79257         configure fail, and request a bug report to inform us about it.
79258         Add a comment that, barring reports to the contrary, in 2007 we'll
79259         assume ftruncate is universally available.
79260
79261         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79262
79263         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79264
79265         2006-03-12  Jim Meyering  <jim@meyering.net>
79266
79267         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79268         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79269         * m4/same.m4 (gl_SAME): Likewise.
79270         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79271
79272         2006-03-11  Eric Blake  <ebb9@byu.net>
79273
79274         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79275         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79276         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79277         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79278
79279 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79282         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79283         reported by Mark D. Baushke, one in
79284         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79285
79286         Merge from coreutils.
79287
79288         * lib/.cppi-disable: Add stdint_.h.
79289         * lib/.cvsignore: Add stdint.h.
79290
79291         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79292
79293         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79294         both double and long double versions.
79295         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79296         * lib/xstrtold.c: New file.
79297         * lib/xstrtod.h (xstrtold): New decl.
79298
79299         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         * lib/filemode.c (setst): Remove.
79302         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79303         (arguably) clearer, and the generated code is a bit smaller on my
79304         Debian GNU/Linux stable x86 host.
79305
79306         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79307
79308         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79309         Assume that filemode.h includes sys/types.h and sys/stat.h.
79310         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79311         (ftypelet): Reorder to put common cases first, for efficiency.
79312         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79313         to do 'M'.
79314         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79315         of 10, for compatibility with FreeBSD.  All callers changed.
79316         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79317         types that can't be deduced solely from st_mode.  First arg is now a
79318         const pointer.
79319         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79320         (strmode): Renamed from mode_string.
79321         (filemodestring): New decl.
79322         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79323         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79324         needed.
79325         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79326
79327         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79328
79329         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79330         fsusage.h now does that.  Include fsusage.h first, to test interface.
79331         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79332         at most one method (the old code could have generated decls that
79333         didn't conform to C89, not that this was ever exercised).
79334         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79335
79336         2006-03-19  Jim Meyering  <jim@meyering.net>
79337
79338         Work even in a chroot where d_ino values for entries in "/"
79339         don't match the stat.st_ino values for the same names.
79340         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79341         number, iterate through all entries again, using lstat instead.
79342         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79343         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79344
79345         * lib/getcwd.c (__getcwd): Clarify a comment.
79346         Use memcpy in place of a call to strcpy.
79347
79348         2006-03-12  Jim Meyering  <jim@meyering.net>
79349
79350         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79351         matches that of the current directory (which we're about to chdir ".."
79352         out of), then save the dev-ino of the parent, instead.
79353
79354         * lib/same-inode.h (SAME_INODE): New file/macro.
79355         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79356         Include "same-inode.h", instead.
79357         * lib/same.c: Likewise.
79358         * lib/cycle-check.h: Include "same-inode.h".
79359         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79360         * lib/cycle-check.c (SAME_INODE): Remove definition.
79361         * lib/root-dev-ino.h: Include "same-inode.h".
79362
79363         2006-03-11  Eric Blake  <ebb9@byu.net>
79364
79365         * lib/same.c (same_name): s/base_name/last_component/
79366         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79367         * lib/filenamecat.c (file_name_concat): Likewise.
79368
79369         2006-03-11  Eric Blake  <ebb9@byu.net>,
79370                     Paul Eggert  <eggert@cs.ucla.edu>
79371
79372         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79373         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79374         drive prefix.
79375         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79376         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79377         (last_component): New method.
79378         * lib/dirname.c (dir_len): Determine when drive letters need a
79379         subsequent slash.  Preserve // when it is special.
79380         (dir_name): Don't append dot when drive letter is absolute.
79381         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79382         * lib/basename.c (base_name): New semantics - malloc the result.
79383         Preserve // when it is special.  Preserve relative files that look
79384         like drive letters.
79385         (base_len): Preserve // when it is special.
79386         (last_component): New method, similar to old base_name semantics.
79387         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79388         base_name.  Strip redundant slashes from ///.
79389
79390 2006-07-03  Jim Meyering  <jim@meyering.net>
79391
79392         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79393         macro is used before the first cycle_check call.
79394
79395 2006-07-03  Eric Blake  <ebb9@byu.net>
79396
79397         * modules/dirname (Depends-on): Add xstrndup.
79398
79399 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79400
79401         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79402         test cases, so that config.log is a bit easier to follow.
79403
79404 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79405
79406         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79407         both are 64 bits, since this seems to be the tradition, and this
79408         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79409         we ever run into a host that prefers long long to long in this
79410         case, we'll need another configure-time test.  Problem reported by
79411         Jim Meyering.
79412
79413 2006-07-02  Eric Blake  <ebb9@byu.net>
79414
79415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79416
79417 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79418
79419         * modules/inttypes (Depends-on): No longer depends on stdint.
79420         * modules/stdint (Description): Say more about assumptions.
79421         Say that the fast types might differ.  Say macros are used.
79422         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79423         (Makefile.am): Revise list of substituted symbols to match
79424         new stdint.m4.
79425         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79426         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79427         * tests/test-stdint.c (verify_same_types)
79428         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79429         the code conforms to C99/C89.
79430         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79431         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79432
79433 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79434
79435         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79436         but fix a bug, by requiring at least 64 bits.
79437         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79438         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79439         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79440         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79441
79442         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79443         changes.  Make 2.59 a prerequisite.  Check and substitute for
79444         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79445         inttypes.h.  Do not use special include files; just use the
79446         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79447         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79448         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79449         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79450         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79451         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79452         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79453         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79454         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79455         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79456         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79457         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79458         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79459         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79460         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79461         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79462         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79463         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79464         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79465         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79466         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79467         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79468         not check for things that C99 does not require, e.g., int8_t.  If
79469         a test isn't needed unless <stdint.h> isn't working, and is
79470         unlikely to be needed for any other reason, then don't do it
79471         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79472         size_t, since we assume C89 freestanding at least.  Do not check
79473         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79474         the right thing even if the types are not defined.  Instead use:
79475         (gl_STDINT_TYPE_PROPERTIES): New macro.
79476         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79477         testing whether <sys/types.h> clashes, as Autoconf does this for
79478         us now.  All uses removed.
79479         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79480         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79481         (gl_CHECK_TYPE_SAME):
79482         Remove; no longer needed.
79483         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79484         exists, since we'll return 0 anyway in that case.
79485         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79486
79487 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79488
79489         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79490         possible collision with system files.
79491         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79492         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79493         WCHAR_MIN and WCHAR_MAX in this case.
79494         (<stddef.h>): Do not include; no longer needed.
79495         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79496         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79497         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79498         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79499         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79500         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79501         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79502         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79503         !defined(__c99))]: Include in this case too, since it's harmless
79504         now.
79505         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79506         dangerous to do so.
79507         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79508         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79509         (_STDINT_MIN, _STDINT_MAX): New macros.
79510         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79511         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79512         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79513         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79514         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79515         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79516         macros, not typedefs; this simplifies things quite a bit.
79517         Use long int for all types narrower than int64_t.
79518         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79519         Define in terms of long long int or int64_t or long int,
79520         not int64_t or int32_t.  This saves some compile-time testing.
79521         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79522         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79523         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79524         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79525         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79526         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79527         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79528         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79529         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79530         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79531         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79532         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79533         undef any previous version and define our own version, for
79534         simplicity and consistency with the new macros for types.
79535         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79536         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79537         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79538         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79539         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79540         @WINT_T_SUFFIX@ to keep things simple here.
79541         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79542         Simplify by assuming typical 8/16/32/64 host, since we're
79543         already doing that elsewhere anyway.
79544         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79545         and assume long long int is 64 bits if available.  This
79546         speeds up 'configure'.
79547
79548 2006-07-01  Eric Blake  <ebb9@byu.net>
79549
79550         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79551         Reported by Andreas Buening.
79552
79553 2006-07-01  Eric Blake  <ebb9@byu.net>
79554
79555         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79556
79557 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79558
79559         * lib/getaddrinfo.c: fixed typo
79560
79561 2006-06-29  Jim Meyering  <jim@meyering.net>
79562
79563         * modules/strftime (Maintainer): Add my name, since with the
79564         FPRINTFTIME changes strftime.c has forked from glibc.
79565
79566 2006-06-29  Eric Blake  <ebb9@byu.net>
79567
79568         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79569
79570 2006-06-29  Eric Blake  <ebb9@byu.net>
79571
79572         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79573
79574 2006-06-29  Eric Blake  <ebb9@byu.net>
79575
79576         * lib/stat_.h: New file.
79577
79578 2006-06-29  Eric Blake  <ebb9@byu.net>
79579
79580         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79581         unused static function.
79582
79583 2006-06-29  Eric Blake  <ebb9@byu.net>
79584
79585         * doc/functions.texi (Function Portability): Document missing lstat
79586         on mingw.
79587
79588 2006-06-29  Eric Blake  <ebb9@byu.net>
79589
79590         * MODULES.html.sh: Add sys_stat.
79591         * modules/sys_stat: New module.
79592         * modules/mkstemp (Depends-on): Add sys_stat.
79593
79594 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79595
79596         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79597
79598 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79599
79600         * m4/c-bs-a.m4: Removed.
79601
79602 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79603
79604         * lib/strftime.c: Assume strftime() exists.
79605
79606 2006-06-29  Derek Price  <derek@ximbiot.com>
79607
79608         * modules/c-bs-a: Removed - \a is C89.
79609         * MODULES.html.sh: Remove c-bs-a.
79610
79611 2006-06-29  Bruno Haible  <bruno@clisp.org>
79612
79613         * modules/wcwidth (License): Change to LGPL.
79614
79615 2006-06-28  Simon Josefsson  <jas@extundo.com>
79616
79617         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79618         on _WIN32.
79619
79620         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79621         getnameinfo.
79622
79623 2006-06-28  Simon Josefsson  <jas@extundo.com>
79624
79625         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79626
79627 2006-06-28  Simon Josefsson  <jas@extundo.com>
79628
79629         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79630         functions there.  It will succeed on Windows XP, but on Windows
79631         2000 and (presumably) earlier, it will fail, and use the internal
79632         re-implementation.
79633         (use_win32_p): New function.
79634         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79635         Support AI_NUMERICSERV to disable getservbyname.
79636         (getnameinfo): New function, only supports
79637         NI_NUMERICHOST|NI_NUMERICSERV for now.
79638
79639         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79640         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79641         getnameinfo.
79642
79643 2006-06-28  Eric Blake  <ebb9@byu.net>
79644
79645         * modules/wcwidth: New file.
79646         * modules/mbchar (Depends-on): Add wcwidth.
79647         * modules/mbswidth (Depends-on): Add wcwidth.
79648         * MODULES.html.sh: Add wcwidth.
79649
79650 2006-06-28  Eric Blake  <ebb9@byu.net>
79651
79652         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79654
79655 2006-06-28  Eric Blake  <ebb9@byu.net>
79656
79657         * lib/xvasprintf.h: Fix comments.
79658
79659 2006-06-28  Eric Blake  <ebb9@byu.net>
79660
79661         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79662         * lib/mbswidth.c (wcwidth): Move from here...
79663         * lib/wcwidth.h: ...to this new file.
79664
79665 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79666
79667         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79668
79669         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79670         it's obsolete.
79671         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79672
79673 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79674
79675         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79676         Autoconf 2.60 says this stuff was obsolete.
79677
79678 2006-06-28  Bruno Haible  <bruno@clisp.org>
79679
79680         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79681
79682 2006-06-28  Bruno Haible  <bruno@clisp.org>
79683
79684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79685         gt_TYPE_WCHAR_T.
79686
79687 2006-06-28  Bruno Haible  <bruno@clisp.org>
79688
79689         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79690         declaration for wcwidth.
79691         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79692
79693 2006-06-28  Bruno Haible  <bruno@clisp.org>
79694
79695         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79696         (mkdir): Define using _mkdir.
79697
79698 2006-06-28  Bruno Haible  <bruno@clisp.org>
79699
79700         * lib/getaddrinfo.h: Fix POSIX URL.
79701         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79702         _WIN32.
79703         (use_win32_p): Make static.
79704         (getaddrinfo): Reject service name if it is empty or does not consist
79705         solely of decimal digits, or if its value is > 65535.
79706         (getnameinfo): Remove useless casts.
79707
79708 2006-06-27  Simon Josefsson  <jas@extundo.com>
79709
79710         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79711         Eggert and Martin Lambers.
79712
79713 2006-06-27  Simon Josefsson  <jas@extundo.com>
79714
79715         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79716         Eggert and Martin Lambers.
79717
79718 2006-06-27  Bruno Haible  <bruno@clisp.org>
79719
79720         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79721         result to 0, not to empty.
79722         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79723
79724 2006-06-27  Bruno Haible  <bruno@clisp.org>
79725
79726         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79727
79728 2006-06-26  Simon Josefsson  <jas@extundo.com>
79729
79730         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79731         present.
79732
79733 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79734
79735         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79736         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79737         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79738
79739 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79740
79741         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79742
79743 2006-06-26  Bruno Haible  <bruno@clisp.org>
79744
79745         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79746
79747 2006-06-26  Bruno Haible  <bruno@clisp.org>
79748
79749         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79750
79751 2006-06-26  Bruno Haible  <bruno@clisp.org>
79752
79753         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79754         SGI C compiler in pre-C99 mode.
79755         Suggested by Mark D. Baushke and Larry Jones.
79756
79757 2006-06-26  Bruno Haible  <bruno@clisp.org>
79758
79759         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79760         WCHAR_MAX.
79761         Reported by Mark D. Baushke and Larry Jones.
79762
79763 2006-06-26  Bruno Haible  <bruno@clisp.org>
79764
79765         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79766         in pre-C99 mode.
79767         Suggested by Mark D. Baushke and Larry Jones.
79768
79769 2006-06-23  Simon Josefsson  <jas@extundo.com>
79770             Bruno Haible  <bruno@clisp.org>
79771
79772         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79773         Emit mostlyclean-local rule.
79774         (func_emit_tests_Makefile_am): Likewise.
79775         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79776
79777 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79778
79779         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79780
79781 2006-06-23  Bruno Haible  <bruno@clisp.org>
79782
79783         * tests/test-stdint.c: Update to match ISO C 99 Technical
79784         Corrigendum 1.
79785
79786 2006-06-23  Bruno Haible  <bruno@clisp.org>
79787
79788         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79789
79790 2006-06-23  Bruno Haible  <bruno@clisp.org>
79791
79792         * lib/stdint_.h: Treat IRIX like OpenBSD.
79793
79794 2006-06-23  Bruno Haible  <bruno@clisp.org>
79795
79796         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79797         ISO C 99 Technical Corrigendum 1.
79798
79799 2006-06-22  Simon Josefsson  <jas@extundo.com>
79800
79801         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79802         MinGW.
79803
79804 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79805
79806         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79807         needed.  Some compiler complained about some of them.  Problem reported
79808         by Larry Jones in
79809         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79810
79811 2006-06-21  Simon Josefsson  <jas@extundo.com>
79812
79813         * tests/test-getaddrinfo.c: New file.
79814
79815         * modules/getaddrinfo-tests: New file.
79816
79817         * MODULES.html.sh: Add inet_pton.
79818
79819         * modules/inet_pton: New file.
79820
79821 2006-06-21  Simon Josefsson  <jas@extundo.com>
79822
79823         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79824         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79825         of using the (limited) gnulib implementation on Windows XP.
79826
79827         * m4/inet_pton.m4: New file.
79828
79829 2006-06-21  Simon Josefsson  <jas@extundo.com>
79830
79831         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
79832         variable.
79833
79834         * lib/socket_.h: Don't define WINVER.
79835
79836         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
79837         slightly modified to work in gnulib.
79838
79839 2006-06-21  Simon Josefsson  <jas@extundo.com>
79840
79841         * doc/gnulib.texi (Windows sockets): Add.
79842
79843 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79844
79845         * lib/read-file.c (fread_file): Start with buffer allocation of
79846         0 bytes rather than 1 byte; this simplifies the code.
79847         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
79848         code to free buffer and save/restore errno.
79849         (internal_read_file): Remove unused local.
79850
79851 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79852
79853         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
79854         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
79855         Problem reported by Denis Excoffier in
79856         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
79857
79858 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79859
79860         * modules/sys_socket, modules/socklen: Include sys/types since
79861         FreeBSD 4.x's sys/socket.h needs it.
79862
79863 2006-06-19  Simon Josefsson  <jas@extundo.com>
79864
79865         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
79866
79867 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79868
79869         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
79870
79871 2006-06-19  Bruno Haible  <bruno@clisp.org>
79872
79873         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
79874         and FULL_PATH_INTTYPES_H in angle brackets.
79875         Reported by Mark D. Baushke <mdb@gnu.org>.
79876
79877 2006-06-17  Eric Blake  <ebb9@byu.net>
79878
79879         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
79880         errno.
79881
79882 2006-06-17  Bruno Haible  <bruno@clisp.org>
79883
79884         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
79885         <sys/inttypes.h>.
79886
79887 2006-06-17  Bruno Haible  <bruno@clisp.org>
79888
79889         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
79890         whether errno is declared. Assume <errno.h> declares errno.
79891
79892 2006-06-17  Bruno Haible  <bruno@clisp.org>
79893
79894         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
79895
79896 2006-06-17  Bruno Haible  <bruno@clisp.org>
79897
79898         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
79899         problem on Solaris 2.5.1.
79900
79901 2006-06-16  Eric Blake  <ebb9@byu.net>
79902
79903         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
79904         * lib/unicodeio.c [!defined errno]: Likewise.
79905         * lib/strtol.c [!defined errno]: Likewise.
79906         * lib/strtod.c [!defined errno]: Likewise.
79907
79908 2006-06-15  Eric Blake  <ebb9@byu.net>
79909
79910         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
79911
79912 2006-06-15  Eric Blake  <ebb9@byu.net>
79913
79914         * config/srclist.txt (ssize_t.m4): Lose sync.
79915
79916 2006-06-15  Bruno Haible  <bruno@clisp.org>
79917
79918         * modules/stdint (Files): Include m4/full-header-path.m4,
79919         m4/size_max.m4, m4/wchar_t.m4.
79920         (Makefile.am): Many more substitutions.
79921         * modules/stdint-tests: New file.
79922         * tests/test-stdint.c: New file.
79923
79924 2006-06-15  Bruno Haible  <bruno@clisp.org>
79925
79926         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
79927         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
79928         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
79929         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
79930         gl_CHECK_TYPE_SAME): New macros.
79931
79932 2006-06-15  Bruno Haible  <bruno@clisp.org>
79933
79934         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
79935
79936 2006-06-15  Bruno Haible  <bruno@clisp.org>
79937
79938         * lib/stdint_.h: Rewritten to be fully auto-configured.
79939         Fixes bug on HP-UX/IA64.
79940
79941 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * lib/getdate.y (__attribute__): Don't define if already defined.
79944         Problem reported by Larry Jones.
79945         * lib/utimens.c (__attribute__): Likewise.
79946
79947 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
79950         reported by Andreas Schwab.
79951
79952 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79953             Bruno Haible  <bruno@clisp.org>
79954
79955         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
79956         check for the declaration of strnlen and a run test that exposes the
79957         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
79958         rpl_strndup.
79959
79960 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79961             Bruno Haible  <bruno@clisp.org>
79962
79963         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
79964
79965 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79966
79967         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
79968         compile test, for Tru64 4.0D.
79969
79970 2006-05-28  Karl Berry  <karl@gnu.org>
79971
79972         * config/srclist.txt (printf-args.c): lose sync.
79973
79974 2006-05-26  Martin Lambers  <marlam@marlam.de>
79975
79976         * lib/getpass.c: Updates the test for the native W32 API, and adds
79977         missing includes, thus fixing compilation warnings.
79978
79979 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79980
79981         * lib/exclude.c (exclude_fnmatch): New function.
79982         (excluded_file_name): Call exclude_fnmatch.
79983         * lib/exclude.h (excluded_file_name): New prototype
79984
79985 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         * lib/tempname.c (small_open, large_open): New macros.
79988         (__open, __open64) [!_LIBC]: Remove.
79989         (__gen_tempname): Use small_open and large_open instead of __open
79990         and __open64.  This fixes a portability bug on HP-UX 11.11i
79991         reported by Simon Wing-Tang in
79992         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79993
79994 2006-05-24  Bruno Haible  <bruno@clisp.org>
79995
79996         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79997         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79998         Reported by Thorsten Maerz <torte@netztorte.de> via
79999         Aaron Stone <aaron@serendipity.cx>.
80000
80001 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80004         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80005         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80006         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80007         not really conditional on the cache.
80008         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80009
80010 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80013         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80014         (my_usleep): Don't mishandle maximum value.
80015
80016 2006-05-19  Jim Meyering  <jim@meyering.net>
80017
80018         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80019
80020 2006-05-17  Bruno Haible  <bruno@clisp.org>
80021
80022         Cygwin portability.
80023         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80024
80025 2006-05-17  Bruno Haible  <bruno@clisp.org>
80026
80027         * lib/stdint_.h: Fix recognition of Cygwin.
80028
80029 2006-05-15  Bruno Haible  <bruno@clisp.org>
80030
80031         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80032         on libtool patch by Ralf Wildenhues.
80033
80034 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80035
80036         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80037         test for C99 conformance; (bool) 0.5 is an integer constant
80038         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80039         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80040
80041 2006-05-11  Simon Josefsson  <jas@extundo.com>
80042
80043         * m4/xvasprintf.m4: Fix obvious typo.
80044
80045 2006-05-11  Jim Meyering  <jim@meyering.net>
80046
80047         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80048         James Lemley.
80049
80050 2006-05-10  Simon Josefsson  <jas@extundo.com>
80051
80052         * lib/md4.c: Typo fix, update copyright years.
80053         (K1, K2): Don't use L because it turn computations into 64-bit on
80054         64-bit platforms.
80055
80056 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80057
80058         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80059         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80060         unwanted sign propagation, e.g., on hosts with 64-bit int.
80061         There still are some problems with reeelly weird theoretical hosts
80062         (e.g., 33-bit int) but it's not worth worrying about now.
80063         * lib/sha1.c (rol): Likewise.
80064         (K1, K2, K3, K4): Remove unnecessary L suffix.
80065
80066 2006-05-10  Bruno Haible  <bruno@clisp.org>
80067
80068         * lib/des.c: Cast to avoid warnings.
80069
80070 2006-05-09  Bruno Haible  <bruno@clisp.org>
80071
80072         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80073         (Depends-on): Depend also on xsize, stdarg.
80074         (configure.ac): Add gl_XVASPRINTF.
80075
80076 2006-05-09  Bruno Haible  <bruno@clisp.org>
80077
80078         * m4/xvasprintf.m4: New file.
80079
80080 2006-05-09  Bruno Haible  <bruno@clisp.org>
80081
80082         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80083         (EOVERFLOW): Define fallback value.
80084         (xstrcat): New function.
80085         (xvasprintf): Recognize the special case of a string concatenation.
80086
80087 2006-05-08  Eric Blake  <ebb9@byu.net>
80088
80089         * gnulib-tool (func_version): Base copyright year on CVS date.
80090         (func_emit_copyright_notice): New function.
80091         (func_emit_lib_Makefile_am): Use it.
80092         (func_emit_tests_Makefile_am): Likewise.
80093         (func_import): Likewise.
80094
80095 2006-05-08  Bruno Haible  <bruno@clisp.org>
80096
80097         * modules/stdarg: New file.
80098         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80099
80100 2006-05-08  Bruno Haible  <bruno@clisp.org>
80101
80102         * m4/stdarg.m4: New file, from GNU gettext.
80103
80104 2006-05-08  Bruno Haible  <bruno@clisp.org>
80105
80106         * config/srclist.txt (build-aux/config.rpath): different from latest
80107         release.
80108
80109 2006-05-08  Bruno Haible  <bruno@clisp.org>
80110
80111         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80112
80113 2006-05-05  Jim Meyering  <jim@meyering.net>
80114
80115         * m4/warning.m4: New file, derived from bison's file by the same name.
80116
80117 2006-05-03  Bruno Haible  <bruno@clisp.org>
80118
80119         * lib/stdint_.h: Shorter URL.
80120         * lib/inttypes.h: Likewise.
80121
80122 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80125
80126 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80127
80128         * lib/verify.h: Document the internals better.  Most of this change
80129         was written by Bruno Haible.
80130
80131 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         * doc/verify.texi: New file, partly based on a proposal by
80134         Bruno Haible.
80135
80136 2006-05-02  Bruno Haible  <bruno@clisp.org>
80137
80138         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80139         test from here...
80140         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80141
80142 2006-04-29  Bruno Haible  <bruno@clisp.org>
80143
80144         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80145         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80146
80147 2006-04-29  Bruno Haible  <bruno@clisp.org>
80148
80149         * gnulib-tool: Make --update option actually work.
80150
80151 2006-04-29  Bruno Haible  <bruno@clisp.org>
80152
80153         * doc/gcd.texi: New file.
80154         * doc/gnulib.texi: Include it.
80155
80156 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80157
80158         * lib/getdate.y (get_date): When adding relative date, start with the
80159         initial time, not with the result of the first mktime call.
80160
80161 2006-04-25  Bruno Haible  <bruno@clisp.org>
80162
80163         * gnulib-tool (func_import): Output the include directives in three
80164         blocks, sorted separately.
80165         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80166
80167 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80168
80169         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80170         to define main with arguments, for C++.  Reported by Eric Blake.
80171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80172         Prefer 'int main ()' to 'int main (void)', for C++.
80173         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80174         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80175         for 'main', for C99 and C++.
80176
80177 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80178
80179         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80180         Don't assume that exit status -1 is valid.
80181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80182         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80183         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80184         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80185         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80186         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80187         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80188         functions can be used without declaring them, or that you can
80189         exit with status -1.
80190         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80191
80192 2006-04-24  Karl Berry  <karl@gnu.org>
80193
80194         * config/srclist.txt (longdouble.m4): sync lost.
80195
80196 2006-04-24  Eric Blake  <ebb9@byu.net>
80197
80198         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80199
80200 2006-04-24  Bruno Haible  <bruno@clisp.org>
80201
80202         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80203         poll() implementation in AIX.
80204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80205
80206 2006-04-24  Bruno Haible  <bruno@clisp.org>
80207
80208         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80209         assigned exactly once.
80210
80211 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80212             Bruno Haible  <bruno@clisp.org>
80213
80214         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80215         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80216         for AM_CPPFLAGS.
80217
80218 2006-04-23  Bruno Haible  <bruno@clisp.org>
80219
80220         * modules/copy-file: Depend on unistd.
80221         * modules/execute: Likewise.
80222         * modules/fatal-signal: Likewise.
80223         * modules/findprog: Likewise.
80224         * modules/mkdtemp : Likewise.
80225         * modules/pipe: Likewise.
80226         * modules/wait-process: Likewise.
80227
80228 2006-04-23  Bruno Haible  <bruno@clisp.org>
80229
80230         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80231         condition was already detected.
80232         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80233
80234 2006-04-23  Bruno Haible  <bruno@clisp.org>
80235
80236         * lib/copy-file.c: Include <unistd.h> unconditionally.
80237         * lib/execute.c: Likewise.
80238         * lib/fatal-signal.c: Likewise.
80239         * lib/findprog.c: Likewise.
80240         * lib/mkdtemp.c: Likewise.
80241         * lib/pipe.h: Likewise.
80242         * lib/pipe.c: Likewise.
80243         * lib/wait-process.h: Likewise.
80244
80245 2006-04-23  Bruno Haible  <bruno@clisp.org>
80246
80247         * gnulib-tool (func_usage): Fix --import description. Document
80248         --update.
80249         (func_import): Create temporary file in a temporary directory, if
80250         --dry-run is specified. Silence errors from 'grep' when there are no
80251         m4 files in $m4dir.
80252         (func_create_testdir): Silence errors from 'grep' when there are no
80253         m4 files in $m4dir.
80254         Reported by Karl Berry <karl@freefriends.org>.
80255
80256 2006-04-20  Bruno Haible  <bruno@clisp.org>
80257
80258         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80259         one argument, so that the code will be portable to Autoconf 2.60.
80260         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80261         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80262         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80263
80264 2006-04-19  Derek Price  <derek@ximbiot.com>
80265             Eric Blake  <ebb9@byu.net>
80266
80267         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80268         rather than "/full/path.h".  Update comment to match.  Shorten &
80269         generalize m4_translit call via AS_TR_CPP.
80270
80271 2006-04-19  Derek Price  <derek@ximbiot.com>
80272             Eric Blake  <ebb9@byu.net>
80273
80274         * lib/inttypes.h: Correct grammar in comment.
80275
80276 2006-04-18  Derek Price  <derek@ximbiot.com>
80277             Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         * modules/inttypes: New file.
80280         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80281
80282 2006-04-18  Derek Price  <derek@ximbiot.com>
80283             Paul Eggert  <eggert@cs.ucla.edu>
80284
80285         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80286         New files.
80287
80288 2006-04-18  Derek Price  <derek@ximbiot.com>
80289             Paul Eggert  <eggert@cs.ucla.edu>
80290
80291         * lib/inttypes.h: New file.
80292         * lib/strtoimax.c: Assume <inttypes.h>.
80293
80294 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80295
80296         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80297         isn't mounted.  Problem reported by Kir Kolyshkin.
80298
80299 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80300
80301         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80302         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80303         Derek R. Price.
80304         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80305         implementation.
80306
80307 2006-04-12  Eric Blake  <ebb9@byu.net>
80308
80309         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80310         is now done automatically by the corresponding Autoconf macro.
80311
80312 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80313
80314         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80315         time_r.h.
80316
80317 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         Merge regex changes from libc, removing some of our
80320         POSIX-conformance changes that were rejected and redoing them in a
80321         less-intrusive way.
80322
80323         * lib/regcomp.c (re_compile_internal, init_dfa):
80324         Length arg is now size_t, not Idx.  All uses changed.
80325         (peek_token): Forward decl now says internal_function.
80326         (__re_error_msgid, __re_error_msgid_idx):
80327         Now static rather than extern with attribute_hidden.
80328         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80329         For some reason libc prefers K&R style defns for external functions.
80330         (regerror) [!defined _LIBC]: Likewise.
80331         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80332         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80333         (build_range_exp, build_collating_symbol):
80334         Use K&R-style defn.
80335         (re_compile_fastmap): Use '\0' to memset, not 0.
80336         (utf8_sb_map): Make the calculations more obvious.
80337         (init_dfa, parse_bracket_exp, build_charclass_op):
80338         Call calloc and cast result, as glibc does.
80339         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80340         (build_range_exp, build_collating_symbol):
80341         Now internal functions.
80342
80343         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80344
80345         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80346         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80347         Don't depend on VMS; depend on __VMS instead, for POSIX
80348         namespace cleanness.
80349         (regoff_t): Define to ssize_t, not long int.
80350
80351         Remove the REG_ macros named below.  Instead, make the old names
80352         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80353         __USE_GNU_REGEX.
80354         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80355         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80356         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80357         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80358         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80359         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80360         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80361         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80362         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80363         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80364         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80365         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80366         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80367         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80368         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80369         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80370         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80371         (REG_NREGS):
80372         Remove.  All uses replaced by the old RE_* names.
80373         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80374         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80375         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80376         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80377         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80378         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80379         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80380         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80381         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80382         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80383         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80384         Don't bother having these macros be independent of each others'
80385         values, since they no longer exist in the POSIX name space.
80386
80387         Rename the following member names back to their old names,
80388         unless !__USE_GNU_REGEX.  All uses changed back.
80389         (buffer): Renamed from re_buffer.
80390         (allocated): Renamed from re_allocated.
80391         (used): Renamed from re_used.
80392         (syntax): Renamed from re_syntax.
80393         (fastmap): Renamed from re_fastmap.
80394         (translate): Renamed from re_translate.
80395         (can_be_null): Renamed from re_can_be_null.
80396         (regs_allocated): Renamed from re_regs_allocated.
80397         (fastmap_accurate): Renamed from re_fastmap_accurate.
80398         (no_sub): Renamed from re_no_sub.
80399         (not_bol): Renamed from re_not_bol.
80400         (not_eol): Renamed from re_not_eol.
80401         (newline_anchor): Renamed from re_newline_anchor.
80402         (num_regs): Renamed from rm_num_regs.
80403         (start): Renamed from rm_start.
80404         (end): Renamed from rm_end.
80405
80406         (free_state): Move up a bit.
80407
80408         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80409         #define to be empty.
80410         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80411         when that is what is intended.
80412         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80413         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80414         (MAX): New macro.
80415         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80416         All uses changed back to re_malloc, etc.  It's now the caller's
80417         responsibility to check for overflow; all callers changed.
80418         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80419         (re_x2nrealloc): Remove.
80420         (free_state): Remove decl.
80421
80422         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80423         (re_set_registers, re_exec):
80424         Use K&R-style defn.
80425
80426         2006-01-31  Roland McGrath  <roland@redhat.com>
80427
80428         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80429         Reported by Mike Frysinger <vapier@gentoo.org>.
80430
80431         2006-01-15  Andreas Jaeger  <aj@suse.de>
80432
80433         [BZ #1950]
80434         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80435         build_wcs_upper_buffer change.
80436         (build_wcs_upper_buffer): Change return type.
80437
80438         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80439
80440         * lib/regex_internal.h: Include <stdint.h> if available.
80441
80442         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80443
80444         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80445
80446         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80447
80448         * lib/regcomp.c: Adjust for changed secondary hash function.
80449
80450         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80451
80452         * lib/regex.h: Pretty printing.
80453         Clean up namespace a bit.
80454
80455         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80456
80457         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80458         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80459
80460         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80461                     Ulrich Drepper  <drepper@redhat.com>
80462
80463         [BZ #1302]
80464         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80465         changed.
80466         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80467
80468         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80469
80470         [BZ #281]
80471         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80472         * lib/regcomp.c: Remove unnecessary uses of
80473         unsigned RE_TRANSLATE_TYPE.
80474         * lib/regex_internal.h: Likewise.
80475         * lib/regex_internal.c: Likewise.
80476         * lib/regexec.c: Likewise.
80477         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80478
80479         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80480
80481         * lib/regexec.c (find_recover_state): Remove unnecessary
80482         initialization.
80483         (transit_state_bkref): Make DFA a const pointer.
80484         (get_subexp): Likewise.
80485         (check_arrival): Likewise.
80486         (update_cur_sifted_state): Likewise.
80487         (re_search_internal): Likewise.
80488         (prune_impossible_nodes): Likewise.
80489         (acquire_init_state_context): Likewise.
80490         (proceed_next_node): Likewise.
80491         (set_regs): Likewise.
80492         (free_fail_stack_return): Likewise.
80493         (check_arrival_expand_ecl): Mark DFA parameter as const.
80494         (check_arrival_expand_ecl_sub): Likewise.
80495         (check_subexp_limits): Likewise.
80496         (sub_epsilon_src_nodes):  Likewise.
80497         (add_epsilon_src_nodes):  Likewise.
80498         (merge_state_array): Likewise.
80499         (update_regs): Likewise.
80500         (build_trtable): Likewise.
80501         (sift_states_backward): Mark MCTX parameter as const.
80502         (build_sifted_states): Likewise.
80503         (update_cur_sifted_state): Likewise.
80504         (sift_states_mkref): Likewise.
80505         (check_arrival_expand_ecl): Mark eclosure as const.
80506         (check_dst_limits_calc_pos_1): Likewise.
80507         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80508         pointer.
80509
80510         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80511
80512         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80513         (transit_state_sb): Likewise.
80514         (transit_state_mb): Likewise.
80515         (sift_states_iter_mb): Likewise.
80516         (check_arrival_add_next_nodes): Likewise.
80517         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80518         [_LIBC] (re_search_2_stub): Use mempcpy.
80519
80520         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80521         mbrtowc for very simple UTF-8 case.
80522
80523         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80524         a pointer-to-const.
80525         (re_acquire_state_context): Likewise.
80526         * lib/regex_internal.h: Adjust prototypes.
80527
80528         * lib/regex.c: Prevent using C++ compilers.
80529
80530         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80531         (re_acquire_state_context): Likewise.
80532
80533 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80534
80535         * modules/regex (Depends-on): Add ssize_t.
80536
80537 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80538
80539         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80540         translation table.
80541
80542 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80543
80544         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80545
80546 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80547             Bruno Haible  <bruno@clisp.org>
80548
80549         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80550         <sys/types.h> and <inttypes.h>.
80551
80552 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80553
80554         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80555         `__error_t_defined', so argp.h will not typedef the former.
80556
80557 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80558
80559         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80560         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80561         glibc names.  Even if glibc is changed to conform to POSIX, the
80562         traditional names will be available anyway, since regex depends on
80563         the extensions module.  Also, fix a longstanding typo in the
80564         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80565         reported by Emanuele Giaquinta.  Also, change sense of cached
80566         variable, so that the message makes sense.
80567
80568 2006-03-24  Simon Josefsson  <jas@extundo.com>
80569
80570         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80571         including some doc fixes.
80572         (base64_encode_alloc): Fix +1 bug on allocation failures.
80573
80574 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80575
80576         * lib/base64.c (base64_encode): Do not read past end of array with
80577         unsanitized input on systems with CHAR_BIT > 8.
80578
80579 2006-03-24  Eric Blake  <ebb9@byu.net>
80580
80581         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80582
80583 2006-03-22  Karl Berry  <karl@gnu.org>
80584
80585         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80586         * config/srclistvars.sh (COREUTILS): new var.
80587
80588 2006-03-17  Jim Meyering  <jim@meyering.net>
80589
80590         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80591         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80592
80593 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80594
80595         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80596         no longer needs it.  Instead, check that regoff_t is as least
80597         as wide as ptrdiff_t.
80598
80599         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80600         so that our regex.h stays compatible with the installed regex.
80601         This is helpful for installers who configure --without-included-regex.
80602         Problem reported by Emanuele Giaquinta.
80603
80604 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80605
80606         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80607         Typedef to long int, not to off_, as POSIX will likely change
80608         in that direction.
80609
80610 2006-03-15  Eric Blake  <ebb9@byu.net>
80611
80612         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80613
80614 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80615
80616         * lib/argp-help.c (validate_uparams): Fix typo
80617         * lib/argp-parse.c (argp_default_options): Consistently begin help
80618         messages with a lowercase letter.
80619
80620 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80621
80622         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80623         overrun buffers and shouldn't be used (much as gets shouldn't be
80624         used).
80625         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80626
80627 2006-03-08  Simon Josefsson  <jas@extundo.com>
80628
80629         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80630         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80631
80632 2006-03-08  Simon Josefsson  <jas@extundo.com>
80633
80634         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80635         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80636
80637 2006-03-08  Simon Josefsson  <jas@extundo.com>
80638
80639         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80640         signal that configure disabled the device.
80641
80642 2006-03-08  Simon Josefsson  <jas@extundo.com>
80643
80644         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80645         languages.
80646
80647 2006-03-07  Simon Josefsson  <jas@extundo.com>
80648
80649         * modules/getopt (Depends-on): Add unistd.
80650
80651         * modules/unistd: New file.
80652
80653 2006-03-07  Simon Josefsson  <jas@extundo.com>
80654
80655         * modules/gc-random: New file.
80656
80657 2006-03-07  Simon Josefsson  <jas@extundo.com>
80658
80659         * m4/unistd_h.m4: New file.
80660
80661 2006-03-07  Simon Josefsson  <jas@extundo.com>
80662
80663         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80664         test to be side-effect free by storing the result in the cache
80665         variable gl_cv_lib_readline, and moving the assignment of
80666         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80667         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80668
80669 2006-03-07  Simon Josefsson  <jas@extundo.com>
80670
80671         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80672         error on missing devices (the functions will return an error).
80673
80674         * m4/gc.m4: Move random stuff to gc-random.m4
80675
80676 2006-03-07  Simon Josefsson  <jas@extundo.com>
80677
80678         * lib/unistd_.h: New file.
80679
80680 2006-03-07  Simon Josefsson  <jas@extundo.com>
80681
80682         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80683
80684 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80685
80686         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80687         Problem reported by Juan Manuel Guerrero.
80688
80689 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80690
80691         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80692         the unistd module.
80693         * lib/getlogin_r.c: Likewise.
80694         * lib/getlogin_r.h: Likewise.
80695         * lib/glob.c: Likewise.
80696         * lib/pagealign_alloc.c: Likewise.
80697         * lib/unistd_.h: Remove; no longer needed.
80698
80699 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80702         Add unistd.
80703         * modules/c-stack (Depends-on): Add unistd.
80704         * modules/getlogin_r: Likewise.
80705         * modules/glob: Likewise.
80706         * modules/pagealign_alloc: Likewise.
80707         * modules/unistd (Files): Remove lib/unistd_.h.
80708         (EXTRA_DIST): Remove.
80709         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80710         need unistd_.h.
80711         (MOSTLYCLEANFILES): Remove unistd.h-t.
80712
80713 2006-03-03  Simon Josefsson  <jas@extundo.com>
80714
80715         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80716
80717 2006-03-03  Simon Josefsson  <jas@extundo.com>
80718
80719         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80720         libidn and bison.
80721
80722 2006-03-03  Simon Josefsson  <jas@extundo.com>
80723
80724         * build-aux/maint.mk: Add indent target.
80725
80726 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80727
80728         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80729         our replacement poll.h in any case, to avoid a differing
80730         declaration from a system header.  Seen on AIX.
80731
80732 2006-03-01  Simon Josefsson  <jas@extundo.com>
80733
80734         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80735         <kasal@ucw.cz>.
80736
80737 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80738
80739         * modules/gettime (Depends-on): Add extensions module.
80740         * modules/nanosleep (Depends-on): Likewise.
80741         * modules/settime (Depends-on): Likewise.
80742
80743 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80744
80745         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80746         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80747         pedantically.
80748         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80749         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80750
80751         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80752         not "==".  Reported by Ralf Wildenhues.
80753
80754 2006-03-01  Karl Berry  <karl@gnu.org>
80755
80756         * doc/Copyright/request-*: new files, synced from gnuorg.
80757
80758 2006-03-01  Karl Berry  <karl@gnu.org>
80759
80760         * config/srclist.txt (Copyright/*): new entries.
80761
80762 2006-02-28  Simon Josefsson  <jas@extundo.com>
80763
80764         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80765
80766 2006-02-27  Simon Josefsson  <jas@extundo.com>
80767
80768         * lib/base64.h: Indent #define's.  From Jim Meyering
80769         <jim@meyering.net>.
80770
80771 2006-02-27  Jim Meyering  <jim@meyering.net>
80772
80773         Revert the change of 2006-02-24, so these files can continue
80774         to be sync'd from gettext.
80775         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80776         of `config.h'.
80777
80778 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80779
80780         * modules/intprops: New file.
80781         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80782         Add intprops.
80783         * modules/getloadavg (Files): Remove lib/intprops.h.
80784         (Depends-on): Add intprops.
80785         * modules/human: Likewise.
80786         * modules/inttostr: Likewise.
80787         * modules/openat: Likewise.
80788         * modules/sig2str: Likewise.
80789         * modules/userspec: Likewise.
80790         * modules/utimecmp: Likewise.
80791         * modules/xnanosleep: Likewise.
80792         * modules/xstrtol: Likewise.
80793
80794 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80795
80796         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80797         * modules/lock-tests (TESTS): Use $(EXEEXT).
80798         * modules/tls-tests: Likewise.
80799         * modules/argp-tests: Likewise.
80800         (check_PROGRAMS): New var, replacing...
80801         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80802
80803 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80804
80805         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80806         `config.h'.
80807
80808 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80811
80812 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80813
80814         Sync from coreutils.
80815         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80816         gl_CHDIR_SAFER.
80817
80818 2006-02-22  Jim Meyering  <jim@meyering.net>
80819
80820         Sync from coreutils.
80821         * m4/chdir-safer.m4: New file.
80822
80823 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80826         AT_FDCWD exceeds INT_MAX.
80827         * lib/openat.h (AT_FDCWD): Likewise.
80828
80829 2006-02-17  Eric Blake  <address@hidden>
80830
80831         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
80832
80833 2006-02-16  Simon Josefsson  <jas@extundo.com>
80834
80835         * modules/getaddrinfo (Depends-on): Add sys_socket.
80836
80837 2006-02-15  Simon Josefsson  <jas@extundo.com>
80838
80839         * build-aux/maint.mk: Add dsyntax-check rule.
80840
80841 2006-02-15  Eric Blake  <ebb9@byu.net>
80842
80843         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
80844         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
80845         'present but cannot compile' warnings on cygwin.
80846         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
80847         use ws2tcpip.h if sys/socket.h works.
80848         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
80849         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
80850
80851 2006-02-14  Simon Josefsson  <jas@extundo.com>
80852
80853         * modules/maintainer-makefile (Files): Rename.
80854
80855         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
80856         and (the local) Makefile.cfg to maint-cfg.mk.
80857
80858         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
80859         to the latter.
80860
80861         * modules/maintainer-makefile: New module.
80862
80863         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
80864         severaly stripped to make it possible to build it up from scratch
80865         with reliable tests.
80866
80867         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
80868         fixes to permit overriding the default actions when configure and
80869         makefile are not available.
80870
80871 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         Sync from coreutils.
80874         * modules/lstat (Depends-on): Don't depend on xalloc.
80875         (License): Change from GPL to LGPL, since this is now simply a
80876         replacement for a libc function.
80877
80878 2006-02-14  Jim Meyering  <jim@meyering.net>
80879
80880         Sync from coreutils.
80881
80882         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
80883         failure on deficient systems, and simplify gnulib lgpl dependencies.
80884         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
80885         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
80886
80887         * lib/xalloc-die.c: Remove unused definition of N_.
80888
80889 2006-02-14  Jim Meyering  <jim@meyering.net>
80890
80891         Sync from coreutils.
80892         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
80893         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
80894         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
80895         double-quote uses of that variable, to accommodate the rare case in
80896         which getmntent is available in none of the libraries checked.  This
80897         happens at least on FreeBSD 5.0.
80898
80899 2006-02-13  Simon Josefsson  <jas@extundo.com>
80900
80901         * gnulib-tool (Usage): Fix --import, from
80902         karl@freefriends.org (Karl Berry).
80903
80904 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80905
80906         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
80907
80908 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
80909
80910         * lib/argp-namefrob.h: Restore changes accidentally lost during the
80911         "autoupdate" on 2005-12-12.
80912
80913 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80914
80915         * modules/closeout (Depends-on): Remove atexit.
80916
80917 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80918
80919         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
80920         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
80921
80922 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
80923
80924         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
80925         __EXTENSIONS__ if this causes compilation to fail.  Problem
80926         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
80927         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
80928
80929 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
80930
80931         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
80932         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
80933         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
80934         All uses changed.
80935
80936 2006-01-26  Simon Josefsson  <jas@extundo.com>
80937
80938         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
80939         prototype is visible on mingw32.
80940
80941         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
80942         for mingw32.
80943
80944         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
80945         mingw32).
80946
80947 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
80948
80949         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
80950         attempt to open for write; this always fails, at least on POSIX
80951         hosts.  This reinstates the 2006-01-09 change, which was
80952         inadvertently removed.
80953
80954 2006-01-26  Bruno Haible  <bruno@clisp.org>
80955
80956         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
80957         Reported by Paul Eggert.
80958
80959 2006-01-26  Bruno Haible  <bruno@clisp.org>
80960             Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         * lib/stdbool_.h (_Bool)
80963         [(! (defined __cplusplus || defined __BEOS__)
80964           && !defined __GNUC__
80965           && !(defined __HP_cc || defined __xlc__
80966                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
80967                || defined __sgi))]:
80968         #define to signed char in these cases too; this simplifies
80969         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
80970         etc., separately) and makes it more conservative.
80971
80972 2006-01-25  Simon Josefsson  <jas@extundo.com>
80973
80974         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
80975         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
80976         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80977
80978 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80979
80980         * lib/argp-namefrob.h: Bugfix. Remove stray #
80981
80982 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80983
80984         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80985         so that we test the test.
80986         Check for yet another HP-UX cc bug involving *bool |= bool.
80987
80988 2006-01-25  Karl Berry  <karl@gnu.org>
80989
80990         * config/srclist.txt (vasnprintf.c): sync lost.
80991
80992 2006-01-25  Jim Meyering  <jim@meyering.net>
80993
80994         Sync from the stable (b5) branch of coreutils:
80995
80996         * lib/fts.c (fts_children): Don't let close() clobber errno from
80997         failed fchdir().
80998
80999         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81000         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81001         a dangling symlink.  That can also happen at least for ELOOP.
81002         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81003         FYI, this bug predates the inclusion of fts.c in coreutils.
81004
81005         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81006         in their own block, so pre-c99 compilers don't object.
81007
81008         Avoid the double-free (first in fts_read, second in fts_close) that
81009         would occur when an `active' directory is made inaccessible (e.g.,
81010         via chmod a-x) during a traversal.
81011         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81012         before returning.  Reproduce this failure by
81013         mkdir -p a/b; cd a; chmod a-x . b
81014         Reported by Stavros Passas.
81015
81016 2006-01-25  Jim Meyering  <jim@meyering.net>
81017
81018         * lib/fileblocks.c: Remove more useless parentheses.
81019         * lib/readutmp.h: Likewise.
81020
81021 2006-01-25  Bruno Haible  <bruno@clisp.org>
81022
81023         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81024         warnings.
81025         Reported by Paul Eggert.
81026
81027 2006-01-25  Bruno Haible  <bruno@clisp.org>
81028
81029         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81030         rid of a trap command. For Solaris sh.
81031         Reported by Mark D. Baushke <mdb@gnu.org>.
81032
81033 2006-01-24  Simon Josefsson  <jas@extundo.com>
81034
81035         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81036         Bruno.
81037
81038 2006-01-24  Karl Berry  <karl@gnu.org>
81039
81040         * config/srclist.txt (argp-namefrob.h): sync lost.
81041
81042 2006-01-24  Jim Meyering  <jim@meyering.net>
81043
81044         * modules/openat (Files): Add lib/intprops.h.
81045         From Mark D. Baushke.
81046
81047 2006-01-24  Jim Meyering  <jim@meyering.net>
81048
81049         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81050         Reported by Mark D. Baushke.
81051
81052 2006-01-24  Jim Meyering  <jim@meyering.net>
81053
81054         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81055
81056 2006-01-24  Bruno Haible  <bruno@clisp.org>
81057
81058         * modules/strnlen (Maintainer): Change from glibc to all.
81059
81060 2006-01-24  Bruno Haible  <bruno@clisp.org>
81061
81062         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81063         Patch by Paul Eggert.
81064
81065 2006-01-24  Bruno Haible  <bruno@clisp.org>
81066
81067         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81068         already has it.
81069         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81070         2005-11-26.
81071
81072         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81073         'signed char' to avoid problems with the built-in _Bool type.
81074         Reported by Paul Eggert on 2005-11-26.
81075
81076 2006-01-24  Bruno Haible  <bruno@clisp.org>
81077
81078         * gnulib-tool (func_import): Avoid constructing complicated sed
81079         expressions inside backquote.
81080         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81081
81082 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81083
81084         These changes imported from libc.
81085         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81086         test and two separate function calls.
81087         * lib/strndup.c (__strndup): Add libc_hidden_def.
81088
81089 2006-01-23  Simon Josefsson  <jas@extundo.com>
81090
81091         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81092         Remove the test_*_SOURCES variable: automake infers it by default.
81093         * modules/tls-tests: Likewise.
81094
81095 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81096
81097         Work around porting bugs reported by Dieter in
81098         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81099         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81100         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81101         Include "getopt.h" first, to check interface.
81102         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81103         !HAVE_DECL_GETENV.
81104         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81105         (__strndup): Revert to K&R-style function dfns, the glibc style.
81106         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81107         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81108         Include strnlen.h first, to get prototype properly.
81109         (strnlen): Renamed from __strnlen.
81110         Remove weak alias.
81111
81112 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81113
81114         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81115
81116 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81117
81118         * config/srclist.txt: Adjust to reflect glibc reorganization.
81119         This affects only comments.
81120
81121 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81122
81123          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81124          Reported by Bruce Korb <bkorb@gnu.org>.
81125
81126 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81127
81128         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81129         to pacify gcc -Wswitch-default.
81130
81131 2006-01-22  Bruno Haible  <bruno@clisp.org>
81132
81133         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81134         temporary buffer for sprintf, take into account the precision also
81135         for 'd', 'i', 'u', 'o', 'x', 'X'.
81136
81137 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81138
81139         * modules/argp-tests: New module
81140         * tests/test-argp.c: New file
81141         * tests/test-argp-2.sh: New file
81142
81143 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81144
81145         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81146         (__argp_base_name): Removed
81147         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81148         typo.
81149         (__argp_base_name): Provide macro definition or extern declaration
81150         depending on the configuration
81151
81152 2006-01-20  Simon Josefsson  <jas@extundo.com>
81153
81154         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81155
81156 2006-01-20  Simon Josefsson  <jas@extundo.com>
81157
81158         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81159
81160 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81161
81162         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81163         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81164         Suggested by Bruno Haible.
81165
81166 2006-01-20  Karl Berry  <karl@gnu.org>
81167
81168         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81169         until changes propagate, I guess.
81170
81171 2006-01-19  Simon Josefsson  <jas@extundo.com>
81172
81173         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81174
81175 2006-01-19  Simon Josefsson  <jas@extundo.com>
81176
81177         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81178
81179 2006-01-19  Simon Josefsson  <jas@extundo.com>
81180
81181         * gnulib-tool: Set check_PROGRAMS.
81182
81183         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81184         modules/des-tests, modules/gc-arcfour-tests,
81185         modules/gc-arctwo-tests, modules/gc-des-tests,
81186         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81187         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81188         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81189         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81190         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81191         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81192         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81193         test_*_SOURCES.
81194
81195 2006-01-18  Simon Josefsson  <jas@extundo.com>
81196
81197         * modules/socklen (Depends-on): Depend on sys_socket.
81198
81199 2006-01-18  Simon Josefsson  <jas@extundo.com>
81200
81201         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81202         modules/des-tests, modules/gc-arcfour-tests,
81203         modules/gc-arctwo-tests, modules/gc-des-tests,
81204         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81205         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81206         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81207         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81208         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81209         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81210         $(EXEEXT) to automake TESTS variable, for mingw32.
81211
81212 2006-01-17  Simon Josefsson  <jas@extundo.com>
81213
81214         * modules/socklen (Include): Need sys/socket.h.
81215
81216 2006-01-17  Bruno Haible  <bruno@clisp.org>
81217
81218         * modules/ssize_t (Include): Add <sys/types.h>.
81219
81220 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81223         it's not portable and it doesn't work with cross-compiles.
81224         Problem reported by Bruno Haible.  Fix missing-$ typo in
81225         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81226         -zignore from being used with Sun's C compiler.
81227
81228 2006-01-12  Simon Josefsson  <jas@extundo.com>
81229
81230         * lib/base64.c: Fix warning, reported by Bruno Haible
81231         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81232
81233 2006-01-12  Bruno Haible  <bruno@clisp.org>
81234
81235         * modules/ldd: New file.
81236         * build-aux/ldd.sh.in: New file.
81237         * MODULES.html.sh (Support for building libraries and executables): Add
81238         ldd.
81239
81240 2006-01-12  Bruno Haible  <bruno@clisp.org>
81241
81242         * m4/ldd.m4: New file.
81243
81244 2006-01-12  Bruno Haible  <bruno@clisp.org>
81245
81246         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81247         endless loop while replacing $auxdir with build-aux.
81248
81249 2006-01-11  Simon Josefsson  <jas@extundo.com>
81250
81251         * lib/stdint_.h (SIZE_MAX): Add missing (.
81252
81253 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81254
81255         Sync from coreutils.
81256         * lib/md5.c: Fix commentary typos.
81257         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81258         * lib/md5.h (__attribute__): Remove; unused.
81259         * lib/sha1.c: Fix commentary to match md5 better.
81260         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81261         so that we don't need to worry about alignment.  All uses changed.
81262         This merges the 2005-10-28 md5 change into sha1.
81263
81264 2006-01-11  Jim Meyering  <jim@meyering.net>
81265
81266         Sync from coreutils.
81267         * lib/md5.c (OP): Fix spacing.
81268
81269 2006-01-11  Bruno Haible  <bruno@clisp.org>
81270
81271         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81272         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81273         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81274
81275 2006-01-11  Bruno Haible  <bruno@clisp.org>
81276
81277         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81278         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81279         the "early" section as well.
81280
81281 2006-01-11  Bruno Haible  <bruno@clisp.org>
81282
81283         Avoid "ar: no archive members specified" error on MacOS X.
81284         * gnulib-tool (func_modules_add_dummy): New function.
81285         (func_import, func_create_testdir): Invoke it.
81286
81287 2006-01-11  Bruno Haible  <bruno@clisp.org>
81288
81289         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81290         with $auxdir in AC_CONFIG_FILES statements.
81291
81292 2006-01-11  Bruno Haible  <bruno@clisp.org>
81293
81294         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81295         Initialize also noinst_HEADERS to empty.
81296
81297 2006-01-11  Bruno Haible  <bruno@clisp.org>
81298
81299         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81300         variables.
81301         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81302         autoreconf.
81303
81304 2006-01-11  Bruno Haible  <bruno@clisp.org>
81305
81306         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81307         overridable by the user.
81308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81309
81310 2006-01-10  Simon Josefsson  <jas@extundo.com>
81311
81312         * modules/sys_socket: New file.
81313
81314 2006-01-10  Simon Josefsson  <jas@extundo.com>
81315
81316         * m4/sys_socket_h.m4: New file.
81317
81318 2006-01-10  Simon Josefsson  <jas@extundo.com>
81319
81320         * lib/socket_.h: New file.
81321
81322 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81323
81324         * modules/readutmp (Maintainer): Add myself.
81325
81326 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81327
81328         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81329         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81330         People who are still concerned with buggy memcmp implementations
81331         can invoke gl_FUNC_MEMCMP themselves.
81332
81333 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * lib/regex_internal.h (BITSET_WORD_BITS):
81336         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81337         preprocessor mishandles large unsigned values as if they were signed.
81338         Problem reported by Claudio Fontana in
81339         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81340
81341 2006-01-10  Jim Meyering  <jim@meyering.net>
81342
81343         Avoid the double-free (first in fts_read, second in fts_close) that
81344         would occur when an `active' directory is made inaccessible (e.g.,
81345         via chmod a-x) during a traversal.
81346         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81347         before returning.  Reproduce this failure by
81348         mkdir -p a/b; cd a; chmod a-x . b
81349         Reported by Stavros Passas.
81350
81351         Sync from coreutils.
81352         * lib/sha1.c: Tweak grammar in a comment.
81353
81354 2006-01-10  Jim Meyering  <jim@meyering.net>
81355
81356         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81357         Patch by Joerg Sonnenberger.
81358
81359 2006-01-10  Bruno Haible  <bruno@clisp.org>
81360
81361         * modules/readutmp: Depend on module free.
81362         * modules/strtok_r: Depend on module restrict.
81363
81364 2006-01-10  Bruno Haible  <bruno@clisp.org>
81365
81366         * modules/gettext (configure.ac): Add an invocation of
81367         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81368
81369 2006-01-10  Bruno Haible  <bruno@clisp.org>
81370
81371         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81372         Reported by Werner Lemberg <wl@gnu.org>.
81373
81374 2006-01-10  Bruno Haible  <bruno@clisp.org>
81375
81376         * lib/localcharset.c: Update from GNU gettext.
81377
81378 2006-01-10  Bruno Haible  <bruno@clisp.org>
81379
81380         * lib/argp.h (__const): Remove macro. Use const instead.
81381         * lib/argp-fmtstream.h (__const): Likewise.
81382         * lib/glob_.h (__const): Remove macro.
81383         * lib/glob-libc.h: Use const instead of __const.
81384
81385 2006-01-10  Bruno Haible  <bruno@clisp.org>
81386
81387         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81388         variable.
81389         Needed to avoid an automake error regarding the 'gettext' module.
81390
81391 2006-01-09  Simon Josefsson  <jas@extundo.com>
81392
81393         * modules/inet_ntop (Depends-on): Add restrict.
81394
81395 2006-01-09  Simon Josefsson  <jas@extundo.com>
81396
81397         * modules/gc-rijndael-tests (License): Put under LGPL.
81398
81399         * modules/gc-des-tests (License): Likewise.
81400
81401         * modules/gc-arcfour-tests (License): Likewise.
81402
81403         * modules/gc-arctwo-tests (License): Likewise.
81404
81405         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81406
81407         * modules/gc-hmac-sha1-tests (Files): Likewise.
81408
81409         * modules/gc-hmac-md5-tests (License): Likewise.
81410
81411         * modules/gc-sha1-tests (License): Likewise.
81412
81413         * modules/gc-md5-tests (License): Likewise.
81414
81415         * modules/gc-md4-tests (License): Likewise.
81416
81417         * modules/gc-md2-tests (License): Likewise.
81418
81419         * modules/gc-tests (License): Likewise.
81420
81421         * modules/des-tests (License): Likewise.
81422
81423         * modules/md4-tests (License): Likewise.
81424
81425         * modules/md2-tests (License): Likewise.
81426
81427 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81428
81429         Sync from coreutils:
81430
81431         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81432         * modules/lib-ignore: New file.
81433         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81434         chdir-safer.m4, lchmod.m4.
81435         * modules/openat: Add mkdirat.c, openat-priv.h.
81436
81437 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81438
81439         Sync from coreutils.
81440         * m4/lib-ignore.m4: New file.
81441         * m4/lchmod.m4: New file.
81442
81443 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81444
81445         Sync from coreutils.
81446         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81447         for write access: POSIX says that must fail.
81448         * lib/fts.c (diropen): Likewise.
81449         * lib/save-cwd.c (save_cwd): Likewise.
81450         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81451         well, for minor improvements on hosts that lack O_DIRECTORY.
81452         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81453         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81454         Fall back on chown if open failed with EACCES.
81455
81456         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81457         Report an error at compile-time if only a 1-second nominal clock
81458         resolution is found.
81459
81460         * lib/lchmod.h: New file.
81461         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81462         (make_dir_parents): Use lchown rather than chown, and
81463         lchmod rather than chmod.
81464
81465         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81466         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81467         "proc" reported by n0dalus.
81468
81469         * lib/mountlist.c: Include <limits.h>.
81470         (dev_from_mount_options)
81471         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81472         New function.  It no longer assumes "dev=" has the System V meaning
81473         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81474         (read_file_system_list)
81475         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81476         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81477         dev= in that case.
81478
81479         * lib/posixtm.h (PDS_PRE_2000): New macro.
81480         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81481         allow_century.  All usages changed.  Reject dates outside the range
81482         1969-1999 if PDS_PRE_2000 is used.
81483
81484 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81485
81486         Sync from coreutils.
81487         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81488         (Time of day items): Mention the possibility of leap seconds.
81489         Problem reported by Dr. David Alan Gilbert.
81490
81491 2006-01-09  Jim Meyering  <jim@meyering.net>
81492
81493         Sync from coreutils.
81494
81495         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81496
81497         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81498
81499         * lib/modechange.c (mode_compile): Reject an invalid mode string
81500         that starts with an octal digit.  From Andreas Gruenbacher.
81501
81502         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81503         and dup to open_safer and dup_safer, respectively.
81504         (openat_permissive): Fix typo in comment.
81505
81506         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81507         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81508         (_): Remove; no longer needed.
81509         (openat): Renamed from rpl_openat; no need for rpl_openat
81510         since openat.h renames openat for us.
81511         Replace most of the body with a call to openat_permissive,
81512         to avoid duplicate code.
81513         Port to (probably hypothetical) environments were mode_t is
81514         wider than int.
81515         (openat_permissive): Require mode arg, so that we can check
81516         types better.  Put it just after flags.  Change cwd failure
81517         indicator from pointer-to-bool to pointer-to-errno-value.
81518         All callers changed.
81519         Invoke openat_save_fail and/or openat_restore_fail if
81520         cwd_errno is null, so that openat can call us.
81521         (openat_permissive, fdopendir, fstatat, unlinkat):
81522         Simplify errno handling to avoid some duplicate code,
81523         as it's OK to set errno on success.
81524         * lib/openat.h: Revamp code so that function macros depend on
81525         __OPENAT_PREFIX only, not also on AT_FDCWD.
81526         (openat_ro): Remove.  Caller changed to use openat_permissive.
81527         (openat_permissive): Now a macro, if not a function.
81528         (openat_restore_fail, openat_save_fail): Now always functions,
81529         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81530
81531         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81532         and openat.c.
81533         * lib/mkdirat.c: Include openat-priv.h.
81534         Remove definitions of macros defined therein.
81535         * lib/openat.c: Likewise.
81536
81537         * lib/mkdirat.c (mkdirat): New file and function.
81538         * lib/openat.h (mkdirat): Declare.
81539
81540         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81541
81542         * lib/openat.h (openat_permissive): Declare.
81543         (openat_ro): Define.
81544
81545         * lib/openat.c (EXPECTED_ERRNO): New macro.
81546         (openat_permissive): New function -- used in remove.c rewrite.
81547         (all functions): Set errno just before returning, only if there
81548         was an actual failure.
81549         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81550
81551         Emulate openat-family functions using Linux's procfs, if possible.
81552         Idea and some code based on Ulrich Drepper's glibc changes.
81553
81554         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81555         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81556         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81557         before falling back on save_cwd and restore_cwd.
81558         (fdopendir, fstatat, unlinkat): Likewise.
81559
81560         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81561         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81562
81563         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81564         as second argument to va_arg.  Otherwise, some versions of gcc
81565         warn that `if this code is reached, the program will abort'.
81566
81567 2006-01-09  Jim Meyering  <jim@meyering.net>
81568
81569         Sync from coreutils.
81570         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81571         Require openat-priv.h.
81572
81573 2006-01-09  Bruno Haible  <bruno@clisp.org>
81574
81575         * modules/strnlen (Include): Use strnlen.h.
81576
81577 2006-01-09  Bruno Haible  <bruno@clisp.org>
81578
81579         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81580
81581 2006-01-09  Bruno Haible  <bruno@clisp.org>
81582
81583         * lib/sysexit_.h (EX_OK): New macro.
81584         Suggested by Martin Lambers <marlam@marlam.de>.
81585
81586 2006-01-09  Bruno Haible  <bruno@clisp.org>
81587
81588         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81589         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81590
81591 2006-01-09  Bruno Haible  <bruno@clisp.org>
81592
81593         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81594         numbers.
81595
81596 2006-01-09  Bruno Haible  <bruno@clisp.org>
81597
81598         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81599         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81600         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81601         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81602
81603 2006-01-09  Bruno Haible  <bruno@clisp.org>
81604
81605         * build-aux/javacomp.sh.in: New file, moved from lib/.
81606         * modules/javacomp-script (Files): Update.
81607         (configure.ac): Add AC_CONFIG_FILES invocation.
81608         (EXTRA_DIST): Remove variable.
81609
81610         * build-aux/javaexec.sh.in: New file, moved from lib/.
81611         * modules/javaexec (Files): Update.
81612         (configure.ac): Add AC_CONFIG_FILES invocation.
81613         (EXTRA_DIST): Remove javaexec.sh.in.
81614
81615         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81616         * modules/csharpcomp-script (Files): Update.
81617         (configure.ac): Add AC_CONFIG_FILES invocation.
81618         (EXTRA_DIST): Remove variable.
81619
81620         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81621         * modules/csharpexec (Files): Update.
81622         (configure.ac): Add AC_CONFIG_FILES invocation.
81623         (EXTRA_DIST): Remove csharpexec.sh.in.
81624
81625 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81626
81627         Sync from coreutils.
81628
81629         Add POSIX ACL support
81630         * lib/acl.h (copy_acl, set_acl): Add declarations.
81631         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81632         systems other than Linux.
81633         (chmod_or_fchmod): New function: use fchmod when possible,
81634         and chmod otherwise.
81635         (file_has_acl): Add a POSIX ACL implementation, with a
81636         Linux-specific subcase.
81637         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81638         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81639         acls are unsupported.
81640         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81641         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81642         are unsupported.
81643
81644 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81645
81646         Sync from coreutils.
81647         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81648
81649 2006-01-07  Bruno Haible  <bruno@clisp.org>
81650
81651         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81652         gl_EARLY.
81653
81654 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81655
81656         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81657         Problem reported for Mingw by Mark Junker.
81658
81659 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81660
81661         * README: Gnulib normally doesn't generate a tarball.
81662
81663 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81664
81665         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81666         long int, not int, for nanosecond counts, so that people who are
81667         used to POSIX struct timespec won't be surprised.  Reported by Jim
81668         Meyering.
81669
81670 2005-12-28  Bruno Haible  <bruno@clisp.org>
81671
81672         * build-aux/config.rpath: Update from GNU gettext.
81673
81674 2005-12-16  Jim Meyering  <jim@meyering.net>
81675
81676         * modules/fprintftime: New module.
81677         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81678
81679 2005-12-16  Jim Meyering  <jim@meyering.net>
81680
81681         * m4/fprintftime.m4: New file.
81682
81683 2005-12-16  Jim Meyering  <jim@meyering.net>
81684
81685         * lib/fprintftime.c, lib/fprintftime.h: New files.
81686
81687 2005-12-15  Simon Josefsson  <jas@extundo.com>
81688
81689         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81690         new m4/socklen.m4.
81691
81692 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81693
81694         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81695         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81696
81697 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81698
81699         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81700         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81701         struct uparams is valid. Fall back to the default values if it is
81702         not.
81703
81704 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81705
81706         * modules/argp (Files): Add argp-pin.c
81707         (Depends-on): dirname
81708         (lib_SOURCES): Add argp-pin.c
81709
81710 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81711
81712         * m4/argp.m4:  Check if program_invocation_name and
81713         program_invocation_short_name are declared and define appropriate
81714         macros if they are not.
81715
81716 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81717
81718         * lib/argp-help.c (__argp_base_name): New function
81719         (__argp_short_program_name): Rewrite using __argp_base_name
81720         * lib/argp-namefrob.h: Define program_invocation_name and
81721         program_invocation_short_name if requested
81722         (__argp_base_name): Add prototype
81723         * lib/argp-parse.c (argp_def): Use gettext wrappers
81724         (argp_default_parser): Use __argp_base_name
81725         * lib/argp-pin.c: New file. Defines program_invocation_name and
81726         program_invocation_short_name on systems that lack them.
81727
81728 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81731         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81732         porting problem reported by Georg Schwarz in
81733         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81734
81735 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81738         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81739         porting problem reported by Georg Schwarz in
81740         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81741
81742 2005-12-05  Bruno Haible  <bruno@clisp.org>
81743
81744         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81745         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81746         Reported by Mark Junker <mjscod@gmx.de>.
81747
81748 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81749
81750         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81751         Use implementation from Albert Chin, with some
81752         comments/corrections by Stepan Kasal and myself.
81753
81754 2005-12-02  Bruno Haible  <bruno@clisp.org>
81755
81756         * gnulib-tool (func_import): Accept GPLed build tool modules when
81757         --lgpl is given.
81758         * modules/csharpcomp-script: New file.
81759         * modules/csharpcomp: Depend on it.
81760         * modules/javacomp-script: New file.
81761         * modules/javacomp: Depend on it.
81762         Suggested by Simon Josefsson.
81763
81764 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81765
81766         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81767         statement, to work around an HP-UX 10.20 compiler bug reported by
81768         Peter O'Gorman.
81769
81770 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81771
81772         * modules/savedir (Depends-on): Add openat.
81773
81774 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81775
81776         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81777         (uintmax_t) [defined uintmax_t]: Do not declare.
81778         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81779         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81780         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81781         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81782         sake of portability to weird hosts that C allows (though we don't
81783         know of any practical examples).
81784
81785         * lib/savedir.h (fdsavedir): New decl.
81786         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81787         contains most of the former guts of savedir.
81788         (savedir): Use savedirstream.
81789         Include "openat.h".
81790
81791 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81792
81793         * modules/obstack (Files): Add m4/ulonglong.m4.
81794         Problem reported by Davide Angelocola.
81795
81796 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81797
81798         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81799         coreutils no longer futzes with rounding modes.
81800
81801 2005-11-14  Jim Meyering  <jim@meyering.net>
81802
81803         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81804         replacement of mkstemp.
81805
81806 2005-11-10  Simon Josefsson  <jas@extundo.com>
81807
81808         * lib/readline.c: Remove EOL.
81809
81810 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * modules/gethrxtime (Depends-on): Add gettime.
81813
81814 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81815
81816         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81817         or gettimeofday; no longer needed.
81818
81819 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81820
81821         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81822         time business.
81823         (gethrxtime) [! (HAVE_NANOUPTIME
81824         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81825         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81826         our own approximation.
81827
81828 2005-11-08  Eric Blake  <ebb9@byu.net>
81829
81830         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81831
81832 2005-11-08  Eric Blake  <ebb9@byu.net>
81833
81834         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81835
81836 2005-11-04  Bruno Haible  <bruno@clisp.org>
81837
81838         * gnulib-tool: Implement --update mode.
81839
81840 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81841
81842         Fix porting problem reported by Theodoros V. Kalamatianos.
81843         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
81844         Don't assume that futimes failing means we must fail.
81845
81846 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81847
81848         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
81849         variables to suggest the intended function of the PATH_MAX check.
81850
81851 2005-10-30  Kean Johnston  <jkj@sco.com>
81852
81853         Trivial changes to support SCO systems.
81854         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
81855         as PATH_MAX.
81856         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
81857         where __ptr is null when no I/O is pending.
81858
81859 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81860
81861         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
81862         leave errno alone.  Problem reported by Dmitry V. Levin.
81863
81864 2005-10-28  Simon Josefsson  <jas@extundo.com>
81865
81866         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
81867         Test more.
81868
81869         * tests/test-gc-md2.c, tests/test-md2.c: New files.
81870
81871         * modules/md2, modules/md2-tests: New files.
81872
81873 2005-10-28  Simon Josefsson  <jas@extundo.com>
81874
81875         * m4/inet_ntop.m4: More tests.
81876
81877         * m4/gc-md2.m4, md2.m4: New file.
81878
81879 2005-10-28  Simon Josefsson  <jas@extundo.com>
81880
81881         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
81882         "restrict" keywords, as per POSIX.  Protect the function
81883         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
81884         Don't use K&R prototypes.  Check the sprintf return values.
81885         Re-define EAFNOSUPPORT if not present.  Indent.
81886
81887         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
81888         suggested by Bruno Haible <bruno@clisp.org>.
81889
81890         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
81891
81892         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
81893
81894         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
81895         libgcrypt).
81896
81897         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
81898
81899         * lib/md2.h, lib/md2.c: New files.
81900
81901 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
81904         errno alone.  Problem reported by Frederic Jolliton.
81905
81906 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
81907
81908         * modules/verify (License): Change from GPL to LGPL.  This is a
81909         tiny module and there are apparently near-equivalents that are
81910         under the BSD license.
81911
81912 2005-10-24  Simon Josefsson  <jas@extundo.com>
81913
81914         * modules/sha1: Relicense to LGPL.
81915
81916 2005-10-24  Simon Josefsson  <jas@extundo.com>
81917
81918         * lib/md4.h: Shrink buffer size, now that we changed the type.
81919
81920 2005-10-23  Simon Josefsson  <jas@extundo.com>
81921
81922         * gnulib-tool (func_import): Fix --tests-base.
81923
81924 2005-10-22  Simon Josefsson  <jas@extundo.com>
81925
81926         * modules/arcfour (Depends-on): Need stdint.
81927
81928 2005-10-22  Simon Josefsson  <jas@extundo.com>
81929
81930         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
81931         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
81932
81933 2005-10-22  Simon Josefsson  <jas@extundo.com>
81934
81935         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
81936         suggested by Bruno Haible <bruno@clisp.org>.
81937
81938 2005-10-22  Simon Josefsson  <jas@extundo.com>
81939
81940         * lib/crc.h: Include stddef.h, for size_t.
81941
81942 2005-10-22  Simon Josefsson  <jas@extundo.com>
81943
81944         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
81945         arcfour_context struct (simplify test vector testing in GNU
81946         Shishi).
81947
81948 2005-10-21  Simon Josefsson  <jas@extundo.com>
81949
81950         * modules/des, modules/des-tests: New files.
81951
81952         * modules/gc-des, modules/gc-des-tests: New files.
81953
81954         * tests/test-des.c, tests/test-gc-des.c: New file.
81955
81956 2005-10-21  Simon Josefsson  <jas@extundo.com>
81957
81958         * modules/arctwo, modules/arctwo-tests: New files.
81959
81960         * tests/test-arctwo.c: New file.
81961
81962         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
81963
81964         * tests/test-gc-arctwo.c: New file.
81965
81966 2005-10-21  Simon Josefsson  <jas@extundo.com>
81967
81968         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
81969         Bruno Haible <bruno@clisp.org>.
81970
81971         * m4/gc-des.m4: New file.
81972
81973 2005-10-21  Simon Josefsson  <jas@extundo.com>
81974
81975         * m4/arctwo.m4: New file.
81976
81977         * m4/gc-arctwo.m4: New file.
81978
81979 2005-10-21  Simon Josefsson  <jas@extundo.com>
81980
81981         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81982         block.
81983
81984 2005-10-21  Simon Josefsson  <jas@extundo.com>
81985
81986         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81987         <bruno@clisp.org>.
81988
81989         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81990
81991         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81992         Bruno Haible <bruno@clisp.org>.
81993
81994         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81995         <bruno@clisp.org>.
81996
81997 2005-10-21  Simon Josefsson  <jas@extundo.com>
81998
81999         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82000
82001 2005-10-21  Simon Josefsson  <jas@extundo.com>
82002
82003         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82004
82005 2005-10-21  Simon Josefsson  <jas@extundo.com>
82006
82007         * lib/des.h, lib/des.c: New files.
82008
82009         * lib/gc-gnulib.c: Support DES.c
82010
82011 2005-10-21  Simon Josefsson  <jas@extundo.com>
82012
82013         * lib/arctwo.h, lib/arctwo.c: New files.
82014
82015         * lib/gc-gnulib.c: Support ARCTWO.
82016
82017 2005-10-21  Simon Josefsson  <jas@extundo.com>
82018
82019         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82020         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82021
82022 2005-10-21  Simon Josefsson  <jas@extundo.com>
82023
82024         * gnulib-tool (func_import, func_create_testdir): Define automake
82025         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82026         Makefile.am snippet),
82027         suggested by Bruno Haible <bruno@clisp.org>.
82028
82029         * modules/gc (Makefile.am): Use it.
82030
82031 2005-10-21  Bruno Haible  <bruno@clisp.org>
82032
82033         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82034         patch.
82035
82036 2005-10-19  Simon Josefsson  <jas@extundo.com>
82037
82038         * tests/test-gc-rijndael.c: New file.
82039
82040         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82041
82042 2005-10-19  Simon Josefsson  <jas@extundo.com>
82043
82044         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82045         interface too.
82046
82047 2005-10-19  Simon Josefsson  <jas@extundo.com>
82048
82049         * tests/test-gc-arcfour.c: New file.
82050
82051         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82052
82053 2005-10-19  Simon Josefsson  <jas@extundo.com>
82054
82055         * modules/gc-md4, modules/gc-md4-tests: New file.
82056
82057         * tests/test-gc-md4.c: New file.
82058
82059 2005-10-19  Simon Josefsson  <jas@extundo.com>
82060
82061         * m4/gc-md4.m4: New file.
82062
82063 2005-10-19  Simon Josefsson  <jas@extundo.com>
82064
82065         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82066         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82067         <kasal@ucw.cz>.
82068
82069 2005-10-19  Simon Josefsson  <jas@extundo.com>
82070
82071         * m4/gc-arcfour.m4: New file.
82072
82073         * m4/gc-rijndael.m4: New file.
82074
82075 2005-10-19  Simon Josefsson  <jas@extundo.com>
82076
82077         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82078
82079 2005-10-19  Simon Josefsson  <jas@extundo.com>
82080
82081         * lib/gc-gnulib.c: Support ARCFOUR.
82082
82083 2005-10-19  Simon Josefsson  <jas@extundo.com>
82084
82085         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82086         support.
82087
82088         * lib/gc.h: Add ECB enum type.
82089
82090         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82091
82092 2005-10-18  Simon Josefsson  <jas@extundo.com>
82093
82094         * tests/test-md5.c: New file.
82095
82096         * modules/md5-tests: New file.
82097
82098 2005-10-18  Simon Josefsson  <jas@extundo.com>
82099
82100         * tests/test-md4.c: New file.
82101
82102         * modules/md4, modules/md4-tests: New files.
82103
82104 2005-10-18  Simon Josefsson  <jas@extundo.com>
82105
82106         * m4/md4.m4: New file.
82107
82108 2005-10-18  Simon Josefsson  <jas@extundo.com>
82109
82110         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82111
82112 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82113
82114         * gnulib-tool (func_create_testdir): Omit the second check whether
82115         BUILT_SOURCES in nonempty.
82116
82117 2005-10-17  Simon Josefsson  <jas@extundo.com>
82118
82119         * tests/test-rijndael.c: New file.
82120
82121 2005-10-17  Simon Josefsson  <jas@extundo.com>
82122
82123         * modules/sha1: Depend on stdint instead of md5.
82124
82125         * modules/md5: Depend on stdint, remove uint32_t.
82126
82127 2005-10-17  Simon Josefsson  <jas@extundo.com>
82128
82129         * modules/gc-sha1-tests: New file.
82130
82131         * tests/test-gc-sha1.c: New file.
82132
82133 2005-10-17  Simon Josefsson  <jas@extundo.com>
82134
82135         * m4/md5.m4: Remove call to uint32_t.m4.
82136
82137 2005-10-17  Simon Josefsson  <jas@extundo.com>
82138
82139         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82140
82141         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82142         md5.h.
82143
82144         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82145
82146         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82147
82148 2005-10-17  Simon Josefsson  <jas@extundo.com>
82149
82150         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82151
82152 2005-10-17  Simon Josefsson  <jas@extundo.com>
82153
82154         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82155
82156 2005-10-17  Simon Josefsson  <jas@extundo.com>
82157
82158         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82159
82160         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82161
82162 2005-10-17  Bruno Haible  <bruno@clisp.org>
82163
82164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82165         that it can also be used in a test.
82166
82167 2005-10-16  Bruno Haible  <bruno@clisp.org>
82168
82169         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82170         TESTS_ENVIRONMENT, so that individual tests can augment it.
82171
82172         * gnulib-tool (func_create_testdir): Use an intermediate target for
82173         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82174         macros, like $(ALLOCA_H), which cannot be passed through the command
82175         line.
82176
82177 2005-10-15  Simon Josefsson  <jas@extundo.com>
82178
82179         * modules/rijndael-tests: New file.
82180
82181         * modules/rijndael: New file.
82182
82183 2005-10-15  Simon Josefsson  <jas@extundo.com>
82184
82185         * m4/rijndael.m4: New file.
82186
82187 2005-10-15  Simon Josefsson  <jas@extundo.com>
82188
82189         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82190
82191         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82192
82193 2005-10-14  Simon Josefsson  <jas@extundo.com>
82194
82195         * tests/test-arcfour.c: New file.
82196
82197         * modules/arcfour, modules/arcfour-tests: New files.
82198
82199 2005-10-14  Simon Josefsson  <jas@extundo.com>
82200
82201         * m4/arcfour.m4: New file.
82202
82203 2005-10-14  Simon Josefsson  <jas@extundo.com>
82204
82205         * lib/arcfour.h, lib/arcfour.c: New files.
82206
82207 2005-10-14  Roland McGrath  <roland@redhat.com>
82208
82209         Import from libc.  [BZ #1331]
82210         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82211         macro argument.
82212         Reported by Matej Vela <vela@debian.org>.
82213
82214 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82215
82216         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82217         include <wchar.h>; no longer needed.
82218
82219 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82220
82221         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82222
82223 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82224         and  Ulrich Drepper  <drepper@redhat.com>
82225
82226         Import from libc.
82227         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82228         instead of inline stream orientation test and two separate
82229         function calls.  Pay no attention to USE_IN_LIBIO.
82230
82231 2005-10-13  Simon Josefsson  <jas@extundo.com>
82232
82233         * modules/gc-hmac-md5-tests: New file.
82234
82235         * tests/test-gc-hmac-sha1.c: New file.
82236
82237         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82238
82239         * modules/gc-hmac-md5-tests: New file.
82240
82241         * tests/test-gc-md5.c: New file.
82242
82243         * modules/gc-md5-tests: New file.
82244
82245 2005-10-13  Simon Josefsson  <jas@extundo.com>
82246
82247         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82248         Move memory allocation outside of loop.
82249
82250 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82251
82252         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82253         intermediate directory is in a read-only file system.  Problem
82254         reported by Eric Blake.
82255
82256 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82257
82258         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82259
82260 2005-10-12  Simon Josefsson  <jas@extundo.com>
82261
82262         * tests/test-hmac-sha1.c: New file.
82263
82264         * modules/hmac-sha1-tests: New file.
82265
82266         * modules/hmac-sha1: New file.
82267
82268 2005-10-12  Simon Josefsson  <jas@extundo.com>
82269
82270         * modules/gc-sha1: New file.
82271
82272 2005-10-12  Simon Josefsson  <jas@extundo.com>
82273
82274         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82275
82276         * tests/test-gc-pbkdf2-sha1.c: New file.
82277
82278 2005-10-12  Simon Josefsson  <jas@extundo.com>
82279
82280         * modules/gc-md5, modules/gc-hmac-md5: New files.
82281
82282         * modules/gc (Files): Remove md5, memxor and hmac files.
82283
82284 2005-10-12  Simon Josefsson  <jas@extundo.com>
82285
82286         * m4/gc-pbkdf2-sha1.m4: New file.
82287
82288         * m4/gc-hmac-sha1.m4: New file.
82289
82290         * m4/gc-sha1: New file.
82291
82292         * m4/hmac-sha1.m4: New file.
82293
82294 2005-10-12  Simon Josefsson  <jas@extundo.com>
82295
82296         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82297
82298         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82299
82300 2005-10-12  Simon Josefsson  <jas@extundo.com>
82301
82302         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82303         suggested by Bruno Haible <bruno@clisp.org>.
82304
82305 2005-10-12  Simon Josefsson  <jas@extundo.com>
82306
82307         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82308
82309 2005-10-12  Simon Josefsson  <jas@extundo.com>
82310
82311         * lib/gc-pbkdf2-sha1.c: New file.
82312
82313         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82314
82315 2005-10-12  Simon Josefsson  <jas@extundo.com>
82316
82317         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82318
82319         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82320
82321 2005-10-12  Simon Josefsson  <jas@extundo.com>
82322
82323         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82324         GC_USE_HMAC_MD5, respectively.
82325
82326         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82327         (gc_md5): Fix typo.
82328
82329         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82330
82331         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82332
82333         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82334
82335 2005-10-12  Bruno Haible  <bruno@clisp.org>
82336
82337         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82338         Reported by Stepan Kasal <kasal@ucw.cz>.
82339
82340 2005-10-11  Simon Josefsson  <jas@extundo.com>
82341
82342         * tests/test-crc.c: New file.
82343
82344         * modules/crc, modules/crc-tests: New files.
82345
82346 2005-10-11  Simon Josefsson  <jas@extundo.com>
82347
82348         * m4/crc.m4: New file.
82349
82350 2005-10-11  Simon Josefsson  <jas@extundo.com>
82351
82352         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82353
82354         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82355
82356         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82357
82358 2005-10-11  Simon Josefsson  <jas@extundo.com>
82359
82360         * lib/crc.h, lib/crc.c: New files.
82361
82362         * lib/gc.h (gc_hash_buffer): Add doc.
82363
82364 2005-10-11  Bruno Haible  <bruno@clisp.org>
82365
82366         * modules/c-strcasestr: New file.
82367         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82368
82369 2005-10-11  Bruno Haible  <bruno@clisp.org>
82370
82371         * modules/c-strcase: New file.
82372         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82373
82374 2005-10-11  Bruno Haible  <bruno@clisp.org>
82375
82376         * lib/strcasecmp.c: Include limits.h.
82377         (strcasecmp): Avoid integer overflow on exotic platforms.
82378         * lib/strncasecmp.c: Include limits.h.
82379         (strncasecmp): Avoid integer overflow on exotic platforms.
82380         Reported by Paul Eggert.
82381
82382 2005-10-11  Bruno Haible  <bruno@clisp.org>
82383
82384         * lib/c-strcasestr.h: New file, from GNU gettext.
82385         * lib/c-strcasestr.c: New file, from GNU gettext.
82386
82387 2005-10-11  Bruno Haible  <bruno@clisp.org>
82388
82389         * lib/c-strcase.h: New file, from GNU gettext.
82390         * lib/c-strcasecmp.c: New file, from GNU gettext.
82391         * lib/c-strncasecmp.c: New file, from GNU gettext.
82392
82393 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82394
82395         * modules/mempcpy (License): GPL -> LGPL.
82396         * modules/strchrnul (License): Likewise.
82397         * modules/sysexits (License): Likewise.
82398
82399 2005-10-08  Simon Josefsson  <jas@extundo.com>
82400
82401         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82402
82403 2005-10-07  Simon Josefsson  <jas@extundo.com>
82404
82405         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82406
82407 2005-10-06  Simon Josefsson  <jas@extundo.com>
82408
82409         * tests/test-hmac-md5.c: New file.
82410
82411         * modules/hmac-md5-tests: New file.
82412
82413         * modules/hmac-md5: New file.
82414
82415 2005-10-06  Simon Josefsson  <jas@extundo.com>
82416
82417         * m4/hmac-md5.m4: New file.
82418
82419         * m4/memxor.m4: Require gl_C_RESTRICT.
82420
82421 2005-10-06  Simon Josefsson  <jas@extundo.com>
82422
82423         * lib/memxor.c (memxor): Avoid casts and warnings.
82424
82425 2005-10-06  Simon Josefsson  <jas@extundo.com>
82426
82427         * lib/hmac-md5.c: New file.
82428
82429         * lib/hmac.h: New file.
82430
82431 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82432
82433         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82434         promotes to int, not unsigned int, to catch the AIX 5.3
82435         compiler bug.
82436
82437 2005-10-05  Simon Josefsson  <jas@extundo.com>
82438
82439         * modules/memxor: New file.
82440
82441         * modules/iconv (Files): Move config.rpath to havelib, it is used
82442         there.
82443
82444         * modules/havelib (Files): Add config.rpath.
82445
82446 2005-10-05  Simon Josefsson  <jas@extundo.com>
82447
82448         * m4/memxor.m4: New file.
82449
82450 2005-10-05  Simon Josefsson  <jas@extundo.com>
82451
82452         * lib/memxor.c (memxor): Fix compiler error.
82453
82454         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82455         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82456
82457         * lib/memxor.h, lib/memxor.c: New files.
82458
82459         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82460         we assume all systems have it, suggested by Jim Meyering
82461         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82462         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82463         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82464         same reasons.
82465
82466 2005-10-05  Simon Josefsson  <jas@extundo.com>
82467
82468         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82469
82470 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82471
82472         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82473         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82474         needed, since the source code now assumes these .h files.
82475
82476 2005-10-05  Derek Price  <derek@ximbiot.com>
82477
82478         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82479
82480 2005-10-05  Bruno Haible  <bruno@clisp.org>
82481
82482         * modules/stdint (License): Change to LGPL.
82483
82484 2005-10-04  Simon Josefsson  <jas@extundo.com>
82485
82486         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82487         D. Baushke" <mdb@gnu.org>.
82488
82489 2005-10-04  Bruno Haible  <bruno@clisp.org>
82490
82491         * lib/verify.h (verify_true): Provide alternative definition for C++.
82492
82493 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82494
82495         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82496         (SSIZE_MAX): New macro, if not already defined.
82497         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82498         than 2 GiB.
82499
82500 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82501
82502         Sync from coreutils.
82503         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82504         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82505         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82506         ULLONG_MAX doesn't work with 2.7.2.1.
82507
82508 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82509
82510         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82511         From Ben Pfaff.
82512
82513         * modules/exclude (Depends-on): Depend on verify.
82514         * modules/strtoimax (Depends-on): Likewise.
82515         * modules/utimecmp (Depends-on): Likewise.
82516
82517 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82518
82519         * lib/exclude.c: Include verify.h.
82520         (verify): Remove.  All callers changed to use verify.h's version.
82521         * lib/strtoimax.c: Likewise.
82522         * lib/utimecmp.c: Likewis.e
82523
82524         Sync from coreutils.
82525         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82526         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82527         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82528         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82529         bother returning ENOSYS if settimeofday or stime fails; just let
82530         them return whatever errno they want to return.
82531         * lib/utimens.c: Include unistd.h, for dup2.
82532         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82533         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82534
82535 2005-10-02  Jim Meyering  <jim@meyering.net>
82536
82537         Sync from coreutils.
82538         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82539         from glibc-2.2.5 that fails for read-only files.
82540
82541 2005-10-02  Jim Meyering  <jim@meyering.net>
82542
82543         Sync from coreutils.
82544         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82545         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82546         `#if HAVE_CONFIG_H'.
82547         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82548         Remove AT_FDCWD test.
82549         Do not consume the fd unless successful.
82550         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82551         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82552         block, so that we don't even try to compile it if settimeofday is
82553         available.  This works around a compilation failure on OSF1 V5.1,
82554         due to stime requiring a `long int*' while tv_sec is `int'.
82555
82556 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82557
82558         Sync from coreutils.
82559         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82560         against `yes', rather than just testing for nonempty.
82561
82562 2005-10-01  Simon Josefsson  <jas@extundo.com>
82563
82564         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82565         and Darwin.
82566
82567         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82568         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82569         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82570         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82571         Check if struct addrinfo is declared.
82572
82573 2005-10-01  Simon Josefsson  <jas@extundo.com>
82574
82575         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82576         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82577         AI_* and EAI_* definitions.  Protect function declarations.
82578
82579 2005-10-01  Jim Meyering  <jim@meyering.net>
82580
82581         Sync from coreutils.
82582
82583         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82584         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82585         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82586         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82587         in the inet and nsl libraries.  Required on Solaris 5.7.
82588
82589 2005-10-01  Jim Meyering  <jim@meyering.net>
82590
82591         Sync from coreutils.
82592         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82593         in the inet and nsl libraries.  Required on Solaris 5.7.
82594
82595 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82596
82597         * lib/getdelim.c (getdelim): Remove unused variables.
82598
82599 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82600
82601         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82602         so that the code works even with ancient cpp.  Portability problem
82603         with GCC 2.7.2.1 reported by Thomas M.Ott.
82604
82605 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82606
82607         * modules/regex (Depends-on): Add strcase.
82608
82609         * modules/gethostname (Licence): Change from GPL to LGPL, since
82610         gethostname.c is a trivial implementation of a standard library
82611         function.
82612         * modules/poll (License): Change from GPL to LGPL, since it's
82613         derived from LGPL code.
82614
82615 2005-09-27  Jim Meyering  <jim@meyering.net>
82616
82617         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82618         HAVE_CONFIG_H.
82619
82620         * lib/intprops.h (signed_type_or_expr__): Define.
82621         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82622         for unsigned types.
82623
82624 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82625
82626         * lib/verify.h (verify_expr): Remove, replacing with:
82627         (verify_true): New macro that returns true instead of void.
82628         (verify_type__): Remove.
82629         (verify): Use verify_true rather than verify_type__.
82630
82631 2005-09-26  Bruno Haible  <bruno@clisp.org>
82632
82633         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82634         is necessary.
82635         (lib_SOURCES): Remove mbchar.c.
82636         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82637         (Files): Add m4/mbrtowc.m4.
82638         * modules/mbiter: Likewise.
82639         * modules/mbuiter: Likewise.
82640
82641 2005-09-26  Bruno Haible  <bruno@clisp.org>
82642
82643         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82644         compile mbchar.c if they are not both present.
82645         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82646         * m4/mbiter.m4 (gl_MBITER): Likewise.
82647         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82648         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82649         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82650
82651 2005-09-25  Jim Meyering  <jim@meyering.net>
82652
82653         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82654         also uses socklen_t.
82655
82656 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82657
82658         * lib/utimens.c (ENOSYS): Define if not already defined.
82659         (futimens): Support having a null PATH if the file descriptor
82660         is nonnegative.
82661
82662         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82663         Remove.
82664         (__attribute): Define to empty unless GCC 3.1 or later.
82665         This works around a core dump on OpenBSD 3.4, which has GCC
82666         2.95.3, which dumps core when given __attribute__(()).  It also
82667         simplifies other tests, since we really don't want to bother with
82668         worrying about which ancient version of GCC supported what.
82669         Original problem reported by Yoann Vandoorselaere, with part of
82670         the fix suggested by Derek Price.
82671
82672 2005-09-24  Jim Meyering  <jim@meyering.net>
82673
82674         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82675         so we can once again use a positive bitfield width of 1 -- now we
82676         don't have to explain why we were using a bitfield width of 2.
82677
82678 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82679
82680         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82681         and similarly for the other external symbols.  Problem reported
82682         by James Gallager.
82683
82684         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82685         bug reported by Jim Meyering.
82686
82687         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82688         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82689         not needed, since socklen is a prerequisite module.
82690
82691 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82692
82693         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82694         Problem reported by Eric Blake.
82695         (getaddrinfo): Initialize se so that it's not garbage.
82696         Redo internal storage allocation so that it doesn't make unportable
82697         assumptions about alignment.
82698         Fix a memory leak.
82699
82700         * lib/utimens.c (futimens): Use futimesat if available.
82701         Prefer it to futimes since it doesn't have the futimes bug.
82702
82703         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82704         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82705         Instead, declare a function that returns a pointer to an array,
82706         and use verify_type__ to declare the size of the array.
82707         Problem and germ of a solution reported by Bruno Haible.
82708         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82709         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82710
82711 2005-09-23  Jim Meyering  <jim@meyering.net>
82712
82713         Sync from coreutils.
82714         Correct build failure (socklen_t not defined) on at least
82715         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82716         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82717
82718 2005-09-23  Jim Meyering  <jim@meyering.net>
82719
82720         * modules/getaddrinfo (Depends-on): Add socklen.
82721
82722 2005-09-23  Bruno Haible  <bruno@clisp.org>
82723
82724         * tests/test-verify.c: New file.
82725
82726 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82727
82728         Sync from coreutils.
82729
82730         * modules/argmatch (Depends-on): Add verify.
82731         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82732         unistd-safer.
82733         * modules/save-cwd (Depends-on): Likewise.
82734
82735         * modules/openat (Files): Add lib/openat-die.c.
82736         (Depends-on): Remove error, exitfail.
82737         Add dirname.
82738
82739         * modules/verify: New file.
82740         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82741         with "verify" module.
82742
82743 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         Sync from coreutils.
82746
82747         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82748         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82749         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82750         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82751         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82752         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82753         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82754         Don't bother checking for string.h, stdlib.h, unistd.h.
82755         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82756         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82757         module's job.
82758         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82759         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82760
82761         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82762         (gl_GETDATE): Use it.
82763
82764         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82765
82766 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82767
82768         Sync from coreutils.
82769
82770         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82771         stat-time.h.
82772         * lib/argmatch.h: Include verify.h
82773         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82774         (ARGMATCH_ASSERT): Remove; unused.
82775         * lib/canonicalize.c: Assume STDC_HEADERS.
82776         * lib/exclude.c: Include "strcase.h".
82777         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82778         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82779         and stdio-safer.h.
82780         (getusershell): Call fopen, not fopen_safer.
82781         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82782         Do not include unistd-safer.h.
82783         (save_cwd): Don't call fd_safer; no longer needed
82784         now that we include fcntl--.h.
82785
82786         * lib/getdate.y (relative_time): New type.
82787         (RELATIVE_TIME_0): New constant.
82788         (parser_control): Use relative_time instead of doing it ourselves.
82789         (%union): Add new relative_time rel member.
82790         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82791         Now typeless.
82792         (relunit, relunit_snumber): Now of type rel.
82793         (zone, rel, relunit, get_date): Adjust to above changes.
82794
82795         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82796         Do not include unistd-safer.h.
82797         (getloadavg): Don't call fd_safer; no longer needed
82798         now that we include fcntl--.h.
82799
82800         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82801         (make_dir_parents): Treat ENOSYS like EEXIST.
82802
82803         Improve quality of diagnostics on restore_cwd failure.
82804         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82805         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82806         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82807         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82808         each time through the loop.  Do not diagnose restore_cwd failure;
82809         that is the caller's job (and perhaps the caller does not care).
82810
82811         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82812         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82813         If the file already exists but is not a directory, don't bother
82814         to try to make its parents.
82815         Close potential file descriptor leak if we can't chdir("/") (!).
82816         Don't always return true if chdir($PWD) fails; return true only
82817         if the requested action was done successfully (except for the
82818         chdir($PWD)).
82819         Don't log final directory unless we actually made it.
82820         Refactor to avoid duplicate code to fix up permissions.
82821         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82822
82823         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82824         to make it a bit faster and (I hope) clearer.
82825         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82826         Fix bug in formats like %2N.
82827
82828         * lib/verify.h: New file.
82829
82830 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82831
82832         Sync from coreutils.
82833         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
82834
82835 2005-09-22  Jim Meyering  <jim@meyering.net>
82836
82837         Sync from coreutils.
82838
82839         * m4/lstat.m4 (gl_FUNC_LSTAT):
82840         Use AC_LIBSOURCES to require lstat.c and lstat.h.
82841         Remove obsolete comment.
82842         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
82843         * m4/xstrtod.m4: Likewise.
82844
82845         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
82846
82847 2005-09-22  Jim Meyering  <jim@meyering.net>
82848
82849         Sync from coreutils.
82850
82851         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
82852
82853         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
82854         the .tm_year member, since otherwise gcc-4.0 would now warn about
82855         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
82856
82857         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
82858         order to avoid an unsuppressible warning from gcc on 64-bit systems.
82859
82860         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
82861         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
82862         when run in a time zone for which daylight savings time is in effect
82863         for the starting date.
82864
82865         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
82866         stop us from restricting permissions of just-created absolute-named
82867         directories.
82868         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
82869         to restore initial working directory.
82870         * lib/mkdir-p.c (make_dir_parents): New parameter:
82871         different_working_dir, to tell caller if/when we change the working
82872         directory and are unable to return to the initial one.
82873         * lib/mkdir-p.h (make_dir_parents): Update prototype.
82874         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
82875         `return false'.  This fixes a bug introduced on 2004-07-30.
82876
82877         * lib/openat.c (fdopendir): Be sure to close the supplied
82878         file descriptor before returning.  This makes our replacement
82879         implementation a little closer to Solaris's, where fdopendir
82880         ties the file descriptor to the returned DIR* pointer.
82881         * lib/openat.c (unlinkat): New function.
82882         * lib/openat.h (unlinkat): Add prototype.
82883         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
82884         (openat_restore_fail): Rename from openat_restore_die.
82885         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
82886
82887         Provide an alternative to exiting immediately upon save_cwd or
82888         restore_cwd failure.  Now, an application can arrange e.g.,
82889         to perform a longjump in that case.
82890         * lib/openat.c: Include dirname.h.
82891         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
82892         (rpl_openat, fdopendir, fstatat): Call openat_save_die
82893         and openat_restore_die rather than calling error directly.
82894         Don't include "error.h" or "exitfail.h"; they're no longer needed.
82895
82896         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
82897         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
82898         define.
82899
82900         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
82901         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
82902                             int utc, int nanoseconds);
82903         Background:
82904         date should not have to allocate a megabyte of virtual memory to
82905         handle a format argument like +%1048575T.  When implemented with
82906         strftime, it must allocate such a buffer, use strftime to fill it
82907         in, print it, then free it.
82908         With fprintftime, it simply prints everything and exits.
82909         With no need for memory allocation, that's one fewer way to fail.
82910         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
82911         optional field width, not before, so we accept %9:z, not %:9z.
82912         (my_strftime): Be sure to use L_('x') for literals.
82913
82914         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
82915         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
82916         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
82917         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
82918         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
82919         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
82920         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
82921         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
82922         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
82923         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
82924         * lib/xgethostname.c, lib/xreadlink.c:
82925         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
82926
82927         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
82928         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
82929         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
82930         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82931         and don't include <sys/file.h>).
82932
82933 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
82934
82935         Sync from coreutils.
82936
82937         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
82938         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
82939         [!LDAV_DONE]: Avoid unused variable warning.
82940
82941 2005-09-21  Bruno Haible  <bruno@clisp.org>
82942
82943         * lib/unicodeio.h (unicode_to_mb): New declaration.
82944
82945 2005-09-20  Derek Price  <derek@ximbiot.com>
82946
82947         * lib/getaddrinfo.c: Don't include <netdb.h> included from
82948         getaddrinfo.h.
82949
82950 2005-09-20  Bruno Haible  <bruno@clisp.org>
82951
82952         * gnulib-tool: Remove trailing slashes from the values specified for
82953         --source-base, --m4-base, --tests-base, --aux-dir.
82954         Suggested by Simon Josefsson <jas@extundo.com>.
82955
82956 2005-09-20  Bruno Haible  <bruno@clisp.org>
82957
82958         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
82959         func_modules_to_filelist, func_import, func_create_testdir): Make all
82960         sorting results locale-independent, so that gnulib-cache.m4 doesn't
82961         change when gnulib-tool is invoked in a different locale.
82962
82963 2005-09-19  Simon Josefsson  <jas@extundo.com>
82964
82965         * m4/socklen.m4: Fix typo.
82966
82967 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82968
82969         Use a consistent style for including <config.h>.
82970         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
82971         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
82972         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
82973         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
82974         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
82975         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
82976         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82977         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82978         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82979         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82980         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82981         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82982         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82983         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82984         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82985         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82986         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82987         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82988         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82989         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82990         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82991         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82992         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82993         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82994         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82995         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82996         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82997         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82998         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82999         lib/xstrtoumax.c, lib/yesno.c:
83000         Standardize inclusion of config.h.
83001         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83002         lib/inttostr.h:  Removed inclusion of config.h from header files.
83003         * lib/inttostr.c:  Adjusted in-tree users.
83004         * lib/timespec.h: Remove superfluous warning to include config.h.
83005         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83006         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83007         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83008         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83009         config.h with HAVE_CONFIG_H.
83010
83011 2005-09-19  Jim Meyering  <jim@meyering.net>
83012
83013         * modules/pathmax (License): Change to LGPL.
83014
83015 2005-09-19  Derek Price  <derek@ximbiot.com>
83016
83017         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83018
83019 2005-09-19  Bruno Haible  <bruno@clisp.org>
83020
83021         * gnulib-tool (import): Provide default for --tests-base.
83022
83023 2005-09-19  Bruno Haible  <bruno@clisp.org>
83024
83025         * doc/quote.texi: New file, extracted from gnulib.texi.
83026         * doc/ctime.texi: New file, extracted from gnulib.texi.
83027         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83028         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83029         * doc/gnulib.texi: Include them.
83030
83031 2005-09-18  Bruno Haible  <bruno@clisp.org>
83032
83033         Portability fix.
83034         * gnulib-tool (func_readlink): New function.
83035         (func_ln_if_changed): Use it.
83036
83037 2005-09-18  Bruno Haible  <bruno@clisp.org>
83038
83039         * gnulib-tool: Support --with-tests also with --import.
83040         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83041         (func_import): Use variables $testsbase and $inctests. Emit a
83042         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83043         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83044         SUBDIRS += $testsdir.
83045         (func_create_testdir): Update.
83046
83047 2005-09-18  Bruno Haible  <bruno@clisp.org>
83048
83049         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83050         instead of $dry_run.
83051         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83052         (func_ln_if_changed): Don't handle dry-run here.
83053         (func_import): In dry-run mode, detect more precisely which actions
83054         would be performed, and don't use "...ing" verbs.
83055
83056 2005-09-18  Bruno Haible  <bruno@clisp.org>
83057
83058         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83059         (func_import): Use join on two temporary files instead of three nested
83060         loops, in order to determine which files are new or old.
83061
83062 2005-09-18  Bruno Haible  <bruno@clisp.org>
83063
83064         * gnulib-tool (func_import): Comment out code that spits out the
83065         new files with --dry-run.
83066
83067 2005-09-18  Bruno Haible  <bruno@clisp.org>
83068
83069         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83070
83071 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * lib/stat-time.h: New file.
83074         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83075         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83076         in a different way.
83077         (timespec_cmp): New function.
83078         * lib/utimecmp.c: Include stat-time.h.
83079         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83080         members exist, not on the obsolescent ST_MTIM_NSEC.
83081         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83082
83083 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83084
83085         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83086
83087 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83088
83089         * MODULES.html.sh (File system functions): Add stat-time.
83090         * modules/stat-time: New file.
83091         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83092         is now done in a different way, by the stat-time module.
83093         * modules/utimecmp (Depends-on): Add stat-time.
83094
83095 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83096
83097         * m4/st_mtim.m4: Remove.  Superseded by...
83098         * m4/stat-time.m4: New file.
83099         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83100         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83101
83102 2005-09-15  Derek Price  <derek@ximbiot.com>
83103
83104         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83105
83106 2005-09-15  Derek Price  <derek@ximbiot.com>
83107
83108         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83109         * lib/regex_internal.c: Ditto, using this...
83110         (__GNUC_PREREQ): ...new macro.
83111         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83112         using...
83113         (__GNUC_PREREQ): ...this new macro.
83114
83115         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83116
83117 2005-09-15  Derek Price  <derek@ximbiot.com>
83118             Paul Eggert  <eggert@cs.ucla.edu>
83119
83120         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83121         changes, consolidating in...
83122         * lib/regex_internal.h: ...this file.
83123
83124 2005-09-13  Jim Meyering  <jim@meyering.net>
83125
83126         * lib/canon-host.c: Filter through gnu indent and reword comments
83127         slightly.
83128         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83129
83130 2005-09-13  Derek Price  <derek@ximbiot.com>
83131
83132         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83133         failure.
83134         Reported by Jim Meyering  <jim@meyering.net>.
83135
83136 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83137
83138         * lib/base64.c: Typo.
83139         (base64_encode): Put b64str in initialized data section.
83140
83141 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83142
83143         Merge glibc and coreutils changes into gnulib, plus a few
83144         extra fixes.
83145         * lib/md5.c: Use #error rather than a string.
83146         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83147         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83148         (__attribute__): Define to empty for non recent-GCC.
83149         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83150         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83151         Renamed from their non-__ counterparts, with new macros replacing
83152         them if not _LIBC.  Add __THROW attribute.
83153         (rol): Remove.
83154         (struct md5_ctx): Align buffer if using GCC.
83155         * lib/sha1.h (struct sha1_ctx): Likewise.
83156         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83157         The old name was backwards.
83158         (NOTSWAP): Remove; not used.
83159         (rol): New macro, moved here from md5.h.
83160         (sha1_process_block): Remove a FIXME that doesn't make sense.
83161
83162 2005-09-12  Derek Price  <derek@ximbiot.com>
83163
83164         Return usable errors from canon-host.
83165         * lib/canon-host.h: New file.
83166         * lib/canon-host.c (canon_host): Wrap...
83167         (canon_host_r): ...this new function, which now relies exclusively on
83168         getaddrinfo.
83169         (ch_strerror): New function.
83170         (last_cherror): New global.
83171         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83172         interface.
83173         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83174         void *.
83175         (freeaddrinfo): Free ai->ai_canonname when set.
83176
83177 2005-09-12  Derek Price  <derek@ximbiot.com>
83178
83179         Make canon-host require getaddrinfo.
83180         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83181         AC_LIBSOURCE canon-host.h.  Call...
83182         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83183         gl_GETADDRINFO.
83184         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83185
83186 2005-09-12  Derek Price  <derek@ximbiot.com>
83187
83188         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83189         LGPL.
83190         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83191
83192 2005-09-12  Derek Price  <derek@ximbiot.com>
83193
83194         * lib/gai_strerror.c: Include config.h when available.  Include
83195         getaddrinfo.h before other headers to test interface.
83196         Reported by Larry Jones <lawrence.jones@ugs.com>.
83197
83198 2005-09-12  Derek Price  <derek@ximbiot.com>
83199             Paul Eggert  <eggert@cs.ucla.edu>
83200
83201         * modules/glob (Files): Add glob-libc.h.
83202
83203 2005-09-12  Derek Price  <derek@ximbiot.com>
83204             Paul Eggert  <eggert@cs.ucla.edu>
83205
83206         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83207         glob_.h, glob-libc.h.
83208         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83209
83210 2005-09-12  Derek Price  <derek@ximbiot.com>
83211             Paul Eggert  <eggert@cs.ucla.edu>
83212
83213         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83214         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83215         protecting things that should be done only in gnulib contexts.
83216         * lib/glob_.h: New file, containing only the glob things needed for
83217         gnulib.
83218         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83219         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83220         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83221         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83222         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83223         and to respect the namespace rules better.
83224
83225 2005-09-08  Simon Josefsson  <jas@extundo.com>
83226
83227         * modules/socklen: New file.
83228
83229 2005-09-08  Simon Josefsson  <jas@extundo.com>
83230
83231         * m4/socklen.m4: New file.
83232
83233 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83234
83235         * modules/utimens (Files): Add m4/utimbuf.m4, since
83236         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83237         Reported by Sergey Poznyakoff.
83238
83239 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83240
83241         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83242         definitions, since that's the preferred style in glibc.
83243         Fix a minor spacing issue, and update copyright notice to match
83244         glibc's.
83245
83246 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83247
83248         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83249
83250 2005-09-06  Simon Josefsson  <jas@extundo.com>
83251
83252         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83253         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83254
83255 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83256
83257         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83258         warning.
83259
83260 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83261
83262         * config/srclist.txt: Add glibc bug 1302.
83263
83264 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83265
83266         Change bitset word type from unsigned int to unsigned long int,
83267         as this has better performance on typical 64-bit hosts.
83268         Port bitset code to hosts with unusual word sizes.
83269         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83270         (build_collating_symbol):
83271         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83272         argument is a bitset.  This is merely a style issue, but it makes
83273         it clearer that an entire array is expected.
83274         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83275         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83276         Port to the case where bitset_word is not the same as unsigned int.
83277         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83278         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83279         Likewise.
83280         * lib/regexec.c (check_dst_limits_calc_pos_1,
83281         check_subexp_matching_top):
83282         (build_trtable, group_nodes_into_DFAstates):
83283         Likewise.
83284         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83285         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83286         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83287         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83288         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83289         * lib/regcomp.c (optimize_subexps, lower_subexp):
83290         Work even if bitset_word has holes in its bitwise representation.
83291         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83292         * lib/regexec.c (check_dst_limits_calc_pos_1,
83293         check_subexp_matching_top):
83294         Likewise.
83295         * lib/regex_internal.c (re_string_reconstruct):
83296         Don't assume UCHAR_MAX == 255.
83297         * lib/regex_internal.h (bitset_set_all): Likewise.
83298         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83299         All uses changed.
83300         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83301         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83302         All uses changed.
83303         (BITSET_WORD_MAX): New macro.
83304         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83305         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83306         (bitset_empty, bitset_copy):
83307         Prefer sizeof (bitset) to multiplying it out ourselves.
83308         (bitset_not_merge): Remove; unused.
83309         (bitset_contain): Return bool, not unsigned int with one bit on.
83310         All callers changed.
83311         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83312         alignment than re_node_set; do this by defining a new internal
83313         type struct dests_alloc and using it to allocate memory.
83314
83315 2005-09-05  Bruno Haible  <bruno@clisp.org>
83316
83317         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83318         links.
83319
83320 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83321
83322         * modules/size_max (Makefile.am): Add size_max.h
83323
83324 2005-09-04  Derek Price  <derek@ximbiot.com>
83325
83326         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83327
83328 2005-09-03  Simon Josefsson  <jas@extundo.com>
83329
83330         * gnulib-tool: Fix typo.
83331
83332 2005-09-03  Simon Josefsson  <jas@extundo.com>
83333
83334         * config/srclist.txt: Add glibc bug 1293.
83335
83336 2005-09-03  Derek Price  <derek@ximbiot.com>
83337
83338         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83339         From Larry Jones <lawrence.jones@ugs.com>.
83340
83341 2005-09-02  Simon Josefsson  <jas@extundo.com>
83342
83343         * modules/socklen: New file.
83344
83345 2005-09-02  Simon Josefsson  <jas@extundo.com>
83346
83347         * modules/havelib: New module.
83348
83349         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83350         Use havelib.
83351
83352 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83353
83354         Check for arithmetic overflow when calculating sizes, to prevent
83355         some buffer-overflow issues.  These patches are conservative, in the
83356         sense that when I couldn't determine whether an overflow was possible,
83357         I inserted a run-time check.
83358         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83359         macros.
83360         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83361         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83362         (re_xnrealloc, re_x2nrealloc): New inline functions.
83363         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83364         parse_bracket_exp):
83365         (build_equiv_class, build_charclass): Check for arithmetic overflow
83366         in size expression calculations.
83367         * lib/regex_internal.c (re_string_realloc_buffers):
83368         (build_wcs_upper_buffer, re_node_set_add_intersect):
83369         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83370         (re_dfa_add_node, register_state): Likewise.
83371         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83372         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83373         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83374         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83375
83376 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83379         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83380
83381 2005-09-02  Bruno Haible  <bruno@clisp.org>
83382
83383         Support for lib vs. lib64 distinction on biarch platforms.
83384         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83385         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83386         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83387
83388 2005-09-02  Bruno Haible  <bruno@clisp.org>
83389
83390         * gnulib-tool (import): In the other first-use case, provide defaults
83391         as well.
83392
83393 2005-09-02  Bruno Haible  <bruno@clisp.org>
83394
83395         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83396         patches not yet found in the latest gettext release.
83397
83398 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83399
83400         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83401         to avoid a collision with bits/local_lim.h in glibc.
83402         All uses changed.  Problem reported by Dmitry V. Levin in
83403         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83404
83405         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83406         bugs in int versus size_t comparisons.
83407         (re_string_context_at): Fix bug where the code assumed that
83408         Idx is signed.
83409
83410         Use bool where appropriate.
83411         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83412         All callers changed.
83413         (calc_eclosure_iter): Likewise, for ROOT arg.
83414         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83415         (build_charclass_op): Likewise, for NON_MATCH arg.
83416         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83417         (re_string_construct_common): Likewise, for ICASE arg.
83418         * lib/regexec.c (re_search_2_stub, re_search_stub):
83419         Likewise, for RET_LEN arg.
83420         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83421         (set_regs): Likewise, for FL_BACKTRACK arg.
83422         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83423         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83424         (calc_eclosure_iter, parse_bracket_exp):
83425         Use bool for internal variables that are booleans.
83426         * lib/regexec.c (re_search_internal, check_matching,
83427         proceed_next_node):
83428         (set_regs, build_sifted_states, sift_states_bkref):
83429         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83430         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83431         (find_collation_sequence_value):
83432         Likewise.
83433         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83434         (re_node_set_compare):
83435         Return bool, not int. All callers changed.
83436         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83437         (build_trtable, check_node_accept): Likewise.
83438         * lib/regex_internal.h: Include stdbool.h.
83439
83440         Fix bugs uncovered when converting to bool.
83441         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83442         failure instead of charging ahead blindly.
83443         * lib/regex_internal.c (register_state): Likewise.
83444         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83445         for freeing internal storage.
83446         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83447         bitset pieces used as boolean, to avoid undefined behavior
83448         on hosts that do int overflow checking.
83449
83450 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83451
83452         * config/srclist.txt: Add glibc bugs 1285-1287.
83453
83454 2005-09-01  Jim Meyering  <jim@meyering.net>
83455
83456         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83457         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83458         Require gl_STAT_MACROS, too.
83459
83460 2005-09-01  Bruno Haible  <bruno@clisp.org>
83461
83462         * gnulib-tool (import): In the first-use case, provide defaults.
83463
83464 2005-09-01  Bruno Haible  <bruno@clisp.org>
83465
83466         * gnulib-tool (func_import): Remove the .tmp files.
83467
83468 2005-09-01  Bruno Haible  <bruno@clisp.org>
83469
83470         * gnulib-tool (func_import): Fix handling of symbolic links.
83471
83472 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83473
83474         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83475         old glibc regex code mishandles strings longer than 2**31 bytes.
83476         This patch fixes this when the regex code is used in gnulib
83477         (i.e., outside glibc).
83478
83479         This patch should not affect the use of the regex code inside
83480         glibc.  No doubt this problem also needs to be handled for glibc
83481         as well, but the result will be an incompatible change to the
83482         glibc ABI, and the old ABI will have to be supported too.  That
83483         can be the the subject for another patch.
83484
83485         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83486         governing whether the rest of this patch is active.  By default,
83487         the macro is disabled and the patch has no effect.
83488         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83489         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83490         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83491         (re_match_2, re_set_registers): Use the new types.
83492         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83493         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83494         New macros.
83495         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83496         (re_string_context_at, bin_tree_t, re_dfastate_t):
83497         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83498         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83499         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83500         (re_string_char_size_at, re_string_wchar_at):
83501         (re_string_elem_size_at):
83502         Use the new types and macros to port to 64-bit hosts.
83503         Use unsigned types for internal values, so that the code
83504         mostly works even for arrays larger than SSIZE_MAX.
83505         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83506         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83507         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83508         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83509         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83510         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83511         (calc_inveclosure, parse_dup_op, build_range_exp):
83512         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83513         (fetch_number, create_token_tree, mark_opt_subexp):
83514         Likewise.
83515         * lib/regex_internal.c (re_string_construct_common,
83516         create_ci_newstate):
83517         (create_cd_newstate, re_string_allocate, re_string_construct):
83518         (re_string_realloc_buffers, build_wcs_upper_buffer):
83519         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83520         (re_string_reconstruct, re_string_peek_byte_case):
83521         (re_string_fetch_byte_case, re_string_context_at):
83522         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83523         (re_node_set_init_copy, re_node_set_add_intersect):
83524         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83525         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83526         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83527         (re_acquire_state, re_acquire_state_context, register_state):
83528         Likewise.
83529         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83530         search_cur_bkref_entry):
83531         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83532         (re_search_internal, re_search_2_stub, re_search_stub)
83533         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83534         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83535         (update_cur_sifted_state, check_dst_limits):
83536         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83537         (check_subexp_limits, sift_states_bkref, merge_state_array):
83538         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83539         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83540         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83541         (expand_bkref_cache, check_node_accept_bytes):
83542         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83543         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83544         (acquire_init_state_context, check_halt_node_context):
83545         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83546         (sift_states_backward, clean_state_log_if_needed):
83547         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83548         (find_recover_state, transit_state_sb, transit_state_mb):
83549         (transit_state_bkref, build_trtable, match_ctx_clean):
83550         Likewise.
83551         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83552         to work around an assumption that REG_MISSING is negative.
83553
83554         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83555         (seek_collating_symbol_entry) [defined _LIBC]:
83556         (lookup_collation_sequence_value) [defined _LIBC]:
83557         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83558         Use prototypes rather than old-style function definitions.
83559         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83560         (transit_state_sb) [0]:
83561         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83562
83563         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83564         rm_eo.
83565
83566         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83567         (optimize_subexps, lower_subexp):
83568         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83569         since the signed shift might overflow.  Use 1u<<31 instead.
83570         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83571         Likewise.
83572         * lib/regexec.c (check_dst_limits_calc_pos_1,
83573         check_subexp_matching_top): Likewise.
83574
83575         * lib/regcomp.c (optimize_subexps, lower_subexp):
83576         Use CHAR_BIT rather than 8, for clarity.
83577         * lib/regexec.c (check_dst_limits_calc_pos_1):
83578         (check_subexp_matching_top): Likewise.
83579         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83580         have to worry about portability issues when shifting it left.
83581         Remove no-longer-needed test for table_size > 0.
83582         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83583         in a word, as the resulting behavior is undefined.
83584         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83585         in one case, a <= should have been an <, and in another case the
83586         whole test was missing.
83587         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83588         the standard name CHAR_BIT.
83589         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83590         this is not true on one's complement and signed-magnitude hosts.
83591
83592         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83593         next_last_offset.
83594         (struct re_dfa_t): Remove unused member states_alloc.
83595         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83596
83597 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83598
83599         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83600         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83601         and large-file glibc and in 32-bit large-file Solaris.
83602
83603 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83604
83605         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83606         lengths fit in regoff_t; this isn't true if regoff_t is the same
83607         width as size_t.
83608         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83609         (= START + RANGE) instead of RANGE.  This avoids overflow
83610         problems when regoff_t is the same width as size_t.
83611         All callers changed.
83612         (re_search_2_stub): Check for overflow when adding the
83613         sizes of the two strings.
83614         (re_search_stub): Check for overflow when adding START
83615         to RANGE; if it occurs, substitute the extreme value.
83616
83617 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83618
83619         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83620
83621 2005-08-31  Jim Meyering  <jim@meyering.net>
83622
83623         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83624         a pointer-to-const.
83625         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83626         (register_state): Likewise.
83627         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83628         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83629         (group_nodes_into_DFAstates): Likewise.
83630
83631 2005-08-31  Jim Meyering  <jim@meyering.net>
83632
83633         * check-module: Add a FIXME comment.
83634
83635 2005-08-31  Eric Blake  <ebb9@byu.net>
83636
83637         * modules/unistd-safer (Files): Add unistd--.h.
83638         * modules/stdio-safer (Files): Add stdio--.h.
83639
83640 2005-08-31  Derek Price  <derek@ximbiot.com>
83641
83642         * lib/getdelim.c (getdelim): Return EOF on EOF.
83643         Reported by Larry Jones <lawrence.jones@ugs.com>.
83644
83645 2005-08-31  Bruno Haible  <bruno@clisp.org>
83646
83647         Avoid unnecessary diffs in the generated lib/Makefile.am.
83648         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83649         the generated files.
83650         (func_import): Don't set cmd.
83651
83652 2005-08-31  Bruno Haible  <bruno@clisp.org>
83653
83654         * lib/strstr.c: Include <stddef.h>, for NULL.
83655         * lib/strcasestr.c: Likewise.
83656         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83657
83658 2005-08-31  Bruno Haible  <bruno@clisp.org>
83659
83660         * gnulib-tool: New option --macro-prefix.
83661         (func_import): Use macro_prefix.
83662         (import): Handle option --macro-prefix.
83663
83664 2005-08-31  Bruno Haible  <bruno@clisp.org>
83665
83666         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83667         Also use new variables cached_lgpl, cached_libtool.
83668
83669 2005-08-31  Bruno Haible  <bruno@clisp.org>
83670
83671         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83672         always instantiating them.
83673
83674 2005-08-31  Bruno Haible  <bruno@clisp.org>
83675
83676         * gnulib-tool (func_import): Read the previous cached settings
83677         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83678         earlier added by gnulib but are now dropped. Warn when a gnulib file
83679         overwrites a non-gnulib file.
83680
83681 2005-08-31  Bruno Haible  <bruno@clisp.org>
83682
83683         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83684         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83685         projects that don't keep autogenerated files in CVS. Put into
83686         actioncmd only the specified modules, not the transitive closure.
83687
83688 2005-08-31  Bruno Haible  <bruno@clisp.org>
83689
83690         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83691         Create directories that shall be filled.
83692         (import): Don't look for gl_* macros in configure.ac. Recurse across
83693         all directories containing a gnulib-cache.m4 files, if meaningful.
83694
83695 2005-08-31  Bruno Haible  <bruno@clisp.org>
83696
83697         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83698         (import): Set seen_libtool when we see gl_LIBTOOL.
83699
83700 2005-08-31  Bruno Haible  <bruno@clisp.org>
83701
83702         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83703         declaration macro definitions from generated gnulib.m4.
83704
83705 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83706
83707         * lib/iconvme.h: Add prototype for iconv_alloc.
83708
83709 2005-08-29  Simon Josefsson  <jas@extundo.com>
83710
83711         * lib/iconvme.c: Fix errno.
83712
83713 2005-08-29  Bruno Haible  <bruno@clisp.org>
83714
83715         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83716         that it works when the directory contains spaces.
83717
83718 2005-08-29  Bruno Haible  <bruno@clisp.org>
83719
83720         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83721
83722 2005-08-29  Bruno Haible  <bruno@clisp.org>
83723
83724         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83725         Emit more advice.
83726
83727 2005-08-29  Bruno Haible  <bruno@clisp.org>
83728         and Stepan Kasal  <kasal@ucw.cz>
83729
83730         * check-module: If more parameters are given, check each of them
83731         separately; add more exceptions, as noted by Jim Meyering.
83732         (check_module): New procedure.
83733         (%exempt_header): Now contains all exceptions.
83734
83735 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83736
83737         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83738
83739 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83740
83741         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83742
83743 2005-08-28  Bruno Haible  <bruno@clisp.org>
83744
83745         * m4/gnulib-tool.m4: New file.
83746
83747 2005-08-27  Jim Meyering  <jim@meyering.net>
83748
83749         * modules/unistd-safer (Files): Add pipe-safer.c.
83750         * modules/fcntl-safer (Files): Add creat-safer.c.
83751
83752 2005-08-27  Jim Meyering  <jim@meyering.net>
83753
83754         * m4/stdlib-safer.m4: New file.  From coreutils.
83755         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83756         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83757         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83758         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83759         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83760
83761 2005-08-27  Jim Meyering  <jim@meyering.net>
83762
83763         * lib/fopen-safer.c: Merge minor changes from coreutils.
83764         * lib/dup-safer.c: Likewise.
83765         * lib/fd-safer.c: Likewise.
83766
83767         Merge from coreutils.
83768         * lib/stdio--.h: New file.
83769         * lib/stdlib--.h: New file.
83770         * lib/mkstemp-safer.c: New file.
83771
83772         GNU tar needs these.
83773         * lib/pipe-safer.c: New file.
83774         * lib/creat-safer.c: New file.
83775         * lib/fcntl--.h (creat): Define to creat_safer.
83776         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83777         * lib/unistd--.h (pipe): Define to pipe_safer.
83778         * lib/unistd-safer.h: Declare pipe_safer.
83779
83780 2005-08-26  Simon Josefsson  <jas@extundo.com>
83781
83782         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83783         Haible <bruno@clisp.org>.
83784
83785 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         * lib/regex_internal.h: Remove all references to
83788         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83789         or better.
83790         (bitset_not, bitset_merge, bitset_not_merge):
83791         (bitset_mask, re_string_allocate, re_string_construct):
83792         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83793         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83794         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83795         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83796         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83797         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83798         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83799         (re_acquire_state_context):
83800         Remove unnecessary forward decls.
83801         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83802         Put __attribute at function definition,
83803         now that the function decl has been removed.
83804         * lib/regex_internal.c (re_string_peek_byte_case):
83805         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83806         Likewise.
83807
83808 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83809
83810         * m4/regex.m4: Add AC_PREREQ(2.50).
83811         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83812
83813 2005-08-25  Simon Josefsson  <jas@extundo.com>
83814
83815         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83816         __fsetlocking.
83817
83818 2005-08-25  Simon Josefsson  <jas@extundo.com>
83819
83820         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83821         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83822         GLIBC specific code.
83823
83824 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         Make regex safe for g++.  This fixes one real bug (an "err"
83827         that should have been "*err").  g++ problem reported by
83828         Sam Steingold.
83829         * lib/regex_internal.h (re_calloc): New macro, consistent with
83830         re_malloc etc.  All callers of calloc changed to use re_calloc.
83831         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
83832         not int.  All callers changed.
83833         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
83834         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
83835         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
83836         (find_recover_state): Change "err" to "*err"; this fixes what
83837         appears to be a real bug.
83838         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
83839         versus int.
83840
83841 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83842
83843         * modules/regex (Depends-on): Add malloc, since the code
83844         assumes that !malloc(0) means failure.
83845
83846 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83847
83848         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
83849
83850         alloca modernization/simplification for regex.
83851         * lib/regex.c: Remove portability cruft for alloca.  This no longer
83852         needs to be at the start of the file, and can be moved into
83853         regex_internal.h and simplified.
83854         * lib/regex_internal.h: Include <alloca.h>.
83855         (__libc_use_alloca) [!defined _LIBC]: New macro.
83856         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
83857         now works outside glibc.
83858
83859 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83860
83861         * config/srclist.txt: Add glibc bugs 1241, 1245.
83862
83863 2005-08-25  Jim Meyering  <jim@meyering.net>
83864
83865         * lib/open-safer.c: Include <config.h>.
83866         Otherwise, we'd lose LARGEFILE support in any file using
83867         e.g. "fcntl--.h"
83868
83869 2005-08-25  Bruno Haible  <bruno@clisp.org>
83870
83871         * m4/minmax.m4: Require autoconf 2.52.
83872         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
83873         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
83874         alternatives of translit over the alphabet.
83875         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
83876
83877 2005-08-24  Simon Josefsson  <jas@extundo.com>
83878
83879         * tests/test-getpass.c: New file.
83880
83881 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
83884         for GNU regex features.
83885
83886 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83887
83888         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
83889         * lib/regex.h (regerror): Likewise.
83890
83891         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
83892         requires this.  (The code never needed it.)
83893
83894         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
83895         All uses of recently-renamed identifiers changed to use the new,
83896         POSIX-compliant names.  The code will build and run just fine
83897         without these changes, but it's better to eat our own dog food
83898         and use the standard-conforming names.
83899
83900         * lib/regex.h: Fix a multitude of POSIX name space violations.
83901         These changes have an effect only for programs that define
83902         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
83903         do not change anything for programs compiled in the normal way.
83904         Also, there is no effect on the ABI.
83905
83906         (_REGEX_SOURCE): New macro.
83907         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
83908         defined and _GNU_SOURCE is not; this fixes a name space violation.
83909
83910         Rename the following macros to obey POSIX requirements.
83911         The old names are still visible as macros if _REGEX_SOURCE is defined.
83912         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
83913         RE_BACKSLASH_ESCAPE_IN_LISTS.
83914         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
83915         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
83916         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
83917         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
83918         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
83919         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
83920         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
83921         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
83922         (REG_INTERVALS): renamed from RE_INTERVALS.
83923         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
83924         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
83925         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
83926         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
83927         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
83928         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
83929         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
83930         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
83931         RE_UNMATCHED_RIGHT_PAREN_ORD.
83932         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
83933         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
83934         (REG_DEBUG): renamed from RE_DEBUG.
83935         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
83936         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
83937         unusual, since we can't clash with the POSIX REG_ICASE.
83938         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
83939         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
83940         (REG_NO_SUB): renamed from RE_NO_SUB.
83941         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
83942         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
83943         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
83944         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
83945         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
83946         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
83947         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
83948         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
83949         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
83950         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
83951         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
83952         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
83953         RE_SYNTAX_POSIX_MINIMAL_BASIC.
83954         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
83955         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
83956         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
83957         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
83958         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
83959         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
83960         (REG_FIXED): Renamed from REGS_FIXED.
83961         (REG_NREGS): Renamed from RE_NREGS.
83962
83963         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
83964         of other REG_* macros, since POSIX says the user is allowed to
83965         #undef these macros selectively.
83966
83967         (reg_errcode_t): Update comment stating what other tables need
83968         to be consistent.
83969
83970         Rename the following enum values to obey POSIX requirements.
83971         The old names are still visible as macros.
83972         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
83973         is not defined, since GNU is supposed to be a superset of POSIX as
83974         much as possible, and since we want reg_errcode_t to be a signed
83975         type for implementation consistency.
83976         (_REG_NOERROR): Renamed from REG_NOERROR.
83977         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83978         (_REG_BADPAT): Renamed from REG_BADPAT.
83979         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83980         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83981         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83982         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83983         (_REG_EBRACK): Renamed from REG_EBRACK.
83984         (_REG_EPAREN): Renamed from REG_EPAREN.
83985         (_REG_EBRACE): Renamed from REG_EBRACE.
83986         (_REG_BADBR): Renamed from REG_BADBR.
83987         (_REG_ERANGE): Renamed from REG_ERANGE.
83988         (_REG_ESPACE): Renamed from REG_ESPACE.
83989         (_REG_BADRPT): Renamed from REG_BADRPT.
83990         (_REG_EEND): Renamed from REG_EEND.
83991         (_REG_ESIZE): Renamed from REG_ESIZE.
83992         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83993         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83994         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83995         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83996         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83997
83998         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83999         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84000         changed.  But support the old name if the new one is not defined
84001         and if _REGEX_SOURCE.
84002
84003         Change the following member names in struct re_pattern_buffer.
84004         The old names are still supported if !_REGEX_SOURCE.
84005         The new names are always supported, regardless of _REGEX_SOURCE.
84006         (re_buffer): Renamed from buffer.
84007         (re_allocated): Renamed from allocated.
84008         (re_used): Renamed from used.
84009         (re_syntax): Renamed from syntax.
84010         (re_fastmap): Renamed from fastmap.
84011         (re_translate): Renamed from translate.
84012         (re_can_be_null): Renamed from can_be_null.
84013         (re_regs_allocated): Renamed from regs_allocated.
84014         (re_fastmap_accurate): Renamed from fastmap_accurate.
84015         (re_no_sub): Renamed from no_sub.
84016         (re_not_bol): Renamed from not_bol.
84017         (re_not_eol): Renamed from not_eol.
84018         (re_newline_anchor): Renamed from newline_anchor.
84019
84020         Change the following member names in struct re_registers.
84021         The old names are still supported if !_REGEX_SOURCE.
84022         The new names are always supported, regardless of _REGEX_SOURCE.
84023         (rm_num_regs): Renamed from num_regs.
84024         (rm_start): Renamed from start.
84025         (rm_end): Renamed from end.
84026
84027         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84028         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84029         Prepend __ to parameter names.
84030
84031         Undo yesterday's changes.
84032
84033 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84034
84035         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84036         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84037         lib/regex.c.
84038
84039 2005-08-24  Jim Meyering  <jim@meyering.net>
84040
84041         Sync from coreutils.
84042         * m4/fcntl-safer.m4: New file.
84043
84044         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84045         and object files for this module.
84046
84047 2005-08-24  Jim Meyering  <jim@meyering.net>
84048
84049         Sync from coreutils.
84050         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84051
84052 2005-08-24  Jim Meyering  <jim@meyering.net>
84053
84054         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84055         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84056
84057 2005-08-24  Jim Meyering  <jim@meyering.net>
84058
84059         * modules/fcntl-safer: New module.
84060         * modules/fts (Depends-on): Add fcntl-safer.
84061         * MODULES.html.sh (File descriptor based Input/Output):
84062         Add fcntl-safer.
84063
84064 2005-08-24  Bruno Haible  <bruno@clisp.org>
84065
84066         Support for unit test modules.
84067         * modules/README: Mention tests modules.
84068         * modules/TEMPLATE-TESTS: New file.
84069         * gnulib-tool: New options --extract-tests-module, --with-tests and
84070         --tests-base (unused for the moment).
84071         (testsbase, inctests): New variables.
84072         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84073         (func_verify_module): Exclude TEMPLATE-TESTS.
84074         (func_verify_nontests_module, func_verify_tests_module): New functions.
84075         (func_get_dependencies): Add implicit dependency for tests modules.
84076         (func_get_tests_module): New function.
84077         (func_modules_transitive_closure): When --with-tests was specified,
84078         include the unit tests as well, unless explicitly avoided.
84079         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84080         (func_emit_tests_Makefile_am): New function.
84081         (func_create_testdir): When --with-tests was specified, emit a
84082         tests/ directory.
84083         * MODULES.html.sh (Future developments): Update.
84084
84085 2005-08-24  Bruno Haible  <bruno@clisp.org>
84086
84087         * modules/tls-tests: New file.
84088         * tests/test-tls.c: New file, from GNU gettext.
84089
84090 2005-08-24  Bruno Haible  <bruno@clisp.org>
84091
84092         * modules/lock-tests: New file.
84093         * tests/test-lock.c: New file, from GNU gettext.
84094
84095 2005-08-24  Bruno Haible  <bruno@clisp.org>
84096
84097         * lib/lock.h: Add multiple inclusion guard.
84098         * lib/tls.h: Add multiple inclusion guard.
84099
84100 2005-08-24  Bruno Haible  <bruno@clisp.org>
84101
84102         * gnulib-tool: Add support for the --aux-dir option to
84103         --create-testdir, --create-megatestdir, --test, --megatest.
84104         (func_create_testdir, func_create_megatestdir): Optionally emit a
84105         AC_CONFIG_AUX_DIR directive.
84106         (create-testdir, create-megatestdir, test, megatest): Provide a
84107         default value for $auxdir.
84108
84109 2005-08-24  Bruno Haible  <bruno@clisp.org>
84110
84111         * gnulib-tool (import): Use compound statement instead of subshell
84112         where possible.
84113
84114 2005-08-24  Bruno Haible  <bruno@clisp.org>
84115
84116         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84117
84118 2005-08-24  Bruno Haible  <bruno@clisp.org>
84119
84120         * gnulib-tool (func_version): Update.
84121
84122 2005-08-24  Bruno Haible  <bruno@clisp.org>
84123
84124         * gnulib-tool (func_import, func_create_testdir,
84125         func_create_megatestdir): Quote all autoconf macro arguments.
84126
84127 2005-08-24  Bruno Haible  <bruno@clisp.org>
84128
84129         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84130         option --force, because --force causes the aclocal.m4 of each
84131         subdirectory to be newer than the corresponding config.h.in.
84132
84133 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84134
84135         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84136         All contents moved to gl_REGEX.
84137         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84138         assume that it does.
84139
84140 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84141
84142         * lib/regex.h (REG_NOSYS)
84143         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84144         Define, since POSIX requires it as of 2001.
84145         (_REG_ENOSYS)
84146         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84147         New private symbol, used to keep the enum signed in all cases.
84148         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84149         Youngman in
84150         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84151
84152         * lib/regex_internal.c (re_string_skip_chars, register_state):
84153         (calc_state_hash):
84154         Remove forward decls; no longer needed now that we use prototypes.
84155         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84156         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84157         (clean_state_log_if_needed): Likewise.
84158
84159 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84160
84161         * config/srclist.txt: Add glibc bugs 1231-1233.
84162
84163 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84164
84165         Fix problems reported by Sam Steingold in
84166         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84167         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84168         assumed that reg_errcode_t is a signed type, which is not
84169         necessarily true if _XOPEN_SOURCE is not defined.
84170         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84171         since some compilers warn about it otherwise.
84172
84173 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84174
84175         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84176         (init_word_char, create_initial_state, duplicate_node_closure):
84177         (fetch_token, peek_token_bracket, build_range_exp):
84178         (build_collating_symbol): Remove forward decls; no longer needed
84179         now that we use prototypes.
84180
84181         * lib/regcomp.c:
84182         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84183         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84184         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84185         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84186         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84187         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84188         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84189         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84190         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84191         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84192         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84193         (build_charclass, build_charclass_op, fetch_number, create_tree):
84194         (create_token_tree, mark_opt_subexp, duplicate_tree):
84195         Use prototypes rather than old-style definitions.
84196
84197         * lib/regex_internal.c:
84198         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84199         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84200         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84201         (re_string_reconstruct, re_string_peek_byte_case):
84202         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84203         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84204         (re_node_set_init_copy, re_node_set_add_intersect):
84205         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84206         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84207         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84208         (re_acquire_state, re_acquire_state_context, register_state):
84209         (create_ci_newstate, create_cd_newstate, free_state):
84210         Likewise.
84211         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84212         re_search_2):
84213         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84214         (re_search_internal, prune_impossible_nodes):
84215         (acquire_init_state_context, check_matching, static):
84216         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84217         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84218         (update_regs, sift_states_backward, build_sifted_states):
84219         (clean_state_log_if_needed, merge_state_array):
84220         (update_cur_sifted_state, add_epsilon_src_nodes):
84221         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84222         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84223         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84224         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84225         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84226         (check_arrival, check_arrival_add_next_nodes):
84227         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84228         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84229         (check_node_accept_bytes, check_node_accept, extend_buffers):
84230         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84231         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84232         (sift_ctx_init):
84233         Likewise.
84234
84235         * lib/regex_internal.h:
84236         (re_string_allocate, re_string_construct, re_string_reconstruct):
84237         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84238         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84239         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84240         (re_string_context_at, re_string_peek_byte_case):
84241         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84242         is defined, since we now use prototypes always.
84243
84244         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84245         C89 or better.  All uses removed.
84246
84247 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84248
84249         * config/srclist.txt: Add glibc bugs 1220-1227.
84250
84251 2005-08-20  Jim Meyering  <jim@meyering.net>
84252
84253         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84254         of unused local, dfa.
84255
84256 2005-08-20  Bruno Haible  <bruno@clisp.org>
84257
84258         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84259
84260 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84263         (re_node_set_insert_last, re_dfa_add_node):
84264         Rename local variables to avoid GCC shadowing warnings.
84265
84266 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84267
84268         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84269         [defined lint]: Suppress bogus uninitialized-variable warnings.
84270
84271         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84272         and let the caller return REG_ESPACE if out of space.  This
84273         removes an uninitialied-variable warning with GCC 4.0.1, and also
84274         avoids taking the address of a local variable.  All callers
84275         changed.
84276
84277 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84278
84279         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84280         $LIBCSRC/posix/regexec.c.
84281         Add glibc bug 1217 for regcomp.c.
84282
84283 2005-08-19  Jim Meyering  <jim@meyering.net>
84284
84285         * lib/regexec.c (proceed_next_node): Redo local variables to
84286         avoid GCC shadowing warnings.
84287
84288 2005-08-18  Bruno Haible  <bruno@clisp.org>
84289
84290         * lib/strstr.c (strstr): Fix return value in multibyte case.
84291         * lib/strcasestr.c (strcasestr): Likewise.
84292
84293 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84294
84295         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84296
84297 2005-08-17  Jim Meyering  <jim@meyering.net>
84298
84299         Make the %s format (seconds since the epoch) work for a negative
84300         number and when used with a zero-padded field width, e.g. %015s.
84301
84302         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84303         label so that it precedes the code to set `digits'.  Otherwise,
84304         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84305         print `00-22'.  Now, it prints `-0022', as it should.
84306
84307 2005-08-17  Bruno Haible  <bruno@clisp.org>
84308
84309         * modules/strstr (Files): Add m4/mbrtowc.m4.
84310         (Depends-on): Add mbuiter.
84311
84312 2005-08-17  Bruno Haible  <bruno@clisp.org>
84313
84314         * modules/strcasestr: New file.
84315         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84316         strcasestr.
84317
84318 2005-08-17  Bruno Haible  <bruno@clisp.org>
84319
84320         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84321
84322 2005-08-17  Bruno Haible  <bruno@clisp.org>
84323
84324         * modules/mbuiter: New file.
84325         * MODULES.html.sh (Extended multibyte and wide character utilities):
84326         Add mbuiter.
84327
84328 2005-08-17  Bruno Haible  <bruno@clisp.org>
84329
84330         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84331         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84332
84333 2005-08-17  Bruno Haible  <bruno@clisp.org>
84334
84335         * m4/strcasestr.m4: New file.
84336
84337 2005-08-17  Bruno Haible  <bruno@clisp.org>
84338
84339         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84340         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84341
84342 2005-08-17  Bruno Haible  <bruno@clisp.org>
84343
84344         * lib/strcasestr.h: New file.
84345         * lib/strcasestr.c: New file.
84346
84347 2005-08-17  Bruno Haible  <bruno@clisp.org>
84348
84349         * lib/strcasecmp.c: Use mbuiter.h.
84350
84351 2005-08-17  Bruno Haible  <bruno@clisp.org>
84352
84353         * lib/mbuiter.h: New file.
84354
84355 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84358         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84359         and gl_GETOPT are both invoked via different paths (as happens
84360         with GNU tar CVS because it uses both argp and getopt), the former
84361         wins.
84362
84363 2005-08-16  Bruno Haible  <bruno@clisp.org>
84364
84365         * modules/tls: New file.
84366         * MODULES.html.sh (Multithreading): Add tls.
84367
84368 2005-08-16  Bruno Haible  <bruno@clisp.org>
84369
84370         * modules/strnlen1: New file.
84371         * MODULES.html.sh (String handling): Add strnlen1.
84372
84373 2005-08-16  Bruno Haible  <bruno@clisp.org>
84374
84375         * modules/strcase (Files): Add m4/mbrtowc.m4.
84376         (Depends-on): Add strnlen1, mbchar.
84377
84378 2005-08-16  Bruno Haible  <bruno@clisp.org>
84379
84380         * modules/mbiter: New file.
84381         * MODULES.html.sh (Extended multibyte and wide character utilities):
84382         Add mbiter.
84383
84384 2005-08-16  Bruno Haible  <bruno@clisp.org>
84385
84386         * modules/mbfile: New file.
84387         * MODULES.html.sh (Extended multibyte and wide character utilities):
84388         Add mbfile.
84389
84390 2005-08-16  Bruno Haible  <bruno@clisp.org>
84391
84392         * modules/mbchar: New file.
84393         * MODULES.html.sh (Extended multibyte and wide character utilities):
84394         New section.
84395
84396 2005-08-16  Bruno Haible  <bruno@clisp.org>
84397
84398         * m4/tls.m4: New file, from GNU gettext.
84399
84400 2005-08-16  Bruno Haible  <bruno@clisp.org>
84401
84402         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84403         always.
84404         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84405
84406 2005-08-16  Bruno Haible  <bruno@clisp.org>
84407
84408         * m4/mbiter.m4: New file.
84409
84410 2005-08-16  Bruno Haible  <bruno@clisp.org>
84411
84412         * m4/mbfile.m4: New file.
84413
84414 2005-08-16  Bruno Haible  <bruno@clisp.org>
84415
84416         * m4/mbchar.m4: New file.
84417
84418 2005-08-16  Bruno Haible  <bruno@clisp.org>
84419
84420         * lib/tls.h: New file, from GNU gettext.
84421         * lib/tls.c: New file, from GNU gettext.
84422
84423 2005-08-16  Bruno Haible  <bruno@clisp.org>
84424
84425         * lib/strnlen1.h: New file.
84426         * lib/strnlen1.c: New file.
84427
84428 2005-08-16  Bruno Haible  <bruno@clisp.org>
84429
84430         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84431         (mbi_init): Update.
84432         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84433         NUL byte, not after it.
84434
84435 2005-08-16  Bruno Haible  <bruno@clisp.org>
84436
84437         * lib/strcase.h (strcasecmp): Add note in comments.
84438         * lib/strncasecmp.c: Use code from strcasecmp.c.
84439         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84440         (strcasecmp): Work correctly in multibyte locales.
84441
84442 2005-08-16  Bruno Haible  <bruno@clisp.org>
84443
84444         * lib/mbiter.h: New file.
84445
84446 2005-08-16  Bruno Haible  <bruno@clisp.org>
84447
84448         * lib/mbfile.h: New file.
84449
84450 2005-08-16  Bruno Haible  <bruno@clisp.org>
84451
84452         * lib/mbchar.h: New file.
84453         * lib/mbchar.c: New file.
84454
84455 2005-08-16  Bruno Haible  <bruno@clisp.org>
84456
84457         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84458         the valid ones. Makes the comparison operations transitive:
84459         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84460         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84461
84462 2005-08-15  Simon Josefsson  <jas@extundo.com>
84463
84464         * modules/ssize_t (License): Change to 'unlimited'.
84465
84466         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84467
84468 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84469
84470         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84471         Add comments for each pending glibc patch.
84472
84473 2005-08-15  Bruno Haible  <bruno@clisp.org>
84474
84475         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84476         __cplusplus is defined.
84477
84478 2005-08-14  Jim Meyering  <jim@meyering.net>
84479
84480         Sync from coreutils.
84481
84482         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84483         Use the hash-table-based cycle-detection code not just when
84484         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84485         Reported by James Youngman in
84486         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84487         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84488         FTS_TIGHT_CYCLE_CHECK.
84489         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84490         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84491         once again.
84492         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84493         * lib/fts.c (fd_safer): Remove decl.
84494         Include fcntl--.h rather than unistd-safer.h
84495         (fts_safe_changedir): Don't call fd_safer; no longer needed
84496         now that we include fcntl--.h.
84497
84498 2005-08-12  Simon Josefsson  <jas@extundo.com>
84499
84500         * modules/getndelim2: Use ssize_t module.
84501         * modules/getnline: Likewise.
84502         * modules/safe-read: Likewise.
84503         * modules/xreadlink: Likewise.
84504
84505         * modules/ssize_t: New file.
84506
84507 2005-08-12  Simon Josefsson  <jas@extundo.com>
84508
84509         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84510
84511 2005-08-12  Simon Josefsson  <jas@extundo.com>
84512
84513         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84514         ssize_t.
84515
84516 2005-08-12  Simon Josefsson  <jas@extundo.com>
84517
84518         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84519         readline, getdelim and check_version.
84520         (Support for systems lacking ISO C 99: Sizes of integer types):
84521         Add size_max.
84522
84523 2005-08-12  Bruno Haible  <bruno@clisp.org>
84524
84525         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84526
84527 2005-08-11  Simon Josefsson  <jas@extundo.com>
84528
84529         * modules/readline: New file.
84530
84531         * modules/strnlen (Files): Add strnlen.h.
84532
84533 2005-08-11  Simon Josefsson  <jas@extundo.com>
84534
84535         * m4/readline.m4: New file.
84536
84537 2005-08-11  Simon Josefsson  <jas@extundo.com>
84538
84539         * lib/readline.h, readline.c: New file.
84540
84541 2005-08-11  Simon Josefsson  <jas@extundo.com>
84542
84543         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84544         gl_AVOID.
84545
84546 2005-08-11  Bruno Haible  <bruno@clisp.org>
84547
84548         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84549
84550 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84551
84552         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84553
84554 2005-08-10  Simon Josefsson  <jas@extundo.com>
84555
84556         * tests/test-iconvme.c: New file.
84557
84558 2005-08-10  Simon Josefsson  <jas@extundo.com>
84559
84560         * m4/strnlen.m4: New file.
84561
84562         * m4/strndup.m4: Don't check for strnlen declaration, done in
84563         strnlen.m4.
84564
84565 2005-08-10  Simon Josefsson  <jas@extundo.com>
84566
84567         * lib/strndup.c: Use strnlen.h.
84568
84569         * lib/strnlen.h: New file.
84570
84571 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84572
84573         * README: Typos.
84574
84575 2005-08-02  Simon Josefsson  <jas@extundo.com>
84576
84577         * modules/readline: New file.
84578
84579 2005-08-02  Simon Josefsson  <jas@extundo.com>
84580
84581         * modules/getdelim: New file.
84582
84583         * modules/getline: Rewrite, don't use getndelim2.
84584
84585 2005-08-02  Simon Josefsson  <jas@extundo.com>
84586
84587         * m4/getline.m4: Separate out getdelim stuff into separate module.
84588
84589         * m4/getdelim.m4: New file.
84590
84591 2005-08-02  Simon Josefsson  <jas@extundo.com>
84592
84593         * lib/getline.h, getline.c: Rewrite.
84594
84595         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84596
84597 2005-07-31  Bruno Haible  <bruno@clisp.org>
84598
84599         * lib/lock.h (gl_lock_initializer): New macro.
84600         (gl_lock_define_initialized): Use it.
84601         (gl_rwlock_initializer): New macro.
84602         (gl_rwlock_define_initialized): Use it.
84603         (gl_recursive_lock_initializer): New macro.
84604         (gl_recursive_lock_define_initialized): Use it.
84605
84606 2005-07-30  Karl Berry  <karl@gnu.org>
84607
84608         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84609         Report from Ben Pfaff, regarding getopt.
84610
84611 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84612
84613         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84614         normal way.
84615         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84616         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84617         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84618         (gl_GETOPT): Use the new macros.  Most of the implementation
84619         is moved to the new macros.  This is for programs like Emacs
84620         that don't want all the functionality of gl_GETOPT.
84621
84622 2005-07-26  Bruno Haible  <bruno@clisp.org>
84623
84624         * m4/lock.m4: Update from GNU gettext.
84625
84626 2005-07-26  Bruno Haible  <bruno@clisp.org>
84627
84628         * lib/lock.h: Update from GNU gettext.
84629         * lib/lock.c: Update from GNU gettext.
84630
84631 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84634         obsolescent AC_TRY_RUN.  Include the default includes files, for
84635         'exit'.
84636
84637 2005-07-24  Bruno Haible  <bruno@clisp.org>
84638
84639         * modules/visibility: New file.
84640         * MODULES.html.sh (Misc): Add visibility.
84641
84642 2005-07-24  Bruno Haible  <bruno@clisp.org>
84643
84644         * m4/visibility.m4: New file.
84645
84646 2005-07-24  Bruno Haible  <bruno@clisp.org>
84647
84648         * doc/visibility.texi: New file.
84649
84650 2005-07-22  Bruno Haible  <bruno@clisp.org>
84651
84652         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84653         $(ALLOCA_H), redundant through BUILT_SOURCES.
84654         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84655         redundant through BUILT_SOURCES.
84656         * modules/byteswap (Makefile.am): Remove explicit dependency on
84657         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84658         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84659         $(FNMATCH_H), redundant through BUILT_SOURCES.
84660         * modules/getopt (Makefile.am): Remove explicit dependency on
84661         $(GETOPT_H), redundant through BUILT_SOURCES.
84662         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84663         redundant through BUILT_SOURCES.
84664         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84665         redundant through BUILT_SOURCES.
84666         * modules/stdbool (Makefile.am): Remove explicit dependency on
84667         $(STDBOOL_H), redundant through BUILT_SOURCES.
84668         * modules/stdint (Makefile.am): Remove explicit dependency on
84669         $(STDINT_H), redundant through BUILT_SOURCES.
84670         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84671         Remove explicit dependency on $(SYSEXITS_H).
84672         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84673
84674 2005-07-18  Simon Josefsson  <jas@extundo.com>
84675
84676         * lib/check-version.c (check_version): Accept identical versions too.
84677
84678 2005-07-18  Bruno Haible  <bruno@clisp.org>
84679
84680         * modules/lock: New file.
84681         * MODULES.html.sh (Multithreading): New section.
84682
84683 2005-07-18  Bruno Haible  <bruno@clisp.org>
84684
84685         * m4/lock.m4: New file, from GNU gettext.
84686
84687 2005-07-18  Bruno Haible  <bruno@clisp.org>
84688
84689         * lib/lock.h: New file, from GNU gettext.
84690         * lib/lock.c: New file, from GNU gettext.
84691
84692 2005-07-18  Bruno Haible  <bruno@clisp.org>
84693
84694         * lib/lock.h (gl_once_t): New type.
84695         (gl_once_define, gl_once): New macros.
84696         * lib/lock.c (fresh_once): New variable.
84697         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84698         functions.
84699
84700 2005-07-16  Simon Josefsson  <jas@extundo.com>
84701
84702         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84703         workaround, suggested by Bruno.
84704
84705 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84706
84707         * modules/xalloc (Depends-on): Add xalloc-die.
84708         * modules/xvasprintf (Depends-on): Add xalloc-die.
84709
84710 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84711
84712         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84713         with a minor change.
84714
84715 2005-07-15  Bruno Haible  <bruno@clisp.org>
84716
84717         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84718         When using lib/poll.c, define poll as rpl_poll.
84719
84720 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84721
84722         * modules/argp (Depends-on): Remove unlocked-io.
84723
84724 2005-07-14  Derek Price  <derek@ximbiot.com>
84725
84726         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84727         for glob symlink bug.
84728
84729 2005-07-14  Bruno Haible  <bruno@clisp.org>
84730
84731         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84732         Instead, test for *_unlocked function declarations directly.
84733
84734 2005-07-11  Simon Josefsson  <jas@extundo.com>
84735
84736         * modules/size_max: New file.
84737
84738         * modules/xsize: Depend on size_max module for size_max.m4.
84739
84740 2005-07-11  Simon Josefsson  <jas@extundo.com>
84741
84742         * lib/size_max.h: New file.
84743
84744 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84745
84746         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84747         copyright symbol and the year.
84748         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84749         (version_etc_va): Use parameterized copyright notice.
84750         Reword to conform to the current GNU coding standards.
84751
84752 2005-07-11  Karl Berry  <karl@gnu.org>
84753
84754         * doc/gnulib.texi (Quoting): new node.
84755         (Initial import): more info, from Patrice.
84756
84757 2005-07-11  Bruno Haible  <bruno@clisp.org>
84758
84759         * gnulib-tool (func_usage): Document option --avoid.
84760         (Command line options): Handle --avoid.
84761         (func_acceptable): New function.
84762         (func_modules_transitive_closure): Use it.
84763
84764 2005-07-11  Bruno Haible  <bruno@clisp.org>
84765
84766         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84767         Reported by Jim Meyering.
84768
84769 2005-07-10  Bruno Haible  <bruno@clisp.org>
84770
84771         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84772         Needed when size_t is smaller than 'unsigned int'.
84773         Reported by Paul Eggert.
84774
84775 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84776
84777         * modules/argp (Depends-on): Add unlocked-io
84778
84779 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84780
84781         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84782         block of defines.
84783
84784 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84785
84786         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84787         fix now.
84788
84789 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84790         and Paul Eggert  <eggert@cs.ucla.edu>
84791
84792         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84793         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84794
84795 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84796
84797         * modules/regex (Files): Add lib/regex_internal.c,
84798         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84799         (Depends-on): Add extensions.
84800         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84801
84802 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84803
84804         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84805         pathconf.
84806         * m4/same.m4 (gl_SAME): Likewise.
84807         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84808
84809         * m4/regex.m4: Adjust to new libc regex implementation.
84810         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84811         all the .c and .h parts of (the new) regex.
84812         Quote the m4 stuff better.
84813         Check for RE_ICASE bug of old gnulib.
84814         Check for REG_STARTEND of recent libc.
84815         Rename local variables from jm_* to gl_*.
84816         Quote operand of "test -f".
84817         Say "recent enough" version of libc, not "version 2".
84818         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84819         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84820         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84821         Remove check for btowc, isascii.
84822         Require AM_LANGINFO_CODESET.
84823
84824 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84825
84826         * lib/regex.c, regex.h: Sync from libc.
84827         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84828         * lib/regexec.c:
84829         New files, synced from libc, except that regex_internal.h
84830         currently has a small porting fix.
84831
84832 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84833
84834         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
84835         regex_internal.c, regexec.c.
84836         Add regex_internal.h too, but as a comment, since the libc version
84837         is currently broken in gnulib mode.
84838
84839 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
84840
84841         Support programs like Emacs that use gnulib but not gettext.
84842         * MODULES.html.sh (Internationalization functions): Add gettext-h.
84843         * modules/gettext-h: New file.
84844         * modules/gettext (Files): Remove lib/gettext.h.
84845         (Depends-on): Add gettext-h.
84846         (Makefile.am): Remove lib_SOURCES.
84847         * modules/argmatch, modules/c-stack, modules/closeout:
84848         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
84849         * modules/execute, modules/file-type, modules/getaddrinfo:
84850         * modules/getopt, modules/human, modules/javacomp:
84851         * modules/javaexec, modules/mkdir-p, modules/obstack:
84852         * modules/openat, modules/pagealign_alloc, modules/pipe:
84853         * modules/quotearg, modules/regex, modules/rpmatch:
84854         * modules/unicodeio, modules/userspec, modules/version-etc:
84855         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
84856         * modules/xsetenv:
84857         Depend on gettext-h, not gettext.
84858
84859 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
84860
84861         * gnulib-tool (func_import): Add support for 'public domain' license.
84862         * modules/alloca, modules/atexit, modules/memmove:
84863         Now public domain, not GPL.
84864         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
84865         * modules/realloc, modules/strerror, modules/strtod:
84866         Now LGPL, not GPL.
84867
84868 2005-07-05  Bruno Haible  <bruno@clisp.org>
84869
84870         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
84871         autoconf CVS. Needed for mingw.
84872
84873 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84874
84875         Remove the dependency of the strftime module on the tzset module.
84876         * modules/strftime (Depends-on): Remove dependency on tzset.
84877
84878 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84879
84880         Remove the dependency of the strftime module on the tzset module.
84881         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
84882         gl_FUNC_TZSET_CLOBBER.
84883
84884 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84885
84886         Remove the dependency of the strftime module on the tzset module.
84887         * lib/strftime.c (my_strftime)
84888         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
84889         Copy the input structure, to work around some of the bug with
84890         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
84891         Solaris releases, you should also use the tzset module, but we won't
84892         require it as a dependency any more since we don't want LGPLed code
84893         to depend on GPLed code.
84894
84895 2005-07-02  Jim Meyering  <jim@meyering.net>
84896
84897         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
84898         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
84899         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
84900         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
84901
84902 2005-07-02  Jim Meyering  <jim@meyering.net>
84903
84904         * lib/backupfile.c (backup_args): Change a `0' to NULL.
84905
84906 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
84907
84908         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
84909         declares only 'struct timespec;' (!).
84910
84911 2005-07-01  Jim Meyering  <jim@meyering.net>
84912
84913         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
84914         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
84915         * lib/save-cwd.c, tempname.c:
84916         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84917         and don't include <sys/file.h>).
84918
84919 2005-06-29  Jim Meyering  <jim@meyering.net>
84920
84921         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
84922         type name.  Use the variable name instead.
84923         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
84924         Likewise.
84925
84926 2005-06-28  Simon Josefsson  <jas@extundo.com>
84927
84928         * modules/check-version (Files): Add check-version.m4.
84929
84930 2005-06-28  Simon Josefsson  <jas@extundo.com>
84931
84932         * m4/check-version.m4: New file, suggested by Jim Meyering
84933         <jim@meyering.net>.
84934
84935 2005-06-28  Simon Josefsson  <jas@extundo.com>
84936
84937         * lib/check-version.h, lib/check-version.c: New files.
84938
84939 2005-06-28  Simon Josefsson  <jas@extundo.com>
84940
84941         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
84942         collision with global variable.  Better indentation.  Don't
84943         increment buffer pointer beyond buffer end.  Based on comments
84944         from Paul Eggert <eggert@cs.ucla.edu>.
84945
84946         * lib/base64.h: Indent.
84947
84948 2005-06-28  Simon Josefsson  <jas@extundo.com>
84949
84950         * doc/gnulib.texi (Library version handling): New section.
84951
84952 2005-06-28  Jim Meyering  <jim@meyering.net>
84953
84954         * check-module (find_included_lib_files): Hard-code another
84955         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
84956         but modules/fts-lgpl (correctly) does not list those files.
84957
84958         * modules/canonicalize (Files): Add lib/pathmax.h.
84959
84960 2005-06-25  Simon Josefsson  <jas@extundo.com>
84961
84962         * modules/check-version: New file.
84963
84964 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
84965
84966         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
84967         initializer of struct addrinfo, as an indication that we don't
84968         care how many members the structure has.
84969
84970 2005-06-24  Derek Price  <derek@ximbiot.com>
84971         and Bruno Haible  <bruno@clisp.org>
84972
84973         Remove stat module & update lstat.
84974         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
84975         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84976         * m4/stat.m4: Remove this file.
84977
84978 2005-06-24  Derek Price  <derek@ximbiot.com>
84979         and Bruno Haible  <bruno@clisp.org>
84980
84981         Remove stat module & update lstat.
84982         * lib/stat.c: Remove this file...
84983         (slash_aware_lstat): ...moving this content and its support...
84984         * lib/lstat.c (rpl_lstat): ...into here.
84985         * lib/lstat.h: New file.
84986
84987 2005-06-24  Derek Price  <derek@ximbiot.com>
84988         and Bruno Haible  <bruno@clisp.org>
84989
84990         Remove stat module & update lstat.
84991         * config/srclist.txt (libc sources): Remove stat.
84992
84993 2005-06-24  Derek Price  <derek@ximbiot.com>
84994         and Bruno Haible  <bruno@clisp.org>
84995
84996         Remove stat module & update lstat.
84997         * MODULES.html.sh (stat): Remove.
84998         * MODULES.html: Regenerated.
84999         * modules/lstat (Description): Correct function name.
85000         (Files): Add "lstat.h".
85001         (Depends-on): Remove stat, add xalloc, stat-macros.
85002         * modules/stat: Remove this file.
85003         (Include): Add "lstat.h", remove <sys/stat.h>.
85004
85005 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85006
85007         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85008         (ranged_convert): Don't save conversion in a temporary struct.
85009         This causes a warning with GCC 4.0.0, and anyway in the typical
85010         case it's not worth the extra 100 bytes or so of code.
85011         (ranged_convert, __mktime_internal): When calling a function via a
85012         pointer P, use P () rather than (*P) (), as we now assume C89 or
85013         better.
85014
85015 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85016
85017         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85018         "who -r" failed to give output.  Problem reported by Tim Waugh.
85019
85020         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85021         (xcalloc): Use it to avoid needless tests.
85022         Problem reported by Jim Meyering.
85023
85024 2005-06-20  Derek Price  <derek@ximbiot.com>
85025
85026         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85027         unnecessary for Autoconfs > 2.59c.
85028
85029 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85030
85031         * lib/argp.h (__option_is_short): Check upper limit of
85032         __key. Isprint() requires its argument to have the value
85033         of an unsigned char or EOF.
85034
85035 2005-06-16  Jim Meyering  <jim@meyering.net>
85036
85037         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85038         when either N or S is zero.
85039
85040 2005-06-16  Derek Price  <derek@ximbiot.com>
85041
85042         * m4/bison.m4: Declare YACC & YFLAGS precious.
85043
85044 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85045
85046         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85047         multibyte string or pattern, fall back on unibyte matching.
85048         Problem reported by James Youngman.
85049
85050 2005-06-08  Bruno Haible  <bruno@clisp.org>
85051
85052         * modules/csharpcomp: New file.
85053         * MODULES.html.sh (C#): Add csharpcomp.
85054
85055 2005-06-08  Bruno Haible  <bruno@clisp.org>
85056
85057         * m4/csharpcomp.m4: New file, from GNU gettext.
85058
85059 2005-06-08  Bruno Haible  <bruno@clisp.org>
85060
85061         * lib/csharpcomp.h: New file, from GNU gettext.
85062         * lib/csharpcomp.c: New file, from GNU gettext.
85063         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85064
85065 2005-06-08  Bruno Haible  <bruno@clisp.org>
85066
85067         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85068         warning on mingw.
85069
85070 2005-06-07  Derek Price  <derek@ximbiot.com>
85071
85072         Sync from CVS.
85073         * lib/glob_.h: Indent nested #ifdef.
85074
85075 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85076
85077         Sync from coreutils.
85078         Use "file name" when talking about file names, instead of "filename"
85079         or "path", as per the GNU coding standards.
85080         * lib/mkdir-p.c: Renamed from makepath.c.
85081         (make_dir_parents): Renamed from make_path.  All callers changed.
85082         * lib/mkdir-p.h: Likewise.  All includers changed.
85083         * lib/filenamecat.c: Renamed from path-concat.c.
85084         (file_name_concat): Renamed from path_concat.  All callers changed.
85085         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85086         * lib/filenamecat.h: Likewise.  All includers changed.
85087         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85088         in comments or local variable names.
85089         * lib/basename.c: Likewise.
85090         * lib/canonicalize.c, canonicalize.h: Likewise.
85091         * lib/dirname.c, dirname.h: Likewise.
85092         * lib/euidaccess.c: Likewise.
85093         * lib/exclude.c: Likewise
85094         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85095         * lib/fsusage.c, fsuage.h: Likewise.
85096         * lib/fts.c, fts_.h: Likewise.
85097         * lib/getcwd.c: Likewise.
85098         * lib/getloadavg.c: Likewise.
85099         * lib/mkstemp.c: Likewise.
85100         * lib/mountlist.c, mountlist.h: Likewise.
85101         * lib/openat.c, openat.h: Likewise.
85102         * lib/readlink-stub.c: Likewise.
85103         * lib/readutmp.c, readutmp.h: Likewise.
85104         * lib/rename.c: Likewise.
85105         * lib/rmdir.c: Likewise.
85106         * lib/same.c: Likewise.
85107         * lib/savedir.c: Likewise.
85108         * lib/stripslash.c: Likewise.
85109         * lib/tempname.c: Likewise.
85110         * lib/xreadlink.c: Likewise.
85111         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85112         All uses changed.
85113         * lib/exclude.h: Likewise.
85114
85115         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85116         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85117         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85118         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85119         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85120         files have been getting away with it for years (MORE/BSD 4.3
85121         is extinct now).
85122         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85123         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85124
85125         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85126         Define to 256, not 255, as per modern POSIX.
85127
85128 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85129
85130         Sync from coreutils.
85131         Use "file name" when talking about file names, instead of "filename"
85132         or "path", as per the GNU coding standards.
85133         * MODULES.html.sh: mkdir-p renamed from makepath.
85134         filenamecat renamed from path-concat.
85135         * modules/filenamecat: Renamed from modules/path-concat.
85136         (Files): filenamecat.h and filenamecat.c renamed from
85137         path-concat.h and path-concat.c.
85138         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85139         (Include): filenamecat.h, not path-concat.h.
85140         * modules/mkdir-p: Renamed from modules/makepath.
85141         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85142         makepath.c.
85143         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85144         (Include): mkdir-p.h, not makepath.h.
85145
85146 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85147
85148         Sync from coreutils.
85149         * m4/mkdir-p.m4: Renamed from makepath.m4.
85150         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85151         Rename files from makepath.c to mkdir-p.c, and from
85152         makepath.h to mkdir-p.h.
85153         * m4/filenamecat.m4: Renamed from path-concat.m4.
85154         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85155         Rename files from path-concat.c to filenamecat.c,
85156         and from path-concat.h to filenamecat.h.
85157         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85158         "file name" in local variables or comments.
85159         * m4/rename.m4: Likewise.
85160
85161 2005-06-01  Bruno Haible  <bruno@clisp.org>
85162
85163         * modules/csharpexec: New file.
85164         * MODULES.html.sh (C#): New section.
85165
85166 2005-06-01  Bruno Haible  <bruno@clisp.org>
85167
85168         * m4/csharp.m4: New file, from GNU gettext.
85169         * m4/csharpexec.m4: New file, from GNU gettext.
85170
85171 2005-06-01  Bruno Haible  <bruno@clisp.org>
85172
85173         * lib/csharpexec.h: New file, from GNU gettext.
85174         * lib/csharpexec.c: New file, from GNU gettext.
85175         * lib/csharpexec.sh.in: New file, from GNU gettext.
85176
85177 2005-05-31  Derek Price  <derek@ximbiot.com>
85178             Paul Eggert  <eggert@cs.ucla.edu>
85179
85180         Sync from cvs.
85181         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85182
85183 2005-05-31  Derek Price  <derek@ximbiot.com>
85184             Paul Eggert  <eggert@cs.ucla.edu>
85185
85186         Sync from cvs.
85187         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85188
85189 2005-05-29  Derek Price  <derek@ximbiot.com>
85190
85191         * config/srclist.txt (glob_.h, glob.c): Add these files.
85192
85193 2005-05-29  Derek Price  <derek@ximbiot.com>
85194
85195         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85196         * modules/glob: New file.
85197         * modules/getlogin_r: Add link to POSIX spec in description.
85198
85199 2005-05-29  Derek Price  <derek@ximbiot.com>
85200             Paul Eggert  <eggert@cs.ucla.edu>
85201
85202         * m4/glob.m4: New file.
85203
85204 2005-05-29  Derek Price  <derek@ximbiot.com>
85205             Paul Eggert  <eggert@cs.ucla.edu>
85206
85207         * lib/glob_.h, lib/glob.c: New files.
85208
85209 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85210
85211         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85212         * modules/fts-lgpl (Depends-on): Remove gettext.
85213
85214 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85215
85216         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85217         and don't require gt_INTTYPES_PRI.
85218
85219 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85220
85221         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85222
85223         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85224         the configuration hassle isn't worth it.
85225         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85226         (LONGEST_MODIFIER, PRIuMAX): Remove.
85227
85228 2005-05-27  Bruno Haible  <bruno@clisp.org>
85229
85230         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85231
85232 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85233
85234         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85235         _POSIX_PTHREAD_SEMANTICS for Solaris.
85236
85237 2005-05-25  Derek Price  <derek@ximbiot.com>
85238
85239         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85240
85241 2005-05-25  Derek Price  <derek@ximbiot.com>
85242             Paul Eggert  <eggert@cs.ucla.edu>
85243
85244         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85245         * lib/getlogin_r.c, getlogin_r.h: New files.
85246
85247 2005-05-25  Bruno Haible  <bruno@clisp.org>
85248             Derek Price  <derek@ximbiot.com>
85249
85250         * lib/getlogin_r.h: Simplify API documentation.
85251
85252 2005-05-23  Derek Price  <derek@ximbiot.com>
85253
85254         * modules/minmax (Files): Add m4/minmax.m4.
85255         (configure.ac): Add gl_MINMAX.
85256
85257 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85258
85259         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85260         so that unistd-safer.h (GPL'ed code) need not be included.
85261
85262 2005-05-22  Bruno Haible  <bruno@clisp.org>
85263
85264         * m4/minmax.m4: New file.
85265         Based on a patch by Derek Price <derek@ximbiot.com>.
85266
85267 2005-05-22  Bruno Haible  <bruno@clisp.org>
85268
85269         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85270         (INT64_MIN): Fix definition.
85271         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85272
85273         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85274         NEED_SIGNED_INT_TYPES.
85275
85276         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85277         HAVE_SYSTEM_INTTYPES.
85278
85279 2005-05-22  Bruno Haible  <bruno@clisp.org>
85280
85281         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85282         Also include <sys/param.h> if it defines MIN, MAX.
85283         Based on a patch by Derek Price <derek@ximbiot.com>.
85284
85285 2005-05-21  Jim Meyering  <jim@meyering.net>
85286
85287         * modules/fts (Files): Add m4/inttypes-pri.m4.
85288         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85289
85290 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85291
85292         New fts module.
85293         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85294         (setup_dir, free_dir): New functions.
85295         (enter_dir, leave_dir): Define trivial
85296         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85297         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85298         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85299         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85300         Move to fts-cycle.c.
85301         (fts_open): Use setup_dir.
85302         (fts_close): Use free_dir.
85303         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85304         This adds a label and some gotos, but the alternatives were messier.
85305         Check for memory allocation failure when entering a dir.
85306         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85307         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85308         (FTS): New member fts_cycle, that is a union that contains the
85309         old active_dir_ht and cycle_state.  All uses changed to mention
85310         fts_cycle.ht and fts_cycle.state.
85311         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85312         fts.c, with the following changes:
85313         (setup_dir, free_dir): New functions.
85314         (enter_dir): Now returns bool.  Return true if successful, false
85315         if memory exhausted.  All callers changed.
85316         Do not bother partly cleaning up on
85317         memory allocation failure; that is free_dir's job.
85318         However, free ad if hash_insert fails, to avoid memory leak.
85319         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85320         fts->fts_options to see which union member to use.
85321
85322 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85323
85324         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85325         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85326
85327 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85328
85329         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85330
85331 2005-05-20  Jim Meyering  <jim@meyering.net>
85332
85333         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85334         Now a macro, to pacify GCC.
85335
85336 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85337
85338         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85339         of -1.
85340
85341 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85342
85343         * lib/chown.c (rpl_chown): Return -1 on failure.
85344
85345 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85346
85347         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85348         Don't check for stddef.h.
85349         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85350         don't use its results.
85351         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85352         since we include them unconditionally.  Don't require
85353         AM_STDBOOL_H, since stdbool is a prerequisite.
85354         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85355         since we assume C89 or better.
85356         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85357         as we don't use their results.
85358         Don't check for fchdir, memmove, memset, strrchr, as we use
85359         them unconditionally.
85360         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85361         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85362
85363 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85366         Include <stddef.h> unconditionally, since we assume C89 now.
85367         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85368         * lib/fts.c: Include fts_.h first, to check interface.
85369         Do not include intprops.h; no longer needed.
85370         Include cycle-check.h and hash.h, since fts_.h no longer does.
85371         Remove unnecessary casts of closedir to void.
85372         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85373         decide whether to decrement nlinks.
85374         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85375         (FTS): Use struct hash_table * instead of Hash_table, so that
85376         we no longer need to include hash.h here.
85377
85378 2005-05-18  Jim Meyering  <jim@meyering.net>
85379
85380         * modules/dirfd (License): Change to LGPL.  Most of the code
85381         is already in the public domain.
85382
85383 2005-05-18  Jim Meyering  <jim@meyering.net>
85384
85385         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85386         Reported by Yoann Vandoorselaere.
85387
85388 2005-05-17  Jim Meyering  <jim@meyering.net>
85389
85390         * m4/fts.m4: New file, from coreutils.
85391
85392 2005-05-17  Jim Meyering  <jim@meyering.net>
85393
85394         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85395
85396 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85397
85398         Sync from coreutils.
85399         * m4/unlinkdir.m4: New file.
85400
85401 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85402
85403         Sync from coreutils.
85404         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85405         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85406         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85407         White space changes only.
85408         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85409         special.
85410         * lib/yesno.c: Include getline.h, not ctype.h.
85411         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85412         Use getline to remove arbitrary restriction on response length.
85413
85414 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85415
85416         * config/srclist-update: Spell out "Street" in FSF postal
85417         mail address; this is the style the FSF seems to prefer.
85418
85419         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85420         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85421         this updates FSF postal mail address.
85422
85423         Sync from coreutils.
85424         * modules/unlinkdir: New file.
85425         * modules/yesno (Depends-on): Add getline.
85426         * MODULES.html.sh (File system functions): Add unlinkdir.
85427
85428 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85429
85430         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85431         lib/strsep.h:
85432         Change the initial comment to refer to GPL, not LGPL.
85433         gnulib-tool will change it to LGPL as needed.
85434
85435         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85436         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85437         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85438         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85439         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85440         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85441         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85442         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85443         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85444         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85445         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85446         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85447         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85448         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85449         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85450         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85451         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85452         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85453         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85454         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85455         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85456         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85457         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85458         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85459         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85460         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85461         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85462         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85463         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85464         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85465         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85466         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85467         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85468         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85469         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85470         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85471         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85472         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85473         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85474         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85475         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85476         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85477         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85478         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85479         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85480         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85481         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85482         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85483         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85484         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85485         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85486         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85487         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85488         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85489         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85490         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85491         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85492         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85493         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85494         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85495         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85496         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85497         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85498         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85499         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85500         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85501         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85502         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85503         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85504         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85505         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85506         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85507         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85508         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85509         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85510         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85511         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85512         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85513         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85514         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85515         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85516         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85517         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85518         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85519         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85520         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85521         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85522         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85523         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85524         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85525         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85526         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85527         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85528         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85529         lib/yesno.c, lib/yesno.h:
85530         Update FSF postal mail address.
85531
85532 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85533
85534         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85535         tests/test-memmem.c, tests/test-stpncpy.c:
85536         Update FSF postal mail address.
85537
85538 2005-05-13  Bruno Haible  <bruno@clisp.org>
85539
85540         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85541         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85542         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85543         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85544         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85545         Add support for 64-bit integers in the MSVC compiler.
85546
85547 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85548
85549         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85550
85551 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85552
85553         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85554
85555 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85556
85557         * doc/getdate.texi (General date syntax): Don't say that date
85558         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85559         Problem reported by Nic Ferrier.
85560
85561 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85562
85563         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85564         specified in ai_socktype. Fix invalid ai_protocol
85565         check. ai_protocol is usually set to 0 or depending on
85566         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85567         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85568         ai_socktype / ai_protocol in the returned addrinfo structure.
85569
85570 2005-05-10  Simon Josefsson  <jas@extundo.com>
85571
85572         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85573         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85574
85575 2005-05-10  Karl Berry  <karl@gnu.org>
85576
85577         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85578         (from http://www.gnu.org/licenses).
85579         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85580         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85581         fdl.texi suffices.
85582
85583 2005-05-10  Karl Berry  <karl@gnu.org>
85584
85585         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85586         (COPYING.DOC): remove.
85587
85588         * config/srclist-update: new FSF address.
85589
85590 2005-05-10  Derek Price  <derek@ximbiot.com>
85591
85592         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85593         possible.
85594
85595 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85596             Bruno Haible  <bruno@clisp.org>
85597
85598         * modules/inet_ntop: New file.
85599         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85600         inet_ntop.
85601
85602 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85603             Bruno Haible  <bruno@clisp.org>
85604
85605         * m4/inet_ntop.m4: New file.
85606
85607 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85608             Bruno Haible  <bruno@clisp.org>
85609
85610         * lib/inet_ntop.h: New file.
85611         * lib/inet_ntop.c: New file, from glibc with modifications.
85612
85613 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85614
85615         * modules/time_r (License): Change to LGPL.
85616         * modules/extensions (License): Change to LGPL.  Actually,
85617         the license is more permissive than that, but currently gnulib-tool
85618         doesn't know how to handle more-permissive licenses.
85619
85620         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85621         Problem reported by Dave Love.
85622
85623 2005-05-08  Jim Meyering  <jim@meyering.net>
85624
85625         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85626         blank.
85627
85628 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85629
85630         * modules/argmatch (Depends-on): Add stdbool.
85631         * modules/backupfile (Depends-on): Likewise.
85632         * modules/chdir-long (Depends-on): Likewise.
85633         * modules/closeout (Depends-on): Likewise.
85634         * modules/cycle-check (Depends-on): Likewise.
85635         * modules/dirname (Depends-on): Likewise.
85636         * modules/fnmatch (Depends-on): Likewise.
85637         * modules/fsusage (Depends-on): Likewise.
85638         * modules/fwriteerror (Depends-on): Likewise.
85639         * modules/getcwd (Depends-on): Likewise.
85640         * modules/getloadavg (Depends-on): Likewise.
85641         * modules/hard-locale (Depends-on): Likewise.
85642         * modules/makepath (Depends-on): Likewise.
85643         * modules/mountlist (Depends-on): Likewise.
85644         * modules/nanosleep (Depends-on): Likewise.
85645         * modules/posixtm (Depends-on): Likewise.
85646         * modules/quotearg (Depends-on): Likewise.
85647         * modules/readtokens (Depends-on): Likewise.
85648         * modules/readtokens0 (Depends-on): Likewise.
85649         * modules/readutmp (Depends-on): Likewise.
85650         * modules/save-cwd (Depends-on): Likewise.
85651         * modules/strftime (Depends-on): Likewise.
85652         * modules/userspec (Depends-on): Likewise.
85653         * modules/utimecmp (Depends-on): Likewise.
85654         * modules/xgetcwd (Depends-on): Likewise.
85655         * modules/xnanosleep (Depends-on): Likewise.
85656         * modules/xstrtod (Depends-on): Likewise.
85657         * modules/yesno (Depends-on): Likewise.
85658
85659 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85660
85661         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85662         needless checks.
85663
85664 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85665
85666         Merge from coreutils.  Among other things,
85667         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85668         * lib/fd-safer.c: New file.
85669         * lib/fcntl-safer.h, open-safer.c: Remove.
85670         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85671         * lib/dup-safer.c: Include unistd-safer.h first.
85672         Don't include errno.h.
85673         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85674         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85675         * lib/file-type.c: Rely on file-type.h change.
85676         * lib/getloadavg.c: Include unistd-safer.h.
85677         (getloadavg): Use safer open.
85678         * lib/getusershell.c: Include "stdio-safer.h".
85679         (getusershell): Use safer fopen.
85680         * lib/long-options.c (long_options): Use NULL rather than 0.
85681         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85682         'free'.
85683         * lib/modechange.c: Likewise.
85684         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85685         (MODE_DONE): New constant.
85686         (struct mode_change): Remove 'next' member.
85687         (make_node_op_equals): New function; like the old one of the
85688         same name, except it allocates an array.
85689         (mode_compile, mode_create_from_ref): Use it.
85690         (mode_compile): Allocate result as an array, not a linked list.
85691         Parse octal string ourself, so that we catch mistakes like "+0".
85692         (mode_adjust): Arg is an array, not a linked list.
85693         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85694         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85695         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85696         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85697         Remove.  This is now stat-macros.h's job.
85698         (talloc): Remove.  All callers replaced by xalloc, so that
85699         our invokers don't have to worry about reporting memory failures.
85700         (make_node_op_equals): Remove.
85701         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85702         New constants.
85703         (struct mode_change): Moved here from modechange.h.
85704         (mode_append_entry): Remove.
85705         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85706         apps to have incorrect behavior.  Use simpler algorithm for head
85707         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85708         Detect more invalid usages rather than having somewhat-random behavior.
85709         Don't insert an "a=" action, as that leads to incorrect behavior.
85710         (mode_compile, mode_create_from_ref): Return NULL on error instead
85711         of an enum, since now there's only one way to have an error.  All
85712         callers changed.
85713         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85714         at the correct time.  Simplify calculation of "+u" and its ilk.
85715         Don't mishandle "+X".
85716         (mode_free): Remove "register" and localize decls.
85717         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85718         (struct mode_change): Move to modechange.c; callers don't
85719         need to see this stuff.
85720         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85721         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85722         (mode_change, mode_adjust): Reflect the new signatures noted above.
85723         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85724         that might redefine system include files.
85725         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85726         (my_usleep): Use NULL rather than (void *) 0.
85727         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85728         Use siginterrupt to specify that system calls should be interrupted.
85729         (rpl_nanosleep): Move initialization of suspended closer to call of
85730         my_usleep.
85731         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85732         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85733         (desirable_utmp_entry): New function.
85734         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85735         using x2nrealloc, to simplify logic.
85736         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85737         size calculation.  Do not assume utmp file is a regular file.
85738         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85739         (READ_UTMP_CHECK_PIDS): New constant.
85740         * lib/save-cwd.c: Include unistd-safer.h.
85741         (save_cwd): Use fd_safer.
85742         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85743         [!_LIBC] Include "stat-macros.h" instead.
85744         * lib/unistd-safer.h (fd_safer): New decl.
85745
85746 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85747
85748         * modules/getloadavg (Depends-on): Add unistd-safer.
85749         * modules/getusershell (Depends-on): Add stdio-safer.
85750         * modules/lstat (Depends-on): Remove xalloc.
85751         * modules/mkstemp (Depends-on): Add stat-macros.
85752         * modules/modechange (Depends-on): Remove xstrtol.
85753         Add stat-macros, xalloc.
85754         * modules/save-cwd (Depends-on): Add unistd-safer.
85755         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85756         * modules/unistd-safer (Files): Add lib/fd-safer.c
85757         (Makefile.am): Remove lib_SOURCES.
85758
85759         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85760         Remove fcntl-safer; unistd-safer supersedes it.
85761
85762 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85763
85764         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85765         AC_HEADER_STAT.
85766         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85767         (gl_PREREQ_CHOWN): Remove.
85768         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85769         it.  Don't require AC_HEADER_STAT.
85770         (gl_PREREQ_LSTAT): Remove.
85771         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85772         Don't require AC_HEADER_STAT.
85773         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85774         (gl_PREREQ_RMDIR): Remove.
85775         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85776         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85777         the stat-macros module a prerequisite.
85778         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85779         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85780         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85781         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85782         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85783         variable names.
85784         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85785         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85786         variable prefixes.
85787         * m4/fcntl-safer.m4: Remove.
85788         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85789         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85790         Invoke gl_PREREQ_FD_SAFER.
85791         (gl_PREREQ_FD_SAFER): New macro.
85792         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85793         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85794         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85795         Remove duplicate call to AC_LIBOBJ(readutmp).
85796         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85797
85798         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85799         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85800
85801 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85802
85803         * MODULES.html.sh (Misc): Add byteswap.
85804
85805 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85806
85807         * modules/getcwd (Depends-on): Add extensions.
85808         * modules/openat (Depends-on): Likewise.
85809
85810 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85811
85812         * modules/byteswap: New file.
85813
85814 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85815
85816         * m4/byteswap.m4: New file.
85817
85818 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85819
85820         * lib/byteswap_.h: New file.
85821
85822 2005-04-25  Karl Berry  <karl@gnu.org>
85823
85824         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85825
85826 2005-04-25  Albert Chin  <china@thewrittenword.com>
85827
85828         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85829         Toolkit C bug.
85830
85831 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
85832
85833         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
85834         (func_ln_if_changed): Remove forcibly for no error message
85835         in case file does not exist.
85836
85837 2005-04-19  Simon Josefsson  <jas@extundo.com>
85838
85839         * gnulib-tool (Options): Make --symlink mean --symbolic.
85840
85841 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
85842
85843         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
85844
85845 2005-04-16  Simon Josefsson  <jas@extundo.com>
85846
85847         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
85848
85849 2005-04-15  Simon Josefsson  <jas@extundo.com>
85850
85851         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
85852
85853 2005-04-15  Simon Josefsson  <jas@extundo.com>
85854
85855         * gnulib-tool: Rename --symlink to --symbolic.
85856
85857 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
85858
85859         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
85860         symbolic links to files instead of copying/moving.  Add --aux-dir,
85861         specifying directory relative --dir where auxiliary build tools
85862         are placed.
85863
85864 2005-04-14  Bruno Haible  <bruno@clisp.org>
85865
85866         * modules/allocsa (License): Change to LGPL.
85867         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
85868
85869 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85870
85871         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
85872         that "UTC +1 second" continues to work.  Problem reported
85873         by Dmitry V. Levin.
85874         (relunit_snumber): New rule.
85875         (relunit): Use it.
85876
85877 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
85878
85879         * lib/getdate.y (universal_time_zone_table): New constant.
85880         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
85881         universal_time_zone_table.
85882         (lookup_zone): Prefer universal_time_zone_table to
85883         local_time_zone_table, so that "GMT" time stamps are allowed in
85884         London during the summer.  Problem reported by Ian Abbott.
85885
85886 2005-04-12  Jim Meyering  <jim@meyering.net>
85887
85888         * lib/human.c (humblock): Set *options even when returning due to
85889         xstrtoumax conversion failure.  Thanks to a used-uninitialized
85890         warning from gcc-4.
85891
85892 2005-04-09  Jim Meyering  <jim@meyering.net>
85893
85894         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
85895         -Wuninitialized: initialize tm0.tm_year.
85896
85897 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85898
85899         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
85900         count, since there's no maximum.  All uses changed.
85901         Add member dsts_seen.
85902         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
85903         not being INT_MAX.
85904         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
85905         Use pc_rels_seen to decide whether a date is absolute.
85906
85907         * lib/getdate.y (number): Don't overwrite year.
85908         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
85909         check.
85910
85911 2005-04-02  Simon Josefsson  <jas@extundo.com>
85912
85913         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
85914         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
85915
85916 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
85917
85918         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
85919         where no absolute path name can be longer than PATH_MAX.
85920
85921 2005-03-27  Jim Meyering  <jim@meyering.net>
85922
85923         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
85924
85925 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
85926
85927         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
85928         "one's complement" -> "ones' complement" in comment, as per Knuth.
85929         "value of type" -> "type or expression" in comment.
85930         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
85931
85932 2005-03-26  Jim Meyering  <jim@meyering.net>
85933
85934         Comment nits.
85935         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
85936         Correct typos: s/or/of/.
85937
85938 2005-03-26  Jim Meyering  <jim@meyering.net>
85939
85940         * modules/check-include-files: Move to ../ and rename to...
85941         * check-module: ...this.
85942
85943 2005-03-25  Jim Meyering  <jim@meyering.net>
85944
85945         * modules/xvasprintf (Files): Add xalloc.h.
85946
85947 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85948
85949         * modules/gettext (Files): config/config.rpath ->
85950         build-aux/config.rpath
85951         * modules/iconv (Files): Likewise.
85952         Problem reported by Oskar Liljeblad.
85953
85954 2005-03-23  Jim Meyering  <jim@meyering.net>
85955
85956         * modules/check-include-files: New script to check for
85957         missing dependencies, multiple includes, etc.
85958
85959         * modules/c-strtold (Depends-on): Add xalloc.
85960         * modules/c-strtod (Depends-on): Add xalloc.
85961         * modules/hash (Depends-on): Add xalloc.
85962         (Files): Remove lib/xalloc.h.
85963
85964         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
85965         * modules/userspec (Files): Add lib/inttostr.h.
85966
85967 2005-03-23  Jim Meyering  <jim@meyering.net>
85968
85969         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
85970
85971 2005-03-22  Jim Meyering  <jim@meyering.net>
85972
85973         * modules/stat-macros: New module.
85974         * modules/canonicalize, modules/euidaccess, modules/file-type,
85975         * modules/filemode, modules/lchown, modules/makepath,
85976         * modules/rmdir, modules/stat: Depend on new stat-macros module
85977         rather than listing lib/stat-macros.h manually.
85978         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85979
85980 2005-03-22  Jim Meyering  <jim@meyering.net>
85981
85982         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85983
85984 2005-03-22  Bruno Haible  <bruno@clisp.org>
85985
85986         * config/srclist.txt: Replace target directory 'config' with
85987         'build-aux'.
85988         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85989         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85990         ../build-aux/.
85991
85992 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85993
85994         * modules/chdir-long (Depends-on): Add mempcpy.
85995
85996         * modules/acl, modules/backupfile, modules/c-strtod,
85997         modules/c-strtold, modules/canon-host, modules/canonicalize,
85998         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85999         modules/exclude, modules/exitfail, modules/file-type,
86000         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86001         modules/getdate, modules/getline, modules/getpagesize,
86002         modules/getpass, modules/getugroups, modules/group-member,
86003         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86004         modules/inttostr, modules/long-options, modules/makepath,
86005         modules/md5, modules/memcasecmp, modules/memcoll,
86006         modules/modechange, modules/mountlist, modules/path-concat,
86007         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86008         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86009         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86010         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86011         modules/strftime, modules/strndup, modules/strverscmp,
86012         modules/timespec, modules/unlocked-io, modules/userspec,
86013         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86014         modules/yesno:
86015         Remove lib_SOURCES line from Makefile.am section, as this is now
86016         done automatically by the corresponding Autoconf macro.
86017
86018 2005-03-21  Jim Meyering  <jim@meyering.net>
86019
86020         Changes imported from coreutils.
86021
86022         * lib/cycle-check.c: Don't include xalloc.h.
86023
86024         * lib/path-concat.c: Don't include assert.h.
86025         (path_concat): Remove assertion that would have triggered
86026         for ABASE starting with more than one slash.
86027         Reported by Andreas Schwab.
86028
86029         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86030         properly when ABASE is an absolute file name.
86031         Correct the description of this function.
86032         Include <assert.h>.
86033         Add an assertion and a test driver.
86034         This fixes a bug introduced on 2004-07-02.
86035         Andreas Schwab reported the resulting failure of cp --parents:
86036         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86037
86038 2005-03-21  Jim Meyering  <jim@meyering.net>
86039
86040         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86041         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86042
86043 2005-03-21  Jim Meyering  <jim@meyering.net>
86044         and  Paul Eggert  <eggert@cs.ucla.edu>
86045
86046         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86047         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86048         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86049         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86050         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86051         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86052         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86053         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86054         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86055         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86056         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86057         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86058         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86059         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86060         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86061         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86062         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86063         for these modules.
86064
86065 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86068         (which shouldn't happen), generate nothing instead of returning 0
86069         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86070
86071 2005-03-16  Bruno Haible  <bruno@clisp.org>
86072
86073         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86074         HAVE_LONGLONG_64BIT.
86075
86076 2005-03-16  Bruno Haible  <bruno@clisp.org>
86077
86078         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86079         HAVE_LONGLONG_64BIT.
86080
86081 2005-03-16  Bruno Haible  <bruno@clisp.org>
86082
86083         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86084         HAVE_LONGLONG_64BIT.
86085
86086 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86087
86088         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86089         reliably distinguish strftime failure from empty output on POSIX
86090         hosts.
86091
86092 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86093
86094         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86095         (iconv_string): Don't guess a size-zero buffer, as that might cause
86096         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86097         result would be 'too large', where 'too large' is (heuristically)
86098         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86099         overflow concerns.  This will prevent some unwanted malloc failures
86100         when the inputs are very large.
86101
86102 2005-03-15  Karl Berry  <karl@gnu.org>
86103
86104         * config/srclist.txt (config.rpath): from gettext.
86105         * config/config.rpath: update.
86106
86107 2005-03-15  Bruno Haible  <bruno@clisp.org>
86108
86109         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86110         to 'negate'.
86111
86112         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86113         variable.
86114
86115         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86116         results.
86117
86118 2005-03-14  Simon Josefsson  <jas@extundo.com>
86119
86120         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86121         <fx@gnu.org>.
86122
86123 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86124
86125         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86126         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86127         intprops.h.
86128         * lib/strtol.c: Likewise.
86129
86130 2005-03-14  Jim Meyering  <jim@meyering.net>
86131
86132         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86133         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86134         to be nonzero so that we (and caller) can detect the difference
86135         between a valid zero-length expansion and an error return, even
86136         when the underlying strftime fails before writing anything into
86137         that location.
86138
86139 2005-03-14  Bruno Haible  <bruno@clisp.org>
86140
86141         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86142         Update from GNU gettext 0.14.3.
86143
86144 2005-03-10  Jim Meyering  <jim@meyering.net>
86145
86146         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86147
86148 2005-03-10  Jim Meyering  <jim@meyering.net>
86149
86150         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86151         so that this module works on systems without fchdir.
86152
86153 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86154
86155         Factor int-properties macros into a single file, except for
86156         glibc-related files.
86157         * lib/intprops.h: New file.
86158         * lib/getloadavg.c: Include it instead of limits.h.
86159         (INT_STRLEN_BOUND): Remove.
86160         * lib/human.c: Include intprops.h.
86161         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86162         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86163         302/1000.
86164         * lib/inttostr.h: Include intprops.h instead of limits.h.
86165         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86166         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86167         for consistency with intprops.h.
86168         (time_t_is_integer, twos_complement_arithmetic): Use them.
86169         * lib/sig2str.h: Include <signal.h>, intprops.h.
86170         (INT_STRLEN_BOUND): Remove.
86171         * lib/strftime.c (TYPE_SIGNED): Remove.
86172         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86173         * lib/strtol.c: Adjust comments to match intprops.h.
86174         * lib/userspec.c: Include intprops.h.
86175         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86176         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86177         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86178         instead of rolling our own expressions.
86179         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86180
86181         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86182         instead of int.
86183         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86184         the right thing even if adding 1900 would overflow.  Similarly
86185         for tm_mon + 1 and tm_yday + 1.
86186         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86187         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86188         (DO_SIGNED_NUMBER): New macro.
86189         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86190
86191 2005-03-07  Bruno Haible  <bruno@clisp.org>
86192
86193         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86194
86195 2005-03-07  Bruno Haible  <bruno@clisp.org>
86196
86197         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86198
86199 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86200
86201         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86202         (func_import): Only replace files via --import when they have actually
86203         changed.
86204
86205 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86206
86207         * m4/mmap-anon.m4: New file.
86208         * m4/pagealign_alloc.m4: New file.
86209
86210 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86211             Bruno Haible  <bruno@clisp.org>
86212
86213         * modules/pagealign_alloc: New file.
86214         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86215
86216 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86217             Bruno Haible  <bruno@clisp.org>
86218
86219         * lib/pagealign_alloc.h: New file.
86220         * lib/pagealign_alloc.c: New file.
86221
86222 2005-03-03  Bruno Haible  <bruno@clisp.org>
86223
86224         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86225         Use an all-permissive copyright notice, recommended by RMS.
86226
86227 2005-03-02  Bruno Haible  <bruno@clisp.org>
86228
86229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86230         of AIX, the replacement has to be done only after <string.h> is
86231         included, therefore not in config.h. stpncpy.h does the replacement,
86232         and stpncpy.c uses it.
86233
86234 2005-03-02  Bruno Haible  <bruno@clisp.org>
86235
86236         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86237         stpncpy.c uses it.
86238
86239 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86240
86241         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86242         The workaround isn't strictly needed for POSIX conformance, and
86243         it's too much of a pain to configure and maintain.  We'll ask
86244         people to fix their kernels instead.
86245         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86246         (NANOSLEEP_BUG_WORKAROUND): Remove.
86247         (xnanosleep): Remove the workaround.
86248
86249 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86250
86251         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86252         Reported by Derek Price.
86253         (Include): Add "timespec.h".
86254
86255         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86256
86257 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86258
86259         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86260         to detect nanosleep bug.
86261
86262 2005-03-01  Bruno Haible  <bruno@clisp.org>
86263
86264         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86265
86266 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86267
86268         * modules/gethrxtime: New file.
86269         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86270         (Depends-on): Add gethrxtime.
86271         (configure.ac): Add gl_XNANOSLEEP.
86272         (Makefile.am): Remove lib_SOURCES line.
86273
86274 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86275
86276         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86277         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86278
86279 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86280
86281         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86282         * lib/timespec.h (gettime): Return void, since it always
86283         succeeds now.  All uses changed.
86284         * lib/gettime.c (gettime): Likewise.
86285         [HAVE_NANOTIME]: Prefer nanotime.
86286         Assume gettimeofday succeeds, as POSIX requires.
86287         Assime time () succeeds, since other code already does.
86288         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86289         (timespec_subtract): Remove.
86290         (NANOSLEEP_BUG_WORKAROUND): New constant.
86291         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86292         things considerably.  Use it only on GNU/Linux hosts, since the
86293         workaround shouldn't be needed elsewhere.
86294
86295 2005-02-24  Bruno Haible  <bruno@clisp.org>
86296
86297         * modules/gettext (Files): Add m4/glibc2.m4.
86298
86299 2005-02-24  Bruno Haible  <bruno@clisp.org>
86300
86301         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86302         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86303         * m4/progtest.m4:
86304         Update from GNU gettext 0.14.2.
86305         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86306
86307 2005-02-24  Bruno Haible  <bruno@clisp.org>
86308
86309         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86310         * lib/config.charset: Update from GNU gettext 0.14.2.
86311
86312 2005-02-24  Bruno Haible  <bruno@clisp.org>
86313
86314         * lib/gettext.h: Update from GNU gettext 0.14.2.
86315
86316 2005-02-23  Simon Josefsson  <jas@extundo.com>
86317
86318         * m4/iconvme.m4: New file.
86319
86320 2005-02-23  Jim Meyering  <jim@meyering.net>
86321
86322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86323         change.
86324         Thanks to Bruno Haible for catching it.
86325
86326 2005-02-22  Simon Josefsson  <jas@extundo.com>
86327
86328         * modules/iconvme: New file.
86329
86330         * MODULES.html.sh: Add iconvme.
86331
86332 2005-02-22  Simon Josefsson  <jas@extundo.com>
86333
86334         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86335
86336 2005-02-22  Simon Josefsson  <jas@extundo.com>
86337
86338         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86339
86340 2005-02-22  Jim Meyering  <jim@meyering.net>
86341
86342         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86343         s/ifndef/ifdef/.
86344
86345 2005-02-20  Neil Conway  <neilc@samurai.com>
86346
86347         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86348         returned by OSX/Darwin if the specified buffer is not large
86349         enough for the hostname.
86350
86351 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86352
86353         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86354         pass it to _help, otherwise the latter coredumps trying to
86355         dereference state.root_argp.
86356
86357 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86358
86359         * modules/chdir-long (Depends-on): Add memrchr.
86360         * modules/memrchr (Files): Add lib/memrchr.h.
86361         (Include): "memrchr.h".
86362
86363 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86364
86365         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86366
86367 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86368
86369         * lib/memrchr.h: New file.
86370         * lib/chdir-long.c: Include it.
86371         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86372         Don't bother including stddef.h.
86373
86374 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86375
86376         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86377         inclusion.
86378         Include <sys/types.h>, for dev_t.
86379         (ME_DUMMY, ME_REMOTE): Move from here....
86380         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86381         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86382         Dmitry V. Levin.
86383         Include mountlist.h first, to test the interface.
86384
86385 2005-01-29  Bruno Haible  <bruno@clisp.org>
86386
86387         * lib/progname.c (program_name): Initialize.
86388         Needed when linking statically on MacOS X.
86389
86390 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86391
86392         Sync from coreutils.
86393         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86394         (Depends-on): Add c-strtod.
86395         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86396
86397 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86398
86399         Sync from coreutils.
86400         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86401
86402         Remove files that are specific to coreutils.
86403         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86404
86405 2005-01-28  Bruno Haible  <bruno@clisp.org>
86406
86407         * modules/javacomp: New file.
86408         * MODULES.html.sh (Java): Add javacomp.
86409
86410 2005-01-28  Bruno Haible  <bruno@clisp.org>
86411
86412         * m4/javacomp.m4: New file, from GNU gettext.
86413
86414 2005-01-28  Bruno Haible  <bruno@clisp.org>
86415
86416         * lib/javacomp.sh.in: New file, from GNU gettext.
86417         * lib/javacomp.h: New file, from GNU gettext.
86418         * lib/javacomp.c: New file, from GNU gettext.
86419
86420 2005-01-26  Simon Josefsson  <jas@extundo.com>
86421
86422         * lib/gai_strerror.c: Use GPL in header.
86423
86424 2005-01-26  Bruno Haible  <bruno@clisp.org>
86425
86426         * modules/javaexec: New file.
86427         * MODULES.html.sh (Java): Add javaexec.
86428
86429 2005-01-26  Bruno Haible  <bruno@clisp.org>
86430
86431         * m4/javaexec.m4: New file, from GNU gettext.
86432
86433 2005-01-26  Bruno Haible  <bruno@clisp.org>
86434
86435         * lib/javaexec.sh.in: New file, from GNU gettext.
86436         * lib/javaexec.h: New file, from GNU gettext.
86437         * lib/javaexec.c: New file, from GNU gettext.
86438
86439 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86440
86441         * modules/lchown (Depends-on): Remove lchown.h
86442
86443 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86444
86445         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86446         must be defined if the header file was not found, in order
86447         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86448
86449 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86450
86451         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86452         initializers for struct pentry_state.
86453         (__argp_error): Check return value of __asprintf
86454         (__argp_failure): Translate error message
86455
86456         * lib/argp-parse.c: Removed braces around the expansion of N_()
86457
86458 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86459
86460         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86461         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86462         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86463         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86464         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86465         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86466         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86467         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86468         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86469         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86470         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86471         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86472         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86473         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86474         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86475         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86476         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86477         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86478         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86479         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86480         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86481         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86482         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86483         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86484         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86485         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86486         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86487         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86488         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86489         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86490         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86491         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86492         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86493         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86494         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86495         Use an all-permissive copyright notice, recommended by RMS.
86496
86497 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86498
86499         * modules/chdir-long (Depends-on): Remove mempcpy.
86500
86501 2005-01-21  Jim Meyering  <jim@meyering.net>
86502
86503         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86504         same value as for Solaris 9.
86505
86506         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86507         component length.  This included changing the parameter to be
86508         of type `char *' rather than `char const *'.
86509         * lib/chdir-long.h (chdir_long): Update prototype.
86510
86511         * lib/openat.c (fdopendir, fstatat): New functions.
86512         * lib/openat.h: Include headers required for use of DIR and struct
86513         stat.
86514         [AT_SYMLINK_NOFOLLOW]: Define.
86515         (fdopendir, fstatat): Add prototypes.
86516
86517 2005-01-21  Bruno Haible  <bruno@clisp.org>
86518
86519         * modules/classpath: New file.
86520         * MODULES.html.sh (Java): Add classpath.
86521
86522 2005-01-21  Bruno Haible  <bruno@clisp.org>
86523
86524         * lib/classpath.h: New file, from GNU gettext.
86525         * lib/classpath.c: New file, from GNU gettext.
86526
86527 2005-01-20  Simon Josefsson  <jas@extundo.com>
86528
86529         * modules/version-etc-fsf: New file.
86530
86531 2005-01-20  Simon Josefsson  <jas@extundo.com>
86532
86533         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86534         * lib/version-etc.c: Remove version_etc_copyright.
86535         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86536         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86537
86538 2005-01-20  Simon Josefsson  <jas@extundo.com>
86539
86540         * lib/base64.h (isbase64): Add.
86541
86542         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86543         using a unsigned prototype, don't inline.
86544         (base64_decode): Use it.
86545
86546 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86547
86548         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86549         it.
86550
86551 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86552
86553         * lib/save-cwd.c (save_cwd): Remove code to support the case
86554         where fchdir is missing or flaky.
86555
86556 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86557
86558         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86559
86560 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86561
86562         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86563         AC_LIBSOURCES now does this.
86564         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86565         with new ullong_max module.
86566
86567 2005-01-19  Bruno Haible  <bruno@clisp.org>
86568
86569         * modules/sh-quote: New file.
86570         * MODULES.html.sh (Executing programs): Add sh-quote.
86571
86572 2005-01-19  Bruno Haible  <bruno@clisp.org>
86573
86574         * lib/sh-quote.h: New file, from GNU gettext.
86575         * lib/sh-quote.c: New file, from GNU gettext.
86576
86577 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86578
86579         Merge from coreutils.
86580         * m4/ullong_max.m4: New file.
86581         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86582         (gl_MACROS): Assume localeconv exists.
86583
86584 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86585
86586         Merge changes from coreutils, as described below in several
86587         changelogs dated today.
86588
86589         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86590         (O_DIRECTORY): Remove; not needed here, since "." must be
86591         a directory.  All uses removed.
86592         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86593         universal on Suns, and we also need to test for IRIX.
86594         Revamp code to use 'if' rather than '#if'.
86595         Avoid unnecessary comparison of cwd->desc to 0.
86596
86597         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86598         for known valid error numbers rather than observed invalid ones.
86599
86600 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86601
86602         * modules/ullong_max: New file.
86603
86604         * modules/chdir-long, modules/openat: New files.
86605         * modules/save-cwd (Depends-on): Depend on chdir-long.
86606         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86607
86608 2005-01-18  Jim Meyering  <jim@meyering.net>
86609
86610         Merge from coreutils.
86611         * m4/chdir-long.m4, m4/openat.m4: New files.
86612         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86613         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86614         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86615         is sane and DOES follow symlinks.  Besides, testing 20 different
86616         systems found no broken chown implementations.
86617         Prompted by a change in rsync's copy of this macro.
86618         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86619
86620         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86621
86622         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86623         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86624         NULL-means-set-to-current-time semantics.
86625         Remove temporary file immediately, rather than waiting
86626         for configure's at-exit trap code to do it.
86627
86628 2005-01-18  Jim Meyering  <jim@meyering.net>
86629
86630         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86631
86632         * lib/utimens.c (futimens): Account for the fact that futimes
86633         can also fail with errno == ENOSYS or errno == ENOENT.
86634         Patch from Dmitry V. Levin.
86635
86636         Change the name of the robust chdir function from chdir to chdir_long.
86637         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86638         (restore_cwd): Use chdir_long, not chdir.
86639         * lib/chdir-long.c: Renamed from chdir.c.
86640         * lib/chdir-long.h: Renamed from chdir.h.
86641         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86642         Hurd.
86643
86644 2005-01-18  Bruno Haible  <bruno@clisp.org>
86645
86646         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86647         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86648         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86649         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86650         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86651         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86652         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86653         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86654         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86655         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86656         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86657         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86658         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86659         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86660         Use an all-permissive copyright notice, recommended by RMS.
86661
86662 2005-01-18  Bob Proulx  <bob@proulx.com>
86663
86664         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86665         simplify offsetof() macro construct to avoid compile failure with
86666         native HP-UX 11.0 ANSI C compiler.
86667
86668 2005-01-17  Bruno Haible  <bruno@clisp.org>
86669
86670         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86671         redundant because stpncpy.m4 takes care of it.
86672
86673 2005-01-17  Bruno Haible  <bruno@clisp.org>
86674
86675         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86676
86677 2005-01-17  Bruno Haible  <bruno@clisp.org>
86678
86679         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86680         used.
86681
86682 2005-01-17  Bruno Haible  <bruno@clisp.org>
86683
86684         * lib/fwriteerror.h (fwriteerror): Change specification to include
86685         fclose.
86686         * lib/fwriteerror.c: Include <stdbool.h>.
86687         (fwriteerror): At the end, close the file stream. Record whether
86688         stdout was already closed.
86689
86690 2005-01-17  Bruno Haible  <bruno@clisp.org>
86691
86692         * lib/execute.c (environ): Declare if needed.
86693         * lib/pipe.c (environ): Likewise.
86694         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86695
86696 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86697
86698         * modules/argp: Depend on vsnprintf
86699
86700 2005-01-10  Jim Meyering  <jim@meyering.net>
86701
86702         * modules/closeout (Depends-on): Add atexit.
86703
86704 2005-01-06  Bruno Haible  <bruno@clisp.org>
86705
86706         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86707
86708 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86709
86710         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86711         definitions to be after all include files, to avoid collisions.
86712         Problem reported by Bob Proulx.
86713
86714 2005-01-04  Jim Meyering  <jim@meyering.net>
86715
86716         Changes imported from coreutils.
86717         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86718         as the mkstemp template, use a temporary directory and an
86719         8.3-friendly template to avoid trouble on systems like DJGPP.
86720         Reported by Juan M. Guerrero via Stepan Kasal.
86721         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86722         close. Remove the temporary directory right away, rather than waiting
86723         for configure's at-exit trap code to do it.
86724         Suggestion from Stepan Kasal.
86725
86726 2005-01-01  Simon Josefsson  <jas@extundo.com>
86727
86728         * gnulib-tool: Print #include directives when --import'ing.
86729
86730 2004-12-28  Simon Josefsson  <jas@extundo.com>
86731
86732         * tests/test-base64.c: Include required header files.  Remove
86733         unused variables.
86734
86735 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86736
86737         * modules/error (Depends-on): Remove gettext.
86738
86739 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86740
86741         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86742         not needed.  This removes a dependency on the gettext module.
86743         [defined _LIBC]: Do not include <libintl.h>; not needed.
86744
86745 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86746
86747         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86748         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86749
86750 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86751
86752         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86753         HAVE_DECL_STRTOLD.
86754
86755 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86756
86757         * modules/getdate (Depends-on): Remove alloca-opt.
86758
86759 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86760
86761         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86762
86763 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86764
86765         * lib/argp-parse.c: Include <stddef.h>.
86766         (alignof, alignto): New macros.
86767         (parser_init): Don't assume that void * is aligned sufficiently
86768         for struct option.
86769
86770         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86771         need to extend the stack.
86772         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86773         large.
86774
86775 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86776
86777         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86778
86779 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86780
86781         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86782         (2004-10-24) change.  Apparently this was a false alarm.
86783
86784         * modules/getdate: Depend on alloca-opt, not alloca.
86785
86786 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86787
86788         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86789         Remove now-obsolete comment about AIX.
86790         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86791         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86792         (YYMAXDEPTH): New macro.
86793
86794 2004-12-18  Simon Josefsson  <jas@extundo.com>
86795
86796         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86797
86798 2004-12-18  Bruno Haible  <bruno@clisp.org>
86799
86800         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86801
86802 2004-12-18  Bruno Haible  <bruno@clisp.org>
86803
86804         * lib/fatal-signal.c (fatal_signals): Make non-const.
86805         (init_fatal_signals): New function.
86806         (uninstall_handlers, install_handlers): Ignore signals that were set to
86807         SIG_IGN.
86808         (at_fatal_signal): Call init_fatal_signals.
86809         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86810         SIG_IGN.
86811         Reported by Paul Eggert.
86812
86813 2004-12-18  Bruno Haible  <bruno@clisp.org>
86814
86815         * doc/alloca.texi: New file.
86816         * doc/alloca-opt.texi: New file.
86817
86818 2004-12-17  Jim Meyering  <jim@meyering.net>
86819
86820         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86821         Otherwise, install-sh could exit with improper exit status when
86822         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86823
86824 2004-12-16  Simon Josefsson  <jas@extundo.com>
86825
86826         * tests/test-base64.c: Add license.
86827
86828 2004-12-15  Stepan Kasal  <address@hidden>
86829
86830         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86831
86832 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
86833
86834         * modules/getcwd (Files): Add m4/d-ino.m4.
86835         Suggested by Mark D. Baushke.
86836
86837 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86838
86839         * lib/getdate.y (textint): New member "negative".
86840         (time_zone_hhmm): New function.
86841         Expect 14 shift-reduce conflicts, not 13.
86842         (o_colon_minutes): New rule.
86843         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
86844         (yylex): Set the "negative" member of signed numbers.
86845
86846 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86847
86848         * doc/getdate.texi (Time of day items, Time zone items):
86849         Describe new formats +00:00, UTC+00:00.
86850
86851 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
86852
86853         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
86854         spurious "-l"s.  Problem reported by Stepan Kasal.
86855
86856 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
86857
86858         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
86859         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
86860
86861 2004-12-04  Simon Josefsson  <jas@extundo.com>
86862
86863         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
86864         Vandoorselaere <yoann@prelude-ids.org>.
86865
86866 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86867
86868         Changes imported from coreutils.
86869         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
86870         exist.
86871         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
86872
86873 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86874
86875         Changes imported from coreutils.
86876         * lib/hard-locale.c: Assume <locale.h> exists.
86877         Include "strdup.h".
86878         (GLIBC_VERSION): New macro.
86879         (hard_locale): Assume setlocale exists.
86880         Rewrite to avoid #ifdef.
86881         Use strdup rather than malloc + strcpy.
86882         * lib/human.c: Assume <locale.h> exists.
86883         (human_readable): Assume localeconv exists.
86884
86885 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86886
86887         * modules/hard-locale (Depends-on): Add strdup.
86888
86889 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
86890
86891         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
86892         convert T2, not T.  (Imported from libc.)
86893
86894 2004-11-30  Simon Josefsson  <jas@extundo.com>
86895
86896         * modules/restrict (License): Change to LGPL.
86897
86898 2004-11-30  Simon Josefsson  <jas@extundo.com>
86899
86900         * m4/restrict.m4: Add copyright and copying conditions.
86901
86902 2004-11-30  Simon Josefsson  <jas@extundo.com>
86903
86904         * m4/base64.m4: New file.
86905
86906 2004-11-30  Simon Josefsson  <jas@extundo.com>
86907
86908         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
86909         base64.
86910
86911         * tests/test-base64.c: New file.
86912
86913         * modules/base64: New file.
86914
86915 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86916
86917         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
86918         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
86919
86920         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
86921
86922 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86923
86924         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
86925         (__getcwd.c): Don't restore errno; glibc doesn't.
86926         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
86927         first, falling back to our code only if its results look suspicious.
86928         Ensure that the resulting buffer is only as large as necessary.
86929
86930         * lib/readutmp.c: Include readutmp.h first.
86931         Include <errno.h>, since readutmp.h no longer does that.
86932         * lib/readutmp.h: Don't include <errno.h>,
86933         <sys/param.h>, <time.h>; not needed to establish interface.
86934         (errno): Remove decl.
86935         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
86936         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
86937         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
86938
86939 2004-11-28  Simon Josefsson  <jas@extundo.com>
86940
86941         * lib/base64.h, base64.c: New file.
86942
86943 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
86944
86945         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
86946
86947 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
86948
86949         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
86950         (Depends-on): Remove pathmax, same.  Add mempcpy.
86951         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
86952         (Makefile.am): Append getcwd.h to lib_SOURCES.
86953         (Include): Add getcwd.h.
86954         (Maintainer): Change from Jim Meyering to "all, glibc",
86955         since getdate now uses intended-for-glibc code.
86956         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
86957         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
86958
86959 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86960
86961         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
86962         HP's ANSI C compiler.
86963         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
86964         Declaring int functions causes warnings on some modern systems and
86965         shouldn't be needed to compile on ancient ones.
86966         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
86967         defined.
86968
86969         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
86970         with the following changes.
86971         (__set_errno): Parenthesize properly.
86972         Include <stdbool.h>.
86973         (MIN, MAX, MATCHING_INO): New macros.
86974         (__getcwd): Define with prototype, not K&R form.
86975         Use heuristics to allocate default buffer on stack if possible.
86976         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86977         behavior, and to avoid the PATH_MAX limit when computing
86978         ../../../../...
86979         Use MATCHING_INO to compare inode number to file.
86980         Check for arithmetic overflow in size calculations.
86981         Fix bug in reallocation of dot array that caused getcwd to fail
86982         on directories nested deeper than 75.
86983         Be more careful about saving errno on error.
86984         Do not use realloc; use only free+malloc, as this is a bit
86985         more flexible and avoids a needless copy operation.
86986         Do not inspect st_dev and st_ino for symbolic links; POSIX
86987         doesn't specify the latter.
86988         Check for closedir errors.
86989         Avoid needless casts.
86990         Use "#ifdef weak_alias" around weak_alias, to be like other
86991         glibc code.
86992         The following changes to getcwd.c have effect only when used in
86993         gnulib; they have no effect inside glibc proper.
86994         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86995         as alloca isn't used.
86996         (alloca, __alloca): Likewise.
86997         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86998         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86999         unconditionally, as gnulib assumes C89 or better.
87000         Do not include <sys/param.h>.
87001         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87002         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87003         better.
87004         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87005         Include <dirent.h> in a way that is compatible with modern Autoconf.
87006         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87007         New macros, if not already defined.
87008         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87009         Use "_LIBC", not "defined _LIBC", for consistency.
87010         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87011         a mempcpy module.
87012         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87013         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87014         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87015         credit only to Jim Meyering and adjust the copyright dates.
87016         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87017         <stdlib.h>, <unistd.h>, "pathmax.h".
87018         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87019         (INITIAL_BUFFER_SIZE): Remove.
87020         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87021
87022 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87023
87024         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87025         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87026         Use the _ONCE methods, for efficiency.
87027         Check for fcntl.h.  In test program, include <errno.h>
87028         and <fcntl.h> if available.  Remove old K&R cruft from
87029         test program.  Check for common errors in GNU/Linux,
87030         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87031         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87032         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87033         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87034         name accordingly.
87035         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87036         accommodate new getcwd.c.
87037         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87038         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87039         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87040         that's all we need now.
87041
87042 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87043
87044         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87045         argp-parse.c depends on getopt internals, that means we should
87046         always use our getopt, to be on the safe side.
87047         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87048         order not to spoil the result of an eventual previous invocation
87049         of gl_GETOPT_SUBSTITUTE.
87050
87051 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87052
87053         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87054         redefinition warnings. To avoid them, include the defines
87055         in `#if !defined __need_getopt ... #endif'. The only place
87056         where __getopt_argv_const is used is in definitions
87057         of getopt_long and getopt_long_only below, which are as well
87058         protected by `#ifndef __need_getopt'.
87059         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87060         __need_getopt after including <stdio.h> and <unistd.h> These
87061         headers might have defined it.
87062
87063 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87064
87065         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87066
87067 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87068
87069         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87070         (futimens): New function, which uses futimes if available.
87071         (futimens, utimens): Support timespec==NULL, with same semantics
87072         as utime and utimens.
87073         * lib/utimens.h (futimens): New decl.
87074
87075 2004-11-23  Jim Meyering  <jim@meyering.net>
87076
87077         * lib/getopt_.h: Remove trailing blanks.
87078
87079 2004-11-23  Jim Meyering  <jim@meyering.net>
87080
87081         * lib/__fpending.c: Add comment.
87082
87083 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87084
87085         * modules/canonicalize (Depends-on): Add xreadlink.
87086         Problem reported by James Youngman.
87087
87088 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87089
87090         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87091         New macros.
87092         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87093         optopt): Use them instead of invoking ## directly; otherwise, the
87094         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87095
87096 2004-11-19  Bruno Haible  <bruno@clisp.org>
87097
87098         * lib/strtok_r.c: Move comments from here...
87099         * lib/strtok_r.h: ... to here.
87100
87101 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87102
87103         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87104         implementations that mishandle size_t overflow.
87105
87106 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87107
87108         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87109         might fail.  Problem reported by Yoann Vandoorselaere.
87110         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87111         implementations that mishandle size_t overflow.
87112
87113 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87114
87115         * modules/canon-host (Depends-on): Add strdup.
87116
87117 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87118
87119         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87120
87121 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87122
87123         * lib/canon-host.c: Include "strdup.h".
87124         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87125         Use strdup instead of malloc/strcpy to duplicate strings.
87126
87127         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87128         (human_space_before_unit): New constant.
87129         * lib/human.c (human_readable): Support it.
87130
87131         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87132         (xgetcwd): Set errno correctly when failing.
87133         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87134         the failure is actually due to a PATH_MAX problem.
87135
87136         Further getopt changes to make it more likely that glibc will
87137         buy the changes back.
87138         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87139         (getopt): Use it, so to preserve glibc semantic
87140         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87141         when compiling for libc.
87142         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87143         (getopt_long, getopt_long_only): Use it.
87144
87145         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87146         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87147         (getopt): Argv is now char * const *, as per standard.
87148         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87149         not char *__getopt_argv_const *.
87150         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87151         _getopt_long_only_r): Likewise.
87152         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87153         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87154         _getopt_long_r, _getopt_long_only_r): Likewise.
87155         * lib/getopt_.h (__getopt_argv_const): Remove.
87156         (getopt): Argv is now char * const *, as per standard.
87157
87158         * lib/getdate.y (tORDINAL): New token.
87159         (day, relunit): Allow it for relative times.
87160         (relative_time_table): Use tORDINAL for ordinals.
87161
87162 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87163
87164         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87165         Document that "second" isn't allowed as an ordinal number.
87166
87167 2004-11-16  Jim Meyering  <jim@meyering.net>
87168
87169         * modules/closeout (Depends-on): Add fpending.
87170
87171 2004-11-15  Jim Meyering  <jim@meyering.net>
87172
87173         * lib/closeout.c: Include "__fpending.h" once again.
87174         Include <stdbool.h>.
87175         (close_stdout): Don't fail just because stdout was closed initially,
87176         since some programs don't write to stdout in the normal course of
87177         operation (other than --version and --help), and we don't want this
87178         function to make e.g. `touch file >&-' fail.
87179         But do fail if it was closed and someone has tried to write to it.
87180         E.g., `printf foo >&-' must fail.
87181
87182 2004-11-13  Jim Meyering  <jim@meyering.net>
87183
87184         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87185
87186 2004-11-12  Simon Josefsson  <jas@extundo.com>
87187
87188         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87189         small doc fix is still pending.
87190
87191 2004-11-11  Simon Josefsson  <jas@extundo.com>
87192
87193         * modules/strtok_r: New file.
87194
87195         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87196         strtok_r.
87197
87198 2004-11-11  Simon Josefsson  <jas@extundo.com>
87199
87200         * m4/strtok_r.m4: New file.
87201
87202         * m4/getopt.m4: Replace opterr.
87203
87204 2004-11-11  Simon Josefsson  <jas@extundo.com>
87205
87206         * lib/strtok_r.h, strtok_r.c: New file.
87207
87208 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87209
87210         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87211         of replacing opterr, getopt, etc.  This should handle the
87212         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87213
87214 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87215
87216         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87217         we can stop lying to compilers about the constness of argv when we
87218         are compiled outside glibc.
87219         (getopt, getopt_long, getopt_long_only): Use it.
87220         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87221         _getopt_internal, getopt): Likewise.
87222         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87223         _getopt_long_only_r): Likewise.
87224         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87225         _getopt_long_r, _getopt_long_only_r): Likewise.
87226
87227         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87228         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87229         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87230         the other external symbols.
87231         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87232         declaration, since the above renaming now works around collisions.
87233
87234 2004-11-11  Jim Meyering  <jim@meyering.net>
87235
87236         * lib/linebreak.c: Remove trailing blanks.
87237         * lib/alloca_.h: Likewise.
87238         * lib/acosl.c: Likewise.
87239         * lib/euidaccess.c: Likewise.
87240         * lib/allocsa.h: Likewise.
87241
87242 2004-11-10  Simon Josefsson  <jas@extundo.com>
87243
87244         * m4/getaddrinfo.m4: New file.
87245
87246 2004-11-10  Simon Josefsson  <jas@extundo.com>
87247
87248         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87249
87250 2004-11-10  Simon Josefsson  <jas@extundo.com>
87251
87252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87253         getaddrinfo.
87254
87255         * modules/getaddrinfo: New file.
87256
87257 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87258
87259         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87260
87261 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87262
87263         * lib/mktime.c (SHR): New macro, which is a portable
87264         substitute for >> that should work even on Crays.
87265         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87266         Problem reported by Mark D. Baushke in
87267         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87268         * lib/getdate.y (SHR): Likewise.
87269         (tm_diff): Use it.
87270         * lib/strftime.c (SHR): Likewise.
87271         (tm_diff): Use it.
87272         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87273         quote_these_too, so that right shifts are well defined.  All uses
87274         changed.
87275
87276 2004-11-10  Jim Meyering  <jim@meyering.net>
87277
87278         Ensure that no close failure goes unreported.
87279         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87280         return early when it seems there's nothing to flush.
87281         Don't include __fpending.h.
87282
87283 2004-11-10  Jim Meyering  <jim@meyering.net>
87284
87285         * modules/closeout (Depends-on): Remove fpending.
87286
87287 2004-11-10  Jim Meyering  <jim@meyering.net>
87288
87289         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87290
87291 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87292
87293         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87294         gl_FUNC_STRFTIME.
87295         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87296         and AC_REQUIRE when possible, to avoid duplicate checks.
87297         Check for <wchar.h>.
87298
87299 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87300
87301         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87302
87303 2004-11-09  Bruno Haible  <bruno@clisp.org>
87304
87305         * m4/sockpfaf.m4: New file.
87306
87307 2004-11-05  Bruno Haible  <bruno@clisp.org>
87308
87309         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87310         Reported by Mark D. Baushke <mdb@cvshome.org>.
87311
87312 2004-11-04  Bruno Haible  <bruno@clisp.org>
87313
87314         2004-09-11  Bruno Haible  <bruno@clisp.org>
87315                 * allocsa.valgrind: New file.
87316         2004-02-06  Bruno Haible  <bruno@clisp.org>
87317                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87318                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87319                 Reported by Christopher Seip <chris.seip@hp.com>.
87320
87321 2004-11-04  Bruno Haible  <bruno@clisp.org>
87322
87323         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87324         (Makefile.am): Distribute it.
87325
87326 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87327
87328         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87329         with errno == ERANGE if the buffer is too small.
87330         Problem reported by Mark D. Baushke.
87331
87332 2004-11-03  Albert Chin  <china@thewrittenword.com>
87333             Paul Eggert  <eggert@cs.ucla.edu>
87334
87335         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87336         equivalent, substitute $ac_type for equivalent type rather than
87337         blindly using uint32_t *always* which won't work if uint32_t is not
87338         available.  Define _UINT32_T to work around typedef of uint32_t if
87339         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87340         2.5.1.
87341
87342 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87343
87344         * m4/jm-macros.m4: Sync from coreutils.
87345         (gl_MACROS): Check for mbrlen, for pathchk.
87346         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87347
87348 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87349
87350         * lib/xreadlink.c (MAXSIZE): New macro.
87351         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87352         size does not exceed MAXSIZE.  Avoid cast.
87353         As suggested by Mark D. Baushke in
87354         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87355         if readlink fails with buffer size just under MAXSIZE, try again
87356         with MAXSIZE.
87357
87358 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87359
87360         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87361
87362 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87363         and  Paul Eggert  <eggert@cs.ucla.edu>
87364
87365         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87366         (get_date): Overparenthesize to avoid GCC warning.
87367
87368 2004-11-02  Bruno Haible  <bruno@clisp.org>
87369
87370         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87371         returns void.
87372
87373 2004-11-02  Bruno Haible  <bruno@clisp.org>
87374
87375         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87376         function returns void.
87377
87378 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87379
87380         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87381         fflush_unlocked, flockfile, funlockfile, funlockfile,
87382         fputs_unlocked, putc_unlocked.
87383
87384 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87385
87386         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87387         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87388         already declared.
87389
87390 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87391
87392         * modules/getdate (Files): Add doc/getdate.texi.
87393         (Depends-on): Add setenv, xalloc.
87394
87395 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87396
87397         * lib/getdate.y: Add support for TZ="foo" within a date string.
87398         Fix some bugs near time_t boundaries.  Reject dates with
87399         out-of-range components, e.g., "Sept 31".
87400         Include <stdlib.h>, "setenv.h", "xalloc.h".
87401         (ISDIGIT_LOCALE): Remove; unused.
87402         Note that the TZ and time functions used here are not reentrant.
87403         (mktime_ok, get_tz): New functions.
87404         (TZBUFSIZE): New constant.
87405         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87406         This requires that we sometimes generate our own TZ="XXX..." setting.
87407
87408 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87409
87410         * doc/getdate.texi: New file, from coreutils with modifications for
87411         the new TZ parsing.
87412
87413 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87414
87415         * lib/mktime.c (not_equal_tm): Remove redundant check.
87416
87417 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87418
87419         * modules/regex (lib_SOURCES): Add regex.c.
87420         Reported by James Youngman in
87421         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87422
87423 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87424
87425         * lib/getdate.y: Use Bison 1.875 features, and some minor
87426         code cleanups.  This change does not affect semantics.
87427         Don't include <stdlib.h>; no longer needed.
87428         Don't include unlocked-io.h; only the "#if TEST" code uses
87429         stdio, and performance isn't crucial there.
87430         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87431         Bison 1.875 features as described below.
87432         All uses of "PC." replaced by "pc->".
87433         (YYSTYPE): Add a forward declaration.
87434         (yylex, yyerror): Use full prototypes in forward decls.
87435         Use "%pure-parser" rather than obsolescent "%pure_parser".
87436         Use %parse-param and %lex-param instead of obsolescent
87437         YYPARSE_PARAM and YYLEX_PARAM.
87438         (meridian_table, month_and_day_table, time_units_table,
87439         relative_time_table, time_zone_table, military_table,
87440         lookup_zone, lookup_word, get_date):
87441         Use NULL instead of 0 where appropriate.
87442         (to_hour): Avoid abort (), to avoid a dependency on
87443         stdlib.h.
87444         (yyerror, yylex): Now accepts parser_control * arg.
87445         (main) [TEST]: Use '\0' rather than 0 for char.
87446
87447 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87448
87449         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87450
87451 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87452
87453         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87454         It's now the caller's responsibility to handle the case where
87455         !HAVE_GETPAGESIZE && !defined getpagesize.
87456
87457         * lib/mktime.c (leapyear): Arg is long int, not int.
87458
87459 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87460
87461         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87462
87463 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87464
87465         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87466         missing.  Problem reported by James Youngman.
87467
87468 2004-10-16  Simon Josefsson  <jas@extundo.com>
87469
87470         * gnulib-tool: Fix comments.  Fix parse problem.
87471         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87472
87473 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87474
87475         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87476         implementation of getopt_long.  Problem reported by Alexander Taler in:
87477         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87478
87479 2004-10-15  Bruno Haible  <bruno@clisp.org>
87480
87481         * gnulib-tool: Untabify. Initialize supplied_libname.
87482         (func_usage): More homogenous output.
87483         (func_modules_transitive_closure, func_modules_to_filelist,
87484         func_emit_lib_Makefile_am): New functions.
87485         (func_import): New function, extracted from big case statement. Use
87486         func_get_license, func_modules_transitive_closure,
87487         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87488         opt_lgpl. Don't use test -a, as it's not portable.
87489         (func_create_testdir): Use func_modules_transitive_closure,
87490         func_modules_to_filelist, func_emit_lib_Makefile_am.
87491
87492 2004-10-15  Bruno Haible  <bruno@clisp.org>
87493
87494         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87495
87496 2004-10-15  Bruno Haible  <bruno@clisp.org>
87497
87498         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87499         the portions belonging to each module.
87500         Suggested by Derek Robert Price <derek@ximbiot.com>.
87501
87502 2004-10-12  Simon Josefsson  <jas@extundo.com>
87503
87504         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87505         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87506         to real functions.
87507
87508 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87509
87510         * modules/vsnprintf: New file.
87511
87512 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87513
87514         * m4/vsnprintf.m4: New file.
87515
87516 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87517
87518         * lib/vsnprintf.h: New file.
87519         * lib/vsnprintf.c: New file.
87520
87521 2004-10-11  Bruno Haible  <bruno@clisp.org>
87522
87523         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87524         vsnprintf.
87525
87526 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87527
87528         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87529
87530 2004-10-07  Bruno Haible  <bruno@clisp.org>
87531
87532         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87533         fits into the provided buffer.
87534
87535 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87536
87537         * lib/diacrit.c, diacrit.h: Add GPL notice.
87538
87539         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87540         notice.
87541         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87542         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87543         This avoids a potential constant-folding bug.
87544
87545 2004-10-05  Bruno Haible  <bruno@clisp.org>
87546
87547         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87548         for the declaration of strsep.
87549
87550 2004-10-05  Bruno Haible  <bruno@clisp.org>
87551
87552         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87553
87554 2004-10-04  Simon Josefsson  <jas@extundo.com>
87555
87556         * modules/memmem: New file.
87557         * tests/test-memmem.c: New file.
87558         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87559
87560 2004-10-04  Simon Josefsson  <jas@extundo.com>
87561
87562         * m4/memmem.m4: New file.
87563
87564 2004-10-04  Simon Josefsson  <jas@extundo.com>
87565
87566         * lib/memmem.h: New file.
87567         * lib/memmem.c: New file, taken from glibc.
87568
87569 2004-10-04  Simon Josefsson  <jas@extundo.com>
87570
87571         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87572         '#ifdef USE_UNLOCKED_IO'.
87573
87574 2004-10-04  Simon Josefsson  <jas@extundo.com>
87575
87576         * config/srclist.txt: Add memmem from glibc.
87577
87578 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87579
87580         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87581
87582         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87583         modules/exclude, modules/getdate, modules/getline,
87584         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87585         modules/getusershell, modules/linebuffer, modules/md5,
87586         modules/mountlist, modules/posixtm, modules/readtokens,
87587         modules/readutmp, modules/regex, modules/sha1,
87588         modules/version-etc, modules/yesno:
87589         Remove dependency on unlocked-io.
87590
87591 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87592
87593         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87594
87595         * m4/unlocked-io.m4: Add copyright notice.
87596         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87597
87598 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87599
87600         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87601         * lib/xmalloc.c (xmemdup): Likewise.
87602         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87603         XFREE): Remove these long-obsolescent macros.
87604         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87605         * lib/xstrdup.c: Remove.
87606
87607         * lib/regex.c (re_comp): Cast gettext return value to char *,
87608         Problem reported by Martin Neitzel via Mark D. Baushke.
87609
87610 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87611
87612         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87613         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87614         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87615         regex.c, sha1.c, version-etc.c, yesno.c:
87616         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87617         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87618         the includer's responsibility.
87619
87620         Sync from coreutils.
87621
87622         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87623         points to the start of a string, as the C Standard says the
87624         resulting behavior is undefined.
87625
87626         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87627         simple -> simple_backups, numbered_existing ->
87628         numbered_existing_backups, numbered -> numbered_backups
87629         to avoid shadowing problems.  All uses changed.
87630         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87631         * lib/backupfile.c (check_extension, numbered_backup):
87632         Rename locals to avoid shadowing 'basename'.
87633         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87634         once.
87635
87636         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87637         * lib/.cvsignore: Add getopt.h.
87638
87639 2004-10-04  Bruno Haible  <bruno@clisp.org>
87640
87641         * modules/README: New file.
87642         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87643         not a module.
87644
87645 2004-10-02  Jim Meyering  <jim@meyering.net>
87646
87647         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87648
87649 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87650
87651         * modules/strsep: New file.
87652
87653 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87654
87655         * m4/strsep.m4: New file.
87656
87657 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87658
87659         * lib/strsep.h: New file.
87660         * lib/strsep.c: New file.
87661
87662 2004-10-01  Simon Josefsson  <jas@extundo.com>
87663
87664         * lib/snprintf.c (snprintf): Handle size==0.
87665
87666 2004-10-01  Simon Josefsson  <jas@extundo.com>
87667             Bruno Haible  <bruno@clisp.org>
87668
87669         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87670         (snprintf): Declare 'args'.
87671
87672 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87673
87674         * lib/snprintf.c: Remove comments as to why each header is needed.
87675
87676 2004-10-01  Bruno Haible  <bruno@clisp.org>
87677
87678         * MODULES.html.sh: Add strsep.
87679
87680 2004-09-30  Simon Josefsson  <jas@extundo.com>
87681
87682         * modules/snprintf: New file.
87683
87684 2004-09-30  Simon Josefsson  <jas@extundo.com>
87685
87686         * m4/snprintf.m4: New file.
87687
87688 2004-09-30  Simon Josefsson  <jas@extundo.com>
87689
87690         * lib/snprintf.h, lib/snprintf.c: New files.
87691
87692 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87693
87694         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87695         (hol_entry_help): Never translate an empty string.
87696         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87697         * lib/argp.h (OPTION_NO_TRANS): New option.
87698
87699 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87700
87701         * modules/argp (Maintainer): Replace Simon Josefsson
87702         by Sergey Poznyakoff.
87703
87704 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87705
87706         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87707         changes merged back into glibc.
87708
87709 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87710
87711         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87712
87713 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87714
87715         * lib/xvasprintf.c: Include xalloc.h.
87716         (xvasprintf): Use xalloc_die, not xmalloc_die.
87717
87718 2004-09-29  Bruno Haible  <bruno@clisp.org>
87719
87720         * modules/alloca-opt: New file, derived from modules/alloca.
87721         * modules/allocsa: Depend on alloca-opt instead of alloca.
87722         * modules/setenv: Likewise.
87723         * modules/vasnprintf: Likewise.
87724         * MODULES.html.sh: Add alloca-opt.
87725
87726 2004-09-28  Simon Josefsson  <jas@extundo.com>
87727
87728         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87729         LGPL, and to replace license template from GPL to LGPL.
87730
87731 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87732
87733         * modules/dummy: Change license to LGPL.
87734
87735 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87736
87737         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87738
87739 2004-09-24  Simon Josefsson  <jas@extundo.com>
87740
87741         * modules/minmax (License): Change from GPL to LGPL.
87742
87743 2004-09-23  Simon Josefsson  <jas@extundo.com>
87744
87745         * gnulib-tool (--import): Typo.
87746
87747 2004-09-23  Simon Josefsson  <jas@extundo.com>
87748
87749         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87750
87751 2004-09-22  Bruno Haible  <bruno@clisp.org>
87752
87753         * modules/*: Add 'License' field.
87754         * gnulib-tool: Accept --extract-license option.
87755         (func_get_license): New function.
87756
87757 2004-09-21  Bruno Haible  <bruno@clisp.org>
87758
87759         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87760         Reported by Simon Josefsson.
87761
87762 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87763
87764         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87765         gl_AC_TYPE_LONG_LONG.
87766
87767 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87768
87769         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87770
87771 2004-09-18  Simon Josefsson  <jas@extundo.com>
87772         and  Paul Eggert  <eggert@cs.ucla.edu>
87773
87774         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87775         calls with autoreconf.  Define GL_LIB.
87776
87777 2004-09-14  Karl Berry  <karl@gnu.org>
87778
87779         * config/srclist.txt: unsync setenv.c, sigh.
87780
87781 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87782
87783         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87784         Problem reported by Bruno Haible in:
87785         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87786
87787 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87788
87789         * config/srclist.txt: Comment out argp-pvh.c.
87790
87791 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87792
87793         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87794         in case some system header has #define'd it.  Problem reported by
87795         Soeren D. Schulze in
87796         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87797
87798 2004-09-09  Karl Berry  <karl@gnu.org>
87799
87800         * regex.[ch]: delete from the root.  These were supposed to be
87801                 synced with emacs cvs, but this has not happened for about
87802                 a year, and anyway nothing else uses emacs regex.[ch].
87803                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87804                 lib/regex[.ch] is untouched.
87805
87806 2004-09-09  Bruno Haible  <bruno@clisp.org>
87807
87808         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87809
87810 2004-09-09  Bruno Haible  <bruno@clisp.org>
87811
87812         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87813         modifications.
87814         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87815
87816 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87817
87818         * modules/xvasprintf: New file.
87819         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87820
87821 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87822
87823         * lib/xvasprintf.h: New file.
87824         * lib/xvasprintf.c: New file.
87825         * lib/xasprintf.c: New file.
87826
87827 2004-09-08  Bruno Haible  <bruno@clisp.org>
87828
87829         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87830
87831 2004-09-08  Bruno Haible  <bruno@clisp.org>
87832
87833         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
87834         length is > INT_MAX.
87835         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
87836         more.
87837
87838 2004-09-08  Bruno Haible  <bruno@clisp.org>
87839
87840         * lib/stdint_.h: New file, taken from GNU clisp.
87841
87842 2004-09-08  Bruno Haible  <bruno@clisp.org>
87843             Oskar Liljeblad  <oskar@osk.mine.nu>
87844
87845         * modules/stdint: New file.
87846         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
87847
87848 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87849
87850         Import from coreutils.
87851         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
87852         strings on unbounded length.  alloca's performance benefits aren't
87853         that important here.
87854         (V_STRDUP): Remove.
87855         (parse_with_separator): New function, with most of the internals
87856         of the old parse_user_spec.  Allow user to omit both user and group,
87857         for compatibility with FreeBSD.
87858         Clone only the user name, not the entire spec.
87859         Do not set *uid, *gid unless entirely successful.
87860         Avoid memory leak in some failing cases.
87861         Fix regression for USER.GROUP reported by Dmitry V. Levin in
87862         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
87863         (parse_user_spec): Rewrite to use parse_with_separator.
87864
87865 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87866
87867         * modules/userspec: Don't depend on alloca.
87868
87869 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87870
87871         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
87872
87873 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87874
87875         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
87876         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
87877         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
87878
87879 2004-08-16  Simon Josefsson  <jas@extundo.com>
87880
87881         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
87882         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
87883         Add --dry-run for --import.
87884         Let user provided command line parameters override configure.ac
87885         settings.
87886
87887 2004-08-12  Simon Josefsson  <jas@extundo.com>
87888
87889         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
87890         as discussed with Paul Eggert in threads rooted at
87891         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
87892         and
87893         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
87894         Before, the test was empty, and relied on ELIDE_CODE in source
87895         code.)
87896         (gl_PREREQ_GETOPT): New macro.
87897         (gl_GETOPT): Use them.
87898
87899 2004-08-12  Simon Josefsson  <jas@extundo.com>
87900
87901         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
87902         * lib/getopt_.h: Renamed from getopt.h.
87903
87904 2004-08-12  Simon Josefsson  <jas@extundo.com>
87905
87906         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
87907         Change default library name from libfoo to libgnu.
87908         Now, if you have a configure.ac that says:
87909                 gl_SOURCE_BASE(gl)
87910                 gl_M4_BASE(gl/m4)
87911                 gl_MODULES(error getopt etcetera)
87912                 gl_INIT
87913         you can import all you need by running:
87914                 ../gnulib/gnulib-tool --import
87915
87916         * modules/getopt (Files): Rename getopt.h to getopt_.h.
87917         (Makefile.am): Rewrite, use logic from argz.
87918         (Include): Use <getopt.h> instead of "getopt.h".
87919
87920 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87921
87922         * modules/argp (Files): Add m4/unlocked-io.m4.
87923         (Depends-on): Add extensions.
87924
87925 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87926
87927         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
87928         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
87929         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
87930         Check for program_invocation_name, program_invocation_short_name,
87931         flockfile, funlockfile, features.h, _getopt_long_only_r.
87932
87933 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87934
87935         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
87936         its complicated substitute.
87937         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
87938         and program_invocation_name.
87939         (__argp_basename) [!_LIBC]: Remove; the only use was
87940         replaced by its body.
87941         (__argp_short_program_name): Change condition from
87942         !defined __argp_short_program_name to
87943         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
87944         to match argp-namefrob.h.
87945         (__argp_failure): Don't assume strerror_r returns char *.
87946         * lib/argp-parse.c (N_): Define unconditionally.
87947         (argp_default_options): Fill out initializers with 0 to avoid
87948         gcc warnings.
87949
87950 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87951
87952         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
87953         getopt1.c.
87954
87955 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87956
87957         Merge from coreutils.
87958
87959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
87960
87961         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
87962         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
87963
87964 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87965
87966         Merge from coreutils.
87967
87968         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
87969         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
87970         for Reliant Unix 5.43.
87971
87972         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
87973         (union fooround): Use uintmax_t, not long int.
87974         The rest is a merge from libc:
87975         [defined _LIBC]: Include <shlib-compat.h>.
87976         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87977
87978         * lib/settime.c (settime): Recode to avoid warning with
87979         Sun Forte C 6U2.
87980
87981         * lib/strverscmp.c: Convert to UTF-8.
87982
87983 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87984
87985         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87986         m4/uintmax_t.m4.
87987
87988 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87989
87990         * modules/xalloc-die: New file.
87991         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87992
87993         * modules/md5 (Files): Add m4/uint32_t.m4.
87994         * modules/sha1: Renamed from modules/sha.
87995         (Files):
87996         Rename lib/sha.h to lib/sha1.h.
87997         Rename lib/sha.c to lib/sha1.c.
87998         Rename m4/sha.m4 to m4/sha1.m4.
87999         (lib_SOURCES): Likewise.
88000         (configure.ac): Rename gl_SHA to gl_SHA1.
88001         (Include): sha.h -> sha1.h.
88002
88003 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88004
88005         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88006         * m4/sha1.m4: Renamed from sha.m4.
88007         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88008
88009 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88010
88011         * lib/obstack.h (obstack_empty_p):
88012         Don't assume that chunk->contents is suitably aligned.
88013         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88014         Likewise. Problem reported by Benno in
88015         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88016
88017         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88018         readable.  This could be improved further but it'd take some work.
88019
88020 2004-08-08  Simon Josefsson  <jas@extundo.com>
88021
88022         * modules/xgethostname (Depends-on): Remove exit and error (not
88023         used).
88024
88025         * modules/getpass-gnu: Add getpass.h.
88026         (Depends-on): Add stdbool.
88027         * modules/getpass: Add getpass.h.
88028
88029 2004-08-08  Simon Josefsson  <jas@extundo.com>
88030
88031         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88032         Check getpass declaration.
88033
88034 2004-08-08  Simon Josefsson  <jas@extundo.com>
88035
88036         * lib/xgethostname.c: Don't include error.h (not used).
88037
88038         * lib/getpass.h: Add.
88039         * lib/getpass.c: Include getpass.h first.
88040
88041 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88042
88043         * lib/xalloc-die.c: New file.
88044         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88045         All uses removed.
88046         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88047         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88048         xalloc-die.c.
88049         (_, N_, xalloc_die): Move to xalloc-die.c.
88050         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88051         so that we needn't mess with xalloc_msg_memory_exhausted.
88052
88053         * lib/sha1.h: Renamed from sha.h.
88054         (SHA1_H): Renamed from _SHA_H.
88055         (sha1_ctx): Renamed from sha_ctx.
88056         (sha1_init_ctx): Renamed from sha_init_ctx.
88057         (sha1_process_block): Renamed from sha_process_block.
88058         (sha1_process_bytes): Renamed from sha_process_bytes.
88059         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88060         (sha1_read_ctx): Renamed from sha_read_ctx.
88061         (sha1_stream): Renamed from sha_stream.
88062         (sha1_buffer): Renamed from sha_buffer.
88063         * lib/sha1.c: Likewise; renamed from sha.c.
88064         Do not include <sys/types.h>.
88065         Include <stddef.h> rather than <stdlib.h>.
88066
88067 2004-08-08  Bruno Haible  <bruno@clisp.org>
88068
88069         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88070         FILESYSTEM_PREFIX_LEN.
88071         * lib/progreloc.c: Likewise.
88072         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88073
88074 2004-08-06  Simon Josefsson  <jas@extundo.com>
88075
88076         * modules/progname (Depends-on): Don't depend on stdbool.
88077
88078 2004-08-06  Simon Josefsson  <jas@extundo.com>
88079
88080         * modules/getsubopt: New file.
88081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88082         getsubopt.
88083
88084 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88085
88086         More merge from coreutils.
88087
88088         * m4/utimens.m4, m4/utimecmp.m4: New files.
88089         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88090         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88091         prereq.m4, sha.m4: Import changes from coreutils.
88092
88093 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88094
88095         More merge from coreutils.
88096         * modules/raise, modules/readtokens0, modules/utimens:
88097         * modules/utimecmp, module/xnanosleep: New files.
88098         * modules/strftime: Add lib/strftime.h.
88099         Change include from <time.h> to "strftime.h".
88100         * modules/yesno: Add lib/yesno.h.
88101         * modules/backupfile: Remove lib/addext.c.
88102         * modules/euidaccess: Add stat-macros.h.
88103         * modules/canonicalize, modules/euidaccess,
88104         modules/filemode, modules/lchown, modules/makepath,
88105         modules/rmdir, modules/stat: Likewise.
88106
88107 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88108
88109         Merge from tar.
88110         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88111         SIZE_MAX is a valid preprocessor constant.
88112         (__argp_basename): Change from "#ifndef _LIBC"
88113         to "#ifndef __argp_short_program_name", so that
88114         we don't compile these functions for tar.
88115
88116         More merges from coreutils.
88117         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88118         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88119         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88120         * lib/addext.c: Remove; no longer needed.
88121         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88122         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88123         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88124         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88125         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88126         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88127         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88128         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88129         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88130         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88131         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88132         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88133         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88134         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88135         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88136         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88137         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88138         Import changes from coreutils.
88139
88140 2004-08-05  Simon Josefsson  <jas@extundo.com>
88141
88142         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88143
88144 2004-08-05  Simon Josefsson  <jas@extundo.com>
88145
88146         * m4/getsubopt.m4: New file.
88147
88148 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88149
88150         Merge from coreutils.
88151
88152         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88153         * m4/getcwd-path-max.m4: New files.
88154
88155         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88156         FILESYSTEM_PREFIX_LEN ->
88157         FILE_SYSTEM_PREFIX_LEN.
88158         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88159         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88160         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88161         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88162
88163         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88164         prerequisite modules now handle the DOS stuff.
88165         Don't check for unistd.h.
88166
88167 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88168
88169         Merge from coreutils.
88170
88171         * lib/.gdb-history: Remove; this doesn't belong here.
88172
88173         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88174         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88175         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88176         * lib/getcwd.c: New files.
88177
88178         * lib/dirname.h: Include <stdbool.h>.
88179         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88180         for consistency with POSIX terminology.  All uses changed.
88181         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88182         (strip_trailing_slashes): Use bool for booleans.
88183         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88184
88185         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88186         sometimes returns a positive errno value even when it succeeds.
88187         (print_errno_message) [!LIBC]: Fall back on strerror if
88188         __strerror_r fails.
88189
88190         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88191         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88192         (longest_relative_suffix): New function.
88193         (path_concat): Use it.  Assume first argument is not NULL.
88194         Port to DOS.  Omit redundant separators.
88195         Report an error instead of returning NULL.
88196         Use mempcpy instead of memcpy.
88197         (xpath_concat): Remove: not declared or used.
88198
88199         * lib/same.h: Include <stdbool.h>
88200         (same_name): Return bool, not int.
88201         * lib/same.c (same_name): Likewise.
88202         (errno): Don't declare; we assume C89 or better now.
88203
88204         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88205         if not already defined.
88206
88207         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88208         * lib/dup-safer.c (errno): Likewise.
88209
88210 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88211
88212         Merge from coreutils.
88213         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88214         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88215         * modules/path-concat: Don't depend on strdup.
88216
88217 2004-08-03  Simon Josefsson  <jas@extundo.com>
88218
88219         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88220         * lib/progname.h: Don't include stdbool.h.
88221
88222 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88223
88224         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88225         * MODULES.html.sh (func_all_modules): Remove fatal.
88226
88227 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88228
88229         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88230
88231 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88232
88233         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88234         working.
88235
88236 2004-08-02  Simon Josefsson  <jas@extundo.com>
88237
88238         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88239         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88240         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88241
88242 2004-08-01  Simon Josefsson  <jas@extundo.com>
88243
88244         * lib/xgetdomainname.c: Include stdlib.h, for free().
88245
88246 2004-07-19  Bruno Haible  <bruno@clisp.org>
88247
88248         * MODULES.html.sh (func_all_modules): Add dummy.
88249
88250 2004-07-16  Simon Josefsson  <jas@extundo.com>
88251
88252         * modules/dummy: New file.
88253
88254 2004-07-16  Simon Josefsson  <jas@extundo.com>
88255
88256         * lib/dummy.c: New file.
88257
88258 2004-07-16  Bruno Haible  <bruno@clisp.org>
88259
88260         * lib/backupfile.h: Add extern "C" for C++.
88261         * lib/closeout.h: Likewise.
88262         * lib/copy-file.h: Likewise.
88263         * lib/findprog.h: Likewise.
88264         * lib/full-write.h: Likewise.
88265         * lib/pathname.h: Likewise.
88266         * lib/progname.h: Likewise.
88267         * lib/stpcpy.h: Likewise.
88268         * lib/stpncpy.h: Likewise.
88269         * lib/strcase.h: Likewise.
88270         * lib/strstr.h: Likewise.
88271         * lib/xalloc.h: Likewise.
88272
88273         * lib/mbswidth.h: Add extern "C" for C++.
88274         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88275
88276 2004-07-13  Robert Millan  <robertmh@gnu.org>
88277
88278         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88279
88280 2004-07-09  Simon Josefsson  <jas@extundo.com>
88281
88282         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88283         failed without this.)
88284
88285 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88286
88287         * modules/chown (Files): Add lib/fchown-stub.c, since
88288         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88289
88290 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88291
88292         * lib/fchown-stub.c: New file.
88293
88294 2004-06-24  Jim Meyering  <jim@meyering.net>
88295
88296         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88297
88298 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88299
88300         * modules/argz: Omit "#include".
88301
88302         * MODULES.html.sh (func_all_modules): Add calloc, to match
88303         2004-06-01 addition of calloc module.
88304
88305 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88306
88307         * m4/argz.m4: New file, which is autoupdated from libtool.
88308
88309 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88310
88311         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88312         libtool.
88313
88314 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88315
88316         * config/srclist-update: Don't insist on "USA." before the
88317         close-comment, as libtool omits the period and puts the */ on a
88318         separate line.
88319         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88320         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88321
88322 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88323
88324         * modules/argz: New file.
88325         * MODULES.html.sh (func_all_modules): Add argz.
88326
88327 2004-06-12  Jim Meyering  <jim@meyering.net>
88328         and  Paul Eggert  <eggert@cs.ucla.edu>
88329
88330         * modules/hash (Files): Add lib/xalloc.h.
88331         * modules/pipe (Depends-on): Add wait-process.
88332         * modules/stat (Depends-on): Add xalloc.
88333         * modules/userspec (Files): Add lib/userspec.h.
88334         * modules/xstrto
88335
88336         Upgrade from gettext-0.13.
88337         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88338         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88339         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88340
88341 2004-06-10  Jim Meyering  <jim@meyering.net>
88342
88343         * lib/calloc.c: New file.
88344
88345 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88346
88347         * lib/getdate.y (yylex): Allow space between sign and number.
88348         Problem reported by Dan Jacobson.
88349
88350 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88351
88352         Merge from coreutils CVS.
88353
88354         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88355         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88356         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88357         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88358         xstrtol.m4: Fix copyright date and/or serial number.
88359
88360         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88361         See if we need an fchown replacement.
88362         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88363         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88364         and use the replacement function if we detect either defect.
88365
88366         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88367         gl_UTIMECMP.
88368
88369 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88370         and  Jim Meyering  <jim@meyering.net>
88371
88372         Merge from coreutils CVS.
88373
88374         * lib/stat-macros.h: New file, with contents from file-type.h
88375         and coreutils' system.h.
88376         * lib/file-type.c: Include "stat-macros.h".
88377         * lib/file-type.h (file_type): Move all macro definitions to new file,
88378         stat-macros.h.
88379
88380         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88381         Wrap old code with this conditional.
88382         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88383         function that does not dereference symlinks.
88384         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88385
88386         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88387         dependency problems.
88388         (xreadlink): Accept new arg SIZE, for efficiency.
88389         All decls and uses changed.
88390         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88391
88392         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88393         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88394
88395         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88396         sysexits.h.
88397
88398 2004-06-01  Jim Meyering  <jim@meyering.net>
88399
88400         * m4/calloc.m4: New file.
88401
88402 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88403
88404         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88405         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88406         Also, fix a typo in a diagnostic.
88407
88408 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88409
88410         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88411         or AC_FUNC_REALLOC.
88412
88413 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88414
88415         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88416         macros to be defined.
88417         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88418         the allocator returns NULL because the requested size is zero.
88419
88420 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88421
88422         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88423         var.  Add comment explaining why libc still defines it.  This
88424         merges the following patch from glibc:
88425         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88426
88427 2004-05-20  Andreas Schwab  <schwab@suse.de>
88428
88429         * m4/free.m4: Replace free if it not known to work, not the other
88430         way round.
88431
88432 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88433
88434         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88435         present in glibc since revision 1.1 of this file.
88436         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88437         obstack_alignment_mask, obstack_alloc, obstack_base,
88438         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88439         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88440         obstack_grow0, obstack_init, obstack_int_grow,
88441         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88442         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88443         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88444         nonexistent functions.
88445
88446 2004-05-18  Karl Berry  <karl@gnu.org>
88447
88448         * config/srclist.txt: break link for vasnprintf.c.
88449
88450 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88451
88452         Port obstack to the AS/400, where pointers are 16 bytes wide and
88453         you cannot cast an integer to a valid pointer.  This patch is
88454         currently waiting to be integrated into glibc; see
88455         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88456
88457         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88458         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88459         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88460         (struct obstack): temp member is now a union of a pointer and
88461         an integer, instead of an integer.  All integer uses changed.
88462         This does not affect the physical layout of struct obstack,
88463         except on hosts (like the AS/400) where the size or alignment of
88464         void * is greater than that of ptrdiff_t.
88465         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88466         __STDC__)]: Store temporary in pointer member of union, not
88467         integer member.
88468         * lib/obstack.c: Include <stddef.h>, for offsetof.
88469         (struct fooalign): Remove; it doesn't need a name.
88470         (union fooround): Change double to long double, and add void *.
88471         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88472         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88473         not a macro.  Hence the values are always int; so remove all
88474         casts-to-int in uses.
88475
88476 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88477
88478         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88479         we can get this patch merged into glibc.
88480
88481 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88482             Paul Eggert  <eggert@cs.ucla.edu>
88483
88484         * m4/argp: Depend on alloca.
88485
88486 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88487             Paul Eggert  <eggert@cs.ucla.edu>
88488
88489         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88490         freecoding.
88491
88492 2004-05-17  Bruno Haible  <bruno@clisp.org>
88493
88494         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88495         precision that consists of a '.' followed by an empty digit string.
88496         Patch by Tor Lillqvist <tml@iki.fi>.
88497
88498 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88499
88500         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88501         for backward compatibility with older code.  We need our own
88502         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88503         it under some other name, and our alloca.h will define it.
88504
88505 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88506             Derek Price  <derek@ximbiot.com>
88507
88508         * lib/alloca.c: Include <alloca.h>, to get our interface.
88509         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88510         include <alloca.h> first.  Use C89 prototype for alloca; this
88511         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88512         Use #elif for simplicity, since we can assume C89 now.
88513         Don't try to source the system alloca.h since it will not be found
88514         and to prevent recursively including its replacement.
88515         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88516         * lib/regex.c: Likewise.
88517
88518 2004-05-16  Derek Price  <derek@ximbiot.com>
88519             Paul Eggert  <eggert@cs.ucla.edu>
88520
88521         getline cleanup.  This changes the getndelim2 API: both order of
88522         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88523         no delimiter).
88524
88525         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88526         interface does that.
88527         (getline): Always use getdelim, so that we don't have two
88528         copies of this code.
88529         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88530         if available.
88531         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88532         (GETNDELIM2_MAXIMUM): New macro.
88533         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88534         instead of the old practice of delim2==0.  All callers changed.
88535         Return -1 on overflow, instead of returning junk.
88536         Do not set *linesize unless allocation succeeds.
88537         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88538         that we include sys/types.h.
88539         * lib/getnline.h: Likewise.
88540         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88541         (getndelim2): Reorder arguments.
88542         * lib/getnline.c (getnline, getndelim):
88543         Don't discard the NMAX argument.
88544         (getnline): Invoke getndelim, to avoid code duplication.
88545         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88546         of (size_t) -1 by callers of the getnline family.
88547
88548 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88549
88550         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88551         Check for gettimeofday.
88552         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88553         Check for settimeofday, stime.
88554
88555 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88556
88557         * lib/nanosleep.c (suspended): Change its type from int to
88558         sig_atomic_t volatile.
88559         (first_call): Make it private to rpl_nanosleep, and have it
88560         be zero initially as that's a bit faster.
88561         (my_usleep): Round up fractional times instead of truncating them,
88562         as this is the usual meaning for 'sleep'.
88563
88564         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88565         doesn't work.
88566         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88567         (ENOSYS): Define if not defined.
88568         (settime): Fall back on stime if it exists and settimeofday fails.
88569         But don't bother with fallbacks if a method fails with errno == EPERM.
88570
88571 2004-05-11  Jim Meyering  <jim@meyering.net>
88572
88573         Prior to this change, the save_cwd caller required read access to the
88574         current directory on most systems (ones with the fchdir function).
88575
88576         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88577         fails, try write-only, and finally, resort to using xgetcwd.
88578
88579 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88580
88581         * lib/obstack.c, obstack.h: Import changes from libc.
88582
88583 2004-04-28  Bruno Haible  <bruno@clisp.org>
88584
88585         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88586         also implicitly appends .exe to executables.
88587         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88588         accepts Windows pathnames.
88589         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88590         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88591         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88592         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88593         Reported by Derek Robert Price <derek@ximbiot.com>.
88594
88595 2004-04-21  Karl Berry  <karl@gnu.org>
88596
88597         * config/srclist.txt (localcharset.c): break sync.
88598
88599 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88600
88601         * m4/host-os.m4: Add a copyright notice.
88602
88603 2004-04-20  Jim Meyering  <jim@meyering.net>
88604
88605         Change UTILS_ to gl_ in AC_DEFINE'd names.
88606         Change utils_- and jm_-prefixed variables, too.
88607         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88608         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88609         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88610
88611         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88612         Don't emit trailing blanks.
88613         Also rename jm_-prefixed variables to have gl_ prefix.
88614
88615         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88616         Also rename jm_-prefixed variables to have gl_ prefix.
88617
88618         * m4/jm-macros.m4: Reflect the renamings.
88619         * m4/prereq.m4: Likewise.
88620
88621 2004-04-20  Jim Meyering  <jim@meyering.net>
88622
88623         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88624         memory.
88625
88626 2004-04-20  Jim Meyering  <jim@meyering.net>
88627             Bruno Haible  <bruno@clisp.org>
88628
88629         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88630         memory when realloc fails.
88631
88632 2004-04-19  Jim Meyering  <jim@meyering.net>
88633
88634         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88635         now that readutmp.c may call `free (0)'.
88636
88637 2004-04-19  Bruno Haible  <bruno@clisp.org>
88638
88639         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88640         * m4/inttypes_h.m4: Likewise.
88641         * m4/stdint_h.m4: Likewise.
88642         * m4/intmax_t.m4: Likewise.
88643         * m4/uintmax_t.m4: Likewise.
88644
88645 2004-04-18  Jim Meyering  <jim@meyering.net>
88646
88647         * m4/prereq.m4: Don't forbid jm_ prefix.
88648
88649         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88650         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88651         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88652         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88653         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88654         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88655         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88656         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88657         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88658         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88659         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88660         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88661         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88662         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88663         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88664         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88665         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88666         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88667         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88668
88669 2004-04-18  Jim Meyering  <jim@meyering.net>
88670
88671         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88672         failure, don't leak memory and do call END_UTMP_ENT.
88673
88674 2004-04-16  Jim Meyering  <jim@meyering.net>
88675
88676         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88677         coreutils' stat program.
88678         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88679
88680 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88681
88682         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88683         C89.
88684         (CHAR_BIT): Remove, since we assume C89.
88685         Include <stdint.h> if available, as per current Autoconf CVS advice.
88686
88687 2004-03-31  Jim Meyering  <jim@meyering.net>
88688
88689         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88690         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88691         * m4/xalloc.m4: Likewise.
88692
88693 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88694
88695         Merge from coreutils.
88696
88697         * m4/inttostr.m4: New file.
88698         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88699         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88700         Require gl_CLOCK_TIME.
88701         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88702
88703 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88704
88705         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88706         not bool, to be more consistent with Unix conventions.
88707         Suggested by Bruno Haible.
88708
88709         Merge from coreutils.
88710
88711         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88712         * lib/umaxtostr.c: New files.
88713
88714         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88715         the usual <time.h> dance.
88716         (get_date): Change signature to support fractional time stamps.
88717         All callers changed.
88718         * lib/getdate.y: Include "getdate.h" first, as we can now
88719         assume C89 and don't need to worry about 'const'.
88720         Similarly, include "unlocked-io.h" near start, not in middle.
88721         Include <limits.h>.
88722         (textint.value): Use long int rather than int.
88723         (textint.digits): Use size_t rather than int.
88724         (BILLION, LOG10_BILLION): New constants.
88725         (parser_control): New member rel_ns.  Members day_ordinal,
88726         time_zone, month, day, hour, minutes, rel_year, rel_month,
88727         rel_day, rel_hour, rel_minutes, rel_seconds
88728         are now long int, not int.  Member seconds is now struct timespec,
88729         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88730         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88731         not int.
88732         (%union.intval): Now long int, not int.
88733         New member timespec.
88734         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88735         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88736         (spec): Now is a timespec or an item list.
88737         (timespec, items): New nonterminals.
88738         (time, rel, relunit, number, get_date):
88739         Add support for fractional seconds.
88740         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88741         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88742         (to_hour): First arg is now long int, not int.
88743         (to_year): Returns long int, not int.
88744         Don't treat year -70 like 70.
88745         (tm_diff): Returns long int, not int.
88746         (lookup_word): Use bool instead of int when appropriate.
88747         (yylex): Use size_t for count, not int.
88748         Detect overflow when parsing large integer constants.
88749         Add support for fractions.
88750         (get_date): Make pointers 'const' if possible.
88751         Use more-portable code to detect integer overflow.
88752         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88753         Don't use ctime; it's not reliable if the year has >4 digits.
88754
88755         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88756         This is for compatibility with BSD.
88757
88758         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88759         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88760         From coreutils' system.h.
88761
88762         * lib/userspec.c: Don't include "posixver.h".
88763         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88764         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88765         compatible extension.  Simplify code by removing a boolean int
88766         that was always nonzero if a string was nonnull.
88767
88768 2004-03-30  Jim Meyering  <jim@meyering.net>
88769
88770         Merge from coreutils.
88771
88772         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88773         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88774         on some systems one must include <grp.h> before it.
88775         Reported by Christian Krackowizer.
88776
88777 2004-03-30  Jim Meyering  <jim@meyering.net>
88778
88779         Merge from coreutils.
88780
88781         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88782
88783         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88784         an empty input stream.
88785
88786         * lib/readtokens.c: Include <stdbool.h>.
88787         (readtoken): Use `size_t' rather than int/long.
88788         All callers adjusted.
88789         Use `bool' rather than `int' where appropriate.
88790         Use memset rather than an explicit loop.
88791         Use x2nrealloc rather than xrealloc.
88792         Allow the use of `\0' as a delimiter.
88793         (readtokens): Likewise.
88794         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88795
88796 2004-03-30  Jim Meyering  <jim@meyering.net>
88797
88798         * m4/realloc.m4: Remove file, since now it does no more than
88799         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88800         the `configure.ac' section of module/realloc.
88801         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88802
88803 2004-03-30  Bruno Haible  <bruno@clisp.org>
88804
88805         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88806         nonnull.
88807
88808 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88809
88810         Merge changes to getloadavg.c from coreutils and Emacs.
88811
88812         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88813         Define to an expression, not to the empty string.
88814         Include cloexec.h and xalloc.h.
88815         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88816         Use set_cloexec_flag rather than rolling our own.
88817         * lib/cloexec.c, lib/cloexec.h: New files.
88818
88819 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88820
88821         * m4/cloexec.m4: New file.
88822
88823 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88824
88825         * lib/getopt.h: Sync with libc CVS.
88826
88827 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88828             Bruno Haible  <bruno@clisp.org>
88829
88830         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88831         mbswidth.
88832
88833 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88834             Bruno Haible  <bruno@clisp.org>
88835
88836         * lib/mbswidth.h: Include <wchar.h> only if
88837         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
88838         <wchar.h>.
88839         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
88840
88841 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88842
88843         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
88844         Sync with libc CVS.
88845         * lib/getopt_int.h: New file, also synced from libc.
88846
88847 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88848
88849         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
88850         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
88851         Bring back getopt.c, getopt.h, getopt1.c.
88852
88853 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88854
88855         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
88856         All uses changed.  Check for sa_sigaction member; this fixes
88857         a bug first reported by Jason Andrade in
88858         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88859
88860 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88861
88862         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
88863         '#if' expressions.  Unlike the code it replaces, it does not
88864         depend on (defined _SC_PAGESIZE).  However, it does depend on
88865         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
88866         first reported by Jason Andrade in
88867         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88868
88869 2004-02-25  Simon Josefsson  <jas@extundo.com>
88870
88871         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
88872
88873 2004-02-25  Simon Josefsson  <jas@extundo.com>
88874
88875         * lib/strdup.h: New file.
88876         * lib/strdup.c: Include it.
88877         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
88878         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
88879
88880 2004-02-23  Karl Berry  <karl@gnu.org>
88881
88882         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
88883         (from fencepost.gnu.org:/gd/gnuorg).
88884
88885 2004-02-23  Karl Berry  <karl@gnu.org>
88886
88887         * config/srclistvars.sh (GNUORG) [karl]: redefine.
88888         * config/srclist.txt: add maintain/standards documents.
88889
88890 2004-02-18  Bruno Haible  <bruno@clisp.org>
88891
88892         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
88893         Reported by Derek Robert Price <derek@ximbiot.com>.
88894
88895 2004-02-16  Karl Berry  <karl@gnu.org>
88896
88897         * config/mkinstalldirs, install-sh: update from automake.
88898
88899 2004-02-06  Karl Berry  <karl@gnu.org>
88900
88901         * m4/po.m4: update from gettext 0.14.1.
88902
88903 2004-02-06  Karl Berry  <karl@gnu.org>
88904
88905         * lib/config.charset: update from gettext 0.14.1.
88906
88907 2004-02-05  Paul Eggert  <eggert@twinsun.com>
88908
88909         Add comments and code, prompted by suggestions from Bruno Haible
88910         for sh-quote.
88911         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
88912         describing the enum quoting_style values.
88913         * lib/quotearg.c (quotearg_alloc): New function.
88914         (quotearg_buffer_restyled): Treat lone { and } as special.
88915         Treat = as special.  Work around bug with older shells
88916         that "see" a '\' that is really the 2nd byte of a multibyte char.
88917         Quote empty string with shell_quoting_style.
88918
88919 2004-02-03  Bruno Haible  <bruno@clisp.org>
88920
88921         * m4/pipe.m4: New file, from GNU gettext.
88922
88923 2004-02-03  Bruno Haible  <bruno@clisp.org>
88924
88925         * lib/pipe.h: New file, from GNU gettext.
88926         * lib/pipe.c: New file, from GNU gettext.
88927
88928 2004-01-27  Bruno Haible  <bruno@clisp.org>
88929
88930         * m4/execute.m4: New file, from GNU gettext.
88931
88932 2004-01-27  Bruno Haible  <bruno@clisp.org>
88933
88934         * lib/execute.h: New file, from GNU gettext.
88935         * lib/execute.c: New file, from GNU gettext.
88936         * lib/w32spawn.h: New file, from GNU gettext.
88937
88938 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88939
88940         Merge from diffutils.
88941
88942         * lib/file-type.c (file_type): Add typed memory objects.
88943         * lib/file-type.h (S_TYPEISTMO): New macro.
88944
88945         * lib/c-stack.h (c_stack_action): Remove argv argument.
88946         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
88947         (die): Don't calculate message unless segv_action returns.
88948         (get_stack_location, min_address_from_argv, max_address_from_argv,
88949         volatile stack_base, volatile_stack_size): Remove.
88950         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
88951         that every segmentation violation is a stack overflow.  (Ouch!)
88952         See Debian bug 136249 (still outstanding) for more info about why
88953         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
88954
88955 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88956
88957         Exit-status fix from coreutils.
88958
88959         Use exit_failure consistently in place of EXIT_FAILURE,
88960         so that program exit statuses are consistent on failure.
88961
88962         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
88963         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
88964         * lib/argmatch.h: Comment fix to match the above.
88965         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
88966         Now a macro referring to exit_failure, instead of a separate
88967         variable.  Include "exitfail.h" to get it.
88968         * lib/xstrtol.h: Include "exitfail.h".
88969         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
88970
88971         * lib/long-options.c (parse_long_options): Use prototype
88972         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
88973         for clarity.
88974
88975 2004-01-21  Jim Meyering  <jim@meyering.net>
88976
88977         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88978         so as not to conflict with a different-sized __mktime_internal
88979         function in GNU libc.
88980         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88981         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88982
88983 2004-01-20  Karl Berry  <karl@gnu.org>
88984
88985         * config/config.guess: update from config.
88986
88987         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88988
88989 2004-01-20  Bruno Haible  <bruno@clisp.org>
88990
88991         Safer stack allocation.
88992         * lib/setenv.c: Include allocsa.h.
88993         (alloca): Remove fallback definition.
88994         (freea): Remove macro.
88995         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88996         instead of freea.
88997
88998 2004-01-20  Bruno Haible  <bruno@clisp.org>
88999
89000         * m4/eealloc.m4: New file, from GNU gettext.
89001
89002 2004-01-20  Bruno Haible  <bruno@clisp.org>
89003
89004         * m4/allocsa.m4: New file, from GNU gettext.
89005
89006 2004-01-20  Bruno Haible  <bruno@clisp.org>
89007
89008         * lib/xallocsa.h: New file, from GNU gettext.
89009         * lib/xallocsa.c: New file, from GNU gettext.
89010
89011 2004-01-20  Bruno Haible  <bruno@clisp.org>
89012
89013         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89014
89015 2004-01-20  Bruno Haible  <bruno@clisp.org>
89016
89017         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89018         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89019         specially.
89020
89021 2004-01-20  Bruno Haible  <bruno@clisp.org>
89022
89023         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89024         patch.
89025
89026 2004-01-20  Bruno Haible  <bruno@clisp.org>
89027
89028         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89029
89030 2004-01-20  Bruno Haible  <bruno@clisp.org>
89031
89032         * lib/eealloc.h: New file.
89033
89034 2004-01-20  Bruno Haible  <bruno@clisp.org>
89035
89036         * lib/binary-io.h: Avoid warnings on Cygwin.
89037
89038 2004-01-20  Bruno Haible  <bruno@clisp.org>
89039
89040         * lib/allocsa.h: New file, from GNU gettext.
89041         * lib/allocsa.c: New file, from GNU gettext.
89042
89043 2004-01-18  Karl Berry  <karl@gnu.org>
89044
89045         * doc/gpl.texi, doc/lgpl.texi: new files.
89046
89047 2004-01-18  Karl Berry  <karl@gnu.org>
89048
89049         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89050         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89051
89052 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89053
89054         Merge from coreutils.
89055
89056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89057         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89058         (gl_DEFAULT_POSIX2_VERSION): Move
89059         the documentation from 'configure' into 'config.hin',
89060         so that 'configure --help' isn't burdened by it and
89061         we don't have to worry about its formatting there.
89062         Reword the documentation so that it's more succinct
89063         and can be run together into a single paragraph.
89064         * m4/same.m4 (gl_SAME): Check for pathconf.
89065
89066 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89067
89068         Merge from coreutils.
89069
89070         * lib/posixver.c: Include posixver.h.
89071
89072         * lib/same.c: Include <stdbool.h>, <limits.h>.
89073         (_POSIX_NAME_MAX): Define if not defined.
89074         (MIN): New macro.
89075         (same_name): If file names are silently truncated, report
89076         that the file names are the same if they are the same after
89077         the silent truncation.
89078
89079         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89080         conversion function.
89081         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89082         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89083         longer needed.
89084
89085 2004-01-15  Jim Meyering  <jim@meyering.net>
89086
89087         Merge from coreutils.
89088
89089         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89090         if no library is required.
89091         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89092         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89093         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89094         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89095         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89096         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89097         value, $ac_cv_search_crypt, if it's "none required".
89098         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89099         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89100         not gl_FUNC_GETLOADAVG.
89101         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89102         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89103
89104 2004-01-15  Jim Meyering  <jim@meyering.net>
89105
89106         Merge from coreutils.
89107
89108         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89109         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89110         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89111
89112         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89113         optional configure-time default.
89114
89115         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89116
89117         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89118
89119 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89120
89121         Merge from coreutils.
89122
89123         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89124         value, $ac_cv_search_nanosleep, if it's "none required".
89125
89126 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89127
89128         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89129         with like-named macro in fnmatch.c.
89130         (EXT): Use an internal constant instead.
89131
89132         Merge fnmatch patches from glibc.
89133         * lib/fnmatch.c (mbsinit): Remove define.
89134         Add libc_hidden_ver (__fnmatch, fnmatch).
89135         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89136         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89137
89138 2004-01-14  Karl Berry  <karl@gnu.org>
89139
89140         * config/install-sh: update from automake.
89141
89142 2004-01-13  Karl Berry  <karl@gnu.org>
89143
89144         * config/install-sh: update from automake.
89145
89146 2004-01-09  Karl Berry  <karl@gnu.org>
89147
89148         * config/install-sh: update from automake.
89149
89150 2004-01-05  Karl Berry  <karl@gnu.org>
89151
89152         * config/config.{sub,guess}: update from config.
89153
89154 2003-12-31  Karl Berry  <karl@gnu.org>
89155
89156         * config/depcomp: update from automake.
89157
89158 2003-12-14  Karl Berry  <karl@gnu.org>
89159
89160         * lib/config.charset: update from gettext-runtime.
89161
89162 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89163
89164         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89165         Bug reported by Alfred M. Szmidt.
89166
89167 2003-12-03  Bruno Haible  <bruno@clisp.org>
89168
89169         * m4/gettext.m4: Upgrade from gettext-0.13.
89170         * m4/po.m4: Upgrade from gettext-0.13.
89171         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89172         * m4/intmax.m4: New file, from gettext-0.13.
89173         * m4/printf-posix.m4: New file, from gettext-0.13.
89174
89175 2003-11-29  Karl Berry  <karl@gnu.org>
89176
89177         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89178
89179 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89180             Bruno Haible  <bruno@clisp.org>
89181
89182         * lib/printf-parse.h: Don't include sys/types.h.
89183         (ARG_NONE): New macro.
89184         (char_directive): Change type of *arg_index fields to size_t.
89185         * lib/printf-parse.c: Don't include sys/types.h.
89186         (SSIZE_MAX): Remove macro.
89187         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89188         Remove unnecessary overflow check.
89189         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89190         fields.
89191
89192 2003-11-25  Bruno Haible  <bruno@clisp.org>
89193
89194         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89195
89196 2003-11-25  Bruno Haible  <bruno@clisp.org>
89197
89198         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89199         gt_TYPE_SSIZE_T.
89200
89201 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89202
89203         * modules/alloca: Remove dependency on xalloc.
89204
89205 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89206
89207         * lib/alloca.c: Remove dependency on xalloc module.
89208         (xalloc_die): Remove.
89209         (memory_full) [!defined emacs]: New macro.
89210         [!defined emacs]: Don't include xalloc.h.
89211         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89212         address arithmetic overflows.  Change datatypes a bit to avoid
89213         unnecessary casts.
89214
89215 2003-11-22  Jim Meyering  <jim@meyering.net>
89216
89217         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89218         s/size/size_t/.
89219
89220 2003-11-21  Karl Berry  <karl@gnu.org>
89221
89222         * config/config.{sub,guess}: update from config.
89223
89224 2003-11-18  Karl Berry  <karl@gnu.org>
89225
89226         * config/config.{sub,guess}: update from config.
89227
89228         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89229
89230 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89231
89232         * README: Mention that S+T cannot overflow if S is the size of
89233         an existing object and T is sufficiently small.
89234
89235 2003-11-17  Jim Meyering  <jim@meyering.net>
89236
89237         On systems without utime and without a utimes function capable of
89238         dealing with a NULL struct utimbuf* argument, this utime replacement
89239         could -- in unusual circumstances -- leak a file descriptor.
89240         * lib/utime.c: Include <unistd.h> and <errno.h>.
89241         (utime_null): Be sure to close `fd' and to preserve errno.
89242         Reported by Geoff Collyer via Arnold Robbins.
89243
89244 2003-11-17  Bruno Haible  <bruno@clisp.org>
89245
89246         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89247         (Depends-on): Add xsize.
89248
89249 2003-11-17  Bruno Haible  <bruno@clisp.org>
89250
89251         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89252
89253 2003-11-17  Bruno Haible  <bruno@clisp.org>
89254
89255         * lib/vasnprintf.c (alloca): Remove fallback definition.
89256         (freea): Remove definition.
89257         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89258         Reported by Paul Eggert.
89259
89260 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89261             Bruno Haible  <bruno@clisp.org>
89262
89263         Protect against address arithmetic overflow.
89264         * lib/printf-args.h: Include stddef.h.
89265         (arguments): Change type of field 'count' to size_t.
89266         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89267         'unsigned int' where appropriate.
89268         * lib/printf-parse.h: Include sys/types.h.
89269         (char_directive): Change type of *arg_index fields to ssize_t.
89270         (char_directives): Change type of fields 'count', max_*_length to
89271         size_t.
89272         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89273         (SSIZE_MAX): Define fallback value.
89274         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89275         instead of 'int' where appropriate. Check a_allocated, d_allocated
89276         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89277         * lib/vasnprintf.c: Include xsize.h.
89278         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89279         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89280         overflow. Avoid wraparound when converting a width or precision from
89281         decimal to binary.
89282
89283 2003-11-16  Bruno Haible  <bruno@clisp.org>
89284
89285         Update from GNU gettext.
89286         * lib/printf-parse.c: Generalize to it can be compiled for wide
89287         strings.
89288         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89289         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89290         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89291         SNPRINTF): New macros.
89292         Don't include <alloca.h> if the file is used inside libintl.
89293         (local_wcslen): New function, for Solaris 2.5.1.
89294         (VASNPRINTF): Use it instead of wcslen.
89295
89296 2003-11-16  Bruno Haible  <bruno@clisp.org>
89297
89298         * lib/xsize.h (xmax): New function.
89299         (xsum, xsum3, xsum4): Declare as "pure" functions.
89300
89301 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89302
89303         * modules/xalloc (Files): Undo latest change, since xalloc.h
89304         no longer needs SIZE_MAX or PTRDIFF_MAX.
89305
89306 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89307
89308         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89309         gl_PTRDIFF_MAX.
89310
89311 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89312
89313         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89314         "return", to pacify some unknown compiler.  Problem reported
89315         by Joerg Schilling.
89316
89317 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89318
89319         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89320         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89321         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89322         heuristic is just as accurate as far as we know, and it removes a
89323         dependency on size_max.m4 and ptrdiff_max.m4.
89324
89325 2003-11-11  Bruno Haible  <bruno@clisp.org>
89326
89327         * modules/xsize (Files): Add m4/size_max.m4.
89328         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89329
89330 2003-11-11  Bruno Haible  <bruno@clisp.org>
89331
89332         * m4/size_max.m4: New file.
89333         * m4/ptrdiff_max.m4: New file.
89334         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89335         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89336         (gl_XALLOC): Invoke it.
89337
89338 2003-11-11  Bruno Haible  <bruno@clisp.org>
89339
89340         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89341         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89342         defined.
89343
89344 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89345
89346         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89347         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89348         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89349         From Bruno Haible.
89350         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89351         not (size_t) -1, since it's defined here.
89352
89353 2003-11-09  Karl Berry  <karl@gnu.org>
89354
89355         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89356
89357 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89358
89359         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89360         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89361         Reject sizes of exactly SIZE_MAX bytes.
89362         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89363         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89364
89365 2003-11-05  Bruno Haible  <bruno@clisp.org>
89366
89367         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89368         SIZE_MAX defined in <limits.h> on Solaris.
89369
89370 2003-11-04  Jim Meyering  <jim@meyering.net>
89371
89372         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89373         variable names, rather than @VAR@.
89374         * modules/poll: Likewise.
89375
89376 2003-11-04  Bruno Haible  <bruno@clisp.org>
89377
89378         * modules/xsize: New file.
89379         * modules/linebreak: Depend on xsize.
89380         * MODULES.html.sh (func_all_modules): Add xsize.
89381
89382 2003-11-04  Bruno Haible  <bruno@clisp.org>
89383
89384         * m4/xsize.m4: New file.
89385
89386 2003-11-04  Bruno Haible  <bruno@clisp.org>
89387
89388         * lib/xsize.h: New file.
89389         * lib/linebreak.c: Include xsize.h.
89390         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89391         argument for overflow.
89392         Suggested by Paul Eggert.
89393
89394 2003-11-03  Karl Berry  <karl@gnu.org>
89395
89396         * config/config.{guess,sub}: update from config.
89397
89398 2003-11-03  Jim Meyering  <jim@meyering.net>
89399
89400         * modules/userspec (lib_SOURCES): Add userspec.h.
89401         (Include): Add "userspec.h".
89402         Improve description.
89403
89404 2003-11-03  Jim Meyering  <jim@meyering.net>
89405
89406         * lib/userspec.c: Include "userspec.h".
89407         * lib/userspec.h: New file.
89408
89409 2003-11-03  Bruno Haible  <bruno@clisp.org>
89410
89411         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89412
89413 2003-11-03  Bruno Haible  <bruno@clisp.org>
89414
89415         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89416         available, to avoid (extremely rare) race condition.
89417         Suggested by Paul Eggert.
89418
89419 2003-11-02  Karl Berry  <karl@gnu.org>
89420
89421         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89422
89423 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89424
89425         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89426         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89427         (read_filesystem_list): Set and use me_type_malloced.
89428         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89429         whatever the type happens to be), for brevity and consistency.
89430         Check for size calculation overflow on Alphas running OSF/1.
89431
89432 2003-10-31  Jim Meyering  <jim@meyering.net>
89433
89434         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89435
89436         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89437
89438 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89439             Bruno Haible  <bruno@clisp.org>
89440
89441         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89442         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89443
89444 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89445
89446         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89447         netbsd*-gnu*.  Suggested by Robert Millan.
89448
89449 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89450
89451         * modules/group-member: Depend on stdbool.
89452
89453 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89454
89455         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89456
89457 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89458
89459         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89460         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89461         after the 'gnu' in these cases.  This fixes some bugs in the
89462         previous change, and is based on suggestions by Robert Millan.
89463
89464 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89465
89466         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89467         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89468         no longer needed.
89469         * lib/quotearg.c (quotearg_n_options): Use it.
89470         * lib/group-member.c: Include <stdbool.h>.
89471         (free_group_info): Arg is now const *; don't free arg.
89472         (get_group_info): Now returns bool and accepts struct group_info *,
89473         rather than returning a malloc'ed struct group_info *.
89474         All uses changed.  Check for overflow in internal size calculation.
89475
89476         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89477         rather than xmalloc/xrealloc.
89478         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89479         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89480         conformance bug: the old code used a pointer after freeing the
89481         storage that it addressed.
89482         * lib/hash.c (hash_initialize): Simplify the code by using
89483         xalloc_oversized rather than doing it by hand.
89484         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89485         the buffer preserved.  Use free and xmalloc instead.
89486         * lib/quotearg.c (quotearg_n_options): Likewise.
89487         Use a simpler test for size overflow.  Don't use xalloc_oversized
89488         because unsigned int might be wider than size_t (!); this suggests
89489         that we should switch from unsigned int to size_t for slot numbers.
89490
89491 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89492
89493         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89494         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89495         NetBSD kernels.  Requested by Richard Stallman.
89496
89497 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89498
89499         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89500         to allocate the returned structure.  Do not allocate a subarray,
89501         as x2nrealloc will do that.
89502         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89503         instead of xnrealloc.
89504         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89505
89506 2003-10-27  Bruno Haible  <bruno@clisp.org>
89507
89508         * lib/stdbool_.h: Better support for BeOS.
89509
89510 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89511
89512         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89513         now uses inline.
89514
89515 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89516
89517         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89518         callers that want to do their own size-overflow checking.  Include
89519         <stdbool.h>, since xalloc_oversized returns bool.
89520         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89521         to use xalloc_oversized.
89522
89523         Add two functions x2realloc, x2nrealloc, for programs that grow
89524         arrays dynamically by doubling their sizes.
89525         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89526         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89527         New functions.
89528
89529         Port to C99 semantics for 'inline' of external functions.
89530         Bug reported by Bruno Haible.
89531         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89532         with the old contents of xnmalloc.
89533         (xnmalloc, xmalloc): Use it.
89534         (xnrealloc_inline): New static inline function,
89535         with the old contents of xnrealloc.
89536         (xnrealloc, xrealloc): Use it.
89537
89538         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89539         that.
89540
89541 2003-10-26  Karl Berry  <karl@gnu.org>
89542
89543         * config/srclist.txt (COPYING.DOC): no longer available from
89544         /gd/gnuorg; don't know where the ultimate source is.
89545
89546 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89547
89548         Fix several address-calculation bugs in the hash modules,
89549         plus some minor code cleanup.
89550
89551         * lib/hash.h: Include <stdbool.h>, for bool.
89552         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89553         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89554         hash_get_n_entries, hash_get_max_bucket_length,
89555         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89556         hash_rehash): Use size_t rather than unsigned.
89557         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89558         hash_get_n_buckets_used, hash_get_n_entries,
89559         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89560         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89561         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89562         Likewise.
89563         (SIZE_MAX): Define if not defined.
89564         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89565         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89566         hash_print):
89567         Use const * when possible.
89568         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89569         (check_tuning): Fix bug: if tuning parameters were very close to
89570         0 or 1, rounding errors could have caused subscript violations.
89571         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89572         (hash_initialize): Add 'fail:' label
89573         to free table and return NULL, and use it to simplify code.
89574         Use calloc rather than clearing the storage ourself.
89575         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89576         buffer size calculations.
89577         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89578         Include <stddef.h>, for size_t.
89579         * lib/hash-pjw.c (hash_pjw): Likewise.
89580         Switch to method described by Bruno Haible.
89581         Include <limits.h>, for CHAR_BIT.
89582         (SIZE_BITS): New macro.
89583
89584 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89585
89586         * m4/getline.m4 (AM_FUNC_GETLINE):
89587         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89588         hosts.  Problem reported by Derek Robert Price in
89589         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89590         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89591         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89592
89593 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89594
89595         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89596         ceiling the allocation at NMAX bytes rather than silently
89597         discarding input bytes before NMAX is reached.  This makes
89598         a difference only if NMAX exceeds SIZE_MAX / 2.
89599
89600         * lib/obstack.c: Merge from glibc.
89601         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89602         Add libc_hidden_def (_obstack_newchunk).
89603         (_obstack_free) [! defined _LIBC]: Remove.
89604         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89605         a clone of the function body.
89606         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89607         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89608
89609         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89610         glibc.
89611         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89612         arg to memcpy.
89613
89614         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89615         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89616         Don't use lvalue casts, as GCC plans to remove support for them
89617         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89618         was also present in the non-GCC version, indicating that this
89619         code had always been buggy and had never been widely used.
89620         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89621         Use the fast variant of each macro, rather than copying the
89622         definiens of the fast variant; that way, we'll be more likely to
89623         catch future bugs in the fast variants.
89624
89625 2003-10-20  Bruno Haible  <bruno@clisp.org>
89626
89627         * modules/wait-process: New file.
89628         * MODULES.html.sh (func_all_modules): Add wait-process.
89629
89630 2003-10-20  Bruno Haible  <bruno@clisp.org>
89631
89632         * m4/wait-process.m4: New file.
89633
89634 2003-10-20  Bruno Haible  <bruno@clisp.org>
89635
89636         * lib/wait-process.h: New file, from GNU gettext.
89637         * lib/wait-process.c: New file, from GNU gettext.
89638
89639 2003-10-19  Jim Meyering  <jim@meyering.net>
89640
89641         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89642         HPUX 10.20.
89643
89644 2003-10-18  Karl Berry  <karl@gnu.org>
89645
89646         * config/config.guess: update from config.
89647
89648 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89649
89650         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89651         (getgroups): First arg is int, not size_t.
89652         Don't let 'free' mangle errno.
89653
89654 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89655
89656         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89657
89658 2003-10-16  Karl Berry  <karl@gnu.org>
89659
89660         * config/config.{guess,sub}: update from config.
89661
89662 2003-10-16  Jim Meyering  <jim@meyering.net>
89663
89664         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89665         memcpy.
89666
89667 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89668
89669         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89670         (SIZE_MAX): Remove.
89671         (new_exclude, add_exclude_file): Initial size no longer needs to
89672         be a power of 2.
89673         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89674         our own address arithmetic overflow checking.
89675
89676         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89677         (fnmatch): Do not alloca more than 2000 wide characters;
89678         instead, use malloc for large buffers.
89679         Check for address arithmetic overflow, and return -1
89680         with errno set to ENOMEM in that case.
89681         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89682         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89683         instead, return -1.  Check for address arithmetic overflow.
89684
89685 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89686
89687         Handle invalid suffixes and overflow independently, so that
89688         callers can treat them independently as needed.  Fix some bugs in
89689         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89690         suffix for a human-readable blocksize.  The major caller-visible
89691         change is the addition of a new
89692         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89693         that both overflow and suffix chars were found.
89694
89695         * lib/human.c (humblock): Don't check separately for invalid suffix
89696         char; that is xstrtoumax's job (now that its bug is fixed).
89697         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89698         INTMAX_MAX]: New macros.
89699         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89700         TYPE_MAXIMUM): New macros.
89701         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89702         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89703         if overflow occurs, as it's what __strtol does and it's more useful
89704         in practice.
89705         (__xstrtol): If __strtol reports some error other than ERANGE,
89706         reflect it to the caller as LONGINT_INVALID.  If it reports
89707         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89708         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89709         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89710         value.
89711         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89712         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89713         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89714         [defined UINTMAX_MAX]: New macros.
89715
89716 2003-10-14  Bruno Haible  <bruno@clisp.org>
89717
89718         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89719
89720 2003-10-14  Bruno Haible  <bruno@clisp.org>
89721
89722         * m4/sig_atomic_t: New file, from GNU gettext.
89723         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89724
89725 2003-10-14  Bruno Haible  <bruno@clisp.org>
89726
89727         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89728         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89729         Also use volatile where needed.
89730
89731 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89732
89733         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89734         Change maintainer from Bruno Haible to 'all'.
89735
89736 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89737
89738         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89739
89740 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89741
89742         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89743         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89744         and define in terms of the other primitives.
89745         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89746         (SIZE_MAX): Define if not already defined.
89747         (array_size_overflow): New function.
89748         (xalloc_die): Abort instead of exiting if 'error' returns.
89749         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89750         (xmalloc, xrealloc): Use them.
89751         (xcalloc): Check for address arithmetic overflow.
89752         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89753         a bit faster than strcpy.
89754
89755 2003-10-10  Simon Josefsson  <jas@extundo.com>
89756
89757         * modules/argp (Depends-on): Add restrict and strcase.
89758
89759 2003-10-10  Simon Josefsson  <jas@extundo.com>
89760
89761         * m4/argp.m4: Add AC_C_INLINE.
89762
89763 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89764
89765         Merge getpass from libc, plus a few fixes.
89766
89767         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89768         Include <stdbool.h>.
89769         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89770         __fsetlocking to empty.
89771         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89772         do include <bits/libc-lock.h>.
89773         Do not include <fcntl.h>; not needed.
89774         [_LIBC]: Include <wchar.h>.
89775         (NOTCANCEL_MODE): New macro.
89776         (flockfile, funlockfile) [_LIBC]: New macros.
89777         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89778         [!_LIBC]: New macros.
89779         (call_fclose): New function.
89780         (getpass): Use it.  Save tty stream separately; this simplifies the
89781         code and makes it more reliable if stdin happens to equal stdout.
89782         Invoke __fsetlocking on tty.
89783         Handle thread cancellation if needed.
89784         Namespace cleanup (use __tcgetattr, __getline).
89785         Use bool for Booleans.
89786         [USE_IN_LIBIO]: Handle wide streams.
89787         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89788         stream might go where.
89789
89790         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89791         doesn't have to include <stdio.h> before us.
89792         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89793         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89794         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89795         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89796         if not declared, so that we can use getpass.c code from libc without
89797         rewriting it.
89798         (flockfile, ftrylockfile, funlockfile): New macros.
89799
89800 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89801
89802         * modules/getpass: Depend on stdbool.
89803
89804 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89805
89806         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89807
89808 2003-10-07  Karl Berry  <karl@gnu.org>
89809
89810         * config/config.{guess,sub}: update from config.
89811
89812 2003-10-06  Jim Meyering  <jim@meyering.net>
89813             Bruno Haible  <bruno@clisp.org>
89814
89815         This lets translators provide better translations for the
89816         "Written by ..." part of --version output.
89817         * lib/version-etc.h: Include stdarg.h.
89818         (version_etc_copyright): Declare as readonly.
89819         (version_etc): Make this function variadic with a NULL-terminated list
89820         of author name strings.
89821         (version_etc_va): New declaration.
89822         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89823         (version_etc_copyright): Declare as readonly.
89824         (version_etc_va): New function. Provide a different translatable string
89825         for each possible number of authors < 10. Abbreviate when there are 10
89826         authors or more.
89827         (version_etc): Make this function variadic. Call version_etc_va.
89828         Suggestion from Gary V. Vaughan.
89829
89830         * lib/long-options.h (parse_long_options): Change prototype: the
89831         authors string is moved to the end and becomes variadic.
89832         * lib/long-options.c: Include stdarg.h.
89833         (parse_long_options): Make this function variadic, too.
89834         Call version_etc_va, not version_etc.
89835
89836 2003-10-06  Bruno Haible  <bruno@clisp.org>
89837
89838         * modules/version-etc-2: Remove file.
89839         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
89840
89841 2003-10-06  Bruno Haible  <bruno@clisp.org>
89842
89843         * modules/fatal-signal: New file.
89844         * MODULES.html.sh (func_all_modules): Add fatal-signal.
89845
89846 2003-10-06  Bruno Haible  <bruno@clisp.org>
89847
89848         * m4/fatal-signal.m4: New file.
89849         * m4/signalblocking.m4: New file, from GNU gettext.
89850
89851 2003-10-06  Bruno Haible  <bruno@clisp.org>
89852
89853         * lib/version-etc-2.h: Remove file.
89854         * lib/version-etc-2.c: Remove file.
89855
89856 2003-10-06  Bruno Haible  <bruno@clisp.org>
89857
89858         * lib/fatal-signal.h: New file, from GNU gettext.
89859         * lib/fatal-signal.c: New file, from GNU gettext.
89860
89861 2003-10-05  Paul Eggert  <eggert@twinsun.com>
89862
89863         * README: Rework advice for preventing empty .o files.
89864         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
89865         not <sys/types.h>.
89866
89867 2003-10-04  Karl Berry  <karl@gnu.org>
89868
89869         * lib/argp*: update from libc.
89870
89871 2003-10-04  Karl Berry  <karl@gnu.org>
89872
89873         * config/config.{guess,sub}: update from config.
89874
89875 2003-10-02  Bruno Haible  <bruno@clisp.org>
89876
89877         * modules/lchown (Include): Add lchown.h.
89878         * modules/time_r (Include): Use "..." syntax.
89879         * modules/xgetdomainname (Include): Add xgetdomainname.h.
89880
89881 2003-10-01  Simon Josefsson  <jas@extundo.com>
89882
89883         * MODULES.html.sh (func_all_modules): Move gethostname from section
89884         'based on' to section 'lacking' POSIX:2001.
89885
89886 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
89887
89888         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
89889         to output mode on the same stream.
89890
89891 2003-09-29  Paul Eggert  <eggert@twinsun.com>
89892
89893         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
89894         Fix arg typo in previous patch.
89895
89896 2003-09-28  Jim Meyering  <jim@meyering.net>
89897
89898         * lib/error.c: Correct cpp indentation.
89899
89900 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89901
89902         * modules/free: New file.
89903
89904 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89905
89906         * m4/free.m4: New file.
89907
89908 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89909
89910         * lib/minmax.h (MIN, MAX)
89911         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
89912         Omit the special code that used __typeof__, since we worry that
89913         it could be more trouble than it's worth.  See:
89914         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
89915         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
89916
89917         * lib/free.c: New file.
89918
89919 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
89920
89921         Trivial fixes to Makefile.am parts of module listings.
89922         * modules/strstr: Append strstr.h to lib_SOURCES.
89923         * modules/strcase: Likewise, for strcase.h.
89924
89925 2003-09-27  Karl Berry  <karl@gnu.org>
89926
89927         * config/mkinstalldirs: update from automake.
89928
89929 2003-09-26  Paul Eggert  <eggert@twinsun.com>
89930
89931         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
89932         (error_tail): Do not loop, reallocating temporary buffer, since
89933         the output cannot contain more wide characters than the input
89934         contains bytes, the size must be big enough already.  This avoids
89935         one potential size overflow calculation.  Check for size overflow
89936         when calculating temporary buffer size.  Free temporary buffer
89937         when done, if it was allocated with malloc; this plugs a memory
89938         leak.  Remove casts from void * to pointers, that are no longer
89939         needed now that we're assuming C89 or better.
89940
89941         Merge error changes from glibc.
89942
89943         * lib/error.c, error.h: Update copyright notice header to match glibc.
89944         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
89945         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
89946         Disable cancellation while printing error.
89947         * lib/error.h: Prepend __ to parameter names.
89948
89949 2003-09-26  Jim Meyering  <jim@meyering.net>
89950
89951         * lib/error.c (error_tail): Move some declarations
89952         into inner scope where the local variables are used.
89953
89954 2003-09-26  Bruno Haible  <bruno@clisp.org>
89955
89956         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
89957         stpncpy().
89958         Don't define stpncpy through config.h; it's now done through stpncpy.h.
89959
89960 2003-09-26  Bruno Haible  <bruno@clisp.org>
89961
89962         * lib/stpncpy.h (gnu_stpncpy): New declaration.
89963         (stpncpy): Define as alias for gnu_stpncpy.
89964         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
89965
89966 2003-09-25  Simon Josefsson  <jas@extundo.com>
89967
89968         * lib/xgetdomainname.h: New file.
89969         * lib/xgetdomainname.c: New file.
89970
89971 2003-09-25  Simon Josefsson  <jas@extundo.com>
89972             Bruno Haible  <bruno@clisp.org>
89973
89974         * modules/getdomainname: New file.
89975         * modules/xgetdomainname: New file.
89976         * MODULES.html.sh (func_all_modules): Add getdomainname,
89977         xgetdomainname.
89978
89979 2003-09-25  Simon Josefsson  <jas@extundo.com>
89980             Bruno Haible  <bruno@clisp.org>
89981
89982         * m4/getdomainname.m4: New file.
89983
89984 2003-09-25  Simon Josefsson  <jas@extundo.com>
89985             Bruno Haible  <bruno@clisp.org>
89986
89987         * lib/getdomainname.h: New file.
89988         * lib/getdomainname.c: New file.
89989
89990 2003-09-25  Karl Berry  <karl@gnu.org>
89991
89992         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89993
89994 2003-09-25  Karl Berry  <karl@gnu.org>
89995
89996         * config/install-sh: update from automake.
89997
89998 2003-09-25  Bruno Haible  <bruno@clisp.org>
89999
90000         * modules/version-etc-2: New file, from modules/version-etc with
90001         modifications.
90002         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90003
90004 2003-09-25  Bruno Haible  <bruno@clisp.org>
90005
90006         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90007         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90008
90009 2003-09-24  Simon Josefsson  <jas@extundo.com>
90010
90011         * modules/xgethostname: Add xgethostname.h.
90012
90013 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90014
90015         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90016         the buffer associated with the argument.  Bug reported by
90017         Simon Josefsson.
90018
90019 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90020
90021         * README: Document assumptions that 'int' is at least 32 bits
90022         wide, that integer arithmetic is 2's complement without overflow,
90023         that there are no holes in integer values, that adding sizes of
90024         two nonoverlapping objects can't overflow, and that all-bits-zero
90025         yields scalar zero.  Fix spelling and capitalization typos.
90026
90027 2003-09-19  Karl Berry  <karl@gnu.org>
90028
90029         * lib/argp.h: update from libc.
90030
90031 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90032
90033         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90034         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90035         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90036
90037 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90038
90039         * gnulib-tool: Use "test -h", not "test -L", for portability
90040         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90041         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90042         (sed_extract_prog): Issue s commands one-by-one, rather than
90043         using \| in one s command.
90044
90045 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90046
90047         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90048         input error, instead of returning NULL the next time we are called
90049         (and therefore losing track of errno).
90050
90051 2003-09-16  Bruno Haible  <bruno@clisp.org>
90052
90053         * gnulib-tool (func_create_testdir): Warn about duplicated
90054         dependencies.
90055
90056 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90057
90058         * modules/argmatch, modules/fatal, modules/obstack,
90059         modules/xalloc, modules/xgethostname: Sort dependencies by
90060         importance, not alphabetically.
90061
90062 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90063
90064         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90065         fails, so that the caller gets the proper errno.
90066
90067         * lib/readutmp.c (read_utmp): Likewise.
90068         Check for fstat error.  Close stream and free storage
90069         when failing.
90070
90071 2003-09-14  Karl Berry  <karl@gnu.org>
90072
90073         * config/srclist.txt (strdup.c): disable for c89 changes.
90074
90075 2003-09-14  Jim Meyering  <jim@meyering.net>
90076
90077         * lib/getloadavg.c: Correct cpp indentation.
90078         * lib/strdup.c: Likewise.
90079         * lib/vasnprintf.c: Likewise.
90080
90081 2003-09-14  Bruno Haible  <bruno@clisp.org>
90082
90083         * modules/fwriteerror: New file.
90084         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90085
90086 2003-09-14  Bruno Haible  <bruno@clisp.org>
90087
90088         * lib/fwriteerror.h: New file.
90089         * lib/fwriteerror.c: New file.
90090
90091 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90092
90093         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90094         modules/xgethostname, modules/xalloc: Depend on exit.
90095
90096 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90097
90098         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90099
90100         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90101         and AC_MINIX, too, so that their extensions are available.
90102
90103         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90104         This macro has been superseded by gl_BACKUPFILE.
90105
90106         More patches to assume C89 or better.
90107
90108         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90109
90110         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90111         unconditionally.
90112         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90113         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90114         Include <string.h>, <stdlib.h> unconditionally.
90115         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90116         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90117         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90118         headers or for string.h.
90119         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90120         or strtoul.
90121
90122         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90123         headers.
90124         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90125         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90126         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90127         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90128         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90129         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90130         memcpy, memset.
90131         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90132         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90133         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90134         strtol.
90135         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90136         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90137         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90138         strtoul.
90139
90140 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90141
90142         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90143         * lib/obstack.c [!defined _LIBC]: Likewise.
90144         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90145         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90146         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90147
90148         More changes to assume C89 or better.
90149
90150         * lib/error.c (error_tail): Assume vprintf.
90151
90152         * lib/argmatch.c (getenv): Remove decl.
90153         * lib/progreloc.c (get_full_program_name): Define via prototype.
90154         * lib/setenv.c (clearenv): Likewise.
90155         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90156         needed.
90157         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90158         (malloc, memcpy): Remove decls.
90159         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90160         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90161         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90162         (memcpy): Remove macro.
90163         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90164         (__P): Remove.  All uses removed.
90165         (PTR): Remove.  All uses changed to void *.
90166         (CHAR_BIT, NULL): Remove.
90167         (spaces, zeros, memset_space, memset_zero)
90168         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90169         Remove.
90170         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90171         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90172         Define with prototype.
90173         Remove now-unnecessary prototype decl.
90174         (extra_args_spec): Assume ANSI C.  All uses changed.
90175         (extra_args_spec_iso): Remove.
90176         (my_strftime, emacs_strftimeu): Define via prototype.
90177         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90178         unconditionally.
90179         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90180         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90181         (strtoul, strtol): Remove decls.
90182         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90183         LONG_MAX): Remove.
90184         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90185         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90186         (LOCALE_PARAM_PROTO): New macro.
90187         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90188         (INTERNAL (strtol), strtol): Define with a prototype.
90189         (PARAMS): Remove.  All uses removed.
90190         * lib/tempname.c: Include <string.h> unconditionally.
90191         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90192         * lib/xgethostname.c (main): Define with a prototype.
90193         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90194         Include <stdlib.h> unconditionally.
90195         (calloc, malloc, realloc, free): Remove decls.
90196         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90197         Include <stdlib.h> unconditionally.  Sort include file names.
90198         (strtod): Remove.
90199         (xstrtod): Define with a prototype.
90200         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90201         (strtol, strtoul): Remove decls.
90202
90203 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90204
90205         More patches to assume C89 or better.
90206         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90207         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90208         string.h, memchr, STDC_HEADERS.
90209
90210 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90211
90212         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90213         Include <stdlib.h>, <string.h> unconditionally.
90214         Remove now-unnecessary cast to char *.
90215         * lib/strnlen.c: Include <string.h> unconditionally.
90216         * lib/yesno.c (yesno): Define with a prototype.
90217
90218 2003-09-11  Bruno Haible  <bruno@clisp.org>
90219
90220         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90221
90222 2003-09-10  Jim Meyering  <jim@meyering.net>
90223
90224         * lib/error.c: Correct indentation of cpp directives.
90225
90226 2003-09-10  Bruno Haible  <bruno@clisp.org>
90227
90228         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90229         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90230         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90231         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90232         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90233         <stdlib.h> and <string.h> checks.
90234         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90235         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90236
90237 2003-09-10  Bruno Haible  <bruno@clisp.org>
90238
90239         * lib/strcspn.c: Include <string.h> unconditionally.
90240         * lib/strpbrk.c: Include <string.h> unconditionally.
90241         * lib/strstr.c: Include <string.h> unconditionally.
90242         * lib/unicodeio.c: Include <string.h> unconditionally.
90243         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90244         * lib/unsetenv.c: Likewise.
90245         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90246         * lib/yesno.c: Include <stdlib.h> unconditionally.
90247         (rpmatch): Add prototype.
90248
90249 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90250
90251         More patches to assume C89 or better.
90252         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90253         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90254         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90255         or for string.h.
90256         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90257         stdlib.h.
90258         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90259         C headers.
90260         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90261         string.h.
90262         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90263         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90264         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90265         or for string.h.
90266         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90267         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90268         C headers.
90269         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90270         memcpy.
90271         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90272         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90273         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90274         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90275         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90276         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90277         string.h, free.
90278         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90279         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90280         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90281         C headers, or for string.h.
90282         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90283         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90284         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90285         headers, memory.h, stdlib.h, string.h, strings.h.
90286         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90287         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90288         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90289         strchr.
90290         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90291         headers, memory.h, string.h.
90292         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90293         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90294         free.
90295         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90296         headers.
90297         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90298         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90299         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90300         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90301         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90302
90303 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90304
90305         More K&R removal.
90306
90307         * lib/acosl.c (main): Use a prototype.
90308         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90309         tanl.c: Likewise.
90310
90311         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90312
90313         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90314         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90315         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90316         with a prototype.
90317         * lib/getopt.c (const): Remove macro.
90318         Include <string.h> unconditionally.
90319         (my_index): Remove; all uses changed to strchr.
90320         (strlen): Remove decl.
90321         (exchange): Remove forward decl; no longer needed.
90322         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90323         Define with prototype.
90324         * lib/getopt1.c (const): Remove macro.
90325         (getopt_long, getopt_long_only, main): Define with prototype.
90326
90327         * lib/getugroups.c: Include <string.h> unconditionally.
90328
90329         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90330         (getusershell, setusershell, endusershell, readname, main):
90331         Define with prototypes.
90332
90333         * lib/group-member.c: Include group-member.h first.
90334         Include <stdlib.h> unconditionally.
90335
90336         * lib/hard-locale.c: Include hard-locale.h first.
90337         Include <stdlib.h>, <string.h> unconditionally.
90338
90339         * lib/hash.c (free, malloc): Remove decls.
90340         Include <stdlib.h> unconditionally.
90341
90342         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90343         (getenv): Do not declare.
90344
90345         * lib/idcache.c: Include <string.h> unconditionally.
90346
90347         * lib/long-options.c: Include long-options.h first, to test interface.
90348         Include <stdlib.h> unconditionally.
90349
90350         * lib/makepath.c: Include makepath.h first, to test interface.
90351         Include <stdlib.h> and <string.h> unconditionally.
90352
90353         * lib/linebuffer.c: Include <stdlib.h>.
90354         (free): Remove decl.
90355
90356         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90357         stddef.h. rpl_malloc returns void *, not char *.
90358         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90359         prototype.
90360
90361         * lib/md5.h: Include <limits.h> unconditionally.
90362         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90363         (__P): Remove; all uses removed.
90364         * lib/md5.c: Include "md5.h" first.
90365         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90366         md5_buffer, md5_process_bytes, md5_process_block):
90367         Define with prototypes.
90368         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90369         * lib/sha.c: Include "sha.h" first.
90370         Include <stdlib.h>, <string.h> unconditionally.
90371
90372         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90373         * lib/memcmp.c (__ptr_t): Likewise.
90374         * lib/memrchr.c (__ptr_t): Likewise.
90375         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90376         Include <string.h> unconditionally.
90377         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90378         * lib/memchr.c: Include <stdlib.h> unconditionally.
90379         * lib/memchr.c (LONG_MAX): Remove.
90380         * lib/memrchr.c (LONG_MAX): Likewise.
90381         * lib/memchr.c (__memchr): Define via a prototype.
90382         * lib/memrchr.c (__memrchr): Likewise.
90383         * lib/memcmp.c (__P): Remove, and remove all uses.
90384         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90385         Remove forward decls; no longer needed.
90386         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90387         Use types required by C89 in prototype.
90388
90389         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90390         * lib/savedir.c: Likewise.
90391         * lib/mkdir.c (free): Remove decl.
90392         * lib/rmdir.c (rmdir): Define with a prototype.
90393         * lib/savedir.c: Include savedir.h first, to test interface.
90394
90395         * lib/mktime.c (STDC_HEADERS): Remove.
90396         Include <stdlib.h>, <string.h> unconditionally.
90397
90398         * lib/modechange.c: Include <stdlib.h> unconditionally.
90399         (malloc): Remove decl.
90400
90401         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90402         (free): Remove decl.
90403
90404         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90405         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90406         (This type really should be intptr_t, but that's a C99ism.)
90407         (_obstack_memcpy): Remove: all uses changed to memcpy.
90408         Include <string.h> unconditionally.
90409         (struct obstack): Assume __STDC__ for types of members
90410         chunkfun, freefun, extra_arg.
90411         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90412         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90413         obstack_begin, obstack_specify_allocation,
90414         obstack_specify_allocation_with_arg, obstack_chunkfun,
90415         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90416         Remove unprototyped decls and the macros that use them.
90417         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90418         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90419         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90420         (defined __STDC__ && __STDC__)]:
90421         Remove nonprototyped code.
90422         Include <stdlib.h> unconditionally.
90423         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90424         _obstack_allocated_p, _obstack_free, obstack_free,
90425         _obstack_memory_used, print_and_abort):
90426         Define using prototypes.
90427         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90428         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90429         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90430         obstack_next_free, obstack_object_size, obstack_room) [0]:
90431         Remove unused, unprototyped code.
90432
90433         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90434
90435         * lib/physmem.c (physmem_total, physmem_available, main): Define
90436         with prototypes.
90437
90438         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90439         (main): Define with a prototype.
90440
90441         * lib/posixver.c (getenv): Remove decl.
90442
90443         * lib/putenv.c (malloc): Returns void *, not char *.
90444         Include <string.h> unconditionally.
90445         (strchr, memcpy, NULL): Do not define.
90446
90447         * lib/readtokens.c: Include readtokens.h first, to test interface.
90448         Include <stdlib.h>, <string.h> unconditionally.
90449         (init_tokenbuffer): Define with a prototype.
90450
90451         * lib/regex.c (PARAMS): Remove.  All uses removed.
90452         All uses of _RE_ARGS removed, too.
90453         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90454         unconditionally.
90455         (bzero): Assume memset exists.
90456         (memcmp, memcpy, NULL): Remove.
90457         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90458         char, or assignments to local vars of type signed char.
90459         (init_syntax_once, PREFIX(extract_number_and_incr),
90460         PREFIX(print_partial_compiled_pattern),
90461         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90462         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90463         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90464         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90465         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90466         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90467         wcs_compile_range, byte_compile_range, truncate_wchar,
90468         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90469         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90470         count_mbs_length, wcs_re_match_2_internal,
90471         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90472         PREFIX(alt_match_null_string_p),
90473         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90474         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90475         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90476         now-unnecessary declaration, if any.
90477         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90478         regcomp, regexec):
90479         Remove now-unnecessary casts among pointer types.
90480         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90481
90482         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90483         (free): Remove decl.
90484
90485         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90486
90487         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90488         (free): Remove decl.
90489
90490         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90491         * lib/xgetcwd.c: Likewise.
90492
90493         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90494         (free): Remove decl.
90495
90496         * lib/strchrnul.c (strchrnul): Define with a prototype.
90497         Fix bug: c_in was not converted to char before searching.
90498
90499         The following changes are not K&R related:
90500
90501         * lib/group-member.h: Include <sys/types.h>, so that this file is
90502         self-contained.
90503         * lib/makepath.h: Likewise.
90504
90505         * lib/getusershell.c (readname, default_index, line_size, readname):
90506         Use size_t, not int, for sizes.
90507         (readname): If the size overflows, report an error instead of
90508         looping forever.
90509
90510 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90511
90512         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90513         libc.
90514
90515 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90516
90517         * README: New section: portability guidelines.
90518
90519 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90520
90521         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90522         C89 spec.
90523
90524 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90525
90526         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90527
90528 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90529
90530         Assume C89 or better; remove K&R cruft.
90531         A few of these changes were first proposed by Derek Robert Price
90532         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90533
90534         * lib/addext.c: Include <string.h> unconditionally.
90535         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90536         Don't declare getenv or malloc.
90537
90538         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90539         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90540         (NULL): Remove.
90541         (find_stack_direction, alloca): Use prototypes.
90542
90543         * lib/atexit.c (atexit): Define using a prototype.
90544
90545         * lib/basename.c, dirname.c, stripslash.c:
90546         Include <string.h> unconditionally.
90547
90548         * lib/bcopy.c: Include <stddef.h>.
90549         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90550
90551         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90552
90553         * lib/error.h (error, error_at_line, error_print_progname)
90554         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90555         * lib/error.c: Include error.h first, to check interface.
90556         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90557         (VA_START): Remove; all uses changeed to va_start.
90558         (exit, strerror): Remove decls.
90559         (error_print_progname): Prototype uncondionally.
90560         Don't include <errno.h>; no longer needed.
90561         (private_strerror): Remove.
90562         (error_tail): Always define.
90563         (error, error_at_line): Assume C89 or better; always use prototypes.
90564         * lib/fatal.c: Include "fatal.h" first, to test interface.
90565         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90566         (VA_START): Remove; all uses changed to va_start.
90567         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90568         this case.
90569         (exit): Remove decl.
90570         (fatal): Prototype unconditionally.  Assume va_start works.
90571         Abort at end, to pacify gcc.
90572
90573         * lib/euidaccess.c (main): Define with a prototype.
90574
90575         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90576
90577         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90578
90579         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90580         prototypes.
90581         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90582         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90583         (getenv): Remove decl.
90584         (fnmatch): Define using a prototype.
90585         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90586         (FCT): Define using a prototype.
90587
90588         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90589
90590         * lib/gethostname.c: Include <stddef.h>.
90591         (gethostname): Define with prototype.  Length is size_t, not int.
90592
90593 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90594
90595         Assume C89 or better; remove K&R cruft.
90596         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90597         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90598         string.h, getenv, malloc.
90599         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90600         headers.
90601         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90602         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90603         do not check for strerror.
90604         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90605         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90606         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90607         do not check for doprnt or vprintf.
90608         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90609         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90610
90611 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90612
90613         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90614         getversion.c should have been removed then, but was accidentally
90615         preserved.
90616
90617         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90618         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90619
90620 2003-09-08  Karl Berry  <karl@gnu.org>
90621
90622         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90623                 config, forget about prep.
90624
90625         * config/depcomp, missing: update from automake.
90626
90627 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90628
90629         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90630         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90631
90632 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90633
90634         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90635         copy_tm_result.  Bug reported by Simon Josefsson in
90636         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90637
90638 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90639
90640         * m4/time_r.m4: New file.
90641         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90642         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90643         is. Check for timegm declaration.
90644         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90645         Do not check for gmtime_r.
90646         Replace mktime if __mktime_internal does not exist and if mktime
90647         hasn't been replaced already.
90648
90649 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90650
90651         * lib/time_r.c, lib/time_r.h: New files.
90652
90653         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90654         __localtime_r.
90655         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90656         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90657
90658         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90659         __gmtime_r.
90660         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90661         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90662         Include <time_r.h>.
90663
90664         * lib/timegm.c: Switch to glibc implementation, with the following
90665         changes:
90666         [defined HAVE_CONFIG_H]: Include <config.h>.
90667         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90668         (__mktime_internal) [!defined _LIBC]: New decl.
90669         (__gmtime_r) [!defined _LIBC]: New macro and function.
90670         (timegm): Use a prototype, since gnulib assumes C89.
90671         Do not bother declaring tmp to be const, as it's not really usefu.
90672         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90673         (timegm): Declare only if HAVE_DECL_TIMEGM.
90674
90675 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90676
90677         * MODULES.html.sh (func_all_modules): Add time_r.
90678         * modules/time_r: New file.
90679         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90680         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90681
90682 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90683
90684         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90685         Bug reported by Lute Kamstra in
90686         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90687
90688         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90689         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90690         course with correspondingly smaller numbers for tomorrow and
90691         yesterday.  From Tadayoshi Funaba.  Originally installed into
90692         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90693         coreutils merge?).
90694
90695 2003-08-31  Simon Josefsson  <jas@extundo.com>
90696
90697         * modules/timegm: New file.
90698         * MODULES.html.sh (func_all_modules): Add timegm.
90699
90700 2003-08-31  Simon Josefsson  <jas@extundo.com>
90701
90702         * m4/timegm.m4: New file.
90703
90704 2003-08-31  Simon Josefsson  <jas@extundo.com>
90705
90706         * lib/timegm.h: New file.
90707         * lib/timegm.c: New file.  Based on
90708         wget-1.8.2/src/http.c:mktime_from_utc.
90709
90710 2003-08-31  Karl Berry  <karl@gnu.org>
90711
90712         * lib/argp.h: update from libc.
90713
90714 2003-08-28  Bruno Haible  <bruno@clisp.org>
90715
90716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90717         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90718         followed by '#define fnmatch fnmatch_posix' gives an error.
90719
90720 2003-08-28  Bruno Haible  <bruno@clisp.org>
90721
90722         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90723         warning on QNX, which defines O_BINARY to 000000.
90724
90725 2003-08-27  Jim Meyering  <jim@meyering.net>
90726
90727         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90728         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90729         would fail after 32.  Reported by Danny Levinson.  Details here:
90730         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90731
90732 2003-08-24  Bruno Haible  <bruno@clisp.org>
90733
90734         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90735         MSVC7 <stdio.h> is included later.
90736
90737 2003-08-22  Simon Josefsson  <jas@extundo.com>
90738
90739         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90740
90741 2003-08-20  Karl Berry  <karl@gnu.org>
90742
90743         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90744
90745 2003-08-20  Bruno Haible  <bruno@clisp.org>
90746
90747         * modules/progname: New file.
90748         * MODULES.html.sh (func_all_modules): Add progname.
90749
90750 2003-08-20  Bruno Haible  <bruno@clisp.org>
90751
90752         * lib/progname.h: New file, from GNU gettext.
90753         * lib/progname.c: New file, from GNU gettext.
90754         * lib/progreloc.c: New file, from GNU gettext.
90755
90756 2003-08-19  Jim Meyering  <jim@meyering.net>
90757
90758         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90759         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90760
90761 2003-08-19  Bruno Haible  <bruno@clisp.org>
90762
90763         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90764         more.
90765
90766 2003-08-19  Bruno Haible  <bruno@clisp.org>
90767
90768         * lib/xstrdup.c: Assume <string.h> exists.
90769
90770 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90771
90772         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90773         in makefile rules.
90774
90775 2003-08-18  Jim Meyering  <jim@meyering.net>
90776
90777         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90778         * m4/lib-ld.m4: Likewise.
90779
90780 2003-08-18  Jim Meyering  <jim@meyering.net>
90781
90782         * lib/setenv.h: Indent nested cpp directive.
90783         * lib/vasnprintf.c: Remove trailing blanks.
90784
90785 2003-08-17  Simon Josefsson  <jas@extundo.com>
90786
90787         * modules/xstrndup: New file.
90788         * MODULES.html.sh (func_all_modules): Add xstrndup.
90789
90790 2003-08-17  Simon Josefsson  <jas@extundo.com>
90791
90792         * modules/argp: Fix autoconf macro name. Add more dependencies.
90793
90794 2003-08-17  Simon Josefsson  <jas@extundo.com>
90795
90796         * m4/xstrndup.m4: New file.
90797
90798 2003-08-17  Simon Josefsson  <jas@extundo.com>
90799
90800         * m4/argp.m4: New file.
90801
90802 2003-08-17  Simon Josefsson  <jas@extundo.com>
90803             Bruno Haible  <bruno@clisp.org>
90804
90805         * lib/xstrndup.h: New file.
90806         * lib/xstrndup.c: New file.
90807
90808 2003-08-17  Bruno Haible  <bruno@clisp.org>
90809
90810         * modules/strndup (Files, Include): Add lib/strndup.h.
90811
90812 2003-08-17  Bruno Haible  <bruno@clisp.org>
90813
90814         * modules/euidaccess (Files): Add lib/euidaccess.h.
90815
90816 2003-08-17  Bruno Haible  <bruno@clisp.org>
90817
90818         * lib/strndup.h: New file.
90819
90820 2003-08-17  Bruno Haible  <bruno@clisp.org>
90821
90822         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90823         like AC_GNU_SOURCE.
90824         * modules/extensions (configure.ac): Comment out the invocation of
90825         gl_USE_SYSTEM_EXTENSIONS.
90826
90827 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90828
90829         Merges from coreutils, etc.
90830         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90831         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
90832         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
90833         fixing a typo.
90834         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
90835         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
90836
90837 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90838
90839         Document merge from coreutils.
90840         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
90841         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
90842         * modules/utime: Add m4/utimes-null.m4.
90843
90844 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90845
90846         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
90847         space, undoing this 2003-08-12 change:
90848         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90849
90850 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90851
90852         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
90853         strtoul.c from libc, undoing this 2003-08-12 change:
90854         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90855
90856 2003-08-16  Jim Meyering  <jim@meyering.net>
90857
90858         Merges from coreutils.
90859         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
90860         prefix.  Adjust cache variables similarly.  Create 500 rather than
90861         just 300 files, to exercise bug on Darwin6.5, too.
90862         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
90863         $missing_dir.
90864         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
90865         AM_SYS_POSIX_TERMIOS.
90866         Reported by mkc@mathdogs.com.
90867         Also change use of $am_cv_sys_posix_termios
90868         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
90869         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
90870         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
90871         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
90872         in /proc/mounts until it finds one with matching device number.  This
90873         is unnecessary when the FILE argument *is* a mount point.  No stat call
90874         is necessary in that case.  So, disable the statvfs-testing code on
90875         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
90876         as RedHat bug# 84846.
90877         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90878         to 1MB, so as not to render systems with no stack size limit (e.g.,
90879         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90880         Include <unistd.h>.  On some systems,
90881         it is required for the definition of _SC_PAGESIZE.
90882
90883 2003-08-16  Jim Meyering  <jim@meyering.net>
90884
90885         Merge from coreutils.
90886         * lib/xstrtoimax.c: #else #if -> #elif.
90887         * lib/xstrtoumax.c: Likewise.
90888
90889 2003-08-16  Jim Meyering  <jim@meyering.net>
90890
90891         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
90892         * m4/utimes.m4: Removed.
90893         * m4/utimes-null.m4: Renamed from utimes.m4.
90894
90895         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90896         to 1MB, so as not to render systems with no stack size limit (e.g.,
90897         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90898         Include <unistd.h>.  On some systems,
90899         it is required for the definition of _SC_PAGESIZE.
90900
90901 2003-08-16  Jim Meyering  <jim@meyering.net>
90902         and Paul Eggert  <eggert@cs.ucla.edu>
90903
90904         Merges from coreutils, etc.
90905
90906         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
90907         using the latest version from cvs.  This avoids problems with #line
90908         directives using a vendor (Sun) compiler.
90909         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
90910         Don't set GETGROUPS_LIB here; now it's
90911         done via getgroups.m4's wrapper function.
90912         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
90913         rather than just in sh-util/configure.in, so that the
90914         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
90915         same.
90916         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
90917         AC_FUNC_GETLOADAVG where to find getloadavg.c.
90918         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
90919         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
90920         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
90921         Remove code that is now done by the newly-required macros.
90922         Append $(EXEEXT) to DF_PROG.
90923         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
90924         Do not invoke or require the following here,
90925         since prereq.m4 or some gnulib .m4 now does this for us:
90926         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
90927         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
90928         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
90929         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
90930         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
90931         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
90932         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
90933         AC_FUNC_OBSTACK.
90934         Do not replace the following functions, as this is now the job
90935         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
90936         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
90937         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
90938         atexit getpass, strdup, getpagesize.
90939         Replace 'raise'.
90940         Do not check for the following functions, as this is now the job
90941         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
90942         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
90943         setregid.
90944         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
90945         Check for sys/sysctl.h.
90946         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
90947         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
90948         of checking for ssize_t ourselves.
90949
90950         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
90951         Require every macro that gnulib/modules/* suggests for us.
90952         (jm_PREREQ_ADDEXT): New macro.
90953         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
90954         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
90955
90956         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
90957         (gl_PHYSMEM): Use it.
90958         Also check for `table' function.
90959         Check for new headers and functions.
90960         Add check for sys/sysmp.h.
90961         With suggestions from Kaveh Ghazi.
90962         Ignore headers that are present but cannot be compiled.  This
90963         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
90964         C 5.4.
90965
90966 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90967
90968         Document merge from coreutils.
90969         * modules/userspec: Depend on posixver.
90970         * modules/strftime: Depend on tzset.
90971
90972 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90973
90974         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
90975         rather than tab, after '#' in shell-script copyright notices.
90976         Suggested by Bruno Haible.
90977
90978 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90979
90980         * config/srclist-update: Use three spaces, rather than tab, after '#'
90981         in shell-script copyright notices.  Suggested by Bruno Haible.
90982         Remove unnecessary parenthesization in regular expression.
90983
90984 2003-08-15  Jim Meyering  <jim@meyering.net>
90985
90986         Merge from coreutils.
90987         * lib/xgethostname.c: Include <stdlib.h>.
90988         (xghostname): Don't exit for anything other than memory-related
90989         failure; just return NULL.
90990         * lib/userspec.c: Include "posixver.h".
90991         (parse_user_spec): Accept `.' as a separator only
90992         in pre-POSIX-200112 mode.
90993         * lib/strtoimax.c: Use #elif rather than #else #if.
90994         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90995         Remove function, now that we can rely on a working tzset function.
90996         [!_LIBC]: Ensure that the required autoconf test has been run.
90997         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90998         Use underlying_strftime for %r.
90999         * lib/sha.c: Merge in some clean-up and optimization changes from
91000         glibc.
91001         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91002         Ensure that it is a multiple of 64.
91003         Rearrange loop exit tests so as to avoid performing an
91004         additional fread after encountering an error or EOF.
91005         * lib/realloc.c: Update copyright date.
91006
91007 2003-08-15  Jim Meyering  <jim@meyering.net>
91008         and Paul Eggert  <eggert@twinsun.com>
91009
91010         Merge from coreutils.
91011         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91012         member but strut utmpx does not.  Needed for AIX 4.3.3.
91013         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91014
91015 2003-08-15  Jim Meyering  <jim@meyering.net>
91016         and Paul Eggert  <eggert@cs.ucla.edu>
91017
91018         Merges from coreutils, etc.
91019         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91020         Require gl_FUNC_TZSET_CLOBBER.
91021         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91022         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91023         members.
91024
91025 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91026
91027         Help the merge from coreutils.
91028         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91029         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91030         * m4/tzset.m4: Use it too.
91031
91032 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91033
91034         * modules/tzset: New file.
91035
91036 2003-08-14  Jim Meyering  <jim@meyering.net>
91037
91038         Merges from coreutils.
91039         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91040         variable names, rather than @FNMATCH_H@.
91041         * modules/alloca: Likewise for $(ALLOCA_H).
91042
91043         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91044         the three copies of the literal target, `fnmatch.h'.
91045         * modules/alloca (alloca.h): Likewise.
91046
91047 2003-08-14  Jim Meyering  <jim@meyering.net>
91048
91049         Merge from coreutils.
91050         * m4/tzset.m4: New file.
91051         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91052         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91053         otherwise, AIX 5.1 systems would end up using the latter.
91054         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91055         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91056         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91057         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91058
91059 2003-08-14  Jim Meyering  <jim@meyering.net>
91060
91061         Merge from coreutils.
91062         * lib/obstack.h: Whitespace changes.
91063         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91064         and xcalloc return values.
91065         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91066         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91067         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91068         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91069         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91070         error from mntctl.
91071         Use mntctl's return value to drive the entry-processing loop, since
91072         we can't rely on the value of the vmt_length member in the last
91073         entry.  On some systems doing so could result in exhausting
91074         virtual memory.  Based in part on a patch from Mike Jetzer.
91075
91076 2003-08-14  Jim Meyering  <jim@meyering.net>
91077         and Paul Eggert  <eggert@twinsun.com>
91078
91079         Merges from coreutils, plus other fixes.
91080         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91081         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91082         for credits and details.  Thanks to Kaveh Ghazi for helping
91083         to keep these files in sync.
91084         (ARRAY_SIZE): Define it.
91085         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91086         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91087         (memcasecmp): Don't assume size_t fits in unsigned int.
91088         Remove casts and duplicate code.
91089         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91090         (memcpy): Remove definition.
91091         Merge in some clean-up and optimization changes from glibc.
91092         [BLOCKSIZE]: Move definition to top of file.
91093         Ensure that it is a multiple of 64.
91094         Rearrange loop exit tests so as to avoid performing an
91095         additional fread after encountering an error or EOF.
91096         * lib/md5.h (md5_uintptr): Define.
91097         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91098         return to the initial working directory.  Preserve errno
91099         for caller.
91100         * lib/idcache.c: Include "xalloc.h".
91101         (xmalloc, xrealloc): Remove decls.
91102         (getuser): Remove casts no longer required in C89.
91103         * lib/human.c: Include stdio.h, for sprintf.
91104         * lib/group-member.c: Include "xalloc.h".
91105         (xmalloc, xrealloc): Remove decls.
91106         (get_group_info): Remove casts no longer required in C89.
91107         * lib/getusershell.c (readname): Remove casts no longer required in
91108         C89.
91109         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91110         * lib/getline.c: Whitespace fix, from coreutils.
91111
91112 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91113
91114         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91115         Check for isascii.
91116
91117         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91118         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91119         Undo previous (whitespace-only) change.
91120
91121 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91122
91123         * lib/exclude.c: Include <ctype.h>
91124         (IN_CTYPE_DOMAIN): New macro.
91125         (is_space): New fn.
91126         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91127         and empty lines.
91128
91129         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91130         Undo previous (whitespace-only) change.
91131
91132 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91133
91134         * config/srclist-update: Change update back to the old behavior,
91135         leaving whitespace alone.  Use one 'sed' command rather than a
91136         pipeline.
91137         (fixlicense): Now a variable, not a function.
91138         (remove_trailing_blanks): Remove.
91139         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91140         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91141         Undo previous (whitespace-only) change.
91142
91143 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91144
91145         Merge from coreutils.
91146         * modules/euidaccess: Add lib_SOURCES, include for new
91147         file euidaccess.h
91148
91149 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91150
91151         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91152         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91153         Normalize leading white space and remove trailing white space.
91154
91155         Merge from coreutils
91156         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91157
91158         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91159         0.12.1.  These files are now being upgraded automatically by
91160         ../config/srclist-update.
91161
91162 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91163
91164         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91165         Normalize leading white space and remove trailing white space.
91166         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91167         notice, as per ../config/srclist-update.
91168
91169         Merge from coreutils.
91170         * lib/euidaccess.h: New file.
91171         * lib/euidaccess.c: Include it.
91172         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91173         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91174         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91175
91176 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91177
91178         * config/srclist-update: Add copyright notice.
91179         (remove_id_lines, remove_trailing_blanks): New constants.
91180         (fixfile): Use them to normalize spacing a bit in copied files.
91181         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91182         Normalize leading white space and remove trailing white space.
91183
91184         * config/texinfo.tex: Sync with texinfo.
91185
91186         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91187         strtoul.c from libc, to merge coreutils whitespace changes.
91188
91189         * config/srclist.txt: Get the following m4 files from gettext:
91190         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91191         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91192         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91193         wint_t.m4.
91194
91195 2003-08-12  Karl Berry  <karl@gnu.org>
91196
91197         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91198         been made.
91199
91200 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91201
91202         * modules/gnu-source, m4/gnu-source.m4:
91203         Remove; we're assuming Autoconf 2.54 or later now.
91204         Suggested by Bruno Haible.
91205         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91206
91207 2003-08-11  Bruno Haible  <bruno@clisp.org>
91208
91209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91210
91211 2003-08-11  Bruno Haible  <bruno@clisp.org>
91212
91213         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91214         (vasnprintf): Use it instead of wcslen.
91215
91216 2003-08-11  Bruno Haible  <bruno@clisp.org>
91217
91218         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91219         value to ensure that _Bool promotes to int. Use #define for _Bool when
91220         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91221
91222 2003-08-10  Karl Berry  <karl@gnu.org>
91223
91224         * lib/regex.h: update from libc (whitespace fix).
91225
91226 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91227
91228         Merge some files from coreutils.  These changes were
91229         originally made by Jim Meyering.
91230         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91231         many older Unixes require this.
91232         * lib/alloca.c (alloca): Remove cast to argument of free;
91233         no longer needed in C89.
91234         * lib/alloca_.h, regex.h: Fix white space to match
91235         what GNU indent does.
91236
91237 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91238
91239         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91240         apparently Emacs's Unicode mode got confused before my 2003-08-05
91241         checkin.
91242
91243 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91244
91245         * m4/extensions.m4: New file.
91246         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91247         Require gl_USE_SYSTEM_EXTENSIONS.
91248         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91249         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91250
91251 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91252
91253         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91254         * modules/extensions, modules/gnu-source: New files.
91255         * modules/timespec, modules/unlocked-io: Depend on extensions.
91256
91257 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91258
91259         * modules/restrict: New file.
91260         * MODULES.html.sh (func_all_modules): Add restrict.
91261         * modules/regex: Depend on restrict.
91262
91263 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91264
91265         * m4/restrict.m4: New file.
91266         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91267
91268 2003-08-07  Bruno Haible  <bruno@clisp.org>
91269
91270         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91271         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91272
91273 2003-08-07  Bruno Haible  <bruno@clisp.org>
91274
91275         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91276         makes the module 'getndelim2' compatible with the module 'getline'.
91277
91278 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91279
91280         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91281         byte with "\201" to avoid glitches when editing that source file
91282         with multi-gnome-terminal.
91283
91284 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91285
91286         * lib/bumpalloc.h: Remove.
91287
91288 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91289
91290         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91291         * modules/bumpalloc: Remove.
91292
91293 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91294
91295         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91296         GNU coding style.
91297
91298         Merge from coreutils.
91299         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91300         1. From glibc.
91301         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91302         from Karl Berry, implemented by Jim Meyering.
91303         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91304         from Dmitry V. Levin.
91305         Remove anachronistic cast of xrealloc.
91306         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91307         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91308         type. Otherwise, it wouldn't compile with at least /bin/cc on
91309         ymp-cray-unicos9.0.2.X.
91310         Combine two mostly-identical uses of alloca into one.
91311         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91312
91313 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91314
91315         [From Emacs.]
91316
91317         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91318         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91319         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91320         obsolete NLIST_NAME_UNION.
91321         [__GNU__]: Undef BSD and FSCALE.
91322         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91323
91324 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91325
91326         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91327         an enum type, so that it's guaranteed to promote to int.  See:
91328         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91329
91330 2003-08-03  Karl Berry  <karl@gnu.org>
91331
91332         * config/depcomp: update from automake.
91333
91334 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91335
91336         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91337         (strerror): Don't assume that a printable int fits in 14 bytes.
91338
91339 2003-07-31  Bruno Haible  <bruno@clisp.org>
91340
91341         * modules/getpass-gnu: New file.
91342         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91343
91344 2003-07-31  Bruno Haible  <bruno@clisp.org>
91345
91346         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91347
91348 2003-07-24  Karl Berry  <karl@gnu.org>
91349
91350         * config/missing: update from automake.
91351
91352 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91353             Bruno Haible  <bruno@clisp.org>
91354
91355         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91356         * lib/getline.c (getline, getdelim): Likewise.
91357         Remove _GNU_SOURCE define; now it's defined in config.h through
91358         m4/getline.m4.
91359
91360 2003-07-23  Karl Berry  <karl@gnu.org>
91361
91362         * config/config.sub: update from prep.
91363
91364 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91365
91366         * modules/xalloc (Depends-on): Add exitfail.
91367         * modules/xmemcoll: Likewise.
91368
91369 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91370
91371         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91372         over-parenthesization in macros.
91373
91374         Sync with coreutils.
91375
91376         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91377         required by C99.
91378
91379         Use `exit_failure' for xalloc and xmemcoll instead of their own
91380         private exit-failure variables.
91381         * lib/xalloc.h (xalloc_exit_failure): Remove.
91382         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91383         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91384         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91385         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91386         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91387
91388 2003-07-20  Jim Meyering  <jim@meyering.net>
91389
91390         * modules/closeout (Depends-on): Add exitfail.
91391         Suggestion from Bruno Haible.
91392
91393 2003-07-19  Karl Berry  <karl@gnu.org>
91394
91395         * config/config.sub: update from prep.
91396
91397 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91398
91399         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91400         Remove.
91401         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91402         to test that it can stand by itself.  Include "exitfail.h".
91403         Clients should set exit_failure instead.
91404         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91405
91406 2003-07-18  Bruno Haible  <bruno@clisp.org>
91407
91408         * modules/getndelim2: New file.
91409         * modules/getline: Share files with module getndelim2.
91410         * modules/getnline: Depend on getndelim2 instead of sharing files with
91411         it. Add getnline.c to lib_SOURCES.
91412         * MODULES.html.sh (func_all_modules): Add getndelim2.
91413
91414 2003-07-18  Bruno Haible  <bruno@clisp.org>
91415
91416         * m4/getndelim2.m4: New file.
91417         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91418         invoke gl_PREREQ_GETNDELIM2.
91419         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91420         gl_PREREQ_GETNDELIM2.
91421         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91422         gl_GETNDELIM2.
91423
91424 2003-07-18  Bruno Haible  <bruno@clisp.org>
91425
91426         * lib/getndelim2.h: New file.
91427         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91428         getndelim2.h.
91429         (getndelim2): Make non-static. Change return type to ssize_t.
91430         * lib/getline.h: Change argument names.
91431         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91432         * lib/getnline.c: Include getndelim2.h.
91433
91434 2003-07-18  Andreas Schwab  <schwab@suse.de>
91435
91436         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91437
91438 2003-07-17  Karl Berry  <karl@gnu.org>
91439
91440         * config/config.sub: update from prep.
91441
91442 2003-07-17  Bruno Haible  <bruno@clisp.org>
91443
91444         * modules/getnline: New file.
91445         * modules/getline: Add lib/getndelim2.c to source file list.
91446         * MODULES.html.sh (func_all_modules): Add getnline.
91447
91448 2003-07-17  Bruno Haible  <bruno@clisp.org>
91449
91450         * m4/getnline.m4: New file.
91451
91452 2003-07-17  Bruno Haible  <bruno@clisp.org>
91453
91454         * m4/Makefile.am.in: Remove file.
91455         * m4/Makefile.am: Remove file.
91456         * m4/Makefile.in: Remove file.
91457
91458 2003-07-17  Bruno Haible  <bruno@clisp.org>
91459
91460         * lib/getnline.h: New file.
91461         * lib/getnline.c: New file.
91462         * lib/getndelim2.c: New file, extracted from getline.c.
91463         (getndelim2): Renamed from getdelim2, with added nmax argument.
91464         * lib/getline.c: Include getndelim2.c.
91465         (getdelim2): Moved out to getndelim2.c.
91466         (getline, getdelim): Update.
91467
91468 2003-07-17  Bruno Haible  <bruno@clisp.org>
91469
91470         * lib/Makefile.am: Remove file.
91471         * lib/Makefile.in: Remove file.
91472
91473 2003-07-17  Bruno Haible  <bruno@clisp.org>
91474
91475         * configure.in: Remove file.
91476         * Makefile.in: Remove file.
91477
91478 2003-07-17  Bruno Haible  <bruno@clisp.org>
91479
91480         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91481
91482 2003-07-16  Karl Berry  <karl@gnu.org>
91483
91484         * config/srclist-update: was running fixlicense twice, which caused
91485                 texinfo.tex to be nullified for some reason.  Simplify,
91486                 $gplsrc is no longer needed as far as I can see?
91487
91488 2003-07-16  Jim Meyering  <jim@meyering.net>
91489
91490         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91491
91492 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91493
91494         * config/srclist.txt: Get the following files from gettext-runtime/intl
91495         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91496         ref-del.sin.  From Bruno Haible.
91497         * config/srclist-update (fixfile): Change grep pattern again, since the
91498         previous fix didn't work (there was another trailing $).  Use
91499         '[$]' to escape the $s.
91500
91501 2003-07-15  Karl Berry  <karl@gnu.org>
91502
91503         * lib/vasnprintf.c: update from gettext.
91504
91505 2003-07-15  Karl Berry  <karl@gnu.org>
91506
91507         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91508         gets expanded when surrounded by '$'.
91509
91510 2003-07-15  Jim Meyering  <jim@meyering.net>
91511
91512         * modules/save-cwd: Don't depend on error.  From Derek Price.
91513
91514 2003-07-15  Jim Meyering  <jim@meyering.net>
91515
91516         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91517
91518 2003-07-14  Simon Josefsson  <jas@extundo.com>
91519
91520         * modules/mempcpy: New file.
91521         * MODULES.html.sh (func_all_modules): Add mempcpy.
91522
91523 2003-07-14  Simon Josefsson  <jas@extundo.com>
91524
91525         * m4/mempcpy.m4: New file.
91526
91527 2003-07-14  Simon Josefsson  <jas@extundo.com>
91528
91529         * lib/mempcpy.h: New file.
91530         * lib/mempcpy.c: New file.
91531
91532 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91533
91534         * modules/getdate, modules/posixtm: Depend on mktime.
91535
91536 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91537
91538         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91539         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91540         unicodeio.c, unicodeio.h, unlocked-io.h:
91541         Switch from LGPL to GPL.
91542
91543 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91544
91545         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91546         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91547         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91548         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91549         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91550         updated automatically by ../config/srclist-update.  This changes
91551         their license from LPGL to GPL.
91552
91553 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91554
91555         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91556         assumed to refer to the root of the most recent stable gettext version.
91557         * config/srclistvars.sh: Add defaults for eggert.
91558         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91559         Match "This program" as well as "The program".  This is needed
91560         for gettext.
91561
91562 2003-07-14  Jim Meyering  <jim@meyering.net>
91563
91564         Don't emit diagnostics.  Let callers do that.
91565         * lib/save-cwd.c: Don't include "error.h".
91566         (save_cwd): Don't call error.  Ensure that errno is valid
91567         when returning nonzero.
91568
91569         * lib/save-cwd.h (restore_cwd): Update prototype.
91570         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91571         Simplify.  Don't call error upon failure.  Let callers do that.
91572         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91573         when auditing is enabled.  But don't bother updating the #if.
91574
91575 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91576
91577         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91578         it breaks C++ compilation.
91579         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91580
91581 2003-07-10  Simon Josefsson  <jas@extundo.com>
91582
91583         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91584
91585 2003-07-10  Jim Meyering  <jim@meyering.net>
91586
91587         * m4/clock_time.m4: Remove trailing blank.
91588         * m4/intmax_t.m4: Likewise.
91589
91590 2003-07-10  Jim Meyering  <jim@meyering.net>
91591
91592         * lib/vasnprintf.c: Remove trailing blanks.
91593         Make cpp indentation consistent.
91594
91595 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91596
91597         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91598         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91599         Switch from LGPL to GPL.
91600
91601 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91602
91603         * config/srclist.txt: Sort sublists.  Add
91604         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91605         that differ from gnulib for one reason or another; we'd like this list
91606         to be smaller but for now let's document what we have.
91607
91608 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91609
91610         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91611         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91612         and sweeter "eval x=$x".
91613         * config/srclist.txt: Get lib/argp* from glibc.
91614
91615 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91616
91617         * lib/mktime.c: Fix some boundary cases and remove need for floating
91618         point.
91619
91620         Issue a compile-time diagnostic if time_t is floating point, or if
91621         two's complement arithmetic is not in effect, or if arithmetic
91622         right shift does not propagate the sign.  These assumptions were
91623         all in the original code but they weren't checked.
91624
91625         (TIME_T_MIDPOINT, verify): New macros.
91626         (__isleap): Remove; it has integer overflow problems.
91627         (leapyear): New function, without those problems.
91628         (ydhms_tm_diff): Remove; splitting into two parts.
91629         (ydhms_diff): New function, containing the arithmetic part of
91630         the old ydhms_tm_diff function.  Issue a compile-time
91631         diagnostic if we are not using C99 integer division.
91632         Avoid casts when possible.
91633         (guess_time_tm): New function, containing the checking part of
91634         the old ydhms_tm_diff function.  Return the new value, rather than
91635         the difference between it and the old.  Accept a new argument T
91636         so that *T specifies the old value.  Check for overflow in the result.
91637
91638         (__mktime_internal): Use a time_t offset, not a long int offset.
91639         This undoes the 2003-06-04 change, which is no longer needed now
91640         that we have better overflow checking.
91641         (localtime_offset): Likewise.
91642
91643         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91644         and long are 64-bit but int is only 32-bit.
91645         (ydhms_diff): Use long int to store year1 and yday1.
91646         Issue a compile-time diagnostic if long int is not wide enough.
91647
91648         (__mktime_internal): Use long int to store adjusted year and yday.
91649         Use plain C rather than preprocessor commands, if that doesn't
91650         affect efficiency.
91651         Check for overflow (and try to repair) after each probe
91652         rather than checking only at the very end.  This avoids some bugs
91653         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91654         does not equal GMT offset at maximum time).
91655         Use integer to check for overflow rather than floating point; this
91656         is more portable to non-IEEE hosts, and is a tad faster.
91657         When we detect that we are oscillating between two values,
91658         don't check whether tm_isdst has the requested value, since
91659         we already know the answer.  When tm_isdst has the wrong value,
91660         use a different heuristic to find the right one, based on the
91661         extreme values actually observed in practice in tz2003a,
91662         rather than the (overly optimistic) "previous 3 calendar quarters".
91663
91664         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91665         "T const" to accommodate glibc style.
91666         (check_result): Use less-confusing report format.  "long" -> "long int.
91667         (main): Likewise.
91668         Don't loop if the iteration overflows time_t.
91669         Allow a negative step in the iteration.
91670
91671 2003-07-06  Karl Berry  <karl@gnu.org>
91672
91673         * config/depcomp: update from automake.
91674         * config/config.sub: update from prep.
91675
91676 2003-07-03  Karl Berry  <karl@gnu.org>
91677
91678         * config/config.guess: update from prep.
91679
91680 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91681
91682         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91683         xreadlink.c now includes it unconditionally.
91684
91685 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91686
91687         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91688         having it depend on HAVE_SYS_TYPES_H.
91689
91690 2003-07-01  Bruno Haible  <bruno@clisp.org>
91691
91692         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91693         <sys/types.h> should be sufficient.
91694         Reported by Paul Eggert.
91695
91696 2003-06-26  Karl Berry  <karl@gnu.org>
91697
91698         * config/depcomp: update from automake.
91699
91700 2003-06-26  Bruno Haible  <bruno@clisp.org>
91701
91702         * modules/human: Depend on module stdbool.
91703
91704 2003-06-25  Bruno Haible  <bruno@clisp.org>
91705
91706         * modules/readlink: New file.
91707         * modules/xreadlink: Depend on it.
91708         * MODULES.html.sh (func_all_modules): Add readlink.
91709
91710 2003-06-25  Bruno Haible  <bruno@clisp.org>
91711
91712         * m4/readlink.m4: New file.
91713
91714 2003-06-25  Bruno Haible  <bruno@clisp.org>
91715
91716         * lib/readlink.c: New file.
91717
91718 2003-06-22  Karl Berry  <karl@gnu.org>
91719
91720         * config/srclist.txt: update mkinstalldirs from automake.
91721         * config/mkinstalldirs: update.
91722
91723 2003-06-22  Bruno Haible  <bruno@clisp.org>
91724
91725         Portability to mingw32.
91726         * m4/ssize_t.m4: New file, from GNU gettext.
91727         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91728         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91729
91730 2003-06-22  Bruno Haible  <bruno@clisp.org>
91731
91732         * modules/safe-read: Add m4/ssize_t.m4.
91733         * modules/xreadlink: Add m4/ssize_t.m4.
91734
91735 2003-06-20  Bruno Haible  <bruno@clisp.org>
91736
91737         Assume C89, so PARAMS isn't needed.
91738         * lib/unicodeio.h (PARAMS): Remove.
91739         * lib/unicodeio.c: Don't use PARAMS.
91740
91741 2003-06-18  Karl Berry  <karl@gnu.org>
91742
91743         * config/config.{guess,sub}: update from prep.
91744
91745 2003-06-18  Jim Meyering  <jim@meyering.net>
91746
91747         Merge changes from coreutils.
91748         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91749         Remove explicit declarations of xmalloc and realloc.
91750         Include xalloc.h.
91751         (read_utmp): Remove anachronistic cast of xmalloc.
91752
91753 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91754
91755         Assume C89, so PARAMS isn't needed.
91756         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91757         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91758         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91759         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91760         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91761         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91762         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91763         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91764         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91765         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91766         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91767         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91768         no longer needed. Anyway, config.h should always be included before any
91769         other file.
91770
91771 2003-06-11  Simon Josefsson  <jas@extundo.com>
91772
91773         * modules/sysexits: New file.
91774         * MODULES.html.sh (func_all_modules): Add sysexits.
91775
91776 2003-06-11  Simon Josefsson  <jas@extundo.com>
91777
91778         * lib/sysexit_.h: New file.
91779
91780 2003-06-11  Derek Price  <derek@ximbiot.com>
91781
91782         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91783         necessary.
91784
91785 2003-06-11  Bruno Haible  <bruno@clisp.org>
91786
91787         * m4/sysexits.m4: New file.
91788
91789 2003-06-10  Simon Josefsson  <jas@extundo.com>
91790
91791         * lib/argp.h: New file, from glibc.
91792         * lib/argp-ba.c: New file, from glibc.
91793         * lib/argp-eexst.c: New file, from glibc.
91794         * lib/argp-fmtstream.c: New file, from glibc.
91795         * lib/argp-fmtstream.h: New file, from glibc.
91796         * lib/argp-fs-xinl.c: New file, from glibc.
91797         * lib/argp-help.c: New file, from glibc.
91798         * lib/argp-namefrob.h: New file, from glibc.
91799         * lib/argp-parse.c: New file, from glibc.
91800         * lib/argp-pv.c: New file, from glibc.
91801         * lib/argp-pvh.c: New file, from glibc.
91802         * lib/argp-xinl.c: New file, from glibc.
91803
91804 2003-06-10  Simon Josefsson  <jas@extundo.com>
91805
91806         * modules/strchrnul: New file.
91807
91808 2003-06-10  Simon Josefsson  <jas@extundo.com>
91809
91810         * modules/argp: New file.
91811
91812 2003-06-10  Simon Josefsson  <jas@extundo.com>
91813
91814         * m4/strchrnul.m4: New file.
91815
91816 2003-06-10  Simon Josefsson  <jas@extundo.com>
91817
91818         * lib/strchrnul.h: New file.
91819         * lib/strchrnul.c: New file.
91820
91821 2003-06-10  Bruno Haible  <bruno@clisp.org>
91822
91823         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91824
91825 2003-06-07  Karl Berry  <karl@gnu.org>
91826
91827         * config/config.{guess,sub}: update from prep.
91828
91829 2003-06-07  Jim Meyering  <jim@meyering.net>
91830
91831         * modules/strtod: Use $(...) notation, not @...@ for
91832         AC_REPLACE'd variables.
91833         * modules/localcharset: Likewise.
91834
91835 2003-06-07  Jim Meyering  <jim@meyering.net>
91836
91837         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
91838         in place of my name in the copyright comment.
91839         Remove definition and uses of __P.
91840
91841         From coreutils.
91842         * lib/stat.c: Don't declare xmalloc explicitly.
91843         Instead, include "xalloc.h".
91844         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
91845         xrealloc, and xcalloc return values.
91846         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
91847         Improve comment.
91848         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
91849
91850 2003-06-07  Bruno Haible  <bruno@clisp.org>
91851
91852         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
91853         avoid AC_CONFIG_LINKS.
91854         * modules/fnmatch (Makefile.am): Use explicit creation rule for
91855         fnmatch.h, to avoid AC_CONFIG_LINKS.
91856         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
91857
91858 2003-06-07  Bruno Haible  <bruno@clisp.org>
91859
91860         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
91861         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
91862         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91863         directory.
91864         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
91865         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91866         directory.
91867
91868 2003-06-06  Jim Meyering  <jim@meyering.net>
91869
91870         Merge from coreutils.
91871         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
91872         Consolidate declarations and initializations of *_base* locals.
91873
91874         Merge from coreutils.
91875         This avoids a core dump on systems without GNU putenv,
91876         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
91877         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
91878         (unsetenv): New static function, from GNU libc.
91879         (rpl_putenv): Use it.
91880
91881         * lib/modechange.c: Remove trailing blanks.
91882
91883         Merge from coreutils.
91884         * lib/fsusage.c: Remove declaration of statfs.
91885         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
91886
91887         * lib/posixtm.c: Include <stdbool.h> unconditionally.
91888
91889 2003-06-06  Jim Meyering  <jim@meyering.net>
91890
91891         * lib/stdbool_.h: Renamed from stdbool.h.in.
91892
91893 2003-06-06  Jim Meyering  <jim@meyering.net>
91894             Bruno Haible  <bruno@clisp.org>
91895
91896         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
91897         Adjust Makefile.am snippet not to redirect directly to target.
91898         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
91899
91900 2003-06-05  Paul Eggert  <eggert@twinsun.com>
91901
91902         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
91903         mismatch, look in future quarters as well as past.  This fixes a
91904         bug when processing fall-backwards gaps immediately after a long
91905         period of daylight-saving time.
91906
91907         * lib/mktime.c: Assume freestanding C89 or better.
91908         (HAVE_LIMITS_H): Remove.  Assume it's 1.
91909         (__P): Remove; not used.
91910         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
91911         (mktime, not_equal_tm, print_tm, check_result,
91912         main): Use prototypes.  Use const * where appropriate.
91913         (main): Fix typo in testing code that uncovered by above changes.
91914         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
91915
91916 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91917
91918         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
91919         locale.h, localeconv.  This merges changes from coreutils.
91920
91921         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
91922         It can be removed after the next Autoconf is released.
91923         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
91924         needed.
91925
91926 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91927
91928         * lib/mktime.c: Fix Debian bug 177940
91929         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
91930         (localtime_offset): Now long int, not time_t, because we want it
91931         to be guaranteed to be signed.  All uses changed.
91932         (__mktime_internal): If overflow would occur when adding offset,
91933         don't add it.
91934
91935         Merge 'human' changes from coreutils.  Rewrite to support
91936         locale-specific notations like thousands separators.
91937         * lib/human.c: Simplify authorship notice.
91938         Include human.h immediately after config.h.
91939         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
91940         <limits.h>: Do not include, since human.h does.
91941         (SIZE_MAX, UINTMAX_MAX): New macros.
91942         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
91943         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
91944         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
91945         (power_letter): Renamed from suffixes.
91946         (generate_suffix_backwards): Remove.
91947         (adjust_value): Now takes int style (because of human.h changes)
91948         and long double value (for greater precision on some platforms).
91949         (group_number): New function.
91950         (human_readable): Use it.  Use integer options, not enum.
91951         Put the options before the sizes in the arg list.
91952         Support all the new options.
91953         The old human_readable function has been removed;
91954         use inttostr.h instead.
91955         (human_readable, default_block_size, humblock):
91956         Use uintmax_t, not int, for block sizes.
91957         (human_readable_inexact, block_size_types): Remove.
91958         (block_size_opts): New constant.
91959         (human_options): Renamed from human_block_size, with new signature
91960         that allows block sizes up to UINTMAX_MAX.  All callers changed.
91961         * lib/human.h: Add copyright and authorship notice.
91962         Include <limits.h> and <stdbool.h> unconditionally.
91963         (PARAMS): Remove.  All uses removed.
91964         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
91965         (enum human_inexact_style): Remove tag; now a nameless enum.
91966         (human_floor, human_ceiling, human_round_to_even): Now have
91967         values 2, 0, 1 rather than -1, 1, 0.
91968         (human_group_digits, human_suppress_point_zero, human_autoscale,
91969         human_base_1024, human_SI, human_B): New constants.
91970         (human_readable_inexact, human_block_size): Remove.
91971         (human_readable): Size args are now uintmax_t, not int.
91972         (human_options): New decl.
91973
91974         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
91975         unnecessary now that we assume C89 or better.  This change
91976         imported from coreutils.
91977
91978         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91979         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91980         in the 2003-05-30 sync from glibc.
91981
91982         .h files should stand alone, but we shouldn't include <sys/types.h>
91983         if we can get away with just <stddef.h>.
91984
91985         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91986         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91987         rather than <sys/types.h>, as we merely need size_t.
91988         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91989         to get size_t.
91990         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91991         Include <stdio.h>, to get FILE.
91992         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91993         memcasecmp.h has included <stddef.h> and all we need is size_t.
91994         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91995         our interface, instead of including <sys/types.h>
91996
91997 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91998
91999         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92000         now, as glibc mktime is buggy on non-glibc systems.
92001
92002 2003-06-03  Karl Berry  <karl@gnu.org>
92003
92004         * config/config.sub: update from prep.
92005
92006 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92007
92008         [from coreutils]
92009         Fix some minor time-related bugs with POSIX time arguments.
92010         Some valid time stamps were being rejected (notably -1, and
92011         time stamps before 1900 on 64-bit hosts).  And some invalid
92012         time stamps were being accepted, e.g. September 31.
92013
92014         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92015         that we can return (time_t) -1 successfully.
92016         * lib/posixtm.c: Likewise.
92017         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92018         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92019         (t): Remove static var.
92020         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92021         of static var.  All uses changed.
92022         (year): Do not reject years before 1900; they can occur with
92023         64-bit time_t.
92024         (posix_time_parse): Do not check for out-of-range components;
92025         that is now the caller's responsibility, since our checks were
92026         only approximations.
92027         (posixtime): Use mktime to check for out-of-range components,
92028         since it knows them exactly.
92029         If mktime returns (time_t) -1, check whether an error actually occurred
92030         by invoking localtime on -1.
92031         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92032         posixtime failures better.
92033         Improve the test data (in comments only).
92034
92035 2003-06-02  Karl Berry  <karl@gnu.org>
92036
92037         * config/mkinstalldirs (version): new variable.
92038         (--version): new option.
92039         (usage): improve message.
92040
92041 2003-05-30  Karl Berry  <karl@gnu.org>
92042
92043         * lib/mktime.c: update from libc.
92044
92045 2003-05-30  Bruno Haible  <bruno@clisp.org>
92046
92047         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92048         * config/config.rpath: Upgrade to gettext-0.12.1.
92049
92050 2003-05-30  Bruno Haible  <bruno@clisp.org>
92051
92052         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92053         * m4/nls.m4: New file, from gettext-0.12.1.
92054         * m4/po.m4: New file, from gettext-0.12.1.
92055         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92056
92057 2003-05-30  Bruno Haible  <bruno@clisp.org>
92058
92059         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92060         * lib/localcharset.h: Likewise.
92061         * lib/localcharset.c: Likewise.
92062
92063 2003-05-29  Karl Berry  <karl@gnu.org>
92064
92065         * config/config.rpath: update from gettext.
92066
92067 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92068
92069         Assume the headers required for C89 freestanding compilers.
92070         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92071         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92072         * m4/human.m4 (gl_HUMAN): Likewise.
92073         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92074         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92075         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92076         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92077         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92078         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92079
92080 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92081
92082         Assume the headers required for C89 freestanding compilers.
92083         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92084         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92085         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92086         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92087         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92088         define, since <limits.h> is guaranteed to do that.
92089         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92090         * lib/exclude.c: Include <stdbool.h> unconditionally.
92091         * lib/tempname.c: Include <stddef.h> unconditionally.
92092         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92093         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92094         <stddef.h> does that.
92095         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92096         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92097         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92098         needed.
92099         * lib/xstrtol.c: Likewise.
92100         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92101         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92102
92103         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92104         warnings on some platforms.
92105
92106         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92107         arbitrarily.
92108
92109 2003-05-26  Jim Meyering  <jim@meyering.net>
92110
92111         Merge in a change from coreutils:
92112         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92113         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92114         that condition, rather than `-1' which is slightly misleading.
92115         Change the name of the cache variable to have the gl_ prefix.
92116         Prompted by a patch from Richard Dawe for DJGPP.
92117
92118 2003-05-24  Karl Berry  <karl@gnu.org>
92119
92120         * config/config.guess: update from prep.
92121
92122 2003-05-22  Karl Berry  <karl@gnu.org>
92123
92124         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92125
92126 2003-05-20  Karl Berry  <karl@gnu.org>
92127
92128         * config/config.guess: update from prep.
92129
92130 2003-05-18  Karl Berry  <karl@gnu.org>
92131
92132         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92133         might actually be set by the user.
92134
92135         * config/depcomp, install-sh, mdate-sh: update from automake.
92136
92137 2003-05-17  Bruno Haible  <bruno@clisp.org>
92138
92139         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92140         invalid expansion for AC_EGREP_CPP.
92141         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92142         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92143         Suggested by Akim Demaille <akim@epita.fr> in
92144         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92145
92146 2003-05-12  Jim Meyering  <jim@meyering.net>
92147
92148         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92149         the space-padded-by-default conversion specifiers, %e, %k, %l.
92150
92151 2003-05-12  Bruno Haible  <bruno@clisp.org>
92152
92153         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92154         the string is longer than 4 KB.
92155
92156 2003-05-11  Karl Berry  <karl@gnu.org>
92157
92158         * config/config.{guess,sub}: update from prep.
92159
92160 2003-05-09  Bruno Haible  <bruno@clisp.org>
92161
92162         * modules/error: Add m4/strerror_r.m4 to file list.
92163
92164 2003-05-03  Bruno Haible  <bruno@clisp.org>
92165
92166         Upgrade to Unicode-4.0.
92167         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92168         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92169         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92170         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92171         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92172         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92173         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92174         Change width of U+E0100..U+E01EF from 1 to 0.
92175
92176 2003-04-25  Jim Meyering  <jim@meyering.net>
92177
92178         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92179         of type size_t, not int.
92180
92181 2003-04-25  Bruno Haible  <bruno@clisp.org>
92182
92183         * lib/copy-file.c: Include <stddef.h>, for size_t.
92184
92185 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92186
92187         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92188         code which expansion is under static control.  Patch imported from
92189         Akim Demaille's patch to Bison; see
92190         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92191
92192 2003-04-14  Bruno Haible  <bruno@clisp.org>
92193
92194         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92195
92196 2003-04-11  Jim Meyering  <jim@meyering.net>
92197
92198         Merge changes from Coreutils.
92199
92200         2003-03-22  Jim Meyering  <jim@meyering.net>
92201
92202         * lib/strftime.c (widen): Cast alloca return value to proper type.
92203
92204         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92205
92206         From GNU libc.
92207         * lib/strftime.c (my_strftime): Handle very large width
92208         specifications for numeric values correctly.  Improve checks for
92209         overflow.
92210
92211         2003-01-19  Jim Meyering  <jim@meyering.net>
92212
92213         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92214         definitions.
92215         (nl_get_alt_digit) [! defined my_strftime]: Define.
92216         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92217         _nl_get_alt_digit and _nl_get_walt_digit.
92218
92219         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92220         libc. These changes have no effect outside of _LIBC.
92221
92222 2003-04-10  Bruno Haible  <bruno@clisp.org>
92223
92224         * modules/findprog: New file.
92225         * MODULES.html.sh (func_all_modules): Add it.
92226
92227 2003-04-10  Bruno Haible  <bruno@clisp.org>
92228
92229         * m4/findprog.m4: New file.
92230         * m4/eaccess.m4: New file.
92231
92232 2003-04-10  Bruno Haible  <bruno@clisp.org>
92233
92234         * lib/findprog.h: New file, from GNU gettext.
92235         * lib/findprog.c: New file, from GNU gettext.
92236
92237 2003-04-05  Jim Meyering  <jim@meyering.net>
92238
92239         Merge changes from Coreutils.
92240
92241         * lib/exclude.h (PARAMS): Remove definition and uses.
92242         * lib/exclude.c: Remove uses of `PARAMS'.
92243
92244         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92245         Add test-cases for DOS filenames. Declare program_name.
92246         (main): Set up program_name.  Patch by Rich Dawe.
92247
92248         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92249         error from mntctl.
92250         Use mntctl's return value to drive the entry-processing loop, since
92251         we can't rely on the value of the vmt_length member in the last
92252         entry.  On some systems doing so could result in exhausting
92253         virtual memory.  Based in part on a patch from Mike Jetzer.
92254
92255 2003-04-04  Bruno Haible  <bruno@clisp.org>
92256
92257         * modules/linebreak: New file.
92258         * MODULES.html.sh (func_all_modules): Add it.
92259
92260 2003-04-04  Bruno Haible  <bruno@clisp.org>
92261
92262         * m4/linebreak.m4: New file.
92263
92264 2003-04-04  Bruno Haible  <bruno@clisp.org>
92265
92266         * lib/linebreak.h: New file, from GNU gettext.
92267         * lib/linebreak.c: New file, from GNU gettext with slight
92268         modifications.
92269         * lib/lbrkprop.h: New file, from GNU gettext.
92270
92271 2003-04-03  Bruno Haible  <bruno@clisp.org>
92272
92273         * modules/utf8-ucs4: New file.
92274         * modules/utf16-ucs4: New file.
92275         * modules/ucs4-utf8: New file.
92276         * modules/ucs4-utf16: New file.
92277         * MODULES.html.sh (func_all_modules): Add them.
92278
92279 2003-04-03  Bruno Haible  <bruno@clisp.org>
92280
92281         * m4/utf-ucs4.m4: New file.
92282         * m4/ucs4-utf.m4: New file.
92283
92284 2003-04-03  Bruno Haible  <bruno@clisp.org>
92285
92286         * lib/utf8-ucs4.h: New file, from GNU gettext.
92287         * lib/utf16-ucs4.h: New file, from GNU gettext.
92288         * lib/ucs4-utf8.h: New file, from GNU gettext.
92289         * lib/ucs4-utf16.h: New file, from GNU gettext.
92290
92291 2003-04-02  Bruno Haible  <bruno@clisp.org>
92292
92293         * modules/binary-io: New file.
92294         * MODULES.html.sh (func_all_modules): Add it.
92295
92296 2003-04-02  Bruno Haible  <bruno@clisp.org>
92297
92298         * lib/binary-io.h: New file, from GNU gettext.
92299
92300 2003-04-01  Bruno Haible  <bruno@clisp.org>
92301
92302         * modules/pathname: New file.
92303         * MODULES.html.sh (func_all_modules): Add it.
92304
92305 2003-04-01  Bruno Haible  <bruno@clisp.org>
92306
92307         * lib/pathname.h: New file, from GNU gettext.
92308         * lib/concatpath.c: New file, from GNU gettext.
92309
92310 2003-03-30  Bruno Haible  <bruno@clisp.org>
92311
92312         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92313
92314 2003-03-30  Bruno Haible  <bruno@clisp.org>
92315
92316         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92317         function chown() doesn't exist.
92318
92319 2003-03-28  Bruno Haible  <bruno@clisp.org>
92320
92321         * modules/copy-file: New file.
92322         * MODULES.html.sh (func_all_modules): Add it.
92323
92324 2003-03-28  Bruno Haible  <bruno@clisp.org>
92325
92326         * m4/copy-file.m4: New file.
92327
92328 2003-03-28  Bruno Haible  <bruno@clisp.org>
92329
92330         * lib/copy-file.h: New file, from GNU gettext.
92331         * lib/copy-file.c: New file, from GNU gettext.
92332
92333 2003-03-18  Jim Meyering  <jim@meyering.net>
92334
92335         * lib/quote.c (quote_n): Fix typo in comment.
92336
92337 2003-03-18  Bruno Haible  <bruno@clisp.org>
92338
92339         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92340         checking.
92341         * m4/onceonly_2_57.m4: Likewise.
92342
92343 2003-03-17  Bruno Haible  <bruno@clisp.org>
92344
92345         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92346         (m4_quote): Remove macro.
92347         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92348
92349 2003-03-14  Jim Meyering  <jim@meyering.net>
92350
92351         Merge changes from Coreutils.
92352         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92353         to be const, in order to avoid warnings.
92354         (obstack_room): Likewise.
92355         (obstack_empty_p): Likewise.
92356
92357 2003-03-14  Bruno Haible  <bruno@clisp.org>
92358
92359         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92360         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92361
92362 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92363
92364         Merge changes from Bison.
92365         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92366         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92367         when compiling Bison 1.875's `bitset bset = obstack_alloc
92368         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92369         * lib/hash.c: Include <stdbool.h> unconditionally.
92370
92371 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92372
92373         * m4/onceonly.m4 (m4_quote): New macro.
92374         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92375         Quote AC_FOREACH variable-expansions properly.
92376
92377 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92378
92379         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92380
92381 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92382
92383         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92384         Reported by Bruce Becker; see:
92385         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92386
92387 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92388             Bruno Haible  <bruno@clisp.org>
92389
92390         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92391         Reported by John Hughes, see
92392         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92393
92394 2003-02-20  Bruno Haible  <bruno@clisp.org>
92395
92396         * MODULES.html.sh (func_all_modules): Add poll.
92397
92398 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92399
92400         * modules/poll: New file.
92401
92402 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92403
92404         * lib/poll_.h: New file.
92405         * lib/poll.c: New file.
92406
92407 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92408
92409         * m4/poll.m4: New file.
92410
92411 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92412
92413         * modules/mathl: New file.
92414
92415 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92416
92417         * lib/mathl.h: New file.
92418         * lib/acosl.c: New file.
92419         * lib/asinl.c: New file.
92420         * lib/atanl.c: New file.
92421         * lib/ceill.c: New file.
92422         * lib/cosl.c: New file.
92423         * lib/expl.c: New file.
92424         * lib/floorl.c: New file.
92425         * lib/frexpl.c: New file.
92426         * lib/ldexpl.c: New file.
92427         * lib/logl.c: New file.
92428         * lib/sincosl.c: New file.
92429         * lib/sinl.c: New file.
92430         * lib/sqrtl.c: New file.
92431         * lib/tanl.c: New file.
92432         * lib/trigl.c: New file.
92433         * lib/trigl.h: New file.
92434
92435 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92436
92437         * m4/mathl.m4: New file.
92438
92439 2003-02-18  Bruno Haible  <bruno@clisp.org>
92440
92441         * MODULES.html.sh (func_all_modules): Add mathl.
92442
92443 2003-02-17  Bruno Haible  <bruno@clisp.org>
92444
92445         * modules/mkdtemp: New module.
92446         * MODULES.html.sh (func_all_modules): Add it.
92447
92448 2003-02-17  Bruno Haible  <bruno@clisp.org>
92449
92450         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92451
92452 2003-02-17  Bruno Haible  <bruno@clisp.org>
92453
92454         * lib/mkdtemp.h: New file, from GNU gettext.
92455         * lib/mkdtemp.c: New file, from GNU gettext.
92456
92457 2003-02-02  Jim Meyering  <jim@meyering.net>
92458
92459         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92460         e.g. glibc-2.2.93.
92461
92462 2003-01-31  Bruno Haible  <bruno@clisp.org>
92463
92464         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92465         'rpl_rename'.
92466         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92467         'rpl_strnlen'.
92468         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92469         'rpl_strtod'.
92470         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92471         'rpl_utime'.
92472
92473 2003-01-31  Bruno Haible  <bruno@clisp.org>
92474
92475         * lib/rename.c: #undef rename before defining rpl_rename.
92476         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92477
92478 2003-01-30  Bruno Haible  <bruno@clisp.org>
92479
92480         * modules/vasnprintf, modules/vasprintf: New modules.
92481         * MODULES.html.sh (func_all_modules): Add them.
92482
92483 2003-01-30  Bruno Haible  <bruno@clisp.org>
92484
92485         * m4/signed.m4: New file, from GNU gettext.
92486         * m4/longdouble.m4: New file, from GNU gettext.
92487         * m4/wchar_t.m4: New file, from GNU gettext.
92488         * m4/wint_t.m4: New file, from GNU gettext.
92489         * m4/vasnprintf.m4: New file.
92490         * m4/vasprintf.m4: New file.
92491
92492 2003-01-30  Bruno Haible  <bruno@clisp.org>
92493
92494         * lib/printf-args.h: New file, from GNU gettext.
92495         * lib/printf-args.c: New file, from GNU gettext.
92496         * lib/printf-parse.h: New file, from GNU gettext.
92497         * lib/printf-parse.c: New file, from GNU gettext.
92498         * lib/vasnprintf.h: New file, from GNU gettext.
92499         * lib/vasnprintf.c: New file, from GNU gettext.
92500         * lib/asnprintf.c: New file, from GNU gettext.
92501         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92502         * lib/vasprintf.c: New file, from GNU gettext.
92503         * lib/asprintf.c: New file, from GNU gettext.
92504
92505 2003-01-29  Bruno Haible  <bruno@clisp.org>
92506
92507         * modules/stpncpy: New module.
92508         * MODULES.html.sh (func_all_modules): Add it.
92509
92510 2003-01-29  Bruno Haible  <bruno@clisp.org>
92511
92512         * m4/stpncpy.m4: New file.
92513
92514 2003-01-29  Bruno Haible  <bruno@clisp.org>
92515
92516         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92517         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92518
92519 2003-01-28  Bruno Haible  <bruno@clisp.org>
92520
92521         * modules/c-ctype: New module.
92522         * MODULES.html.sh (func_all_modules): Add it.
92523
92524 2003-01-28  Bruno Haible  <bruno@clisp.org>
92525
92526         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92527         Paul Eggert.
92528         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92529         Paul Eggert.
92530
92531 2003-01-27  Bruno Haible  <bruno@clisp.org>
92532
92533         * modules/xsetenv: New module.
92534         * MODULES.html.sh (func_all_modules): Add it.
92535
92536 2003-01-27  Bruno Haible  <bruno@clisp.org>
92537
92538         * lib/xsetenv.h: New file, from GNU gettext.
92539         * lib/xsetenv.c: New file, from GNU gettext.
92540
92541 2003-01-23  Jim Meyering  <jim@meyering.net>
92542
92543         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92544         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92545
92546 2003-01-23  Bruno Haible  <bruno@clisp.org>
92547
92548         * modules/minmax: New module.
92549         * MODULES.html.sh (func_all_modules): Add it.
92550
92551 2003-01-23  Bruno Haible  <bruno@clisp.org>
92552
92553         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92554         Eggert.
92555
92556 2003-01-22  Bruno Haible  <bruno@clisp.org>
92557
92558         * modules/exit: New module.
92559         * MODULES.html.sh (func_all_modules): Add it.
92560
92561 2003-01-22  Bruno Haible  <bruno@clisp.org>
92562
92563         * lib/exit.h: New file, from GNU gettext.
92564
92565 2003-01-19  Bruno Haible  <bruno@clisp.org>
92566
92567         * gnulib-tool: Recognize option --extract-maintainer.
92568         (func_get_maintainer): New function.
92569         * modules/*: Add Maintainer entry.
92570
92571 2003-01-16  Jim Meyering  <jim@meyering.net>
92572
92573         * m4/regex.m4: The `regex' struct is both input and output.
92574         Initialize it before each use.  Patch by Tim Waugh.
92575
92576 2003-01-16  Bruno Haible  <bruno@clisp.org>
92577
92578         * MODULES.html.sh: Add a table of contents. Add the module name as
92579         leftmost column. Add hyperlinks.
92580
92581 2003-01-15  Bruno Haible  <bruno@clisp.org>
92582
92583         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92584
92585 2003-01-15  Bruno Haible  <bruno@clisp.org>
92586
92587         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92588         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92589         suffix.
92590
92591 2003-01-15  Bruno Haible  <bruno@clisp.org>
92592
92593         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92594
92595 2003-01-15  Bruno Haible  <bruno@clisp.org>
92596
92597         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92598         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92599
92600 2003-01-14  Jim Meyering  <jim@meyering.net>
92601
92602         * lib/same.c (same_name): Tweak a comment.
92603
92604 2003-01-14  Bruno Haible  <bruno@clisp.org>
92605
92606         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92607         when a string comparison is sufficient.
92608
92609 2003-01-14  Bruno Haible  <bruno@clisp.org>
92610
92611         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92612         'unsigned int'.
92613
92614 2003-01-14  Bruno Haible  <bruno@clisp.org>
92615
92616         * lib/hash-pjw.c: Add comment about low quality of this function.
92617
92618 2003-01-13  Bruno Haible  <bruno@clisp.org>
92619
92620         * modules/stpcpy: Distribute lib/stpcpy.h.
92621         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92622
92623 2003-01-13  Bruno Haible  <bruno@clisp.org>
92624
92625         * modules/*: Add a description.
92626         * modules/strpbrk: Fix Makefile.am snippet.
92627         * modules/strtoimax: Fix dependencies.
92628         * modules/strtoumax: Likewise.
92629
92630 2003-01-13  Bruno Haible  <bruno@clisp.org>
92631
92632         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92633         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92634         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92635
92636 2003-01-13  Bruno Haible  <bruno@clisp.org>
92637
92638         * gnulib-tool (func_create_testdir): Store config/* files in the main
92639         directory.
92640         * config.rpath: Move to ...
92641         * config/config.rpath: ... here.
92642         * modules/gettext: Contains config/config.rpath, not config.rpath.
92643         * modules/iconv: Likewise.
92644
92645 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92646
92647         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92648         to avoid collisions with libcurses and libreadline.
92649
92650         * m4/getstr.m4: Remove.
92651         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92652
92653 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92654
92655         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92656         to avoid collisions with libcurses and libreadline.
92657
92658         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92659         * lib/getstr.h, getstr.c: Remove.
92660         * lib/getline.c: Include "getline.h", to check interface.
92661         Move body of old getstr.c here: this defines MIN_CHUNK and
92662         declares getdelim2, which is renamed from getstr.
92663         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92664
92665         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92666         All uses changed.
92667         * lib/linebuffer.h: Likewise.
92668         (readline): Remove backward-compatibility macro.
92669
92670 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92671
92672         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92673         to avoid collisions with libcurses and libreadline.
92674         * getstr: Remove.
92675         * MODULES.html.sh: Remove getstr.
92676         * modules/getline: Depend on unlocked-io, not getstr.
92677
92678 2003-01-12  Jim Meyering  <jim@meyering.net>
92679
92680         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92681
92682 2003-01-10  Bruno Haible  <bruno@clisp.org>
92683
92684         * modules/alloca: Change Makefile.am requirements. Simplify Include
92685         requirements. Add lib/alloca_.h to file list.
92686
92687 2003-01-10  Bruno Haible  <bruno@clisp.org>
92688
92689         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92690
92691 2003-01-10  Bruno Haible  <bruno@clisp.org>
92692
92693         * lib/alloca_.h: New file.
92694         * lib/getdate.y: Unconditionally include alloca.h.
92695         * lib/makepath.c: Likewise.
92696         * lib/setenv.c: Likewise.
92697         * lib/userspec.c: Likewise.
92698
92699 2003-01-09  Karl Berry  <karl@gnu.org>
92700
92701         * MODULES.html.sh: include `dirname $0` in PATH, to find
92702         gnulib-tool.
92703
92704 2003-01-09  Bruno Haible  <bruno@clisp.org>
92705
92706         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92707         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92708
92709 2003-01-09  Bruno Haible  <bruno@clisp.org>
92710
92711         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92712
92713 2003-01-09  Bruno Haible  <bruno@clisp.org>
92714
92715         * lib/stdbool.h.in: New file.
92716
92717 2003-01-09  Bruno Haible  <bruno@clisp.org>
92718
92719         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92720         * MODULES.html.sh: Likewise.
92721
92722 2003-01-08  Jim Meyering  <jim@meyering.net>
92723
92724         * lib/full-write.c: Undefine and define-away `const' after inclusion
92725         of errno.h, not before.  Suggestion from Bruno Haible.
92726
92727 2003-01-08  Bruno Haible  <bruno@clisp.org>
92728
92729         * modules/full-read: Depend on full-write.
92730
92731 2003-01-08  Bruno Haible  <bruno@clisp.org>
92732
92733         * lib/safe-read.c: Include specification header first, to ensure its
92734         selfcontainedness.
92735         * lib/full-write.c: Likewise.
92736
92737 2003-01-07  Jim Meyering  <jim@meyering.net>
92738
92739         * lib/full-write.c: Rework so that it may serve to define full_read,
92740         too.
92741         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92742
92743 2003-01-07  Bruno Haible  <bruno@clisp.org>
92744
92745         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92746         <inttypes.h>.
92747         * lib/xstrtol.h: Likewise.
92748         * lib/xstrtoimax.c: Likewise.
92749         * lib/xstrtoumax.c: Likewise.
92750         * lib/human.h: Likewise.
92751
92752         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92753         on systems that have <inttypes.h> but not <stdint.h>.
92754
92755 2003-01-07  Bruno Haible  <bruno@clisp.org>
92756
92757         * MODULES.html.sh: Add copyright notice.
92758         (missed_files): Omit CVS directory entries.
92759         (func_module): Make it work with sed-3.02.
92760         * MODULES.txt: Remove file.
92761
92762 2003-01-06  Jim Meyering  <jim@meyering.net>
92763
92764         * lib/version-etc.c: Update year in translatable copyright string.
92765
92766 2003-01-03  Karl Berry  <karl@gnu.org>
92767
92768         * config/config.{guess,sub}: update from prep.
92769
92770 2003-01-02  Karl Berry  <karl@gnu.org>
92771
92772         * doc/COPYING.DOC: belatedly updated to 1.2.
92773
92774 2003-01-01  Karl Berry  <karl@gnu.org>
92775
92776         * gnulib-tool (func_verify_module): report module name $module in
92777         error message, not $1.
92778         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92779         be created, only if it doesn't exist.
92780         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92781
92782 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92783
92784         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92785
92786 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92787
92788         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92789         memcmp if strcoll doesn't work.
92790
92791 2002-12-31  Bruno Haible  <bruno@clisp.org>
92792
92793         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92794         nonempty.
92795
92796 2002-12-31  Bruno Haible  <bruno@clisp.org>
92797
92798         * lib/memcoll.c (STRCOLL): New macro.
92799         (memcoll): Use it.
92800
92801 2002-12-31  Bruno Haible  <bruno@clisp.org>
92802
92803         * lib/localcharset.h: New file.
92804         * lib/localcharset.c: Include it.
92805         * lib/unicodeio.c: Likewise.
92806
92807 2002-12-31  Bruno Haible  <bruno@clisp.org>
92808
92809         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92810         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92811
92812 2002-12-31  Bruno Haible  <bruno@clisp.org>
92813
92814         * lib/getline.h: Include <stddef.h>, for size_t.
92815
92816         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92817         * lib/unicodeio.c: Don't include <stddef.h>.
92818
92819 2002-12-31  Bruno Haible  <bruno@clisp.org>
92820
92821         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92822         HAVE_TM_ZONE.
92823
92824 2002-12-24  Karl Berry  <karl@gnu.org>
92825
92826         * config/config.guess: update from prep.
92827
92828 2002-12-24  Bruno Haible  <bruno@clisp.org>
92829
92830         General infrasructure.
92831         * m4/README: Rewritten.
92832         * m4/onceonly.m4: New file.
92833         * m4/onceonly_2_57.m4: New file.
92834
92835         Module atexit.
92836         * m4/atexit.m4: New file.
92837
92838         Module strtod.
92839         * m4/strtod.m4: New file.
92840
92841         Module strtol.
92842         * m4/strtol.m4: New file.
92843
92844         Module strtoul.
92845         * m4/strtoul.m4: New file.
92846
92847         Module memchr.
92848         * m4/memchr.m4: New file.
92849
92850         Module memcmp.
92851         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
92852         (jm_FUNC_MEMCMP): Invoke it.
92853
92854         Module memcpy.
92855         * m4/memcpy.m4: New file.
92856
92857         Module memmove.
92858         * m4/memmove.m4: New file.
92859
92860         Module memset.
92861         * m4/memset.m4: New file.
92862
92863         Module strcspn.
92864         * m4/strcspn.m4: New file.
92865
92866         Module strpbrk.
92867         * m4/strpbrk.m4: New file.
92868
92869         Module strstr.
92870         * m4/strstr.m4: New file.
92871
92872         Module strerror.
92873         * m4/strerror.m4: New file.
92874
92875         Module mktime.
92876         * m4/mktime.m4: Renamed from jm-mktime.m4.
92877         (gl_PREREQ_MKTIME): New macro.
92878         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
92879
92880         Module malloc.
92881         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
92882         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
92883         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
92884
92885         Module realloc.
92886         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
92887         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
92888         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
92889
92890         Module strftime.
92891         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
92892         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
92893         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
92894         gl_TM_GMTOFF.
92895         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
92896
92897         Module xalloc.
92898         * m4/xalloc.m4: New file.
92899
92900         Module alloca.
92901         * m4/alloca.m4: New file.
92902
92903         Module putenv.
92904         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
92905         (jm_FUNC_PUTENV): Invoke it.
92906
92907         Module setenv.
92908         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
92909         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
92910         when invoked twice.
92911         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
92912         gt_FUNC_SETENV.
92913
92914         Module memrchr.
92915         * m4/memrchr.m4: New file.
92916
92917         Module stpcpy.
92918         * m4/stpcpy.m4: New file.
92919
92920         Module strcase.
92921         * m4/strcase.m4: New file.
92922
92923         Module strdup.
92924         * m4/strdup.m4: New file.
92925
92926         Module strnlen.
92927         * m4/strnlen.m4: New file.
92928
92929         Module strndup.
92930         * m4/strndup.m4: New file.
92931
92932         Module xstrtod.
92933         * m4/xstrtod.m4: New file.
92934
92935         Module xstrtol.
92936         * m4/xstrtol.m4: New file.
92937
92938         Module getdate.
92939         * m4/getdate.m4: New file.
92940
92941         Module unlocked-io.
92942         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
92943         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
92944         * m4/jm-glibc-io.m4n: Remove file.
92945
92946         Module long-options.
92947         * m4/long-options.m4: New file.
92948
92949         Module md5.
92950         * m4/md5.m4: New file.
92951
92952         Module sha.
92953         * m4/sha.m4: New file.
92954
92955         Module getstr.
92956         * m4/getstr.m4: New file.
92957
92958         Module getline.
92959         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
92960         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
92961         <sys/types.h>, for size_t. Use the function name gnu_getline, not
92962         simply getline. Infoke gl_PREREQ_GETLINE.
92963
92964         Module obstack.
92965         * m4/obstack.m4: New file.
92966
92967         Module hash.
92968         * m4/hash.m4: New file.
92969
92970         Module readtokens.
92971         * m4/readtokens.m4: New file.
92972
92973         Module strverscmp.
92974         * m4/strverscmp.m4: New file.
92975
92976         Module stdbool.
92977         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92978         OSF/1.
92979
92980         Module strtoll.
92981         * m4/strtoll.m4: New file.
92982
92983         Module strtoull.
92984         * m4/strtoull.m4: New file.
92985
92986         Module strtoimax.
92987         * m4/strtoimax.m4: New file.
92988
92989         Module strtoumax.
92990         * m4/strtoumax.m4: New file.
92991
92992         Module xstrtoimax.
92993         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92994         jm_AC_PREREQ_XSTRTOIMAX.
92995         Moved the strtol prerequisites to strtol.m4.
92996         Moved the strtoll prerequisites to strtoll.m4.
92997         Moved the strtoimax prerequisites to strtoimax.m4.
92998
92999         Module xstrtoumax.
93000         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93001         jm_AC_PREREQ_XSTRTOUMAX.
93002         Moved the strtoul prerequisites to strtoul.m4.
93003         Moved the strtoull prerequisites to strtoull.m4.
93004         Moved the strtoumax prerequisites to strtoumax.m4.
93005
93006         Module chown.
93007         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93008         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93009
93010         Module dup2.
93011         * m4/dup2.m4: New file.
93012
93013         Module ftruncate.
93014         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93015         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93016
93017         Module getgroups.
93018         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93019         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93020
93021         Module gettimeofday.
93022         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93023         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93024         gl_PREREQ_GETTIMEOFDAY.
93025
93026         Module mkdir.
93027         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93028         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93029
93030         Module mkstemp.
93031         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93032         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93033         jm_AC_TYPE_UINTMAX_T.
93034         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93035
93036         Module stat.
93037         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93038         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93039
93040         Module lstat.
93041         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93042         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93043
93044         Module timespec.
93045         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93046         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93047         * m4/st_mtim.m4: Indentation.
93048
93049         Module nanosleep.
93050         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93051         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93052         gl_PREREQ_NANOSLEEP.
93053
93054         Module regex.
93055         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93056         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93057         (gl_REGEX): New macro.
93058
93059         Module rename.
93060         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93061         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93062
93063         Module rmdir.
93064         * m4/rmdir.m4: New file.
93065
93066         Module utime.
93067         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93068         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93069         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93070
93071         Module dirname.
93072         * m4/dirname.m4: New file.
93073
93074         Module getopt.
93075         * m4/getopt.m4: New file.
93076
93077         Module unistd-safer.
93078         * m4/unistd-safer.m4: New file.
93079
93080         Module fnmatch.
93081         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93082         declaration.
93083         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93084         (gl_FUNC_FNMATCH_POSIX): New macro.
93085         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93086         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93087         simply fnmatch.
93088
93089         Module exclude.
93090         * m4/exclude.m4: New file.
93091
93092         Module human.
93093         * m4/human.m4: New file.
93094
93095         Module acl.
93096         * m4/acl.m4: Nop.
93097
93098         Module backupfile.
93099         * m4/backupfile.m4: New file.
93100         * m4/d-ino.m4: Indentation.
93101
93102         Module fsusage.
93103         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93104         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93105         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93106
93107         Module dirfd.
93108         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93109         requirements.
93110
93111         Module euidaccess.
93112         * m4/euidaccess.m4: New file.
93113
93114         Module file-type.
93115         * m4/file-type.m4: New file.
93116
93117         Module fileblocks.
93118         * m4/fileblocks.m4: New file.
93119
93120         Module filemode.
93121         * m4/filemode.m4: New file.
93122
93123         Module isdir.
93124         * m4/isdir.m4: New file.
93125
93126         Module lchown.
93127         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93128         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93129
93130         Module makepath.
93131         * m4/makepath.m4: New file.
93132
93133         Module modechange.
93134         * m4/modechange.m4: New file.
93135
93136         Module mountlist.
93137         * m4/mountlist.m4: New file.
93138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93139         Indentation.
93140
93141         Module path-concat.
93142         * m4/path-concat.m4: New file.
93143
93144         Module pathmax.
93145         * m4/pathmax.m4: New file.
93146
93147         Module same.
93148         * m4/same.m4: New file.
93149
93150         Module save-cwd.
93151         * m4/save-cwd.m4: New file.
93152
93153         Module savedir.
93154         * m4/savedir.m4: New file.
93155
93156         Module xgetcwd.
93157         * m4/xgetcwd.m4: New file.
93158         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93159
93160         Module xreadlink.
93161         * m4/xreadlink.m4: New file.
93162
93163         Module safe-read.
93164         * m4/safe-read.m4: New file.
93165
93166         Module safe-write.
93167         * m4/safe-write.m4: New file.
93168
93169         Module closeout.
93170         * m4/closeout.m4: New file.
93171
93172         Module stdio-safer.
93173         * m4/stdio-safer.m4: New file.
93174
93175         Module getpass.
93176         * m4/getpass.m4: New file.
93177
93178         Module getugroups.
93179         * m4/getugroups.m4: New file.
93180
93181         Module group-member.
93182         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93183         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93184
93185         Module idcache.
93186         * m4/idcache.m4: New file.
93187
93188         Module userspec.
93189         * m4/userspec.m4: New file.
93190
93191         Module gettime.
93192         * m4/clock_time.m4: New file.
93193         * m4/gettime.m4: New file.
93194
93195         Module settime.
93196         * m4/settime.m4: New file.
93197
93198         Module posixtm.
93199         * m4/posixtm.m4: New file.
93200
93201         Module gethostname.
93202         * m4/gethostname.m4: New file.
93203
93204         Module canon-host.
93205         * m4/canon-host.m4: New file.
93206
93207         Module gettext.
93208         * m4/codeset.m4: New file, from gettext-0.11.5.
93209         * m4/gettext.m4: New file, from gettext-0.11.5.
93210         * m4/glibc21.m4: New file, from gettext-0.11.5.
93211         * m4/iconv.m4: New file, from gettext-0.11.5.
93212         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93213         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93214         * m4/inttypes.m4: New file, from gettext-0.11.5.
93215         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93216         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93217         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93218         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93219         * m4/lib-link.m4: New file, from gettext-0.11.5.
93220         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93221         * m4/progtest.m4: New file, from gettext-0.11.5.
93222         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93223         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93224         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93225
93226         Module localcharset.
93227         * m4/localcharset.m4: New file.
93228
93229         Module hard-locale.
93230         * m4/hard-locale.m4: New file.
93231
93232         Module mbswidth.
93233         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93234         onceonly macros.
93235         * m4/mbrtowc.m4: Add comment.
93236
93237         Module memcasecmp.
93238         * m4/memcasecmp.m4: New file.
93239
93240         Module memcoll.
93241         * m4/memcoll.m4: New file.
93242
93243         Module unicodeio.
93244         * m4/unicodeio.m4: New file.
93245
93246         Module rpmatch.
93247         * m4/rpmatch.m4: New file.
93248
93249         Module yesno.
93250         * m4/yesno.m4: New file.
93251
93252         Module exitfail.
93253         * m4/exitfail.m4: New file.
93254
93255         Module c-stack.
93256         * m4/c-stack.m4 (gl_C_STACK): New macro.
93257         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93258
93259         Module error.
93260         * m4/error.m4 (gl_ERROR): New macro.
93261         (jm_PREREQ_ERROR): Use onceonly macros.
93262
93263         Module fatal.
93264         * m4/fatal.m4: New file.
93265
93266         Module getloadavg.
93267         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93268         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93269
93270         Module getpagesize.
93271         * m4/getpagesize.m4: New file.
93272
93273         Module getusershell.
93274         * m4/getusershell.m4: New file.
93275
93276         Module physmem.
93277         * m4/physmem.m4: New file.
93278
93279         Module posixver.
93280         * m4/posixver.m4: New file.
93281
93282         Module quotearg.
93283         * m4/quotearg.m4: New file.
93284
93285         Module quote.
93286         * m4/quote.m4: New file.
93287
93288         Module readutmp.
93289         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93290
93291         Module sig2str.
93292         * m4/sig2str.m4: New file.
93293
93294         Other.
93295         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93296         ulonglong.m4.
93297         * m4/intmax_t.m4: New file.
93298         * m4/d-type.m4: Indentation.
93299         * m4/jm-macros.m4: Update.
93300         * m4/prereq.m4 (jm_PREREQ): Update.
93301         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93302         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93303         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93304         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93305         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93306         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93307         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93308         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93309         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93310         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93311         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93312         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93313         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93314         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93315         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93316         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93317         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93318         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93319         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93320
93321 2002-12-24  Bruno Haible  <bruno@clisp.org>
93322
93323         * MODULES.txt: Update according to m4/ changes.
93324
93325         Module gettext.
93326         * config.rpath: New file, from gettext-0.11.5.
93327
93328         * modules/*: New module descriptions.
93329         * gnulib-tool: New file.
93330         * MODULES.html.sh: New file.
93331
93332 2002-12-21  Karl Berry  <karl@gnu.org>
93333
93334         * doc/fdl.texi: update to version 1.2.
93335
93336 2002-12-19  Karl Berry  <karl@gnu.org>
93337
93338         * config/config.guess: update from prep.
93339
93340 2002-12-18  Bruno Haible  <bruno@clisp.org>
93341
93342         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93343         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93344
93345 2002-12-17  Bruno Haible  <bruno@clisp.org>
93346
93347         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93348         stdlib.h, string.h.
93349
93350 2002-12-17  Bruno Haible  <bruno@clisp.org>
93351
93352         * lib/canon-host.c (strdup): Remove unused declaration.
93353
93354         * lib/fsusage.c: Include full_read.h.
93355         (get_fs_usage): Use full_read instead of safe_read.
93356
93357         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93358
93359 2002-12-12  Karl Berry  <karl@gnu.org>
93360
93361         * config/config.guess: update from prep.
93362
93363 2002-12-11  Bruno Haible  <bruno@clisp.org>
93364
93365         * m4/setenv.m4: New file, from gettext-0.11.5.
93366
93367 2002-12-11  Bruno Haible  <bruno@clisp.org>
93368
93369         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93370         not unsetenv().
93371         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93372         modifications:
93373
93374         2002-12-11  Bruno Haible  <bruno@clisp.org>
93375
93376                 * setenv.c (alloca): Fall back to malloc.
93377                 (freea): New macro.
93378                 (setenv): Use freea() to free memory allocated with alloca().
93379
93380         2002-11-13  Bruno Haible  <bruno@clisp.org>
93381
93382                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93383                 function declarations.
93384                 * unsetenv.c (unsetenv): Likewise.
93385
93386         2002-03-04  Bruno Haible  <bruno@clisp.org>
93387
93388                 Portability to AIX 4.3.3.
93389                 * unsetenv.c: New file, extracted from setenv.c.
93390                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93391
93392         2001-12-20  Bruno Haible  <bruno@clisp.org>
93393
93394                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93395                 use malloc instead. For SunOS 4.
93396
93397         2001-12-11  Bruno Haible  <bruno@clisp.org>
93398
93399                 * setenv.c: Declare alloca.
93400                 (compar_fn_t): New typedef.
93401                 (KNOWN_VALUE, STORE_VALUE): Use it.
93402
93403         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93404         setenv.h.
93405
93406 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93407
93408         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93409         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93410         Choose values that are less likely to collide with system fnmatch
93411         options.
93412         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93413         defined (e.g., a pure POSIX system).
93414         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93415         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93416
93417 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93418
93419         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93420         a pain in practice to deal with generated m4 files.  This change
93421         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93422
93423         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93424         and jm-glibc-io.m4, as they are no longer a special case.
93425         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93426         kludge and the auto-generation stuff.  Check only whether the
93427         functions are declared, not whether they exist, since older hosts
93428         that don't declare the functions can't use the optimization anyway.
93429
93430 2002-12-06  Jim Meyering  <jim@meyering.net>
93431
93432         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93433
93434         Merge in changes from libc's misc/error.c, in preparation
93435         for the merge of gnulib's changes back into libc.
93436
93437         * lib/error.c (_): Define only if not already defined.
93438         Move definition to follow all #include directives.
93439         Include unlocked-io.h only if !_LIBC.
93440         [_LIBC]: Include <libio/libioP.h>.
93441         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93442         (fflush): Tweak definition to use INTUSE.
93443         (putc): Define.
93444
93445 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93446
93447         * lib/alloca.c [defined emacs]: Include "lisp.h".
93448         (xalloc_die) [defined emacs]: New macro.
93449         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93450         [! defined emacs]: Include <xalloc.h>.
93451         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93452         (pointer): Typedef to POINTER_TYPE *.
93453         (malloc): Remove decl; we now always use xmalloc.
93454         (alloca): Use old-style definition, since Emacs needs this.
93455         Check for arithmetic overflow when computing combined size.
93456
93457 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93458
93459         Do not generate unlocked-io.h automatically, since it's easier to
93460         maintain it by hand.
93461
93462         * lib/unlocked-io.h: New file, from GNU diffutils,
93463         but with proper copyright notice and attribution.
93464         * lib/gen-uio: Remove.
93465         * lib/Makefile.am: Add copyright notice.
93466         (libfetish_a_SOURCES): Add unlocked-io.h.
93467         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93468         (DISTCLEANFILES, io_functions): Remove macros.
93469         (EXTRA_DIST): Remove gen_uio.
93470         (unlocked-io.h): Remove rule.
93471
93472 2002-12-04  Jim Meyering  <jim@meyering.net>
93473
93474         Reflect the fact that stat.c and lstat.c are no longer generated.
93475         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93476         (DISTCLEANFILES): Likewise.
93477         (EXTRA_DIST): Likewise.
93478         (all_local): Don't depend on stat.c or lstat.c.
93479         (stat.c, lstat.c): Remove rules.
93480         (EXTRA_DIST): Remove xstat.in.
93481
93482         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93483         * lib/stat.c: New file.  Contents mostly from xstat.in.
93484         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93485         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93486
93487         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93488         too.
93489         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93490
93491 2002-12-03  Jim Meyering  <jim@meyering.net>
93492
93493         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93494         but not semantics, to minimize the differences between these two files.
93495         (safe_read): Change comment to mention SAFE_READ_ERROR.
93496
93497         * lib/safe-read.c (IS_EINTR): Define.
93498         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93499
93500 2002-12-02  Jim Meyering  <jim@meyering.net>
93501
93502         * lib/safe-read.c (EINTR): Define.
93503         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93504         (INT_MAX): Provide fallback.
93505         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93506
93507         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93508
93509 2002-12-02  Bruno Haible  <bruno@clisp.org>
93510
93511         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93512         Define, taken from safe-read.c.
93513         (INT_MAX): Provide fallback.
93514         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93515         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93516
93517         * lib/safe-read.c (EINTR): Remove definition.
93518         (safe_read): Don't use EINTR if it is absent.
93519
93520 2002-12-01  Jim Meyering  <jim@meyering.net>
93521
93522         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93523         zero.
93524         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93525
93526 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93527
93528         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93529         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93530         with `if (! (value < limit)) abort ();', for readability.
93531
93532 2002-11-26  Karl Berry  <karl@gnu.org>
93533
93534         * lib/strdup.c: copy from libc again, with jim's ok.
93535         * lib/.cppi-disable: re-add strdup.c
93536
93537 2002-11-25  Karl Berry  <karl@gnu.org>
93538
93539         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93540         instead of "strtol.c".
93541
93542 2002-11-25  Karl Berry  <karl@gnu.org>
93543
93544         * config/install-sh: update from automake for variable quoting, $0 in
93545         error msgs, etc.
93546
93547         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93548         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93549         entry.
93550
93551 2002-11-25  Jim Meyering  <jim@meyering.net>
93552
93553         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93554
93555 2002-11-24  Karl Berry  <karl@gnu.org>
93556
93557         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93558         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93559
93560 2002-11-24  Jim Meyering  <jim@meyering.net>
93561
93562         Update from coreutils:
93563
93564         * lib/mktime.c: Merge in changes from libc.
93565
93566         Avoid a link-time failure on some Linux systems.
93567         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93568         (otherwise).
93569         (__mon_yday): Declare with the STATIC attribute.
93570         (__mktime_internal): Likewise.
93571         Based on a report from Greg Schafer.
93572
93573 2002-11-23  Jim Meyering  <jim@meyering.net>
93574
93575         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93576         Use `unsigned', not `int', as type of index.
93577
93578         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93579
93580         * lib/fsusage.c: Remove unneeded parentheses around operands of
93581         `defined'.
93582
93583 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93584
93585         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93586         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93587         so that we can be included first.
93588         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93589         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93590         No need to include stddef.h or sys/types.h any more.
93591         Surround local include files with "", not "<>".
93592         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93593         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93594         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93595         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93596         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93597         (ISPRINT): Remove; no longer needed now that we assume C89.
93598
93599         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93600         Preserve errno.
93601
93602         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93603         quotearg_char): Use SIZE_MAX rather than
93604         (size_t) -1 when we are talking about "infinity".
93605
93606         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93607
93608 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93609
93610         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93611         hint that one should use `if (! x) abort ();' rather than `assert
93612         (x);', and anyway it's one less thing to worry about configuring.
93613         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93614         hash_rehash, hash_insert): Use abort rather than assert.
93615
93616 2002-11-22  Bruno Haible  <bruno@clisp.org>
93617
93618         * lib/safe-read.h: Assume C89. Add comments.
93619         (safe_read): Change return type to size_t.
93620         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93621         byte counts > SSIZE_MAX correctly.
93622         * lib/safe-write.h: New file.
93623         * lib/safe-write.c: New file.
93624         * lib/full-read.h: New file.
93625         * lib/full-read.c: New file.
93626         * lib/full-write.h: Assume C89. Add comments.
93627         * lib/full-write.c: Include safe-write.h.
93628         (full_write): Rewritten to use safe_write.
93629         Suggested by Jim Meyering and Paul Eggert.
93630
93631 2002-11-21  Jim Meyering  <jim@meyering.net>
93632
93633         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93634
93635         Merge in changes from the coreutils.
93636
93637         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93638         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93639         <stdint.h>.
93640         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93641         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93642         int.  Work more efficiently if X is the same width as uintmax_t.
93643         Do not compare X to -1, to avoid bogus compiler warning.
93644         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93645         Don't assume that f_frsize and f_bsize are the same type.
93646
93647         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93648         warning on FreeBSD.
93649
93650         * lib/makepath.c (make_path): Restore umask *before* creating the final
93651         component.
93652         (make_path): Minor reformatting.
93653
93654         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93655         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93656         HAVE_MALLOC/HAVE_REALLOC.
93657
93658         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93659         dummy ones.  At least on GNU/Linux systems, `auto' means something
93660         else.
93661         From Michael Stone.
93662
93663 2002-11-21  Bruno Haible  <bruno@clisp.org>
93664
93665         Remove case insensitive option matching.
93666         * lib/argmatch.h (argcasematch): Remove declaration.
93667         (ARGCASEMATCH): Remove macro.
93668         (__xargmatch_internal): Remove case_sensitive argument.
93669         (XARGMATCH): Update.
93670         (XARGCASEMATCH): Remove macro.
93671         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93672         case_sensitive argument.
93673         (argcasematch): Remove function.
93674         (__xargmatch_internal): Remove case_sensitive argument.
93675         (main): Use XARGMATCH instead of XARGCASEMATCH.
93676
93677         * lib/xmalloc.c: Change compile-time error message. Add comment about
93678         required autoconf version.
93679
93680 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93681
93682         Merge argmatch cleanups from Bison.  Assume C89.
93683
93684         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93685         Include stdlib.h, for EXIT_FAILURE.
93686         Always include <string.h>, since we assume C89.
93687         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93688         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93689         Include <stddef.h> instead, since it's all we need for size_t.
93690         (PARAMS): Remove.  All uses removed.
93691         (ARRAY_CARDINALITY): Do not bother to #undef.
93692         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93693         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93694         Remove unnecessary parentheses.
93695         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93696         Insert necessary parentheses.
93697         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93698         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93699
93700 2002-11-19  Bruno Haible  <bruno@clisp.org>
93701
93702         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93703         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93704
93705         * lib/mbswidth.h (PARAMS): Remove macro.
93706         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93707         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93708
93709         * lib/gcd.h (PARAMS): Remove macro.
93710         (gcd): Use ANSI C function declarations.
93711         * lib/gcd.c (gcd): Likewise.
93712
93713 2002-11-15  Bruno Haible  <bruno@clisp.org>
93714
93715         * lib/strcspn.c: Include <stddef.h>.
93716         (strcspn): Use ANSI C function declaration. Change return type to
93717         size_t. Use NULL.
93718         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93719         (strpbrk): Use NULL.
93720         * lib/strpbrk.h (PARAMS): Remove macro.
93721         (strpbrk): Use ANSI C function declaration.
93722         * lib/strstr.c: Don't include <sys/types.h>.
93723         * lib/strstr.h (PARAMS): Remove macro.
93724         (strstr): Use ANSI C function declarations.
93725
93726 2002-11-14  Karl Berry  <karl@gnu.org>
93727
93728         * config/mkinstalldirs: `do' on separate line, instead of
93729         `for var; do'.
93730
93731 2002-11-06  Bruno Haible  <bruno@clisp.org>
93732
93733         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93734         * lib/gcd.c (gcd): Likewise.
93735
93736 2002-11-05  Bruno Haible  <bruno@clisp.org>
93737
93738         * lib/gcd.h: New file, from gettext-0.11.5.
93739         * lib/gcd.c: New file, from gettext-0.11.5.
93740
93741 2002-11-05  Bruno Haible  <bruno@clisp.org>
93742
93743         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93744         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93745         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93746         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93747
93748         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93749         <libintl.h>.
93750         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93751         <libintl.h>.
93752
93753         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93754         * lib/human.c: Include gettext.h instead of <libintl.h>.
93755         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93756         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93757         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93758         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93759         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93760         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93761         (textdomain): Remove definition.
93762         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93763
93764         * lib/long-options.c: Remove include of <libintl.h> and definition of
93765         _.
93766         * lib/same.c: Remove include of <libintl.h> and definition of _.
93767
93768 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93769
93770         * lib/config.charset: A few additions for Solaris.
93771
93772 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93773
93774         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93775         * lib/localcharset.c (locale_charset): Declare as extern "C".
93776
93777 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93778
93779         * lib/config.charset: msdos in uk_UA uses CP1125.
93780
93781 2002-11-04  Bruno Haible  <bruno@clisp.org>
93782
93783         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93784         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93785         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93786         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93787         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93788
93789 2002-11-04  Bruno Haible  <bruno@clisp.org>
93790
93791         * lib/localcharset.c (locale_charset): Don't return an empty string.
93792
93793 2002-11-04  Bruno Haible  <bruno@clisp.org>
93794
93795         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93796         aliases.
93797
93798 2002-11-04  Bruno Haible  <bruno@clisp.org>
93799
93800         * lib/config.charset: Update for newest glibc. Add canonical names
93801         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93802
93803 2002-11-04  Bruno Haible  <bruno@clisp.org>
93804
93805         * lib/config.charset: Add support for NetBSD.
93806
93807 2002-11-04  Bruno Haible  <bruno@clisp.org>
93808
93809         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93810
93811 2002-11-01  Bruno Haible  <bruno@clisp.org>
93812
93813         * configure.in: Add AC_CONFIG_AUX_DIR call.
93814         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93815         test/Makefile.
93816         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93817
93818 2002-09-28  Karl Berry  <karl@gnu.org>
93819
93820         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93821         installed automake until the next release, since changes have been
93822         made.
93823
93824 2002-09-25  Karl Berry  <karl@gnu.org>
93825
93826         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93827         * lib/getopt*: copy from libc/posix.
93828         * lib/gettext.h: copy from gettext.
93829         * lib/.cppi-disable: add strdup.c, gettext.h.
93830
93831 2002-09-25  Karl Berry  <karl@gnu.org>
93832
93833         * config/srclist.txt: enable gettext.h check.
93834         * config/config.{guess,sub}: update from prep.
93835         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
93836                 from automake 1.6.3.
93837         See srclist*.
93838
93839 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
93840
93841         * regex.c (PATFETCH): Remove the translating fetch.
93842         (PATFETCH_RAW): Rename to PATFETCH.
93843         (set_image_of_range): New fun.
93844         (SET_RANGE_TABLE_WORK_AREA): Use it.
93845         (regex_compile): Don't translate the pattern chars so eagerly.
93846         Only do it when inserting an `exactn' bytecode or when handling
93847         a char-range.
93848         (mutually_exclusive_p): Avoid empty statement.
93849
93850 2002-07-06  Jim Meyering  <meyering@lucent.com>
93851
93852         * m4/README: Don't mention Makefile.am.in.
93853         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
93854
93855 2002-07-01  Jim Meyering  <meyering@lucent.com>
93856
93857         * lib/c-stack.c: Include sys/time.h.
93858         From Volker Borchert.
93859
93860 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93861
93862         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
93863
93864 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93865
93866         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
93867         New macro.  Use it uniformly instead of
93868         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
93869         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
93870         reported by Vin Shelton.
93871
93872 2002-06-22  Paul Eggert  <eggert@twinsun.com>
93873
93874         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
93875         Do not assume SA_SIGINFO behavior.
93876         Bug reported by Jim Meyering on NetBSD 1.5.2.
93877
93878 2002-06-22  Jim Meyering  <meyering@lucent.com>
93879
93880         * m4/c-stack.m4: New file, from diffutils-2.8.2.
93881         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
93882
93883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
93884         now that configure.ac uses AC_GNU_SOURCE.
93885         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
93886         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
93887
93888         Update to latest tools.  Suggestions from Paul Eggert.
93889         * m4/stdbool.m4: New file, from diffutils-2.8.2.
93890         * m4/gnu-source.m4: Update from diffutils-2.8.2.
93891         * m4/fnmatch.m4: Likewise.
93892         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
93893         to AC_HEADER_STDBOOL
93894
93895 2002-06-22  Jim Meyering  <meyering@lucent.com>
93896
93897         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
93898         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
93899
93900 2002-06-22  Jim Meyering  <meyering@lucent.com>
93901
93902         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
93903
93904         * lib/exitfail.c, exitfail.h: Likewise.
93905         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
93906
93907         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
93908         of fnmatch.h.
93909         (EXTRA_DIST): Add fnmatch_loop.c.
93910         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
93911
93912         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
93913         * lib/fnmatch.c: Update from diffutils-2.8.2.
93914         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
93915         * lib/fnmatch.h: Remove file.
93916
93917 2002-06-21  Jim Meyering  <meyering@lucent.com>
93918
93919         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
93920         * m4/mbrtowc.m4: Likewise.
93921
93922         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
93923         * m4/mbswidth.m4: Reflect name change:
93924         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
93925         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93926
93927         * m4/lib-link.m4: Update from gettext-0.11.2.
93928         * m4/gettext.m4: Likewise.
93929
93930         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
93931         From Alfred M. Szmidt.
93932
93933 2002-06-18  Paul Eggert  <eggert@twinsun.com>
93934
93935         * lib/file-type.h: Report an error if neither S_ISREG nor
93936         S_IFREG is defined, instead of using a test specific to glibc
93937         2.2.  This should be safe, since POSIX requires S_ISREG and
93938         Unix Version 7 had S_IFREG.  We don't need to check for
93939         <sys/types.h> since we don't use any symbols that it defines.
93940
93941 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
93942
93943         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
93944         $@-t, so that each temporary file name is unique and valid in the first
93945         8 characters, for operation under DOS.
93946
93947 2002-06-15  Paul Eggert  <eggert@twinsun.com>
93948
93949         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
93950
93951 2002-06-15  Jim Meyering  <meyering@lucent.com>
93952
93953         Work even with DJGPP 2.03, which lacks support for symlinks.
93954         From Richard Dawe.
93955         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
93956         is defined.
93957         * lib/lchown.c (S_ISLNK): Likewise.
93958
93959 2002-06-15  Jim Meyering  <meyering@lucent.com>
93960
93961         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
93962         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
93963         have been included before this file.
93964
93965 2002-06-14  Jim Meyering  <meyering@lucent.com>
93966
93967         * lib/file-type.h: Use the version from diffutils-2.8.2.
93968         * lib/file-type.c: Likewise.
93969
93970 2002-06-07  Jim Meyering  <meyering@lucent.com>
93971
93972         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
93973         They're needed at least for NetBSD 1.5.2.
93974         ($statxfs_includes): Include those same headers.
93975         ($statxfs_includes): Include sys/vfs.h if available.
93976         ($statxfs_includes): Likewise for sys/statvfs.h.
93977         Check for the following members in both structs statfs and statvfs:
93978         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93979
93980 2002-06-01  Jim Meyering  <meyering@lucent.com>
93981
93982         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93983         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93984
93985 2002-05-28  Jim Meyering  <meyering@lucent.com>
93986
93987         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93988         Reported by Volker Borchert.
93989
93990 2002-05-27  Jim Meyering  <meyering@lucent.com>
93991
93992         Fix a problem seen only on nonconforming systems whereby ls.c's
93993         use of localtime, and then of gettimeofday would cause trouble:
93994         the localtime call used to initialize rpl_gettimeofday's save
93995         mechanism would clobber ls's current local time information so
93996         that in any long listing the first file would always be listed
93997         with date 1970-01-01.  Analysis by Volker Borchert.
93998
93999         * lib/gettimeofday.c (localtime): Undefine.
94000         (rpl_localtime): New function.
94001
94002 2002-05-27  Jim Meyering  <meyering@lucent.com>
94003
94004         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94005         localtime.
94006
94007         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94008         use the replacement function; it wouldn't resolve at link time.
94009         Reported by Volker Borchert.
94010
94011 2002-05-22  Jim Meyering  <meyering@lucent.com>
94012
94013         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94014         file-type.h.
94015         * lib/file-type.h: New file.
94016         * lib/file-type.c (file_type): New file/function.  Extracted from
94017         diffutils.
94018
94019 2002-04-30  Jim Meyering  <meyering@lucent.com>
94020
94021         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94022
94023 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94024
94025         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94026
94027 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94028
94029         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94030         Do not check for alloca.h (no longer used) or stdbool.h (was never
94031         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94032
94033 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94034
94035         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94036
94037 2002-04-29  Jim Meyering  <meyering@lucent.com>
94038
94039         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94040         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94041         Use AC_FUNC_STRNLEN here instead.
94042
94043         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94044         With autoconf-2.53a, it's part of AC_PROG_CC.
94045
94046 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94047
94048         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94049         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94050
94051 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94052
94053         * lib/sig2str.h, lib/sig2str.c: New files.
94054         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94055
94056 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94057
94058         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94059         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94060         of 127, since 64 is the largest conceivable number for ancient
94061         nonstandard hosts.
94062         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94063
94064 2002-04-28  Jim Meyering  <meyering@lucent.com>
94065
94066         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94067
94068 2002-04-24  Jim Meyering  <meyering@lucent.com>
94069
94070         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94071         (jm_PREREQ): Use it.
94072
94073         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94074         mach/mach.h fcntl.h.
94075         Check for this function: setlocale.
94076
94077 2002-04-24  Jim Meyering  <meyering@lucent.com>
94078
94079         * lib/gettext.h: New file, from Gettext.
94080         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94081         (libfetish_a_SOURCES): Add gettext.h.
94082
94083 2002-04-16  Jim Meyering  <meyering@lucent.com>
94084
94085         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94086         ut_pid, ut_id, ut_exit.
94087
94088 2002-04-16  Jim Meyering  <meyering@lucent.com>
94089
94090         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94091         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94092         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94093
94094 2002-04-12  Jim Meyering  <meyering@lucent.com>
94095
94096         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94097         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94098         existence of the getmntinfo function.  Needed for Darwin 5.3.
94099
94100         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94101         This is necessary at least on Darwin 5.3.
94102
94103         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94104         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94105         strnlen.o in the library, and that makes some versions of ranlib
94106         object.
94107
94108 2002-04-12  Jim Meyering  <meyering@lucent.com>
94109
94110         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94111
94112 2002-04-09  Jim Meyering  <meyering@lucent.com>
94113
94114         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94115         to be more precise.  Rather than saying we're checking whether the
94116         function `works', say what we're testing.
94117         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94118         Reported by Bruno Haible.
94119
94120 2002-03-10  Jim Meyering  <meyering@lucent.com>
94121
94122         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94123         Suggestion from Santiago Vila.
94124
94125 2002-03-08  Jim Meyering  <meyering@lucent.com>
94126
94127         * lib/rename.c: Mention that this wrapper is needed also on
94128         mips-dec-ultrix4.4 systems.
94129
94130 2002-03-02  Jim Meyering  <meyering@lucent.com>
94131
94132         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94133         not HAVE_CLOCK_SETTIME.
94134
94135 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94136
94137         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94138         Check for clock_settime.
94139
94140 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94141
94142         * lib/nanosleep.h: Rename to....
94143         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94144
94145         * lib/gettime.c: New file.
94146         * lib/settime.c: New file.
94147         * lib/stime.c: Remove.
94148
94149         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94150         timespec.h.  Remove nanosleep.h.
94151
94152 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94153
94154         * m4/acl.m4: New file.
94155         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94156         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94157
94158 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94159
94160         * lib/acl.c, lib/acl.h: New files.
94161         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94162
94163 2002-02-24  Jim Meyering  <meyering@lucent.com>
94164
94165         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94166         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94167         cause trouble.  Reported by Nelson Beebe.
94168
94169 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94170
94171         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94172         compilers that don't know that xalloc_die never returns.
94173
94174 2002-02-20  Jim Meyering  <meyering@lucent.com>
94175
94176         * lib/getdate.c: Regenerate using bison-1.33.
94177
94178 2002-02-17  Jim Meyering  <meyering@lucent.com>
94179
94180         * config/config.guess (main): Don't use `head -1'; it's no longer
94181         portable. Use `sed 1q' instead.
94182
94183 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94184
94185         * m4/codeset.m4: Upgrade to gettext-0.11.
94186         * m4/gettext.m4: Upgrade to gettext-0.11.
94187         * m4/glibc21.m4: Upgrade to gettext-0.11.
94188         * m4/iconv.m4: Upgrade to gettext-0.11.
94189         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94190         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94191         * m4/lib-ld.m4: New file, from gettext-0.11.
94192         * m4/lib-link.m4: New file, from gettext-0.11.
94193         * m4/lib-prefix.m4: New file, from gettext-0.11.
94194         * m4/progtest.m4: Upgrade to gettext-0.11.
94195
94196 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94197
94198         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94199         (jm_PREREQ): Use it.
94200
94201 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94202
94203         * lib/posixver.c, lib/posixver.h: New files.
94204         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94205
94206 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94207             Bruno Haible  <bruno@clisp.org>
94208
94209         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94210         (fwrite_success_callback): New declaration.
94211         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94212         print_unicode_char. Call failure callback instead of error.
94213         (fwrite_success_callback): New function.
94214         (exit_failure_callback): New function.
94215         (fallback_failure_callback): New function.
94216         (print_unicode_char): Call unicode_to_mb.
94217
94218 2002-01-26  Jim Meyering  <meyering@lucent.com>
94219
94220         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94221         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94222
94223 2002-01-26  Jim Meyering  <meyering@lucent.com>
94224
94225         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94226
94227 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94228
94229         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94230
94231 2002-01-22  Jim Meyering  <meyering@lucent.com>
94232
94233         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94234         Otherwise, some versions of automake would omit the rule that makes
94235         Makefile from Makefile.in.
94236
94237 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94238
94239         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94240         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94241         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94242         (memcoll): Set errno to zero if there is no error.
94243
94244         * lib/quotearg.c (quotearg_buffer_restyled):
94245         Fix bug with quoting buffers containing NUL when backslashing escapes.
94246         This bug was exposed by the other changes in this patch.
94247         (quotearg_n_options): New arg ARGSIZE.
94248         All callers changed.
94249         (quoting_options_from_style): New function.
94250         (quotearg_n_style): Use it.
94251         (quotearg_n_style_mem): New function.
94252
94253         * lib/quotearg.h (quotearg_n_style_mem): New function.
94254
94255 2002-01-19  Jim Meyering  <meyering@lucent.com>
94256
94257         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94258         Remove useless quotes: DF_PROG="df".
94259         * m4/strnlen.m4: New file.
94260
94261 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94262
94263         * lib/backupfile.c (ISDIGIT): Comment fix.
94264         * lib/getdate.y (ISDIGIT): Likewise.
94265         * lib/posixtm.c (ISDIGIT, year): Likewise.
94266         * lib/strverscmp.c (ISDIGIT): Likewise.
94267         * lib/userspec.c (ISDIGIT): Likewise.
94268
94269 2002-01-16  Jim Meyering  <meyering@lucent.com>
94270
94271         * lib/getdate.y: Add three semicolons, each just before a closing
94272         brace. Bison (as of version 1.31) no longer papers over that mistake.
94273
94274 2002-01-05  Jim Meyering  <meyering@lucent.com>
94275
94276         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94277
94278 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94279
94280         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94281         not silently exit merely because the output buffer happens to
94282         have nothing pending.
94283
94284 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94285
94286         See the big note in ../ChangeLog.
94287         * lib/human.c (suffixes): Prefer K to k for 1024.
94288         (generate_suffix_backwards): New function.
94289         (human_readable_inexact): Use it.
94290         * lib/xstrtol.c (__xstrtol): If there is no number but there
94291         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94292         Accept 'K' as well as 'k'.
94293
94294 2001-12-15  Jim Meyering  <meyering@lucent.com>
94295
94296         * lib/regex.h (__restrict_arr): Update from libc.
94297
94298         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94299         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94300         (STREQ): Define.
94301
94302 2001-12-14  Jim Meyering  <meyering@lucent.com>
94303
94304         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94305         Suggestion from Bruno Haible.
94306
94307 2001-12-10  Jim Meyering  <meyering@lucent.com>
94308
94309         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94310         xrealloc, Instead, include "xalloc.h".
94311         (initbuffer): Don't cast xmalloc return value to char*.
94312         (readline): Reword comment.
94313         Don't cast xrealloc return value to char*
94314         Return NULL, not 0.
94315
94316 2001-12-09  Jim Meyering  <meyering@lucent.com>
94317
94318         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94319         about `signed and unsigned type in conditional expression'.
94320         * lib/posixtm.c (posix_time_parse): Likewise.
94321
94322         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94323
94324         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94325         to avoid a pedantic warning.
94326
94327         * lib/getstr.c: Don't include assert.h.
94328         (getstr): Remove warning-evoking assertions.
94329         Return -1 if offset parameter is out of bounds.
94330         Change the type of a local from int to size_t.
94331
94332         * lib/strftime.c (my_strftime_localtime_r): Include this function
94333         definition in the `#if ! HAVE_TM_GMTOFF' block.
94334
94335         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94336         Include xalloc.h instead.
94337
94338 2001-12-02  Jim Meyering  <meyering@lucent.com>
94339
94340         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94341         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94342         included.
94343
94344         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94345         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94346
94347 2001-11-30  Akim Demaille  <akim@epita.fr>
94348
94349         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94350         before being defined.
94351
94352 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94353
94354         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94355         First arg is int, not unsigned.
94356         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94357         (SIZE_MAX, UINT_MAX): New macros.
94358         (quotearg_n_options): Abort if N is negative.
94359         Avoid overflow check on hosts where size_t is 64 bits and int
94360         is 32 bits, as overflow is impossible there.
94361         Fix off-by-one typo that caused unnecessary reallocation.
94362
94363 2001-11-27  Jim Meyering  <meyering@lucent.com>
94364
94365         * lib/tempname.c: Merge with version from libc.
94366         * lib/regex.c: Likewise.
94367
94368         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94369         systems for which STDC_HEADERS is 0, it was not included, resulting in
94370         a warning about an integer-to-pointer conversion problem with getenv.
94371         Reported by Volker Borchert.
94372
94373 2001-11-26  Jim Meyering  <meyering@lucent.com>
94374
94375         * lib/gtod.h: Remove file.
94376         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94377         * lib/gettimeofday.c: Don't include gtod.h.
94378         (GTOD_init): Remove function.
94379         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94380         Suggestion from Volker Borchert.
94381
94382 2001-11-23  Jim Meyering  <meyering@lucent.com>
94383
94384         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94385         it.
94386         * lib/hash.c (struct hash_table): Define it here instead.
94387
94388 2001-11-22  Jim Meyering  <meyering@lucent.com>
94389
94390         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94391
94392 2001-11-20  Jim Meyering  <meyering@lucent.com>
94393
94394         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94395         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94396
94397 2001-11-19  Jim Meyering  <meyering@lucent.com>
94398
94399         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94400         directory.  Use "conftestXXXXXX" as the template.
94401         Suggestion from Paul Eggert.
94402
94403         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94404         immediately, so the test doesn't mistakenly hit the max-open-files
94405         limit.
94406
94407 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94408
94409         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94410         (TEMPORARIES): New macro.
94411         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94412         removes an artificial limitation (e.g. HP-UX 10.20, where
94413         TMP_MAX is 17576).
94414
94415 2001-11-18  Jim Meyering  <meyering@lucent.com>
94416
94417         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94418
94419 2001-11-18  Jim Meyering  <meyering@lucent.com>
94420
94421         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94422         on SunOS 4.
94423
94424         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94425         files will be created before anything else.
94426
94427 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94428
94429         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94430         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94431
94432 2001-11-17  Jim Meyering  <meyering@lucent.com>
94433
94434         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94435         Prompted by a report from Bob Proulx.
94436
94437         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94438         Instead, require UTILS_FUNC_MKSTEMP.
94439
94440 2001-11-17  Jim Meyering  <meyering@lucent.com>
94441
94442         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94443         Now, that's done as part of AC_FUNC_STRTOD.
94444
94445 2001-11-17  Jim Meyering  <meyering@lucent.com>
94446
94447         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94448         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94449         rather than group writable.  Patch by Juan F. Codagnone.
94450
94451         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94452         xrealloc, Instead, include "xalloc.h".
94453
94454         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94455         Remove explicit declarations of xmalloc, xrealloc,
94456         and xstrdup.  Instead, include "xalloc.h".
94457
94458         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94459         unlocked-io.h.
94460         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94461         Likewise.
94462         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94463
94464         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94465         Reported by Padraig Brady.
94466
94467         * lib/mkstemp.c: #undef mkstemp.
94468         Include config.h.
94469         (rpl_mkstemp): Rename from mkstemp.
94470         Protoize.
94471
94472 2001-11-16  Jim Meyering  <meyering@lucent.com>
94473
94474         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94475         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94476         determine the amount of total physical memory, use pstat_getstatic.
94477         HPUX-11 doesn't define _SC_PHYS_PAGES.
94478         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94479         If sysconf couldn't be used to determine the amount of available
94480         physical memory, use both pstat_getstatic and pstat_getdynamic.
94481         Based on a patch from Bob Proulx.
94482
94483 2001-11-10  Jim Meyering  <meyering@lucent.com>
94484
94485         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94486         (jm_PREREQ): Use it.
94487
94488 2001-11-09  Jim Meyering  <meyering@lucent.com>
94489
94490         * m4/jm-macros.m4: Require autoconf-2.52f.
94491         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94492         Use these AC_-prefixed names, not the AM_-prefixed ones.
94493
94494         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94495
94496 2001-11-05  Jim Meyering  <meyering@lucent.com>
94497
94498         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94499
94500 2001-11-04  Jim Meyering  <meyering@lucent.com>
94501
94502         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94503         $DEFS.
94504
94505 2001-11-03  Jim Meyering  <meyering@lucent.com>
94506
94507         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94508         of AC_DEFUN.
94509
94510         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94511         know the name of the variable in the macro definition.
94512
94513 2001-11-03  Jim Meyering  <meyering@lucent.com>
94514
94515         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94516         in argmatch_to_argument call.
94517
94518         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94519         argument.
94520
94521         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94522         e.g., a fault due to an attempt to free a NULL pointer.
94523
94524 2001-11-01  Jim Meyering  <meyering@lucent.com>
94525
94526         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94527         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94528
94529 2001-11-01  Jim Meyering  <meyering@lucent.com>
94530
94531         * lib/dirfd.c, lib/dirfd.h: New files.
94532         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94533
94534         * lib/hash.c (hash_print) [TESTING]: Clean up.
94535
94536 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94537
94538         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94539         to avoid a warning if -Wall.
94540
94541 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94542
94543         * README: New file
94544         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94545         (per RMS's instructions, this is now the canonical source)
94546         * lgpl/, gpl/: New directories.
94547
94548 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94549
94550         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94551
94552 2001-10-21  Jim Meyering  <meyering@lucent.com>
94553
94554         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94555         this code would end up calling gettext even in packages built
94556         with --disable-nls.
94557         * lib/getopt.c (_): Likewise.
94558         * lib/regex.c (_): Likewise.
94559
94560 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94561
94562         * m4/error.m4 (jm_PREREQ_ERROR):
94563         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94564         AC_FUNC_STRERROR_R does that.
94565         Check for strerror declaration.
94566
94567         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94568         are supposed to have them these days.
94569         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94570         Merge changes from latest Autoconf CVS.
94571         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94572         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94573         POSIX decided to standardize on the int flavor of strerror_r.
94574
94575 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94576
94577         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94578         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94579         Use strerror_r that is only a macro, even if it is not a function.
94580         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94581         (private_strerror): Use prototypes, not old-style function definition.
94582         (print_errno_message): New function.
94583         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94584         char*-flavored one.
94585         (error_tail, error, error_at_line): Use it.
94586
94587 2001-10-11  Jim Meyering  <meyering@lucent.com>
94588
94589         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94590         and quote_n (1, ... to avoid clobbering a buffer.
94591
94592 2001-10-05  Jim Meyering  <meyering@lucent.com>
94593
94594         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94595         hash-pjw.h.
94596         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94597         * lib/hash-pjw.h: New file.
94598
94599 2001-09-30  Jim Meyering  <meyering@lucent.com>
94600
94601         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94602         `struct fsstat' has the `f_fstypename' member.
94603         Use that to define FS_TYPE, which is now used to make
94604         the getfsstat link test tighter.
94605
94606 2001-09-30  Jim Meyering  <meyering@lucent.com>
94607
94608         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94609         Include <sys/ucred.h>, for Apple Darwin.
94610         Include sys/mount.h and sys/fs_types.h only if available.
94611         (FS_TYPE): Define.
94612         (read_filesystem_list): Use FS_TYPE.
94613
94614 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94615
94616         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94617         a boolean context.
94618
94619 2001-09-29  Jim Meyering  <meyering@lucent.com>
94620
94621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94622         [one-argument getmntent function]): Include stdio.h before mntent.h.
94623         SunOS 4.1.x needs it for the declaration of `FILE'.
94624         Patch by Volker Borchert.
94625
94626         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94627         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94628         sys/fs_types.h, and make the link-test for getfsstat guard #include
94629         directives with appropriate #if HAVE_*_H tests so that we can
94630         detect getfsstat on Apple Darwin1.3.7 systems.
94631         Reported by Nelson Beebe.
94632         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94633
94634 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94635
94636         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94637         #defines strtoimax.  Also treat the other strto* functions
94638         like strtoimax.
94639
94640         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94641         Check for strtoul and strtoumax,
94642         as those declarations are made even in the signed case.
94643         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94644         Likewise, for strtol and strtoimax.
94645
94646 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94647
94648         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94649         #defines strtoimax.  Also treat the other strto* functions
94650         like strtoimax.
94651
94652         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94653         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94654         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94655
94656 2001-09-26  Jim Meyering  <meyering@lucent.com>
94657
94658         Most macros in unlocked-io.h had the wrong number of arguments.
94659         * lib/gen-uio: New script.
94660         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94661         * lib/unlocked-io.hin: Remove file.
94662         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94663         rather than trying to embed it here.
94664         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94665         Reported by Padraig Brady.
94666
94667 2001-09-25  Volker Borchert  <bt@teknon.de>
94668
94669         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94670         `result'.
94671
94672 2001-09-24  Jim Meyering  <meyering@lucent.com>
94673
94674         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94675
94676 2001-09-23  Jim Meyering  <meyering@lucent.com>
94677
94678         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94679         instead of the mere test for existence of mntent.h.  The latter
94680         would get a false-positive on AIX 3.4 systems.
94681         In the outer getmntent if-block, don't die if neither of the getmntent
94682         tests succeeds.  Instead, just fall through and continue with the
94683         remaining tests.
94684
94685 2001-09-23  Jim Meyering  <meyering@lucent.com>
94686
94687         * lib/mountlist.c: Remove useless parentheses in #if directives.
94688         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94689         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94690
94691 2001-09-22  Jim Meyering  <meyering@lucent.com>
94692
94693         * m4/gettext.m4: New file.  From gettext.
94694         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94695         * m4/progtest.m4: Likewise
94696         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94697         * m4/glibc21.m4: Likewise.
94698
94699         * m4/libintl.m4: Remove.  No longer used.
94700
94701 2001-09-22  Jim Meyering  <meyering@lucent.com>
94702
94703         * lib/localcharset.c: Update from latest gettext.
94704         * lib/config.charset: Likewise.
94705
94706 2001-09-20  Jim Meyering  <meyering@lucent.com>
94707
94708         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94709         strtoimax.
94710         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94711         strtoumax.
94712
94713 2001-09-20  Jim Meyering  <meyering@lucent.com>
94714
94715         * lib/xstrtol.c (strtoimax): Guard declaration with
94716         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94717         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94718         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94719         (strtoumax): Likewise, for completeness (it wasn't necessary).
94720
94721 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94722
94723         * lib/strtoimax.c (HAVE_LONG_LONG):
94724         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94725         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94726         to work around bug in IBM C compiler.
94727
94728 2001-09-17  Jim Meyering  <meyering@lucent.com>
94729
94730         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94731         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94732         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94733         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94734         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94735         whenever the right hand side need not be expanded by the shell.
94736
94737 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94738
94739         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94740         library.  It's not correct, as some older glibcs are buggy.
94741         fnmatch wasn't fixed until glibc 2.2.
94742
94743         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94744         special shell magic here.
94745
94746 2001-09-16  Jim Meyering  <meyering@lucent.com>
94747
94748         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94749         * m4/jm-macros.m4: Require it.
94750
94751 2001-09-16  Jim Meyering  <meyering@lucent.com>
94752
94753         * lib/mkdir.c: New file.
94754
94755 2001-09-15  Jim Meyering  <meyering@lucent.com>
94756
94757         * m4/jm-macros.m4: Check for help2man.
94758
94759 2001-09-11  Jim Meyering  <meyering@lucent.com>
94760
94761         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94762         The body, by Paul Eggert, was moved here from configure.in.
94763         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94764
94765 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94766
94767         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94768         (jm_PREREQ): Use it.
94769
94770 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94771
94772         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94773         Use ssize_t, not int, to store result of readlink.
94774         Check for ssize_t overflow as well as size_t overflow,
94775         as POSIX says the result of readlink is implementation-defined
94776         when ssize_t overflows.
94777         Remove unnecessary cast to char*.
94778         Use free+malloc instead of realloc, as the storage doesn't need
94779         to be preserved and it's clearer and can be more efficient that way.
94780         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94781         * lib/xreadlink.h (xreadlink): Update prototype.
94782
94783 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94784
94785         * lib/xgetcwd.c: Revert some of the previous change; intead,
94786         fix the HAVE_GETCWD_NULL code to behave more like the
94787         !HAVE_GETCWD_NULL code used to.
94788
94789         Include "xalloc.h".
94790         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94791         invoke xalloc_die.
94792
94793 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94794
94795         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94796         sys/param.h, as pathmax.h includes them.
94797
94798 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94799
94800         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94801         (jm_PREREQ_XGETCWD): New macro.
94802
94803         * m4/getcwd.m4: New file.
94804
94805 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94806
94807         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94808         like the HAVE_GETCWD_NULL code.
94809         Include pathmax.h if not HAVE_GETCWD.
94810         Do not include xalloc.h.
94811         (INITIAL_BUFFER_SIZE): New symbol.
94812         Do not use xmalloc / xrealloc, since the caller is responsible for
94813         handling errors.  Preserve errno around `free' during failure.
94814         Do not overrun buffer when using getwd.
94815
94816 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94817
94818         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94819         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94820         getcwd (NULL, 0).
94821
94822 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94823
94824         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94825         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94826         spotted by Jim Meyering.
94827
94828 2001-09-03  Jim Meyering  <meyering@lucent.com>
94829
94830         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94831         failure.
94832
94833 2001-09-02  Jim Meyering  <meyering@lucent.com>
94834
94835         * lib/error.c: Update from GNU libc.
94836
94837 2001-09-01  Jim Meyering  <meyering@lucent.com>
94838
94839         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
94840         Used by df.
94841
94842 2001-09-01  Jim Meyering  <meyering@lucent.com>
94843
94844         * lib/xreadlink.c: New file.
94845         * lib/xreadlink.h: New file.
94846         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
94847         xreadlink.h.
94848
94849         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
94850         doesn't conflict with sparc Solaris 7's definition in
94851         /usr/include/sys/int_types.h.
94852
94853         * lib/exclude.c: Use `""', not `<>' to #include non-system header
94854         files.
94855         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
94856         and strncasecmp as r-values.  Unixware didn't have declarations.
94857
94858 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94859
94860         * lib/xstrtol.h: Add copyright notice.
94861         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
94862         LONGINT_INVALID_SUFFIX_CHAR.
94863
94864 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94865
94866         * lib/xstrtol.c (strtoimax): New decl.
94867
94868 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94869
94870         * lib/xgetcwd.c: Don't include pathmax.h.
94871         Include stdlib.h and unistd.h if available.
94872         Include xalloc.h.
94873         (xmalloc, xstrdup, free): Remove decls.
94874         (xgetcwd): Don't assume sizes fit in unsigned.
94875         Check for overflow when computing sizes.
94876         Simplify reallocation code.
94877
94878 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94879
94880         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
94881         a directory's st_size can have an arbitrary value, so the old
94882         usage could waste an arbitrary amount of memory.  All uses
94883         changed.
94884         * lib/savedir.h: Update prototype.
94885
94886 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94887
94888         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
94889
94890         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
94891         old strtoimax.c.
94892
94893         Also, make the following further changes to make this file's
94894         configuration more similar to that of strtol.c:
94895         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
94896         (strtoumax, uintmax_t, strtoull, strtol): Remove.
94897         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
94898         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
94899         changed to signed values.
94900
94901         And make the following changes as well:
94902         Fix copyright notice, as 1999 was missing.
94903         (verify): New macro.
94904         (strtoimax): Check sizes at compile-time, not run-time.
94905         Prefer strtol to strtoll if both work.
94906         (main): Remove; it was not that useful and was a pain to maintain.
94907
94908         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
94909
94910 2001-08-31  Jim Meyering  <meyering@lucent.com>
94911
94912         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
94913         Use an initial, malloc'd, buffer of length 128 rather than
94914         a statically allocated one of length 1024.
94915
94916 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94917
94918         Simplify code, partly by assuming autoconf 2.52 semantics.
94919
94920         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
94921
94922         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
94923         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
94924         All uses removed.
94925         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
94926         Move AC_REQUIRE to next-to-top level, to avoid confusion.
94927         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
94928         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
94929         jm_AC_HEADER_INTTYPES_H.
94930         * m4/jm-macros.m4 (jm_MACROS): Likewise.
94931
94932         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
94933
94934         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94935         Quote first arg of AC_DEFUN.
94936         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
94937         since they are needed to parse the include file even if we need
94938         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
94939         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
94940         but with opposite signedness.
94941
94942 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94943
94944         Merge 'exclude' changes from tar 1.13.22.
94945         This fixes one or two unlikely storage allocation overflow bugs,
94946         but doesn't change user-visible behavior otherwise.
94947
94948 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94949
94950         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
94951         (jm_PREREQ_EXCLUDE): New macro.
94952
94953 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94954
94955         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
94956         tm to be declared.
94957
94958 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94959
94960         * lib/hash.c: Remove '2001' from copyright notice.
94961
94962 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94963
94964         * lib/full-write.h: New file.
94965         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
94966         * lib/full-write.c: Correct credits, as cccp.c no longer
94967         exists and anyway it was so heavily changed from the old cccp
94968         code as to be unrecognizable.  Include full-write.h.
94969         (full_write): Return size_t, with short writes meaning failure.
94970         All callers changed.  This fixes a bug with large buffers
94971         on 64-bit hosts.
94972         * lib/utime.c: Include full-write.h.
94973
94974 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94975
94976         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94977         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94978         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94979         Include if available.
94980         (<xalloc.h>): Include
94981         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94982         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94983         collide with FNM macros.
94984         (struct patopts): New struct.
94985         (struct exclude): Use it, as exclude patterns now come with options.
94986         (new_exclude): Support above changes.
94987         (new_exclude, add_exclude_file):
94988         Initial size must now be a power of two to simplify overflow checking.
94989         (free_exclude, fnmatch_no_wildcards): New function.
94990         (excluded_filename): No longer requires options arg, as the options
94991         are determined by add_exclude.  Now returns bool, not int.
94992         (excluded_filename, add_exclude):
94993         Add support for the fancy new exclusion options.
94994         (add_exclude, add_exclude_file): Now takes int options arg.
94995         Check for arithmetic overflow when computing sizes.
94996         (add_exclude_file): xrealloc might modify errno, so don't
94997         realloc until after errno might be used.
94998
94999         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95000         New macros.
95001         (free_exclude): New decl.
95002         (add_exclude, add_exclude_file): Now takes int options arg.
95003         (excluded_filename): No longer requires options arg, as the options
95004         are determined by add_exclude.  Now returns bool, not int.
95005
95006 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95007
95008         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95009
95010 2001-08-27  Jim Meyering  <meyering@lucent.com>
95011
95012         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95013
95014         * lib/version-etc.c (N_): Remove definition.
95015         Revert most of last change.
95016         Instead, simply don't mark the `Copyright...' string for translation.
95017         Based on advice from Paul Eggert.
95018
95019         * lib/strtoxmax.c: Tweak comment.
95020
95021 2001-08-26  Jim Meyering  <meyering@lucent.com>
95022
95023         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95024
95025         * m4/xstrtoimax.m4: New file.
95026         * m4/xstrtoumax.m4: Add comments explaining why we
95027         AC_REPLACE_FUNCS(strtol).
95028
95029 2001-08-26  Jim Meyering  <meyering@lucent.com>
95030
95031         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95032         of copyright with `%s' so translators don't get an untranslated
95033         message in 2002.
95034         (COPYRIGHT_YEAR): Define.
95035         (version_etc): Use fprintf rather than fputs.
95036         Suggestion from Ulrich Drepper.
95037
95038         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95039
95040         * lib/strtoll.c: New file, from GNU libc.
95041         * lib/xstrtoimax.c: New file.
95042
95043         * lib/xstrtol.h: Add xstrtoimax.
95044         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95045         * lib/strtoimax.c: New file.  Likewise, but first define
95046         STRTOUXMAX_SIGNED.
95047
95048         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95049         ...
95050         * lib/strtoxmax.c: ... then renamed to this.
95051
95052 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95053
95054         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95055         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95056         (jm_AC_TYPE_INTMAX_T): New macro.
95057         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95058
95059         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95060
95061         * m4/longlong.m4: Renamed from ulonglong.m4.
95062         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95063         * m4/uintmax_t.m4: Removed.
95064
95065 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95066
95067         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95068         Port to Solaris 8, where 'sed' requires a space after the 'r'
95069         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95070         Redirect output to $tmp just once.
95071
95072 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95073
95074         * lib/addext.c (<errno.h>): Include.
95075         (errno): Declare if not defined.
95076         (addext): Work correctly when pathconf returns -1 and leaves
95077         errno alone because there is no limit.  Also, work even if
95078         pathconf returns a value greater than SIZE_MAX.
95079
95080 2001-08-12  Jim Meyering  <meyering@lucent.com>
95081
95082         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95083         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95084         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95085         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95086         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95087         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95088         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95089         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95090         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95091         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95092         utime.m4, utimes.m4, xstrtoumax.m4:
95093         Quote the first argument in each use of AC_DEFUN.
95094
95095 2001-08-12  Jim Meyering  <meyering@lucent.com>
95096
95097         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95098         Simply `return getcwd (NULL, 0);'.
95099         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95100         Use 1300 as initial value for length, not PATH_MAX.
95101
95102         * lib/pathmax.h: Clean up cpp syntax.
95103
95104 2001-08-12  Jim Meyering  <meyering@lucent.com>
95105
95106         * lib/gettimeofday.c: New file.
95107         * lib/gtod.h: New file.
95108         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95109
95110 2001-08-05  Jim Meyering  <meyering@lucent.com>
95111
95112         * m4/jm-macros.m4: Require autoconf-2.52.
95113
95114 2001-08-04  Jim Meyering  <meyering@lucent.com>
95115
95116         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95117         stmt, to get in sync with glibc.
95118
95119 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95120
95121         The following changes are from gettext 0.10.39 as maintained by
95122         Bruno Haible.
95123
95124         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95125         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95126         with inverted sense.  All uses changed.
95127
95128         * lib/mbswidth.c: Don't include <limits.h>.
95129         Include <stdlib.h> and <string.h> unconditionally.
95130         (iswcntrl, mbsinit, ISCNTRL): New macros.
95131         (mbsnwidth): Use K&R style function declarations.
95132         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95133         can optimize it when MB_CUR_MAX == 1.
95134         The width of control characters is zero, not 1.
95135
95136 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95137
95138         The following changes are from gettext 0.10.39 as maintained by
95139         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95140
95141         * m4/codeset.m4: Upgrade to serial AM1.
95142         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95143         all uses changed.  Quote first arg of AC_DEFUN.
95144         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95145
95146         * m4/iconv.m4: Upgrade to serial AM2.
95147         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95148         Add --with-libconv-prefix.
95149         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95150         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95151         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95152         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95153         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95154
95155         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95156         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95157         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95158         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95159         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95160         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95161         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95162         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95163         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95164
95165         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95166         string.h any more.
95167
95168         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95169         not the default value.
95170
95171         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95172         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95173         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95174         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95175         Also check for iswcntrl, used for wcwidth fallback.
95176         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95177         to Autoconf 2.13.
95178
95179 2001-08-03  Jim Meyering  <meyering@lucent.com>
95180
95181         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95182         as it was in the original.  Reported by Paul Eggert.
95183
95184 2001-07-16  Jim Meyering  <meyering@lucent.com>
95185
95186         * m4/gettimeofday.m4: New file.
95187         Prompted by a report from Bernhard Baehr.
95188
95189 2001-07-15  Jim Meyering  <meyering@lucent.com>
95190
95191         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95192         stuff. Now it's in ../Makefile.cfg.
95193
95194 2001-07-15  Jim Meyering  <meyering@lucent.com>
95195
95196         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95197         (BUILT_SOURCES): Add unlocked-io.h.
95198         (io_functions): Define.
95199         (unlocked-io.h): New rule.
95200         (DISTCLEANFILES): Add unlocked-io.h.
95201         (all-local): Depend on unlocked-io.h, to ensure it is created.
95202
95203         * lib/unlocked-io.hin: New file
95204
95205         * lib/regex.c: Update from glibc.
95206
95207 2001-07-05  Jim Meyering  <meyering@lucent.com>
95208
95209         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95210         recommendation.
95211         (libfetish_a_SOURCES): Put all .h files here instead.
95212         Remove a thus-exposed (better checks in automake) duplicate and
95213         two unnecessary .h files.
95214
95215 2001-07-04  Jim Meyering  <meyering@lucent.com>
95216
95217         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95218         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95219         distcheck failure.
95220
95221 2001-07-02  Jim Meyering  <meyering@lucent.com>
95222
95223         The following changes were prompted by suggestions from Bruno Haible.
95224
95225         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95226         is now generated.
95227         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95228         definition of EXTRA_DIST.
95229         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95230         ensure that the generated file is created/updated whenever the list
95231         of $(unlocked_functions) is changed.
95232         (jm-glibc-io.m4): New rule.
95233         (unlocked-io.h): New rule -- currently unused.
95234
95235 2001-06-24  Jim Meyering  <meyering@lucent.com>
95236
95237         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95238         unmatched right bracket, rather than kludging it with an extra,
95239         falsely-matching quote in a comment.  Patch by Akim Demaille.
95240
95241 2001-06-11  Jim Meyering  <meyering@lucent.com>
95242
95243         * lib/regex.c: Update from GNU libc.
95244
95245 2001-05-27  Jim Meyering  <meyering@lucent.com>
95246
95247         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95248         Check for ut_type in struct utmp.
95249
95250 2001-05-27  Jim Meyering  <meyering@lucent.com>
95251
95252         * lib/readutmp.h (UT_TYPE): Define.
95253
95254 2001-05-24  Jim Meyering  <meyering@lucent.com>
95255
95256         * lib/argmatch.c: Include "quote.h".
95257         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95258         quote function.  Reported by Göran Uddeborg.
95259
95260 2001-05-22  Jim Meyering  <meyering@lucent.com>
95261
95262         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95263         now that we use the package-supplied version unconditionally.
95264         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95265
95266 2001-05-21  Jim Meyering  <meyering@lucent.com>
95267
95268         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95269         shell syntax errors.
95270
95271 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95272
95273         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95274
95275 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95276
95277         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95278         Don't bother to check library strftime, since
95279         we'll be using our own my_strftime function anyway.
95280         Define my_strftime instead of strftime.
95281
95282 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95283
95284         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95285         which is not yet declared.
95286
95287 2001-05-15  Jim Meyering  <meyering@lucent.com>
95288
95289         * m4/regex.m4: Use proper quoting so brackets appear in the test
95290         program.
95291         Reported by, and with help from, Bruno Haible.
95292
95293 2001-05-13  Jim Meyering  <meyering@lucent.com>
95294
95295         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95296         undefined.
95297
95298 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95299
95300         dirname code cleanup.  base_name now behaves more compatibly
95301         with POSIX basename when given file names that have trailing
95302         slashes, and similarly for dir_name.  Add new primitives
95303         base_len and dir_len.  Put the directory-name-related decls
95304         into dirname.h.
95305
95306         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95307         * lib/backupfile.c (base_name): Likewise.
95308         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95309         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95310         * lib/makepath.c (strip_trailing_slashes): Likewise.
95311         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95312         ISSLASH): Likewise.
95313         * lib/rename.c (strip_trailing_slashes): Likewise.
95314         * lib/same.c (base_name): Likewise.
95315         * lib/stripslash.c (ISSLASH): Likewise.
95316
95317         * lib/addext.c: Include <dirname.h> after size_t is defined.
95318         * lib/backupfile.c: Likewise.
95319
95320         * lib/addext.c (addext): Use base_len to trim redundant
95321         trailing slashes instead of doing it ourselves.
95322         But do not trim the last slash if it is not redundant.
95323
95324         * lib/backupfile.c (find_backup_file_name,
95325         max_backup_version): Use base_len instead of rolling it ourselves.
95326         Handle the case of "" and (on DOS) "C:" correctly.
95327
95328         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95329         needed. Include <string.h>, <dirname.h>.
95330         (base_name): Allow file names ending in slashes, other than names
95331         that are all slashes.  In this case, return the basename followed
95332         by the slashes.  This is more general, and can be used in places
95333         where the original base_name purposely had an assertion failure.
95334         (base_len): New function.
95335
95336         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95337         Do not include <assert.h>; no longer needed.
95338         Include xalloc.h.
95339         (memrchr): Remove decl.
95340         (dir_name_r): Remove.
95341         (dir_len): Renamed from dirlen.  All callers changed.
95342         Rewrite in terms of base_name, for simplicity and consistency.
95343         (dir_name): Never return NULL.  All callers changed.
95344         Do not include <stdlib.h> in test program; no longer needed.
95345         return 0; is fine for test program.
95346
95347         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95348         New macros.
95349         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95350
95351         * lib/path-concat.c (path_concat): Use base_len to compute
95352         base length, not strlen; this means we cannot rely on memcpy
95353         to null-terminate.
95354
95355         * lib/same.c (STREQ): Remove.
95356         (same_name): Handle the case where the basename ends in trailing '/'.
95357
95358         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95359         a slash was stripped.  Do not strip the last slash after a
95360         file system prefix.
95361
95362 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95363
95364         * lib/Makefile.am (libfetish_a_SOURCES):
95365         Add strftime.c, since we now compile it on all hosts.
95366
95367         * lib/strftime.c (my_strftime):
95368         Define to nstrftime if emacs, but only if my_strftime is not defined.
95369         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95370         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95371         Add one more extra argument: a nanoseconds value.
95372         All uses changed.
95373         (ns): New macro.
95374         (my_strftime function): Add %N format.
95375         (emacs_strftimeu): Renamed from emacs_strftime,
95376         with extra ut argument.
95377
95378 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95379
95380         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95381
95382 2001-04-21  Jim Meyering  <meyering@lucent.com>
95383
95384         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95385         doesn't interfere.
95386
95387 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95388
95389         * m4/ftruncate.m4: Check for chsize.
95390         Link with ftruncate.o unconditionally if ftruncate is missing.
95391         This was required when cross-compiling to i586-mingw32msvc.
95392
95393 2001-04-08  Jim Meyering  <meyering@lucent.com>
95394
95395         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95396         recomputed; that's necessary when the offset spans a DST transition.
95397         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95398
95399 2001-04-02  Jim Meyering  <meyering@lucent.com>
95400
95401         * lib/regex.h, regex.c: Update from GNU libc.
95402
95403 2001-03-24  Jim Meyering  <meyering@lucent.com>
95404
95405         * m4/jm-macros.m4: Require autoconf-2.49d.
95406
95407 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95408
95409         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95410
95411 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95412
95413         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95414
95415 2001-03-17  Jim Meyering  <meyering@lucent.com>
95416
95417         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95418         now that the version in autoconf is equivalent.
95419         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95420
95421         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95422         Suggestion from Akim Demaille.
95423
95424         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95425         (jm_PREREQ_TEMPNAME): New function.
95426
95427 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95428
95429         * lib/tempname.c (uint64_t): Define to uintmax_t if
95430         not defined, and if UINT64_MAX is not defined.
95431         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95432         Reported by John David Anglin.
95433
95434 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95435
95436         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95437         resolve alias if codeset is empty.
95438         * lib/config.charset (BeOS): Use wildcard syntax.
95439
95440 2001-03-13  Jim Meyering  <meyering@lucent.com>
95441
95442         * lib/path-concat.c (path_concat)
95443         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95444         concatenating e.g., `C:' and `foo'.
95445         From Bruno Haible.
95446
95447 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95448
95449         * lib/localcharset.c (locale_charset): Don't use
95450         setlocale(LC_CTYPE,NULL). Don't return NULL.
95451         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95452
95453 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95454
95455         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95456         support for DOS/DJGPP.
95457
95458 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95459
95460         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95461         lacks mkstemp.  Compile our own tempname.c if we compile our own
95462         mkstemp.c, as mkstemp relies on tempname.
95463
95464 2001-03-01  Jim Meyering  <meyering@lucent.com>
95465
95466         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95467         AH_VERBATIM really does output its argument verbatim.
95468
95469 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95470
95471         * lib/Makefile.am (libfetish_a_SOURCES):
95472         Add dup-safer.c, fopen-safer.c.
95473         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95474
95475         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95476         * lib/unistd-safer.h: New files.
95477
95478 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95479
95480         The mkstemp replacement is taken from glibc 2.2.2, with some
95481         portability fixes for use outside glibc, as follows:
95482
95483         * lib/tempname.c (struct_stat64): New macro.
95484         (direxists, __gen_tempname): Use it.
95485         This avoids a portability problem with Solaris 8.
95486
95487         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95488         (<stddef.h>, <stdint.h>, <string.h>):
95489         Include only if STDC_HEADERS || _LIBC.
95490         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95491         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95492         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95493         (__set_errno): Define this macro if <errno.h> doesn't.
95494         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95495         Define these macros if <stdio.h> doesn't.
95496         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95497         Define these macros if <sys/stat.h>
95498         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95499         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95500         __xstat64): Define if not _LIBC.
95501         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95502         (__gen_tempname): Invoke gettimeofday only if
95503         HAVE_GETTIMEOFDAY || _LIBC;
95504         otherwise, fall back on plain "time".
95505         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95506
95507         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95508
95509         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95510
95511 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95512
95513         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95514
95515 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95516
95517         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95518         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95519         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95520         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95521
95522 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95523
95524         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95525         Remove workaround macros for hosts that have mbrtowc but not
95526         mbstate_t, as we now insist on proper declarations for both
95527         before using mbrtowc.
95528
95529 2001-02-17  Jim Meyering  <meyering@lucent.com>
95530
95531         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95532         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95533         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95534         UnixWare 7.1.1.
95535
95536         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95537         rather than AC_CACHE_VAL.
95538
95539 2001-02-17  Jim Meyering  <meyering@lucent.com>
95540
95541         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95542         around included file name.
95543
95544         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95545
95546         * lib/strftime.c: Update from GNU libc (the only changes were to
95547         comments).
95548
95549 2001-02-17  Jim Meyering  <meyering@lucent.com>
95550
95551         * lib/regex.c: Update from libc.
95552
95553 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95554
95555         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95556         clash.
95557
95558 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95559
95560         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95561         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95562         Reported by Mark Hounschell via Paul Eggert.
95563
95564 2001-02-07  Jim Meyering  <meyering@lucent.com>
95565
95566         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95567
95568 2001-02-05  Jim Meyering  <meyering@lucent.com>
95569
95570         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95571         it includes the patch required for `large file' support with at least
95572         HP-UX's 10.20 /bin/cc.
95573
95574 2001-02-03  Jim Meyering  <meyering@lucent.com>
95575
95576         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95577         AS_IF, now that it works once again (mysteriously).
95578         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95579
95580 2001-01-30  Jim Meyering  <meyering@lucent.com>
95581
95582         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95583         * m4/chown.m4: Rename conftestchown to conftest.chown.
95584         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95585         s/conftestdir2/conftest.d2/.
95586         * m4/utimes.m4: s/conftestdata/conftest.data/
95587         Inspired by Pavel Roskin's change in autoconf.
95588
95589 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95590
95591         * lib/config.charset: Update for FreeBSD 4.2.
95592
95593 2001-01-27  Jim Meyering  <meyering@lucent.com>
95594
95595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95596         a use of AS_IF.
95597         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95598
95599 2001-01-26  Jim Meyering  <meyering@lucent.com>
95600
95601         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95602         quotearg.c includes it.
95603
95604 2001-01-26  Jim Meyering  <meyering@lucent.com>
95605
95606         * lib/quotearg.c: Include stddef.h.
95607         * lib/quote.c: Include stddef.h.
95608         Reported by Axel Kittenberger.
95609
95610         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95611         line in double quotes so that it evokes a better diagnostic.
95612         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95613         Reported by Axel Kittenberger.
95614
95615 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95616
95617         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95618         as if it was a `charset'.
95619
95620 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95621
95622         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95623         has const.
95624
95625 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95626
95627         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95628         to avoid a warning.  Add back 'const' to inptr.
95629
95630 2001-01-20  Jim Meyering  <meyering@lucent.com>
95631
95632         Be sure that headers are checked before used in code compiled
95633         for the type checks.
95634         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95635         In place of that, invoke jm_CHECK_ALL_TYPES.
95636         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95637         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95638         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95639         The check for ssize_t was mistakenly run before the test for unistd.h.
95640
95641         The configure-time check for stdbool.h was missing.
95642         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95643         (jm_PREREQ_HASH): New function.
95644
95645 2001-01-17  Jim Meyering  <meyering@lucent.com>
95646
95647         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95648         for autoconf-2.49c.
95649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95650
95651 2001-01-16  Jim Meyering  <meyering@lucent.com>
95652
95653         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95654         From Bruno Haible.
95655
95656 2001-01-14  Jim Meyering  <meyering@lucent.com>
95657
95658         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95659         foo and bar.  Create conftestdir/ in the script, not in the C code.
95660         Remove directories in the script, not in the C code.
95661         Remove conftestdir{,2} before trying to create the directory.
95662         Make the entire configure script fail if the mkdir fails.
95663
95664 2001-01-14  Jim Meyering  <meyering@lucent.com>
95665
95666         * lib/rename.c: New file.  From Volker Borchert.
95667         Include stdlib.h, string.h or strings.h, and xalloc.h.
95668         Use strip_trailing_slashes rather than open-coding it.
95669
95670 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95671
95672         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95673
95674 2001-01-03  Jim Meyering  <meyering@lucent.com>
95675
95676         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95677         of local `inptr' to avoid warning with some system declarations of
95678         iconv.
95679
95680 2001-01-02  Volker Borchert  <bt@teknon.de>
95681
95682         * m4/rename.m4: New file.
95683         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95684
95685 2001-01-01  Jim Meyering  <meyering@lucent.com>
95686
95687         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95688         even on systems with utmpx.h.  It's necessary for the declaration of
95689         utmp's ut_user member.  Reported by Andreas Jaeger.
95690
95691         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95692         available. They are required for the declarations of getgrgid and
95693         getpwuid resp.
95694         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95695         Reported by Andreas Jaeger.
95696
95697 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95698
95699         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95700         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95701         so `make install' also works in VPATH builds.
95702
95703 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95704
95705         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95706         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95707         can be used in subdirectories.
95708
95709 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95710
95711         * lib/modechange.c: Do not assume that mode_t uses the
95712         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95713         the other-execute bit of FOO even if S_IXOTH != 1.
95714
95715         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95716         WOTH, XOTH, ALLM): New macros.
95717         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95718          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95719         Use them.
95720         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95721         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95722         (mode_compile):
95723         No need to use uintmax_t; unsigned long is long enough.
95724         Don't bother to get suffix since we don't use it.
95725
95726 2000-12-26  Jim Meyering  <meyering@lucent.com>
95727
95728         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95729         better with autoheader.
95730
95731 2000-12-24  Jim Meyering  <meyering@lucent.com>
95732
95733         * lib/hash.c (is_prime): Return explicit boolean values.
95734         (hash_get_first): Return NULL to appease Irix5.6's 89.
95735         Reported by Nelson Beebe.
95736
95737 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95738
95739         * lib/localcharset.c (locale_charset): Add support for Win32.
95740
95741 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95742
95743         * lib/physmem.h, lib/physmem.c: New files.
95744
95745         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95746         (noinst_HEADERS): Add physmem.h.
95747
95748         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95749         't' for compatibility with Solaris 8 sort.
95750
95751 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95752
95753         * lib/config.charset: Add support for BeOS.
95754
95755 2000-12-17  Jim Meyering  <meyering@lucent.com>
95756
95757         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95758         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95759
95760 2000-12-16  Jim Meyering  <meyering@lucent.com>
95761
95762         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95763         N and M) would have treated it like `chown N:N FILE'.
95764
95765         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95766
95767 2000-12-16  Jim Meyering  <meyering@lucent.com>
95768
95769         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95770         SHELLS_FILE to a file name that's useful on djgpp systems.
95771         Include stdlib.h.
95772         (ADDITIONAL_DEFAULT_SHELLS): Define.
95773         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95774         Based mostly on a patch from Prashant TR.
95775
95776 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95777
95778         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95779         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95780         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95781
95782 2000-12-08  Andreas Schwab  <schwab@suse.de>
95783
95784         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95785         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95786
95787 2000-12-07  Jim Meyering  <meyering@lucent.com>
95788
95789         * lib/stripslash.c (ISSLASH): Define.
95790         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95791         `/'.
95792         From Prashant TR.
95793
95794         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95795         (dir_name_r): Declare this function as static.
95796         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95797         manifest itself on a name containing a mix of slashes and
95798         backslashes.
95799         Make this function work with names starting with a DOS-style
95800         drive letter and colon prefix.
95801         (dir_name): Append `.' if necessary.
95802         Based mostly on patches from Prashant TR and Eli Zaretskii.
95803
95804         * lib/dirname.h (dir_name_r): Remove prototype.
95805
95806 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95807
95808         * m4/off_t-format.m4: Remove this file.
95809         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95810
95811 2000-12-06  Jim Meyering  <meyering@lucent.com>
95812
95813         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95814         replacement strtoull, we may well need the replacement strtoul, too.
95815         Check for declarations of strtoul and strtoull.
95816         Check for strtol.  Mainly as a cue to cause automake to include
95817         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95818         Check for limits.h -- strtol.c needs it.
95819
95820 2000-12-05  Jim Meyering  <meyering@lucent.com>
95821
95822         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95823
95824 2000-12-04  Jim Meyering  <meyering@lucent.com>
95825
95826         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95827         Also include memory.h, stdlib.h, unistd.h if appropriate.
95828         Reported by Andreas Jaeger (conflicting declaration of malloc).
95829
95830 2000-12-02  Jim Meyering  <meyering@lucent.com>
95831
95832         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
95833         * m4/jm-macros.m4 (jm_MACROS): require it.
95834
95835 2000-12-02  Jim Meyering  <meyering@lucent.com>
95836
95837         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
95838
95839 2000-12-01  Paul Eggert  <eggert@twinsun.com>
95840
95841         * lib/memrchr.c: Include <config.h> before any system include file.
95842
95843 2000-11-30  Jim Meyering  <meyering@lucent.com>
95844
95845         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
95846
95847 2000-11-30  Jim Meyering  <meyering@lucent.com>
95848
95849         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
95850
95851 2000-11-29  Paul Eggert  <eggert@twinsun.com>
95852
95853         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
95854
95855 2000-11-26  Jim Meyering  <meyering@lucent.com>
95856
95857         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
95858
95859 2000-11-22  Paul Eggert  <eggert@twinsun.com>
95860
95861         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
95862         size of (size_t) -1; it's not portable.
95863
95864 2000-11-17  Jim Meyering  <meyering@lucent.com>
95865
95866         * lib/strstr.c: Update from GNU libc.
95867
95868 2000-11-17  Akim Demaille  <akim@epita.fr>
95869
95870         * lib/obstack.h: Formatting changes.
95871         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
95872         prevent type checking.
95873         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
95874         cast the value to (void *): assigning a `foo *' to a `void *'
95875         variable is valid.
95876         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
95877
95878 2000-11-16  Jim Meyering  <meyering@lucent.com>
95879
95880         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
95881
95882 2000-11-11  Jim Meyering  <meyering@lucent.com>
95883
95884         * lib/error.c: Add a couple #includes, merging from GNU libc version.
95885
95886 2000-11-10  Jim Meyering  <meyering@lucent.com>
95887
95888         * lib/obstack.h: Update from GNU libc.
95889         * lib/obstack.c: Likewise.
95890
95891 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
95892
95893         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
95894
95895 2000-11-06  Paul Eggert  <eggert@twinsun.com>
95896
95897         * lib/getusershell.c (setusershell): Use rewind rather than
95898         fseek/fseeko, to avoid configuration hassles with fseeko.
95899         Don't bother opening SHELLS_FILE if shellstream is NULL;
95900         it's not necessary.
95901
95902 2000-11-05  Jim Meyering  <meyering@lucent.com>
95903
95904         * lib/makepath.h (make_dir): Declare.
95905         * lib/makepath.c (make_dir): Remove `static' attribute.
95906         Tweak a comment.
95907
95908 2000-11-04  Jim Meyering  <meyering@lucent.com>
95909
95910         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
95911
95912 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
95913
95914         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
95915         last one in a bucket, advance to the next bucket.
95916
95917 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
95918
95919         * lib/fnmatch.c: Do not comment out all the code if we are using
95920         the GNU C library, because in some cases we are replacing buggy
95921         code in the GNU C library itself.
95922
95923 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
95924
95925         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
95926         (regex_compile): Catch bogus \(\1\).
95927
95928 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95929
95930         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
95931         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
95932         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
95933
95934 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95935
95936         * lib/error.h, getline.h, modechange.h:
95937         Remove "2000" from Copyright line, as the file hasn't been
95938         changed this year other than in the copyright notice.
95939
95940         * lib/xalloc.h: Add "2000" to Copyright line, as this file
95941         was changed this year.
95942
95943 2000-10-29  Jim Meyering  <meyering@lucent.com>
95944
95945         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
95946         renaming.
95947         * m4/ls-mntd-fs.m4: Likewise
95948
95949 2000-10-29  Jim Meyering  <meyering@lucent.com>
95950
95951         * lib/xstat.in: Fix grammar in comment.
95952
95953 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
95954
95955         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
95956         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
95957         doesn't define __restrict_arr.
95958
95959 2000-10-28  Jim Meyering  <meyering@lucent.com>
95960
95961         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
95962         (jm_PREREQ_MEMCHR): New function.
95963
95964 2000-10-28  Jim Meyering  <meyering@lucent.com>
95965
95966         * lib/memchr.c: Update from libc.
95967         Adjust for portability:
95968         [HAVE_STDLIB_H]: Include stdlib.h.
95969         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
95970         Undef __memchr, too.
95971         [!weak_alias]: Define __memchr to memchr.
95972
95973         * lib/regex.c: Update from libc.
95974         * lib/regex.h: Likewise.
95975         * lib/getopt1.c: Likewise.
95976         * lib/memcmp.c: Likewise.
95977
95978         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95979         Avoid using fseek, when possible -- it's broken by design.
95980         Patch by Ulrich Drepper.
95981
95982 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95983
95984         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95985         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95986         Giving in to popular pressure to shut up the compiler with casts.
95987
95988 2000-10-26  Jim Meyering  <meyering@lucent.com>
95989
95990         * lib/strftime.c: Update from libc.
95991
95992 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95993
95994         * regex.c: More `unsigned char' -> `re_char' changes.
95995         Also change several `int' into `re_wchar_t'.
95996         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95997         (PUSH_FAILURE_POINTER): Don't cast any more.
95998         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95999         We want GCC to complain, since this piece of code makes
96000         re_match non-reentrant, which *should* be fixed.
96001         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96002         (EXTEND_BUFFER): Use RETALLOC.
96003         (SET_LIST_BIT): Don't cast.
96004         (re_wchar_t): New type.
96005         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96006         that those two functions will always properly return.
96007         (IMMEDIATE_QUIT_CHECK): Cast to void.
96008         (analyse_first): Use recursion rather than an explicit stack.
96009         (re_compile_fastmap): Can't fail anymore.
96010         (re_search_2): Don't check re_compile_fastmap for failure.
96011         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96012         Now also sets the new value (passed in a new argument).
96013         (re_match_2_internal): Use it.
96014         Also, use a new var `reg' of type size_t when looping through regs
96015         rather than reuse the inappropriate `mcnt'.
96016
96017 2000-10-25  Jim Meyering  <meyering@lucent.com>
96018
96019         * lib/obstack.c: Update from libc.
96020
96021 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96022
96023         * regex.c (regex_compile): Change the way of handling a range from
96024         a char less than 256 to a char not less than 256.
96025
96026 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96027
96028         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96029         NT-Emacs only.
96030         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96031         so that re_search functions only quit when callers expect them to.
96032
96033 2000-10-23  Jim Meyering  <meyering@lucent.com>
96034
96035         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96036         wrong.  That set_locale call must not have any side effects.
96037         From Paul Eggert.
96038
96039 2000-10-22  Jim Meyering  <meyering@lucent.com>
96040
96041         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96042         [CYCLIC]: Remove now-unused definition.
96043
96044         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96045         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96046         Suggestion from Ulrich Drepper.
96047
96048 2000-10-21  Jim Meyering  <meyering@lucent.com>
96049
96050         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96051         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96052         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96053
96054 2000-10-21  Jim Meyering  <meyering@lucent.com>
96055
96056         * lib/dirname.c (memrchr): Declare if necessary.
96057         (dir_name): Remove the restriction that there be no
96058         trailing slashes.  Now, this code skips past them, effectively
96059         ignoring them.
96060         [TEST_DIRNAME] (main): New unit tests.
96061
96062         * lib/memrchr.c: New file from GNU libc.
96063         Undef __memrchr, too.
96064         [!weak_alias]: Define __memrchr to memrchr.
96065         Guard weak_alias use with `#ifdef weak_alias'.
96066
96067 2000-10-21  Jim Meyering  <meyering@lucent.com>
96068
96069         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96070         (dir_name): Use dir_name_r.
96071         * lib/dirname.h (dir_name_r): Declare it.
96072
96073 2000-10-17  Jim Meyering  <meyering@lucent.com>
96074
96075         * lib/quote.h (PARAMS): Define and use.
96076         Reported by Akim Demaille.
96077
96078         * lib/getopt.c: Update from libc.
96079
96080 2000-10-16  Jim Meyering  <meyering@lucent.com>
96081
96082         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96083         setlocale.
96084         From Jan Fedak.
96085
96086 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96087
96088         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96089
96090 2000-09-25  Jim Meyering  <meyering@lucent.com>
96091
96092         * lib/md5.h (rol): Define (from GnuPG).
96093
96094         * lib/sha.c: Give credit (GnuPG) where due.
96095         (M): Use rol rather than open-coding it.
96096         Add a FIXME comment.
96097
96098 2000-09-21  Jim Meyering  <meyering@lucent.com>
96099
96100         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96101         Reported by Michael Stone.
96102
96103 2000-09-20  Jim Meyering  <meyering@lucent.com>
96104
96105         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96106         (noinst_HEADERS): Add sha.h.
96107         Based on code from Scott G. Miller and from GnuPG.
96108
96109 2000-09-18  Jim Meyering  <meyering@lucent.com>
96110
96111         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96112         LIBS. Otherwise, everyone ends up linking with -lelf for some
96113         configurations.
96114         Reported by Mike Stone.
96115
96116 2000-09-15  Jim Meyering  <meyering@lucent.com>
96117
96118         * lib/regex.c: Update from libc.
96119
96120 2000-09-10  Jim Meyering  <meyering@lucent.com>
96121
96122         * lib/getopt.c (_getopt_internal): Update from glibc.
96123
96124 2000-09-09  Jim Meyering  <meyering@lucent.com>
96125
96126         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96127         think it should be used as a general replacement for isascii.
96128         * lib/fnmatch.c: Likewise.
96129         * lib/mbswidth.c: Likewise
96130         * lib/regex.c: Likewise.
96131
96132         Don't use atoi.
96133         * lib/userspec.c: Include sys/param.h and limits.h.
96134         Include xstrtol.h.
96135         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96136         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96137         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96138         UID, GID.  Check range.
96139
96140 2000-09-06  Jim Meyering  <meyering@lucent.com>
96141
96142         * lib/getopt.c (_getopt_internal): Update from glibc.
96143
96144 2000-08-30  Jim Meyering  <meyering@lucent.com>
96145
96146         * lib/strftime.c: Merge in changes from GNU libc.
96147
96148 2000-08-26  Jim Meyering  <meyering@lucent.com>
96149
96150         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96151         * m4/fpending.m4: New file.
96152
96153 2000-08-26  Jim Meyering  <meyering@lucent.com>
96154
96155         * lib/closeout.c: Include "__fpending.h".
96156         (close_stdout_status): Return right away if there's nothing to flush.
96157
96158         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96159         * lib/__fpending.c: New file.
96160         * lib/__fpending.h: New file.
96161
96162 2000-08-20  Jim Meyering  <meyering@lucent.com>
96163
96164         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96165         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96166         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96167
96168 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96169
96170         Improve fileutils installation on systems where running
96171         programs (like install) can't be unlinked.
96172         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96173         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96174
96175 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96176
96177         Standardize on "memory exhausted" instead of "Memory exhausted"
96178         or "virtual memory exhausted".
96179         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96180         "virtual memory exhausted".
96181         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96182         our own message.
96183         * lib/userspec.c (parse_user_spec): Likewise.
96184         * lib/bumpalloc.h: comment fix
96185         * lib/same.c, userspec.c: Include xalloc.h.
96186
96187         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96188         not char *const and pointing to a constant array.
96189         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96190         (xrealloc): Comment fix.
96191
96192         * lib/userspec.c (parse_user_spec):
96193         Don't translate a message until just before returning,
96194         to avoid unnecessary translation.
96195
96196 2000-08-07  Jim Meyering  <meyering@lucent.com>
96197
96198         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96199         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96200         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96201         getgroups.c, gethostname.c, getopt.h, group-member.c,
96202         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96203         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96204         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96205         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96206         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96207         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96208         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96209         yesno.c: Back out Copyright date changes for each file with no change
96210         this year.  This eases coordination with other programs using the same
96211         source code modules.  From Paul Eggert.
96212
96213 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96214
96215         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96216         not char, for compatibility with glibc 2.1.3 strftime.c.
96217
96218 2000-08-03  Greg McGary  <greg@mcgary.org>
96219
96220         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96221         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96222         (EXTEND_BUFFER): Use them.
96223
96224 2000-08-01  Jim Meyering  <meyering@lucent.com>
96225
96226         * lib/dirname.c (ISSLASH): Define.
96227         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96228         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96229         both `\' and `/' may be use as path separators.
96230         Based on a patch from Prashant TR.
96231
96232 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96233
96234         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96235         slot vector a constant, since it might get modified.
96236
96237 2000-07-31  Jim Meyering  <meyering@lucent.com>
96238
96239         * lib/xmalloc.c: Use `virtual memory exhausted', not
96240         `Memory exhausted'.
96241         * lib/obstack.c (print_and_abort): Likewise.
96242
96243 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96244
96245         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96246         buffer, so that the caller can always quote one small
96247         component of a "memory exhausted" message in slot 0.
96248         From a suggestion by Jim Meyering.
96249
96250 2000-07-30  Jim Meyering  <meyering@lucent.com>
96251
96252         * lib/makepath.c (make_path): Quote the other instance, too.
96253
96254         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96255         (STATIC_BUF_SIZE): Define.
96256         (quotearg_n_options): Use only statically allocated storage when
96257         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96258         than STATIC_BUF_SIZE.
96259
96260 2000-07-29  Jim Meyering  <meyering@lucent.com>
96261
96262         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96263         * lib/dirname.c (dir_name): Likewise.
96264
96265         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96266         `/'.
96267
96268         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96269         (dir_name): Assert that there are no trailing slashes.
96270
96271 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96272
96273         * lib/mbswidth.h (mbswidth): Add a flags argument.
96274         (mbswidth): New declaration.
96275         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96276         * lib/mbswidth.c (mbswidth): Add a flags argument.
96277         (mbsnwidth): New function.
96278
96279 2000-07-24  Jim Meyering  <meyering@lucent.com>
96280
96281         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96282
96283 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96284
96285         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96286
96287 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96288
96289         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96290         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96291         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96292         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96293         invoke multibyte primitives.
96294
96295 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96296
96297         * lib/quotearg.c:
96298         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96299         so that mbstate_t is always defined.
96300
96301         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96302         be 1 in at least one GCC installation, and this configuration
96303         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96304         performance on hosts that have mbrtowc but have only unibyte
96305         locales, but I assume these hosts are rare.
96306
96307 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96308
96309         * lib/mbswidth.c (_XOPEN_SOURCE):
96310         Don't define; this causes problems on Solaris 7.
96311         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96312
96313 2000-07-23  Jim Meyering  <meyering@lucent.com>
96314
96315         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96316         too: getgrgid, getpwuid, getuid.
96317
96318 2000-07-23  Jim Meyering  <meyering@lucent.com>
96319
96320         * lib/basename.c (base_name): Add an assertion.
96321
96322 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96323
96324         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96325         shadow its mbsinit function.
96326
96327 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96328
96329         * lib/mbswidth.h: New file.
96330         * lib/mbswidth.c: New file.
96331         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96332         (noinst_HEADERS): Add mbswidth.h.
96333
96334 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96335
96336         * lib/config.charset: Add support for FreeBSD. Improve support for
96337         HP-UX and IRIX 6.
96338
96339 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96340
96341         * m4/mbswidth.m4: New file.
96342         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96343
96344 2000-07-15  Jim Meyering  <meyering@lucent.com>
96345
96346         * lib/makepath.c: Include quote.h.
96347         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96348         corresponding argument in a `quote (...)' call.
96349         Give better diagnostics.
96350
96351         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96352         (noinst_HEADERS): Add quote.h.
96353
96354         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96355         from tar's src/misc.c.
96356         * lib/quote.h: New file.  Prototypes for same.
96357
96358 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96359
96360         From a suggestion by Bruno Haible.
96361         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96362         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96363         to decide whether to define the BeOS workaround macro;
96364         this adjusts to the change to AC_MBSTATE_T.
96365
96366 2000-07-14  Jim Meyering  <meyering@lucent.com>
96367
96368         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96369         jm_AC_TYPE_UINTMAX_T.
96370
96371 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96372
96373         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96374
96375         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96376         quotearg_buffer_restyled): Add support for
96377         clocale_quoting_style.  Undo previous change to
96378         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96379         and "{RIGHT QUOTATION MARK}" msgids.
96380
96381 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96382
96383         From a suggestion by Bruno Haible.
96384         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96385         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96386         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96387         and mbstate_t, to a single-part test that simply defines mbstate_t.
96388         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96389         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96390
96391 2000-07-10  Jim Meyering  <meyering@lucent.com>
96392
96393         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96394
96395         * m4/gnu-source.m4: Output to confdefs.h directly.
96396         Suggestion from Akim Demaille.
96397
96398 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96399
96400         The old behavior of quoting `like this' doesn't look good with
96401         newer, ISO-style fonts.  See:
96402         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96403
96404         Instead, quote "like this" by default.  Let the translator
96405         tailor the locale-specific quoting behavior by providing
96406         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96407
96408         * lib/quotearg.c (N_): New macro.
96409         (gettext_default): New function.
96410         (quotearg_buffer_restyled): Use
96411         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96412         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96413
96414 2000-07-09  Jim Meyering  <meyering@lucent.com>
96415
96416         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96417         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96418
96419         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96420         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96421
96422 2000-07-09  Jim Meyering  <meyering@lucent.com>
96423
96424         * lib/Most files: Update copyright dates to include 2000.
96425
96426 2000-07-08  Jim Meyering  <meyering@lucent.com>
96427
96428         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96429         if not defined.
96430         (xgethostname): Remove now-unnecessary #ifdef.
96431         Move declaration of `err' into loop where it's used.
96432
96433 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96434         and Bruno Haible  <haible@clisp.cons.org>
96435
96436         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96437         only if the test for an object-type mbstate_t fails.  This
96438         prevents us from mistakenly reporting that mbstate_t is a
96439         system object type after we "#define mbstate_t int" to work
96440         around its lack.
96441
96442 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96443         and Bruno Haible  <haible@clisp.cons.org>
96444
96445         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96446
96447 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96448
96449         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96450         to strerror_r.
96451         Include <ctype.h> for use of isalpha.
96452
96453 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96454
96455         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96456         by allocating a larger buffer. Test the gethostname return value for
96457         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96458         returns an error and ENAMETOOLONG isn't defined.
96459
96460 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96461
96462         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96463         dimension.
96464
96465 2000-07-04  Jim Meyering  <meyering@lucent.com>
96466
96467         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96468         of the deprecated AC_CHECKING.
96469
96470 2000-07-04  Jim Meyering  <meyering@lucent.com>
96471
96472         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96473         Reported by Bruno Haible.
96474
96475 2000-07-04  Jim Meyering  <meyering@lucent.com>
96476
96477         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96478         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96479         lacks mbrtowc.
96480
96481 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96482
96483         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96484         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96485
96486 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96487         and Bruno Haible  <haible@clisp.cons.org>
96488
96489         * lib/quotearg.c (mbrtowc):
96490         Assign to *pwc, and return 1 only if result is nonzero.
96491         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96492
96493 2000-07-03  Jim Meyering  <meyering@lucent.com>
96494
96495         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96496
96497 2000-07-03  Jim Meyering  <meyering@lucent.com>
96498
96499         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96500         This is necessary to get a definition of e.g., UTMP_FILE on
96501         HP-UX 10.20.
96502         From Bob Proulx.
96503
96504 2000-07-02  Jim Meyering  <meyering@lucent.com>
96505
96506         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96507
96508         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96509         AC_LIBOBJ(function_name).
96510         * m4/chown.m4: Likewise.
96511         * m4/fnmatch.m4: Likewise.
96512         * m4/ftruncate.m4: Likewise.
96513         * m4/getgroups.m4: Likewise.
96514         * m4/getline.m4: Likewise.
96515         * m4/group-member.m4: Likewise.
96516         * m4/jm-macros.m4: Likewise.
96517         * m4/lstat.m4: Likewise.
96518         * m4/malloc.m4: Likewise.
96519         * m4/memcmp.m4: Likewise.
96520         * m4/nanosleep.m4: Likewise.
96521         * m4/putenv.m4: Likewise.
96522         * m4/realloc.m4: Likewise.
96523         * m4/regex.m4: Likewise.
96524         * m4/stat.m4: Likewise.
96525         * m4/strftime.m4: Likewise.
96526
96527 2000-07-02  Jim Meyering  <meyering@lucent.com>
96528
96529         * lib/quotearg.c (mbstate_t): Don't define here.
96530
96531 2000-07-02  Jim Meyering  <meyering@lucent.com>
96532
96533         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96534
96535 2000-07-01  Jim Meyering  <meyering@lucent.com>
96536
96537         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96538
96539 2000-07-01  Jim Meyering  <meyering@lucent.com>
96540
96541         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96542         problem.
96543
96544 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96545
96546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96547         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96548
96549 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96550
96551         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96552         per change in ../m4/ls-mntd-fs.m4.
96553         (read_filesystem_list): Ignore symbolic links.
96554
96555 2000-06-29  Jim Meyering  <meyering@lucent.com>
96556
96557         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96558         for declaration of strcmp.
96559
96560         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96561
96562         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96563         Avoid warning by casting result to `char *' to remove `const'.
96564
96565 2000-06-28  Jim Meyering  <meyering@lucent.com>
96566
96567         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96568         included by quotearg.c, for which we perform this test.  From
96569         Bruno Haible.
96570
96571 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96572
96573         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96574         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96575         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96576
96577 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96578
96579         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96580
96581 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96582
96583         savedir now sets errno on failure and invokes xmalloc to get memory.
96584         Fix a couple of other minor bugs while we're at it.
96585
96586         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96587         (NAMLEN): Remove macro.
96588         (malloc, realloc): Remove decls.
96589         (stpcpy): Likewise.
96590         ("xalloc.h"): Include.
96591         (NAME_SIZE_DEFAULT): New macro.
96592         (savedir): Use xmalloc / xrealloc to allocate memory.
96593         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96594         Skip "" directory entries.
96595         Use strlen to calculate directory entry length, since the old method
96596         is rarely used these days and isn't worth supporting.
96597         Don't use a pointer after freeing it.
96598         Check for integer overflow when calculating allocation size.
96599         Use memcpy to copy entries, instead of stpcpy.
96600         Set errno properly when returning NULL.
96601         Check for readdir error.
96602
96603 2000-06-26  Jim Meyering  <meyering@lucent.com>
96604
96605         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96606
96607 2000-06-25  Jim Meyering  <meyering@lucent.com>
96608
96609         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96610         Linux header bug when _XOPEN_SOURCE is defined to 500.
96611
96612 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96613
96614         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96615         deficiency.
96616
96617 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96618
96619         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96620         Include xalloc.h.
96621         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96622
96623 2000-06-24  Jim Meyering  <meyering@lucent.com>
96624
96625         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96626         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96627         for which strerror does return char*, but which lacks a conveniently
96628         accessible declaration of the function.  If the compile-test says
96629         strerror_r doesn't work, then resort to a `run'-test that works on
96630         BeOS and segfaults on DEC Unix.
96631
96632 2000-06-24  Jim Meyering  <meyering@lucent.com>
96633
96634         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96635
96636 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96637
96638         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96639         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96640
96641 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96642
96643         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96644         (mbrtowc, mbstate_t): Define substitutes if
96645         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96646         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96647         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96648
96649 2000-06-23  Jim Meyering  <meyering@lucent.com>
96650
96651         * m4/afs.m4: Add missing AC_MSG_RESULT.
96652         Reported by Bruno Haible.
96653
96654         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96655         Suggestion from Bruno Haible.
96656
96657 2000-06-23  Jim Meyering  <meyering@lucent.com>
96658
96659         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96660
96661 2000-06-21  Jim Meyering  <meyering@lucent.com>
96662
96663         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96664
96665 2000-06-21  Jim Meyering  <meyering@lucent.com>
96666
96667         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96668         (noinst_HEADERS): Add getstr.h.
96669
96670         * lib/getline.c (getstr): Move into a separate file.
96671         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96672         the following changes: new parameter, delim2; both delim[12]
96673         parameters have type `int', not `char'.  The latter would lose
96674         with 8-bit delimiters.
96675         * lib/getstr.h: New file.
96676
96677 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96678
96679         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96680         than 1024, return a memory chunk of least possible size, instead
96681         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96682         Use free/xmalloc instead of xrealloc to avoid copying for very long
96683         paths.
96684
96685 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96686
96687         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96688         the empty string.
96689
96690 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96691
96692         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96693         address, not strdup.  Include <stdlib.h> and don't declare free().
96694
96695 2000-06-19  Jim Meyering  <meyering@lucent.com>
96696
96697         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96698
96699 2000-06-18  Jim Meyering  <meyering@lucent.com>
96700
96701         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96702
96703         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96704         `checking whether...' message to be consistent with that of the
96705         lstat test.
96706
96707 2000-06-18  Jim Meyering  <meyering@lucent.com>
96708
96709         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96710         Besides, these days every porting target provides a mkdir function.
96711
96712         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96713         needed. (this snippet comes from src/system.h).
96714
96715 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96716
96717         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96718
96719 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96720
96721         * lib/human.c (adjust_value): New function.
96722         (human_readable_inexact): Apply rounding style even when
96723         printing approximate values.
96724
96725 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96726
96727         * lib/human.c (human_readable_inexact): Allow an input block
96728         size that is not a multiple of the output block size, and vice versa.
96729         Reported by Piergiorgio Sartor.
96730
96731 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96732
96733         * lib/getdate.y (get_date): Apply relative times after time
96734         zone indicator, not before.  Reported by Todd A. Jacobs.
96735
96736 2000-06-13  Jim Meyering  <meyering@lucent.com>
96737
96738         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96739
96740         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96741
96742 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96743
96744         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96745
96746 2000-06-12  Jim Meyering  <meyering@lucent.com>
96747
96748         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96749         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96750         optional argument.
96751         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96752         the optional argument, `lib'.
96753
96754 2000-06-08  Jim Meyering  <meyering@lucent.com>
96755
96756         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96757
96758 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96759
96760         Rewrite largefile configuration so that we don't need to run
96761         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96762         AC_CANONICAL_HOST in configure.in -- jmm]
96763
96764         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96765         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96766         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96767         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96768         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96769         All uses changed.
96770         Instead of inspecting the output of getconf, try to compile the
96771         test program without and with the macro definition.
96772         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96773         for getconf.  Instead, check for the needed flags by compiling
96774         test programs.
96775
96776 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96777
96778         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96779
96780 2000-06-04  Jim Meyering  <meyering@lucent.com>
96781
96782         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96783         SunOS 4.1.4 for which gid_t is an unsigned type.
96784
96785 2000-06-03  Jim Meyering  <meyering@lucent.com>
96786
96787         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96788         now that autoconf requires that.
96789
96790         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96791         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96792         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96793
96794 2000-06-03  Jim Meyering  <meyering@lucent.com>
96795
96796         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96797
96798 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96799
96800         * m4/glibc21.m4: New file.
96801         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96802
96803 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96804
96805         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96806         newer, don't install charset.alias.
96807         * lib/config.charset: Change the Linux/glibc rules so they become empty
96808         on glibc-2.1 or newer.
96809
96810 2000-06-02  Jim Meyering  <meyering@lucent.com>
96811
96812         * lib/mountlist.c: Back out last change.  Instead, do this...
96813         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96814         me_dummy member using the same `ignore'-testing code.
96815         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96816         fs_type strings.
96817         From Mark D. Roth.
96818
96819 2000-05-29  Jim Meyering  <meyering@lucent.com>
96820
96821         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96822         mounts with the `ignore' attribute.  Based on a patch from
96823         Mark D. Roth.
96824
96825 2000-05-28  Jim Meyering  <meyering@lucent.com>
96826
96827         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96828         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96829         * m4/stat.m4: Likewise.
96830         * m4/lstat.m4: Likewise.
96831         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
96832
96833         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
96834         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
96835
96836 2000-05-26  Jim Meyering  <meyering@lucent.com>
96837
96838         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
96839
96840 2000-05-24  Jim Meyering  <meyering@lucent.com>
96841
96842         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
96843         autoconf requires that.
96844         * m4/lib-check.m4: Likewise.
96845         * m4/jm-macros.m4: Likewise.
96846         * m4/strftime.m4: Likewise.
96847
96848         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
96849         AC_CHECK_DECLS, now that autoconf requires that.
96850
96851 2000-05-22  Jim Meyering  <meyering@lucent.com>
96852
96853         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96854         * m4/lstat.m4: Likewise.
96855
96856 2000-05-22  Jim Meyering  <meyering@lucent.com>
96857
96858         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
96859
96860 2000-05-20  Jim Meyering  <meyering@lucent.com>
96861
96862         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
96863         (jm_PREREQ): Use it.
96864
96865 2000-05-18  Jim Meyering  <meyering@lucent.com>
96866
96867         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
96868         back, too, since it may have been modified by allocate_entry.
96869         (hash_delete): Rewrite to use neither the assignment operator
96870         nor the comma operator in an if-expression.
96871
96872 2000-05-15  Paul Eggert  <eggert@twinsun.com>
96873
96874         * lib/closeout.c:
96875         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
96876         Remove; no longer needed.
96877         "quotearg.h": Add include.
96878         (file_name): Do not bother to explicitly initialize to NULL; it's less
96879         efficient on some hosts.
96880         (close_stdout_status): Remove test as to whether stdout was already
96881         closed; it breaks for the case "echo x | sort >&-".
96882         Quote file name colons.
96883         Do not assume that _("write error") lacks format strings.
96884
96885 2000-05-15  Jim Meyering  <meyering@lucent.com>
96886
96887         * lib/version-etc.c (version_etc_copyright): Update the copyright
96888         string used in all --version output.
96889
96890 2000-05-14  Jim Meyering  <meyering@lucent.com>
96891
96892         * lib/closeout.c (close_stdout_set_file_name): New function.
96893         (close_stdout_status): Use new file-scoped global.
96894         Return right away if fstat says the stdout file descriptor is invalid.
96895         * lib/closeout.h (close_stdout_set_file_name): Declare.
96896
96897 2000-05-10  Jim Meyering  <meyering@lucent.com>
96898
96899         * lib/closeout.c [default_exit_status]: New file-scoped variable.
96900         (close_stdout_set_status): New function.
96901         * lib/closeout.h (close_stdout_set_status): Declare.
96902
96903 2000-05-09  Jim Meyering  <meyering@lucent.com>
96904
96905         * m4/gettext.m4: Rename this...
96906         * m4/libintl.m4: ...to this.
96907
96908 2000-05-08  Jim Meyering  <meyering@lucent.com>
96909
96910         * lib/long-options.c: Don't include closeout.h.
96911         (parse_long_options): Don't call close_stdout for --version.
96912
96913 2000-05-06  Paul Eggert  <eggert@twinsun.com>
96914
96915         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
96916         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
96917         2.1.3 bug.  This avoids a clash when files like regex.c define
96918         _GNU_SOURCE.
96919
96920 2000-05-06  Jim Meyering  <meyering@lucent.com>
96921
96922         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
96923         (AC_REPLACE_FUNCS): Add strnlen.
96924
96925         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
96926         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
96927
96928         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
96929         AC_SEARCH_LIBS call for nanosleep.
96930         (LIB_NANOSLEEP): Set and AC_SUBST.
96931
96932 2000-05-06  Jim Meyering  <meyering@lucent.com>
96933
96934         * lib/strnlen.c: Undefine __strnlen and strnlen.
96935         [!weak_alias]: Define __strnlen to strnlen.
96936
96937         * lib/atexit.c: New file, from libiberty.
96938
96939 2000-05-06  Jim Meyering  <meyering@lucent.com>
96940
96941         * lib/closeout.c (close_stdout_status): Also check for errors on the
96942         stderr stream.
96943
96944 2000-05-05  Jim Meyering  <meyering@lucent.com>
96945
96946         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
96947         AC_SEARCH_LIBS call for clock_gettime.
96948         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
96949
96950         * m4/search-libs.m4: Update from autoconf.
96951
96952         su doesn't work on Solaris 2.6.
96953         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
96954         <shadow.h>.  Reported by Dragos Harabor.
96955
96956 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
96957
96958         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
96959         memcpy instead of xmalloc, xrealloc, path_concat.
96960         (locale_charset): Treat empty environment variables as absent.
96961         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
96962
96963 2000-05-04  Jim Meyering  <meyering@lucent.com>
96964
96965         * lib/getopt.c: Update from glibc.
96966         * lib/obstack.c: Likewise.
96967         * lib/obstack.h: Likewise.
96968         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
96969         file
96970
96971         * lib/regex.h: Likewise.
96972         * lib/strndup.c: Likewise.
96973         * lib/strnlen.c: New file, from glibc.
96974
96975 2000-05-03  Jim Meyering  <meyering@lucent.com>
96976
96977         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96978
96979 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96980
96981         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96982         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96983         compile-time test, rather than inspecting host and OS, to
96984         decide whether to define _LARGEFILE_SOURCE.
96985
96986 2000-05-01  Jim Meyering  <meyering@lucent.com>
96987
96988         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96989
96990         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96991         Based on a patch from Bruno Haible.
96992
96993 2000-05-01  Jim Meyering  <meyering@lucent.com>
96994
96995         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96996
96997 2000-04-29  Jim Meyering  <meyering@lucent.com>
96998
96999         * lib/path-concat.c: Declare strdup only if it's not defined.
97000         * lib/canon-host.c: Likewise.
97001
97002 2000-04-28  Jim Meyering  <meyering@lucent.com>
97003
97004         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97005         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97006         is included first, then limits.h is included by locale.h by libintl.h.
97007         From John David Anglin.
97008
97009 2000-04-25  Jim Meyering  <meyering@lucent.com>
97010
97011         * lib/makepath.c (S_IRWXUGO): Define.
97012         (make_path): Always perform explicit chmod if MODE specifies any
97013         of the `special' permission bits.  Prompted by a bug report against
97014         install from Mate Wierdl and Joost van Baal.
97015
97016 2000-04-18  Jim Meyering  <meyering@lucent.com>
97017
97018         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97019         (jm_PREREQ): Use it.
97020
97021 2000-04-18  Jim Meyering  <meyering@lucent.com>
97022
97023         * lib/README: New file.
97024
97025         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97026         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97027
97028 2000-04-17  Jim Meyering  <meyering@lucent.com>
97029
97030         Get it right :-)
97031         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97032         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97033         Suggestion from Akim Demaille.
97034
97035 2000-04-17  Jim Meyering  <meyering@lucent.com>
97036
97037         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97038         the definition of it to rpl_strftime also defined-away the system's
97039         declaration.
97040
97041 2000-04-15  Jim Meyering  <meyering@lucent.com>
97042
97043         Use `C' to denote so-called `contiguous' files, the same way
97044         that tar does.
97045         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97046         (ftypelet): Use S_ISCTG.
97047         From Michael Deutschmann.
97048
97049 2000-04-14  Jim Meyering  <meyering@lucent.com>
97050
97051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97052         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97053         clobbered.
97054
97055 2000-04-14  Jim Meyering  <meyering@lucent.com>
97056
97057         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97058
97059 2000-04-13  Jim Meyering  <meyering@lucent.com>
97060
97061         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97062         AH_VERBATIM to insert required #ifndef into config.h.in.
97063         Suggestion from Akim Demaille.
97064
97065 2000-04-12  Jim Meyering  <meyering@lucent.com>
97066
97067         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97068         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97069         Christian Krackowizer.
97070
97071         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97072         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97073         (AC_SYS_LARGEFILE): Require.
97074         (AM_C_PROTOTYPES): Require.
97075
97076 2000-04-08  Jim Meyering  <meyering@lucent.com>
97077
97078         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97079         names don't conflict.  Reported by Eli Zaretskii.
97080
97081 2000-04-07  Jim Meyering  <meyering@lucent.com>
97082
97083         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97084         sys/types.h, to work around system header problems on AIX 3.2.5.
97085         From Bruno Haible.
97086
97087 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97088
97089         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97090         bug.  Deal with the different error behavior of Irix iconv.
97091
97092 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97093
97094         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97095         IRIX if the installer said otherwise.
97096
97097 2000-04-05  Jim Meyering  <meyering@lucent.com>
97098
97099         Portability tweaks required for ultrix4.3.
97100         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97101         (jm_CHECK_DECLS): Add getutent to the list of functions.
97102         (_jm_DECL_HEADERS): Add utmpx.h.
97103         From John David Anglin.
97104
97105         * m4/strftime.m4: Back out the 2000-04-02 change.
97106         Instead of that change, simply undefine putenv in the test program.
97107
97108 2000-04-05  Jim Meyering  <meyering@lucent.com>
97109
97110         Portability tweaks required for ultrix4.3.
97111         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97112         getutent.
97113         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97114         * lib/canon-host.c: Declare strdup.
97115         * lib/path-concat.c: Likewise.
97116         From John David Anglin.
97117
97118 2000-04-04  Jim Meyering  <meyering@lucent.com>
97119
97120         Be more DOS 8.3-friendly.
97121         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97122         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97123         * lib/Makefile.am: Reflect renaming.
97124         Reported by Eli Zaretskii.
97125
97126         Use a temporary file name that won't clash with `charset.alias'
97127         in the DOS 8.3 name space.
97128         * lib/Makefile.am (charset_tmp): Define.
97129         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97130         (uninstall-local): Likewise.
97131         Reported by Eli Zaretskii.
97132
97133 2000-04-03  Jim Meyering  <meyering@lucent.com>
97134
97135         * m4/gettext.m4: Fix typo in comment.
97136
97137         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97138         textutils/configure.in).  Suggestion from Paul Eggert.
97139         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97140
97141 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97142
97143         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97144         variable in the shell rather than using putenv, which isn't
97145         portable.  This avoids the configure-time inter-test dependency
97146         on the potentially-renamed putenv function.
97147
97148 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97149
97150         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97151         before checking struct stat.st_blksize, so that
97152         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97153
97154 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97155
97156         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97157         since strftime.c uses HAVE_STRFTIME to decide whether to use
97158         the underlying strftime.
97159
97160 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97161
97162         * lib/time/strftime.c (my_strftime): Make sure we call the system
97163         strftime, not ourselves, when invoking the underlying strftime.
97164
97165 2000-03-24  Jim Meyering  <meyering@lucent.com>
97166
97167         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97168         (charset_alias): Define.
97169         (install-exec-local): Factor out common code.
97170         (uninstall-local): Split lines longer than 80.
97171         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97172         (SUFFIXES): Define.
97173         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97174         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97175
97176 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97177
97178         * lib/config.charset: Output a line containing "Packages using this
97179         file".
97180         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97181         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97182         ref-del.sed): New rules.
97183
97184 2000-03-17  Jim Meyering  <meyering@lucent.com>
97185
97186         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97187         Otherwise, include <strings.h>
97188
97189 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97190
97191         * lib/unicodeio.c (utf8_wctomb): New function.
97192         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97193         format instead of in UCS-4 with platform dependent endianness.
97194
97195 2000-03-10  Jim Meyering  <meyering@lucent.com>
97196
97197         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97198         From Marco Franzen.
97199
97200 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97201
97202         * lib/savedir.c (savedir): Work even if directory size is
97203         negative; this can happen with some screwy NFS configurations.
97204
97205 2000-03-06  Jim Meyering  <meyering@lucent.com>
97206
97207         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97208         if it's NULL (because we ran out of memory).  From Bruno Haible.
97209
97210 2000-03-05  Jim Meyering  <meyering@lucent.com>
97211
97212         * lib/localcharset.c ("path-concat.h"): Include.
97213         (get_charset_aliases): Use path_concat instead of ANSI string
97214         concatenation.
97215
97216         * lib/unicodeio.h (PARAMS): Define.
97217         Use it to guard prototype.
97218
97219 2000-03-04  Jim Meyering  <meyering@lucent.com>
97220
97221         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97222         for lib/localcharset.c.
97223
97224 2000-03-04  Jim Meyering  <meyering@lucent.com>
97225
97226         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97227         installing into it.
97228         (uninstall-local): Uncomment this rule so `make distcheck' works
97229         once again.
97230
97231         * lib/unicodeio.c (<errno.h>): Include it.
97232         (errno): Declare if not defined.
97233
97234         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97235
97236         * lib/config.charset: New version, incorporating remarks from a linux
97237         i18n mailing list.  From Bruno Haible.
97238
97239 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97240
97241         * m4/codeset.m4: New file.
97242         * m4/iconv.m4: New file.
97243         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97244
97245 2000-03-03  Jim Meyering  <meyering@lucent.com>
97246
97247         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97248
97249 2000-03-02  Jim Meyering  <meyering@lucent.com>
97250
97251         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97252         the messages come out on separate lines.
97253
97254         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97255         rather than jm_CHECK_DECLARATIONS.
97256         * m4/decl.m4: Remove now-unused file.
97257
97258         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97259         geteuid.
97260
97261 2000-03-02  Jim Meyering  <meyering@lucent.com>
97262
97263         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97264
97265 2000-03-01  Jim Meyering  <meyering@lucent.com>
97266
97267         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97268         * lib/unicodeio.c: Likewise.
97269
97270 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97271
97272         * lib/config.charset: New file.
97273         * lib/localcharset.c: New file.
97274         * lib/unicodeio.h, lib/unicodeio.c: New files.
97275         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97276         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97277         (noinst_HEADERS): Add unicodeio.h.
97278         (all-local, install-exec-local, charset.alias): New targets.
97279
97280 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97281
97282         * lib/quotearg.c (ALERT_CHAR): New macro.
97283         (quotearg_buffer_restyled): Use it.
97284
97285 2000-02-27  Jim Meyering  <meyering@lucent.com>
97286
97287         * m4/check-decl.m4: Add getenv to the list.
97288
97289 2000-02-27  Jim Meyering  <meyering@lucent.com>
97290
97291         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97292         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97293
97294         * lib/backupfile.c: Guard inclusion of stdlib.h with
97295         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97296         Declare malloc if needed.
97297
97298         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97299         `#ifndef HAVE_DECL..'
97300         now that autoconf always defines the HAVE_DECL_ symbols.
97301         * lib/human.c: Likewise.
97302         * lib/same.c: Likewise.
97303         * lib/strtoumax.c: Likewise.
97304
97305         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97306         declaration check was not run.
97307         * lib/hash.c: Likewise.
97308         * lib/human.c: Likewise.
97309         * lib/same.c: Likewise.
97310         * lib/strtoumax.c: Likewise.
97311
97312         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97313         `.', then first look up the entire `.'-containing string as a login
97314         name.
97315
97316 2000-02-23  Jim Meyering  <meyering@lucent.com>
97317
97318         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97319         in place of my hack.
97320
97321 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97322
97323         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97324         (textint): New typedef.
97325         (parser_control): Member year changed from int to textint.
97326         All uses changed.
97327         (YYSTYPE): Removed; replaced by %union with int and textint members.
97328         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97329         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97330         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97331         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97332         (date, number, to_year): Use width of number in digits, not its value,
97333         to determine whether it's a 2-digit year, or a 2-digit time.
97334         (yylex): Store number of digits of numeric tokens.
97335         Reported by John Kendall.
97336
97337         (parser_control): Changed from struct parser_control to typedef (for
97338         consistency).  All uses changed.
97339
97340         (tID): Removed; not used.
97341         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97342
97343 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97344
97345         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97346         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97347
97348 2000-02-12  Jim Meyering  <meyering@lucent.com>
97349
97350         * lib/userspec.c (ISDIGIT): Define it.
97351         (isdigit): Remove definition.
97352         (is_number): Use ISDIGIT, not isdigit.
97353         <libintl.h>: Include.
97354         (_ and N_): Define.
97355         (parse_user_spec): Mark translatable strings.
97356
97357 2000-02-10  Jim Meyering  <meyering@lucent.com>
97358
97359         With these changes, nanosleep.[ch] are finally enough like the other
97360         lib/* replacement files to compile on a few more losing systems.
97361
97362         * lib/nanosleep.h: Don't include config.h.
97363         Remove prototype from declaration of nanosleep.
97364         (PARAMS): Remove now-unneeded definition.
97365         * lib/nanosleep.c: #undef nanosleep.
97366         (rpl_nanosleep): Rename from nanosleep.
97367
97368 2000-02-10  Jim Meyering  <meyering@lucent.com>
97369
97370         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97371         gnu_nanosleep to rpl_nanosleep.
97372
97373 2000-02-09  Jim Meyering  <meyering@lucent.com>
97374
97375         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97376         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97377
97378 2000-02-08  Akim Demaille  <akim@epita.fr>
97379
97380         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97381         `[' and `]' and remove uses of `changequote'.
97382         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97383         (AC_SYS_LARGEFILE): Likewise.
97384         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97385         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97386         of changequote.
97387         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97388         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97389         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97390         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97391
97392 2000-02-05  Jim Meyering  <meyering@lucent.com>
97393
97394         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97395         Remove explicit use of AC_HEADER_TIME.  It is required by
97396         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97397         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97398         in autoconf whereby the expansion of the latter ended up preceding
97399         the expansion of its prerequisite, AC_HEADER_TIME.
97400         Reported by Volker Borchert.
97401
97402 2000-02-03  Jim Meyering  <meyering@lucent.com>
97403
97404         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97405
97406 2000-02-03  Jim Meyering  <meyering@lucent.com>
97407
97408         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97409         rather than with `#if HAVE_UTMPNAME'.
97410
97411 2000-02-02  Jim Meyering  <meyering@lucent.com>
97412
97413         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97414         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97415         Reported by Eli Zaretskii.
97416
97417 2000-02-01  Jim Meyering  <meyering@lucent.com>
97418
97419         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97420
97421 2000-01-31  Jim Meyering  <meyering@lucent.com>
97422
97423         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97424         functions.  Add the time.h and sys/time.h headers along with the
97425         AC_REQUIRE'ment of AC_HEADER_TIME.
97426
97427 2000-01-31  Jim Meyering  <meyering@lucent.com>
97428
97429         * lib/nanosleep.h (nanosleep): Guard declaration with
97430         `#if ! HAVE_DECL_NANOSLEEP'.
97431         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97432         the declaration in that vendor's sys/timers.h.
97433         Reported by Christian Krackowizer.
97434
97435         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97436         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97437         (ISPRINT): Likewise.
97438         Reported by Tom Tromey.
97439
97440 2000-01-30  Jim Meyering  <meyering@lucent.com>
97441
97442         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97443
97444         * m4/prereq.m4 (utmp_includes): Define.
97445         Check for ut_user and ut_name members in both struct utmpx
97446         and struct utmp.
97447
97448 2000-01-30  Jim Meyering  <meyering@lucent.com>
97449
97450         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97451         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97452         header files where only utmpx.ut_user is declared.
97453
97454         * lib/readutmp.h (UT_USER): Define.
97455
97456 2000-01-29  Jim Meyering  <meyering@lucent.com>
97457
97458         * m4/lib-check.m4: New file containing library-related checks from
97459         fileutils and sh-utils (textutils had none).
97460
97461 2000-01-28  Jim Meyering  <meyering@lucent.com>
97462
97463         * m4/perl.m4: Change format of warning message to look more like that
97464         from the missing script.  Suggestion from François Pinard.
97465
97466 2000-01-25  Jim Meyering  <meyering@lucent.com>
97467
97468         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97469         well as time.h in the compile check.
97470         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97471         Fix typo in cross-compiling case: s/yes/no/.
97472
97473 2000-01-23  Jim Meyering  <meyering@lucent.com>
97474
97475         * m4/jm-macros.m4: Move df-related tests here from
97476         fileutils/configure.in
97477
97478         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97479         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97480
97481         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97482         s/space/ac_fsusage_space/.
97483         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97484
97485         * m4/ftruncate.m4: New file (derived from part of
97486         fileutils/configure.in).
97487         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97488         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97489
97490         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97491         AC_SUBST these here, rather than just in sh-util/configure.in, so
97492         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97493         all the same.
97494         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97495         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97496         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97497         (AC_SUBST(POW_LIBM)): Likewise.
97498         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97499
97500 2000-01-23  Jim Meyering  <meyering@lucent.com>
97501
97502         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97503         obstack.c.
97504
97505 2000-01-22  Jim Meyering  <meyering@lucent.com>
97506
97507         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97508
97509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97510
97511         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97512         configure.in
97513         (AC_CHECK_HEADERS): Likewise for sh-utils.
97514         (AC_CHECK_HEADERS): Likewise for textutils.
97515         Merge the three lists of headers.
97516
97517         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97518         from fileutils' configure.in.
97519
97520         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97521         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97522         check-decl.m4.
97523
97524         * m4/check-decl.m4: Use #if rather than #ifdef.
97525         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97526         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97527         (_jm_DECL_HEADERS): Define new function.
97528         (jm_CHECK_DECLARATIONS): Require it.
97529
97530 2000-01-22  Jim Meyering  <meyering@lucent.com>
97531
97532         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97533         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97534         Required for some AIX systems.  Reported by Christian Krackowizer.
97535         [TESTING] (main): New function.
97536
97537         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97538         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97539         letters.
97540
97541         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97542         iswprint.
97543
97544         * lib/strverscmp.c (ISDIGIT): Define.
97545         (strverscmp): Use ISDIGIT, not isdigit.
97546
97547 2000-01-19  Jim Meyering  <meyering@lucent.com>
97548
97549         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97550         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97551         defines `struct timespec' in <sys/time.h>
97552
97553         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97554         Thanks to Akim for explaining.
97555
97556 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97557
97558         * lib/nanosleep.c (nanosleep):
97559         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97560         POSIX.1 doesn't require SA_INTERRUPT and some systems
97561         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97562         it's been part of POSIX.1 since day 1 (in 1988).
97563
97564 2000-01-17  Jim Meyering  <meyering@lucent.com>
97565
97566         * lib/interlock: Remove unused file.  Reported by François Pinard.
97567
97568 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97569
97570         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97571         alert, backslash, formfeed, and vertical tab unnecessarily in
97572         shell quoting style.
97573
97574 2000-01-16  Jim Meyering  <meyering@lucent.com>
97575
97576         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97577         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97578         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97579         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97580
97581 2000-01-16  Jim Meyering  <meyering@lucent.com>
97582
97583         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97584         because the latter didn't work.
97585
97586 2000-01-15  Jim Meyering  <meyering@lucent.com>
97587
97588         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97589         (AC_REPLACE_FUNCS): Add memcpy and memset.
97590         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97591         Add strpbrk.
97592         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97593
97594 2000-01-12  Jim Meyering  <meyering@lucent.com>
97595
97596         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97597         (jm_PREREQ): Use it.
97598         (jm_PREREQ_READUTMP): New macro.
97599         (jm_PREREQ): Use it.
97600
97601 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97602
97603         Quote multibyte characters correctly.
97604         * m4/c-bs-a.m4: New file.
97605         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97606         (jm_PREREQ): Use it.
97607
97608 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97609
97610         * m4/uintmax_t.m4: Port to autoconf 2.13.
97611
97612 2000-01-08  Jim Meyering  <meyering@ascend.com>
97613
97614         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97615         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97616
97617 2000-01-04  Jim Meyering  <meyering@ascend.com>
97618
97619         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97620         jm_STRUCT_DIRENT_D_TYPE.
97621         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97622         jm_STRUCT_DIRENT_D_INO.
97623         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97624         jm_STRUCT_UTIMBUF.
97625         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97626         renamings.
97627         * m4/utime.m4: Likewise.
97628
97629         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97630         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97631
97632 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97633
97634         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97635         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97636
97637 2000-01-02  Jim Meyering  <meyering@ascend.com>
97638
97639         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97640         remember if this is necessary.
97641
97642 1999-12-26  Jim Meyering  <meyering@ascend.com>
97643
97644         * m4/jm-macros.m4: Use it here.
97645         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97646
97647 1999-12-23  Jim Meyering  <meyering@ascend.com>
97648
97649         * m4/jm-macros.m4: Check for clock_gettime (moved from
97650         fileutils/configure.in)
97651         Check for gettimeofday.
97652
97653 1999-12-20  Jim Meyering  <meyering@ascend.com>
97654
97655         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97656         autoconf-2.14a-1999-12-20.
97657
97658 1999-12-19  Jim Meyering  <meyering@ascend.com>
97659
97660         * m4/lstat-slash.m4: New file.
97661         * m4/jm-macros.m4: Use the new macro:
97662         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97663
97664 1999-12-07  Jim Meyering  <meyering@ascend.com>
97665
97666         * m4/perl.m4: Require that File::Compare be available, too.
97667         Too many systems seem to lack it.
97668
97669         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97670         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97671
97672 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97673
97674         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97675         problem with the QNX 4.25 shell, which doesn't propagate exit
97676         status of failed commands inside shell assignments.
97677
97678 1999-11-17  Jim Meyering  <meyering@ascend.com>
97679
97680         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97681
97682 1999-11-07  Jim Meyering  <meyering@ascend.com>
97683
97684         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97685
97686 1999-11-06  Jim Meyering  <meyering@ascend.com>
97687
97688         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97689         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97690
97691 1999-11-05  Jim Meyering  <meyering@ascend.com>
97692
97693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97694         configure.in of textutils, fileutils, and sh-utils into this one
97695         (shared between those packages) file.
97696         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97697         AC_STRUCT_ST_BLKSIZE.
97698
97699 1999-11-03  Jim Meyering  <meyering@ascend.com>
97700
97701         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97702         of AC_CHECK_TYPE checks includes unistd.h.
97703         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97704         Suggestion from Akim Demaille.
97705
97706 1999-10-30  Jim Meyering  <meyering@ascend.com>
97707
97708         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97709         m4-quoted string.
97710         * m4/ls-mntd-fs.m4: Likewise.
97711         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97712         * m4/jm-winsz1.m4: Likewise.
97713
97714         * m4/const.m4: Remove file, since the fix made it into the experimental
97715         version of autoconf.
97716         * m4/mktime.m4: Likewise.
97717
97718         * m4/check-type.m4: Remove file, now that the latest version of
97719         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97720
97721         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97722         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97723         AC_CHECK_TYPE.
97724
97725 1999-10-04  Jim Meyering  <meyering@ascend.com>
97726
97727         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97728
97729 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97730
97731         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97732         2.95.1 bug with HP-UX 10.20.
97733
97734 1999-09-17  Jim Meyering  <meyering@ascend.com>
97735
97736         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97737         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97738         due to missing strdup (against sh-utils-2.0).
97739
97740 1999-08-29  Jim Meyering  <meyering@ascend.com>
97741
97742         * m4/jm-macros.m4: Require jm_BISON.
97743         * m4/bison.m4: New file.
97744
97745 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97746
97747         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97748         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97749
97750 1999-08-05  Jim Meyering  <meyering@ascend.com>
97751
97752         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97753         to avoid conflicts with `conftest' on 8+3 filesystems.
97754         Suggestion from Eli Zaretskii.
97755
97756 1999-08-04  Jim Meyering  <meyering@ascend.com>
97757
97758         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97759         fileutils and sh-utils (textutils's getline test was inadequate).
97760         (AM_FUNC_GETLINE): Run this test.
97761         (AC_CHECK_FUNCS): Check for getdelim.
97762         Reported by Bob Proulx.
97763
97764 1999-08-02  Jim Meyering  <meyering@ascend.com>
97765
97766         * m4/jm-macros.m4: Add a comment.
97767
97768 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97769
97770         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97771         <inttypes.h> defines strtoumax as a macro (and not as a
97772         function).
97773
97774 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97775
97776         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97777         that we can shift, multiply and divide unsigned long long
97778         values; Ultrix cc can't do it.
97779
97780 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97781
97782         * m4/mktime.m4: New file, which is a preview of what should appear
97783         in the next public autoconf release.
97784
97785 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97786
97787         * m4/lfs.m4: Remove this file.
97788         * m4/largefile.m4: New file.  It contains the old contents of
97789         lfs.m4, except that all names with prefix AC_LFS have been
97790         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97791         compatible with future autoconf versions.  Also, some minor m4
97792         quoting problems have been fixed.
97793
97794 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97795
97796         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97797         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97798         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97799         and simplify the shell code.
97800
97801 1999-08-01  Jim Meyering  <meyering@ascend.com>
97802
97803         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97804         m4.
97805
97806 1999-07-20  Jim Meyering  <meyering@ascend.com>
97807
97808         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97809
97810 1999-07-15  Jim Meyering  <meyering@ascend.com>
97811
97812         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97813
97814 1999-05-22  Jim Meyering  <meyering@ascend.com>
97815
97816         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97817
97818 1999-05-20  Jim Meyering  <meyering@ascend.com>
97819
97820         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97821         Add a colon after each `then' in case $4 is empty.
97822
97823 1999-05-16  Jim Meyering  <meyering@ascend.com>
97824
97825         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97826
97827 1999-05-10  Jim Meyering  <meyering@ascend.com>
97828
97829         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97830
97831         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
97832         AC_FUNC_MKTIME.
97833
97834 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
97835
97836         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
97837
97838 1999-05-04  Paul Eggert  <eggert@twinsun.com>
97839
97840         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
97841         not CPPFLAGS, so that linking works correctly in IRIX.
97842
97843 1999-04-30  Paul Eggert  <eggert@twinsun.com>
97844
97845         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
97846
97847 1999-04-20  Paul Eggert  <eggert@twinsun.com>
97848
97849         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
97850         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
97851         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
97852         jm_AC_TYPE_UNSIGNED_LONG_LONG.
97853         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
97854
97855         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
97856
97857 1999-04-20  Jim Meyering  <meyering@ascend.com>
97858
97859         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
97860         AC_REPLACE xstroull if necessary.  From Paul Eggert.
97861         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
97862
97863 1999-04-18  Jim Meyering  <meyering@ascend.com>
97864
97865         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
97866         * m4/jm-macros.m4: Use it.
97867
97868 1999-04-06  Jim Meyering  <meyering@ascend.com>
97869
97870         * m4/strftime.m4: Remove test for %f.
97871
97872 1999-03-29  Jim Meyering  <meyering@ascend.com>
97873
97874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
97875         superset of the AC_TYPE_* checks in the textutils, fileutils,
97876         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
97877         AC_TYPE_PID_T.
97878
97879 1999-03-28  Jim Meyering  <meyering@ascend.com>
97880
97881         * m4/jm-macros.m4: Define GNU_PACKAGE here.
97882         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
97883         replaced e.g., in the *.sh files of the sh-utils.
97884
97885 1999-03-20  Jim Meyering  <meyering@ascend.com>
97886
97887         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
97888         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
97889         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
97890
97891 1999-03-19  Jim Meyering  <meyering@ascend.com>
97892
97893         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
97894
97895 1999-03-12  Jim Meyering  <meyering@ascend.com>
97896
97897         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
97898
97899 1999-03-07  Jim Meyering  <meyering@ascend.com>
97900
97901         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
97902         declared.
97903
97904 1999-02-17  Jim Meyering  <meyering@ascend.com>
97905
97906         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
97907         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
97908
97909 1999-02-07  Jim Meyering  <meyering@ascend.com>
97910
97911         * m4/group-member.m4: New file -- extracted from sh-utils'
97912         configure.in.
97913
97914         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
97915         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
97916
97917 1999-02-06  Jim Meyering  <meyering@ascend.com>
97918
97919         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
97920         * m4/fnmatch.m4: Likewise.
97921         * m4/getgroups.m4: Likewise.
97922         * m4/lstat.m4: Likewise.
97923         * m4/malloc.m4: Likewise.
97924         * m4/putenv.m4: Likewise.
97925         * m4/realloc.m4: Likewise.
97926         * m4/regex.m4: Likewise.
97927         * m4/stat.m4: Likewise.
97928         * m4/strftime.m4: Likewise.
97929         Suggestion from Alain Magloire.
97930
97931         * m4/chown.m4: Use `.$ac_objext', not `.o'.
97932         * m4/fnmatch.m4: Likewise.
97933         * m4/getgroups.m4: Likewise.
97934         * m4/getline.m4: Likewise.
97935         * m4/lstat.m4: Likewise.
97936         * m4/malloc.m4: Likewise.
97937         * m4/memcmp.m4: Likewise.
97938         * m4/putenv.m4: Likewise.
97939         * m4/realloc.m4: Likewise.
97940         * m4/regex.m4: Likewise.
97941         * m4/stat.m4: Likewise.
97942         * m4/strftime.m4: Likewise.
97943         Suggestion from Alain Magloire.
97944
97945         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
97946         an argument.
97947
97948         * m4/regex.m4: Add a run-time Test for proper operation of
97949         re_compile_pattern.
97950
97951 1999-01-31  Jim Meyering  <meyering@ascend.com>
97952
97953         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
97954
97955 1999-01-30  Jim Meyering  <meyering@ascend.com>
97956
97957         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
97958
97959         * m4/jm-mktime.m4: Make this a wrapper around the official
97960         AM_FUNC_MKTIME rather than my private copy, now that the official one
97961         is up to date.
97962         * m4/mktime.m4: Remove file.
97963
97964         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
97965         * m4/uptime.m4: Likewise.
97966         * m4/uintmax_t.m4: Likewise.
97967
97968 1999-01-28  Jim Meyering  <meyering@ascend.com>
97969
97970         * m4/jm-macros.m4: Use jm_AFS.
97971         * m4/afs.m4: New file (from fileutils' configure.in).
97972
97973         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
97974         * m4/chown.m4: Likewise.
97975         * m4/d-ino.m4: Likewise.
97976         * m4/d-type.m4: Likewise.
97977         * m4/fnmatch.m4: Likewise.
97978         * m4/getgroups.m4: Likewise.
97979         * m4/gettext.m4: Likewise.
97980         * m4/jm-mktime.m4: Likewise.
97981         * m4/jm-winsz2.m4: Likewise.
97982         * m4/lcmessage.m4: Likewise.
97983         * m4/ls-mntd-fs.m4: Likewise.
97984         * m4/malloc.m4: Likewise.
97985         * m4/memcmp.m4: Likewise.
97986         * m4/putenv.m4: Likewise.
97987         * m4/realloc.m4: Likewise.
97988         * m4/st_mtim.m4: Likewise.
97989         * m4/strftime.m4: Likewise.
97990
97991 1999-01-16  Jim Meyering  <meyering@ascend.com>
97992
97993         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97994         (ARGMATCH_DIE_DECL): Define.
97995
97996 1999-01-12  Jim Meyering  <meyering@ascend.com>
97997
97998         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97999         Reported by Lars Hecking.
98000
98001 1999-01-10  Jim Meyering  <meyering@ascend.com>
98002
98003         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98004         gross kludge.
98005         * m4/inttypes_h.m4: Likewise.
98006         * m4/lstat.m4: Likewise.
98007         * m4/malloc.m4: Likewise.
98008         * m4/readdir.m4: Likewise.
98009         * m4/realloc.m4: Likewise.
98010         * m4/st_dm_mode.m4: Likewise.
98011         * m4/stat.m4: Likewise.
98012         * m4/utimbuf.m4: Likewise.
98013         * m4/utimes.m4: Likewise.
98014
98015         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98016         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98017         comments in config.h.in are meaningful.
98018
98019         * m4/jm-macros.m4: Require autoconf-2.13 here.
98020
98021         * m4/regex.m4: By default, don't use the included regex.c on systems
98022         with glibc 2.  Suggestion from Uli Drepper.
98023
98024 1999-01-02  Jim Meyering  <meyering@ascend.com>
98025
98026         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98027
98028 1998-12-18  Jim Meyering  <meyering@ascend.com>
98029
98030         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98031         Based on a suggestion from Lars Hecking.
98032
98033 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98034
98035         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98036
98037 1998-11-16  Jim Meyering  <meyering@ascend.com>
98038
98039         * m4/lfs.m4: Double-quote the `uname...` expression.
98040
98041 1998-11-14  Jim Meyering  <meyering@ascend.com>
98042
98043         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98044         * m4/stat.m4: Likewise.
98045
98046 1998-11-03  Jim Meyering  <meyering@ascend.com>
98047
98048         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98049         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98050
98051 1998-10-18  Jim Meyering  <meyering@ascend.com>
98052
98053         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98054
98055 1998-10-17  Jim Meyering  <meyering@ascend.com>
98056
98057         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98058         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98059         calls for those previously hard-coded headers.  Instead, take a new
98060         parameter.
98061         (jm_CHECK_DECLARATIONS): Reflect interface change.
98062         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98063         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98064
98065         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98066
98067 1998-10-14  Jim Meyering  <meyering@ascend.com>
98068
98069         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98070         instead of "TZ=America/Vancouver".  From Paul Eggert.
98071
98072 1998-10-11  Jim Meyering  <meyering@ascend.com>
98073
98074         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98075         This adds a test for a recently added compatibility fix for mktime.c.
98076         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98077
98078 1998-09-27  Jim Meyering  <meyering@ascend.com>
98079
98080         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98081
98082         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98083         ../configure.in, including a change from Gordon Matzigkeit to allow
98084         cross-compiling for the Hurd.
98085
98086         * m4/glibc.m4: New file/macro to test for the GNU C Library
98087         versions 1 and 2.  From Gordon Matzigkeit.
98088         Indent.
98089
98090 1998-09-21  Jim Meyering  <meyering@ascend.com>
98091
98092         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98093
98094 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98095
98096         Port nanosecond-resolution times to UnixWare 2.1.2 and
98097         pedantic Solaris 2.6.
98098
98099         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98100         AC_STRUCT_ST_MTIM.
98101         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98102         Generate name of ns member, instead of just 1 or undef.
98103         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98104
98105 1998-08-15  Jim Meyering  <meyering@ascend.com>
98106
98107         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98108         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98109         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98110         instead of jm_TYPE_SSIZE_T.
98111
98112 1998-08-12  Jim Meyering  <meyering@ascend.com>
98113
98114         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98115
98116 1998-08-02  Jim Meyering  <meyering@ascend.com>
98117
98118         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98119         in acconfig.h manually.
98120
98121 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98122
98123         * m4/st_mtim.m4: New file.
98124
98125 1998-07-28  Jim Meyering  <meyering@ascend.com>
98126
98127         * m4/utimes.m4: Undef stat.
98128
98129 1998-07-25  Jim Meyering  <meyering@ascend.com>
98130
98131         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98132         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98133
98134 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98135
98136         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98137         uid and gid actually remain unchanged.
98138
98139 1998-07-07  Jim Meyering  <meyering@ascend.com>
98140
98141         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98142
98143 1998-07-04  Jim Meyering  <meyering@ascend.com>
98144
98145         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98146         to prove that this macro can be used in packages without regex.c.
98147
98148 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98149
98150         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98151         is to be used.
98152
98153 1998-07-03  Jim Meyering  <meyering@ascend.com>
98154
98155         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98156
98157         * m4/gettext.m4: New file -- from gettext-0.10.35.
98158         * m4/lcmessage.m4: Likewise.
98159         * m4/progtest.m4: Likewise.
98160
98161         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98162         * m4/jm-macros.m4: Require the new macro.
98163
98164 1998-06-29  Jim Meyering  <meyering@ascend.com>
98165
98166         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98167         for the definition of NGROUPS (used in a system header included
98168         by sys/mount.h).
98169
98170 1998-06-28  Jim Meyering  <meyering@ascend.com>
98171
98172         * m4/ls-mntd-fs.m4: New file.
98173         * m4/fstypename.m4: New file.
98174
98175         * m4/jm-macros.m4: Require the new macro.
98176         * m4/jm-glibc-io.m4: New file.
98177
98178 1998-05-19  Jim Meyering  <meyering@ascend.com>
98179
98180         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98181         * m4/lchown.m4: New file.
98182
98183         * m4/Makefile.am.in: New file.
98184         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98185
98186 1998-05-14  Jim Meyering  <meyering@ascend.com>
98187
98188         * m4/Makefile.am (EXTRA_DIST): Add them.
98189         * m4/jm-macros.m4: New file.
98190         * m4/utimbuf.m4: New file.
98191
98192 1998-05-12  Jim Meyering  <meyering@ascend.com>
98193
98194         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98195
98196 1998-05-11  Jim Meyering  <meyering@ascend.com>
98197
98198         * m4/isc-posix.m4: New file.
98199
98200 1998-05-10  Jim Meyering  <meyering@ascend.com>
98201
98202         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98203
98204 1998-05-09  Jim Meyering  <meyering@ascend.com>
98205
98206         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98207         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98208         with automake.
98209
98210         * m4/ssize_t.m4: New file.
98211         * m4/mktime.m4: Remove file -- the new automake has this now.
98212
98213 1998-04-26  Jim Meyering  <meyering@ascend.com>
98214
98215         * m4/assert.m4: New file.
98216         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98217
98218 1998-04-05  Jim Meyering  <meyering@ascend.com>
98219
98220         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98221         (jm_PREREQ): Use it here.
98222
98223 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98224
98225         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98226         in acconfig.h.
98227
98228 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98229
98230         * m4/prereq.m4: New file.
98231         * m4/error.m4: New file.
98232         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98233
98234 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98235
98236         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98237         cache-check for the same variable -- that defeated the purpose of
98238         the test; the test program was never run.  This was a problem only
98239         on systems with losing getline functions -- HP-UX 10.20 is one.
98240         Reported by Bjorn Helgaas.
98241
98242 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98243
98244         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98245
98246 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98247
98248         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98249
98250         * m4/const.m4: New file.  Use an initializer in this declaration
98251         typedef int charset[2]; const charset x;
98252         Reported by Bob Glickstein.
98253
98254 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98255
98256         * m4/chown.m4: Fix reversed types on -1 args to chown.
98257         From Kaveh Ghazi.
98258
98259 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98260
98261         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98262         Add lseek and memchr.
98263
98264         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98265         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98266         have a 20-character limit on names.
98267
98268 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98269
98270         * m4/inttypes_h.m4: New file.
98271         * m4/uintmax_t.m4: New file.
98272         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98273
98274
98275         -----
98276
98277         Local Variables:
98278         coding: utf-8
98279         End:
98280
98281         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98282
98283         Copying and distribution of this file, with or without
98284         modification, are permitted provided the copyright notice
98285         and this notice are preserved.